Main
Warnings, Cautions, and Notes as Used in this Publication
Warning
Caution
Note
Preface
Revisions to This Manual
Content of This Manual
Preface
Related Publications
Page
Page
Contents
Section 2: Program Organization and User References/Data..................... 2-16
Section 3: Power-Up and Power-Down Sequences ......................................2-30
Section 6: Series 90-30, 90-20, and Micro I/O System................................. 2-38
Section 2: PLC Fault Table Explanations........................................................3-7
Page
Page
Page
Page
Page
SVCREQ #4: Change System Comm. Window Mode and Timer Value............. 4-141
SVCREQ #9: Read Sweep Time from Beginning of Sweep.................................4-150
Page
Page
Page
Page
Introduction
1
Additional Reference Information: See the appendices in the b ack of this manual.
System Operation
Section 1: PLC Sweep Summary
Standard Program Sweep
GFK-0467K Chapter 2 System Operation 2-3
Figure 2-1. PLC Sweep
Page
GFK-0467K Chapter 2 System Operation 2-5
Table 2-2. I/O Scan Time Contributions for the 90-30 350 and 360 Series (in milliseconds)
Sweep Time Calculation
Example of Sweep Time Calculation
Housekeeping
Input Scan
Application Program Logic Scan or Solution
Output Scan
Logic Program Checksum Calculation
Programmer Communications Window
2-10 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
The following figure is a flow chart for the programmer communications portion of the sweep.
Figure 2-2. Programmer Communications Window Flow Chart
System Communications Window (Models 331 and Higher)
GFK-0467K Chapter 2 System Operation 2-11
Figure 2-3. System Communications Window Flow Chart
PCM Communications with the PLC (Models 331 and Higher)
Standard Program Sweep Variations
Constant Sweep Time Mode
PLC Sweep When in STOP Mode
Communication Window Modes
Key Switch on 350 and 360 Series CPUs: Change Mode and Flash Protect
Using the Release 7 and Later Key Switch
Clearing the Fault Table with the Key Switch
Enhanced Memory Protect with Release 8 and Later CPUs
Section 2: Program Organization and User References/Data
Subroutine Blocks (Series 90-30 PLC only)
Page
Examples of Using Subroutine Blocks
How Blocks Are Called
Periodic Subroutines
User References
or MULTIPLE). Refer to the Logicmaster 90-30/20Micro Programming Software Users
Transitions and Overrides
Retentiveness of Data
Page
Data Types
Data types include the following: Table 2-5. Data Types Type Name Description Data Format
Register 1 (16 bit positions) 16 1
S|
System Status References
Table 2-6. System Status References - Continued Reference Name Definition
Function Block Structure
Format of Ladder Logic Relays
Format of Program Function Blocks
Function Block Parameters
Power Flow In and Out of a Function
Section 3: Power-Up and Power-Down Sequences
Power-Up
*
2
*
13
89
18
16
*
1
4
3
5
Page
Page
Section 4: Clocks and Timers
Elapsed Time Clock
Time-of-Day Clock
Watchdog Timer
Constant Sweep Timer
Time-Tick Contacts
Section 5: System Security
Passwords
Privilege Level Change Requests
Locking/Unlocking Subroutines
Permanently Locking a Subroutine
Section 6: Series 90-30, 90-20, and Micro I/O System
Model 30 I/O Modules
Table 2-7. Model 30 I/O Modules - Continued Catalog Number Points Description Pub
Number
I/O Data Formats
Default Conditions for Model 30 Output Modules
Diagnostic Data
Global Data
Model 20 I/O Modules
Micro PLCs
Fault Explanation and Correction
Section 1: Fault Handling
Alarm Processor
Classes of Faults
System Reaction to Faults
Fault Tables
Fault Action
Fault References
Fault Reference Definitions
Additional Fault Effects
PLC Fault Table Display
I/O Fault Table Display
Accessing Additional Fault Information
Section 2: PLC Fault Table Explanations
Fault Actions
Loss of, or Missing, Option Module
Reset of, Addition of, or Extra, Option Module
System Configuration Mismatch
Option Module Software Failure
Program Block Checksum Failure
Low Battery Signal
Constant Sweep Time Exceeded
Application Fault
No User Program Present
Corrupted User Program on Power-Up
Password Access Failure
PLC CPU System Software Failure
Page
Page
Section 3: I/O Fault Table Explanations
Loss of I/O Module
Addition of I/O Module
Series 90-30/20/Micro Instructions Set
Section 1: Relay Functions
Using Contacts
Using Coils
Normally Open Contact | |
Normally Closed Contact |/|
Coil ( )
Negated Coil (/)
Retentive Coil (M)
Negated Retentive Coil (/M)
Positive Transition Coil ()
Negative Transition Coil ()
SET Coil (S)
RESET Coil (R)
Retentive SET Coil (SM)
Retentive RESET Coil (RM)
Links
Continuation Coils (<+>) and Contacts (<+>)
Section 2: Timers and Counters
Function Block Data Required for Timers and Counters
Special Note on Certain Bit Operations
ONDTR
Page
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4-13
TMR
Page
Page
OFDT
Page
Page
UPCTR
Page
DNCTR
Page
4-24 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4-25
The second method, shown below, uses the ADD and SUB functions to provide storage tracking.
Section 3: Math Functions
This section describes the math functions of the Series 90-30/20/Micro Instruction Set:
Standard Math Functions (ADD, SUB, MUL, DIV)
Page
Math Functions and Data Types
4-30 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
MOD (INT, DINT)
Page
SQRT (INT, DINT, REAL)
Page
Trig Functions (SIN, COS, TAN, ASIN, ACOS, ATAN)
In the following example, the COS of the value in %R0001 is placed in %R0033.
Logarithmic/Exponential Functions (LOG, LN, EXP, EXPT)
Page
Radian Conversion (RAD, DEG)
In the following example, +1500 is converted to DEG and is placed in %R0001.
Section 4: Relational Functions
I1 and I2 must be valid numbers, i.e., cannot be NaN (Not a Number).
Expanded Description:
Function Description
Page
RANGE (INT, DINT, WORD)
Page
Page
Section 5: Bit Operation Functions
The following bit operation functions are described in this section:
AND and OR (WORD)
Page
XOR (WORD)
Page
NOT (WORD)
Page
SHL and SHR (WORD)
Page
Page
ROL and ROR (WORD)
Page
BTST (WORD)
Page
BSET and BCLR (WORD)
Page
BPOS (WORD)
Page
MSKCMP (WORD, DWORD)
If All Bits in I1 and I2 are the Same
If a Miscompare is Found
Page
Ladder Diagram Representation
Section 6: Data Move Functions
MOVE (BIT, INT, WORD, REAL)
Page
Before using the Move function:
After using the Move function:
BLKMOV (INT, WORD, REAL)
4-74 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
IN1 IN7
Q o
Note: For REAL data, the only valid types are %R, %AI, and %AQ.
BLKCLR (WORD)
4-76 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
IN
SHFR (BIT, WORD)
Page
Page
BITSEQ (BIT)
Memory Required for a Bit Sequencer
Page
Page
COMMREQ
Command Block
The command block has the following structure:
Page
Section 7: Table Functions
ARRAY_MOVE (INT, DINT, BIT, BYTE, WORD)
Page
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4-89
Example 3:
SRCH_EQ and SRCH_NE (INT, DINT, BYTE, WORD) SRCH_GT and SRCH_LT SRCH_GE and SRCH_LE
Page
Page
Section 8: Conversion Functions
>BCD-4 (INT)
Page
>INT (BCD-4, REAL)
4-98 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
IN
Q
Note: For REAL data, the only valid types are %R, %AI, and %AQ.
>DINT (REAL)
Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none
>REAL (INT, DINT, BCD-4, WORD)
Page
>WORD (REAL)
Page
TRUN (INT, DINT)
Page
Section 9: Control Functions
CALL
DOIO
Page
Input Example 1:
Input Example 2:
4-112 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
Output Example 1:
Output Example 2:
Enhanced DO I/O Function for 331 and Later CPUs
SER
Page
Page
Status Extra Data
SER Data Block
SER Notes
Page
In the following example, the offsets have been set up as described in the table below.
Page
Data Block
END
MCR
Differences Between MCRs and JUMPs
4-126 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
ENDMCR
JUMP
Page
LABEL
COMMENT
SVCREQ
Page
SVCREQ #1: Change/Read Constant Sweep Timer
Page
Page
SVCREQ #2: Read Window Values
Page
Page
4-140 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
SVCREQ #4: Change System Comm. Window Mode and Timer Value
High Byte Low Byte
Page
SVCREQ #6: Change/Read Number of Words to Checksum
To Read the Current Word Count:
To Set a New Word Count:
4-144 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
The example parameter blocks are located at address %R0150. They have the following content:
SVCREQ #7: Change/Read Time-of-Day Clock
4-146 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
Parameter Block Contents
To Change/Read Date and Time Using BCD Format:
To Change/Read Date and Time using Packed ASCII with Embedded Colons Format
SVCREQ #8: Reset Watchdog Timer
SVCREQ #9: Read Sweep Time from Beginning of Sweep
SVCREQ #10: Read Folder Name
SVCREQ #11: Read PLC ID
SVCREQ #12: Read PLC Run State
SVCREQ #13: Shut Down (Stop) PLC
SVCREQ #14: Clear Fault Tables
SVCREQ #15: Read Last-Logged Fault Table Entry
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4-157
Page
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4-159
SVCREQ #16: Read Elapsed Time Clock
SVCREQ #18: Read I/O Override Status
SVCREQ #23: Read Master Checksum
SVCREQ #26/30: Interrogate I/O
SVCREQ #29: Read Elapsed Power Down Time
SVCREQ #46:Fast Backplane Status Access
Read Extra Status Data (Function #1)
Use the table on the following page to interpret the output values:
Write Data (Function #2)
Read/Write Data (Function #3)
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4-169
4-170 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
PID
Page
PID Parameter Block:
Page
Operation of the PID Instruction
Table 4-5. PID Parameters Details
(00)
(07)
(06)
(05)
Page
Table 4-5. PID Parameters Details - Continued
Internal Parameters in RefArray
PID Algorithm Selection (PIDISA or PIDIND) and Gains
CV Amplitude and Rate Limits
Sample Period and PID Block Scheduling
Determining the Process Characteristics
Setting User Parameters Including Tuning Loop Gains
Setting Loop Gains Ziegler and Nichols Tuning Approach
Sample PID Call
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4-185
Instruction Timing
A
A-2Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
Table A-1. Instruction Timing
GFK-0467K Appendix A Instruction Timing A-3
A-4Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
Table A-1. Instruction Timing-Continued
GFK-0467K Appendix A Instruction Timing A-5
A-6Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
GFK-0467K Appendix A Instruction Timing A-7
A-8Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
Table A-1. InstructionTiming-Continued
GFK-0467K Appendix A Instruction Timing A-9
Instruction Sizes for 350 and 360 Series CPUs
Boolean Execution Speed
Interpreting Fault Tables
B
PLC Fault Table
Long/Short Indicator
Spare
Rack
Slot
Task
PLC Fault Group
Fault Action
Error Code
Page
Fault Extra Data
PLC Fault Time Stamp
B-8Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
I/O Fault Table
Long/Short Indicator
Reference Address
I/O Fault Address
Rack
Slot
Point
I/O Fault Group
I/O Fault Action
I/O Fault Specific Data
Symbolic Fault Specific Data
Fault Actions for Specific Faults
I/O Fault Time Stamp
GFK-0467K C-1
Instruction Mnemonics
C
C-2Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
C
GFK-0467K Appendix C Instruction Mnemonics C-3
Key Functions
D
Page
Page
Page
Using Floating-Point Numbers
E
Floating-Point Numbers
E-2Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
Internal Format of Floating-Point Numbers
Values of Floating-Point Numbers
Entering and Displaying Floating-Point Numbers
Errors in Floating-Point Numbers and Operations
Page
Index
3
A
B
C
D
E
F
G
H
I
J
K
M
N
O
P
R
S
T
U
V
W
X