The text of a manual · part 56 of 70
SLC 500 Instruction Set Reference Manual, pages 551 to 560
Pages 551 to 560 of 694
The original document is the PDF (7.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1747-L514
Page 551
SLC Status File
B-31
Table B.3 S:6 Error Codes Address
S:6 continued
Error Code (Hex)
User Program Instruction Errors
Fault Classification NonUser
Processor
User NonRecov
Recov
Fixed 5/01
5/02
5/03
5/04
5/05
0030
Attempt was made to jump to one too many nested subroutine files. This code can also mean that a program has potentially recursive routines.
X
•
•
•
•
•
0031
An unsupported instruction reference was detected.
X
•
•
•
•
•
0032
A sequencer length/position parameter points past the end of a data file.
X
•
•
•
•
•
0033
The length of LFU, LFL, FFU, FFL, BSL, or BSR instruction points past the end of a data file.
X
•
•
•
•
•
0034
A negative value for a timer accumulator or preset value was detected.
X
•
•
•
•
•
Fixed processors with 24 VDC inputs only: A negative or zero HSC preset was detected in a HSC instruction.
X
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
0035
TND, SVC, or REF instruction is called within an interrupting or user fault routine.
0036
An invalid value is being used for a PID instruction parameter.
0038
A RET instruction was detected in a non-subroutine file.
xx39
Invalid string length was detected in a string file. (xx = data file number)
003A
An attempted write to a constant data file.
003B
Motherboard and Daughter Card firmware do not match.
003C
STI watchdog time-out.
•
•
003D
J4 jumper in wrong position.
•
•
005F
Invalid Rack ID
•
•
• xx50
A chassis data error is detected. (xx = slot number)
•
•
•
X
X X
• X
•
X
•
•
•
Publication 1747-RM001G-EN-P - November 2008
Page 552
B-32
SLC Status File
Table B.3 S:6 Error Codes (Continued) Address
S:6 continued
Error Code (Hex)
User Program Instruction Errors
Fault Classification NonUser
Processor
User NonRecov
Recov
5/02
5/03
5/04
5/05
•
•
•
•
• xx51
A “stuck” runtime error is detected on an I/O module. (xx = slot number)
xx52
A module required for the user program is detected as missing or removed. (xx = slot number)
X
•
•
•
•
• xx53
When going-to-run, a user program declares a slot as unused, and that slot is detected as having an I/O module inserted. This can also mean that an I/O module has reset itself. (xx = slot number)
X
•
•
•
•
•
An attempt to enter the run or test mode was made with an empty chassis.
X
•
•
• xx54
A module required for the user program is detected as being the wrong type. (xx = slot number)
X
•
•
•
•
• xx55
A discrete I/O module required for the user program is detected as having the wrong I/O count. This code can also mean that a specialty card driver is incorrect. (xx = slot number)
X
•
•
•
•
•
0056
The chassis configuration specified in the user program is detected as being incorrect.
•
•
•
•
• xx57
A specialty I/O module has not responded to a lock shared memory command within the required time limit. (xx = slot number)
•
•
•
•
• xx58
A specialty I/O module has generated a generic fault. The card fault bit is set (1) in the module’s status byte. (xx = slot number)
•
•
•
•
• xx59
A specialty I/O module has not responded to a command as being completed within the required time limit. (xx = slot number)
•
•
•
•
•
Publication 1747-RM001G-EN-P - November 2008
X
Fixed 5/01
X
X
X
X
Page 553
SLC Status File
B-33
Table B.3 S:6 Error Codes (Continued) Address
S:6 continued
Error Code (Hex)
User Program Instruction Errors
Fault Classification NonUser
Processor
User NonRecov
Recov
X
Fixed 5/01
5/02
5/03
5/04
5/05
•
•
•
• xx5A
Hardware interrupt problem. (xx = slot number)
xx5B
G file configuration error - user program G file size exceeds capacity of the module. (xx = slot number)
X
•
•
•
• xx5C
M0-M1 file configuration error user program M0-M1 file size exceeds capacity of the module. (xx = slot number)
X
•
•
•
• xx5D
Interrupt service requested is not supported by the processor. (xx = slot number)
X
•
•
•
• xx5E
Processor I/O driver (software) error. (xx = slot number)
X
•
•
•
•
005F
Invalid rack ID (handshake error) X
•
•
• xx60 to xx6F
Identifies an I/O module specific recoverable major error. Refer to the user manual supplied with the specialty module. (xx = slot number)
•
•
•
• xx70 to xx7F
Identifies an I/O module specific non-recoverable major error. Refer to the user manual supplied with the specialty module. (xx = slot number)
•
•
•
•
X
X
Publication 1747-RM001G-EN-P - November 2008
Page 554
B-34
SLC Status File
Table B.3 S:6 Error Codes (Continued) Address
S:6 continued
Error Code (Hex)
User Program Instruction Errors
Fault Classification NonUser
Processor
User NonRecov
Recov
Fixed 5/01
5/02
5/03
5/04
5/05
•
•
• xx80 to xx8F
Identifies a specialty I/O module X specific major error. Refer to the user manual supplied with the specialty module. (xx = slot number)
xx90
Interrupt problem on disabled slot.
X
•
•
•
• xx91
A disabled slot has faulted.
X
•
•
•
• xx92
An invalid or non-existent module interrupt subroutine (ISR) file.
X
•
•
•
• xx93
Unsupported I/O module specific major error.
X
•
•
•
• xx94
In the REM Run or REM Test mode, a module has been detected as being inserted under power. This can also mean that an I/O module has reset itself. (xx = slot number)
X
•
•
•
•
0x00A0 0x00A1 0x00A2
X Indicates a communications channel hardware fault has occurred. With the SLC 5/05, only the Ethernet channel (channel 1) may generate this fault. With the SLC 5/04 only the DH+ channel (channel 1) may generate this fault. Ethernet, DH+ and RS-232 communications will be disabled until a power cycle is performed. For the SLC 5/05, system status file word 15 (S:15) provides a specific fault code for the Ethernet Daughterboard.
•
•
Publication 1747-RM001G-EN-P - November 2008
Page 555
SLC Status File
B-35
Table B.4 Status File Functions Address
Classification
Description
Fixed 5/01
5/02
5/03
5/04
5/05
S:7 and S:8
Status
Suspend Code/Suspend File
•
•
•
•
•
When a non-zero value appears in S:7, it indicates that the SUS instruction identified by this value has been evaluated as true, and the Suspend Idle mode is in effect. This pinpoints the conditions in the application that caused the Suspend Idle mode. This value is not cleared by the processor. Word S:8 contains the program file number in which a true SUS instruction is located. This value is not cleared by the processor. Use the SUS instruction with startup troubleshooting, or as runtime diagnostics for detection of system errors. Application example: You believe that limit switches connected to I:1/0 and I:1/1 cannot be energized at the same time, yet your application program acts as if they can be. To determine if you have a limit switch problem or a ladder logic problem, add the following rung to your program: I:1.0 ] [ 0
I:1.0 ] [ 1
SUS SUSPEND Suspend
ID
1
If your program enters the SUS Idle mode for code 1 when you run the program, you have a limit switch control problem; if the SUS Idle mode for code 1 does not occur, you have a ladder logic problem. S:9
Status
Ethernet Daughter Board Firmware Series (Channel 1 - SLC 5/05 processors)
•
A value of 1 corresponds to Series 1, for example. S:10
Status
•
Ethernet Daughter Board Firmware Revision (Channel 1 - SLC 5/05 processors) A value of 12 corresponds to Revision 12, for example.
S:9 and S:10
Status
•
Active Nodes (Channel 1-SLC 5/03 processors)
•
•
These two words are bit mapped to represent the 32 possible nodes on a DH-485 link. S:9/0 through S:10/15 represent node addresses 0-31. These bits are set by the processor when a node exists on the DH-485 link that your processor is connected to. The bits are cleared when a node is not present on the link.
Publication 1747-RM001G-EN-P - November 2008
Page 556
B-36
SLC Status File
Table B.4 Status File Functions (Continued) Address
Classification
Description
Fixed 5/01
5/02
5/03
5/04
5/05
S:11 and S:12
Dynamic Config
I/O Slot Enables
•
•
•
•
•
•
•
•
•
•
•
•
These two words are bit mapped to represent the 30 possible I/O slots in an SLC 500 system. S:11/0 represents I/O slot 0 for fixed I/O systems. (Slot 0 is used for the CPU in modular systems.) S:11/1 through S:12/14 represent I/O slots 1-30. S:12/15 is unused. When a bit is set (default condition), it allows the I/O module contained in the reference slot to be updated in the I/O scan of the processor operating cycle. When you clear a bit, it causes the I/O module in the referenced slot to be ignored. That is, an I/O slot enable value of 0 causes the input image data of an input module to freeze at its last value. Also, the outputs of an output module will freeze at their last values, regardless of values contained in the output image. Outputs remain frozen until: • either power is removed, • the REM Run mode is exited, or • a major fault occurs. At that time the outputs are zeroed, until the slot is again enabled (set). Disabled slots do not have to match the user program configuration. ATTENTION
TIP
ATTENTION
Make certain that you have thoroughly examined the effects of disabling (clearing) a slot enable bit before doing so in your application.
The SLC 5/02 and higher processors inform each specialty I/O module that has been disabled/enabled. Some I/O modules may perform other actions when disabled or re-enabled. Refer to the user information supplied with the specialty I/O module for possible differences from the above descriptions. The DII instruction ignores the slot enable/disable status. Do not run the DII on a faulted slot. If you apply the DII on a disabled slot, the interrupt will occur. However, the input image will not reflect the present state of the card. This bit is applied upon detection of a DII Reconfigure bit, each DII ISR exit, and at each end of scan (END, TND, or REF).
Publication 1747-RM001G-EN-P - November 2008
Page 557
SLC Status File
B-37
Table B.4 Status File Functions (Continued) Address
Classification
Description
Fixed 5/01
5/02
5/03
5/04
5/05
S:13 and S:14
Status and Dynamic Config
Math Register
•
•
•
•
•
•
•
•
•
•
•
•
Use this double register to produce 32-bit signed divide and multiply operations, precision divide or double divide operations, and 5-digit BCD conversions. These two words are used in conjunction with the MUL, DIV, DDV, FRD, and TOD math instructions. The math register value is assessed upon execution of the instruction and remains valid until the next MUL, DIV, DDV, FRD, or TOD instruction is executed in the user program. An explanation of how the math register operates is included with the instruction definitions. If you store 32-bit signed data values, you must manage this data type without the aid of an assigned 32-bit data type. For example, combine B10:0 and B10:1 to create a 32-bit signed data value. We recommend that you keep all 32-bit signed data in a unique data file and that you start all 32-bit values on an even or odd word boundary for ease of application and viewing. Also, we recommend that you design, document, and view the contents of 32-bit signed data in either the hexadecimal or binary radix. When an STI, I/O Slot, or Fault Routine interrupts normal execution of your program, the original value of the math register is restored when execution resumes. Note that S:13 and S:14 are not used when the source or destination is defined as floating point data. When a DII interrupts normal execution of your program, the original value of the math register is restored when execution resumes.
Publication 1747-RM001G-EN-P - November 2008
Page 558
B-38
SLC Status File
Table B.4 Status File Functions (Continued) Address
Classification
Description
Fixed 5/01
5/02
5/03
5/04
S:15L
Static Config
Node Address
•
•
•
•
This byte value contains the node address of your processor on the DH-485 or DH+ link. Each device on the DH-485 link must have a unique address between the decimal values 0 and 31. Each device on the DH+ link must have a unique address between the decimal values 0 and 63. To change a processor node address, write a value between 1 and 31 for DH-485 and between 0 and 63 for DH+ using either the Data Monitor or node function of your programmer, then cycle power to the processor. The default node address of a processor is 1. The default DH-485 node address of HHT programmer is 0. To provide runtime protection from inadvertent data monitor alteration of your selection, program this value using an unconditional MVM instruction. Use the MOV instruction in place of MVM if you also wish to protect the baud rate. The following example show runtime protection of node address 3 MOV MOVE Source Dest
3 N7:100
MVM MASKED MOVE Source N7:100
Publication 1747-RM001G-EN-P - November 2008
Mask
00FF
Dest
S:15
5/05
Page 559
SLC Status File
B-39
Table B.4 Status File Functions (Continued) Address
Classification
Description
Fixed 5/01
S:15H
Static Config
When a configure channel command is received for channel 1, the node address is overwritten with the value contained in your channel configuration. Baud Rate This byte value contains a code used to select the baud rate of the processor on the DH-485 or DH+ link. SLC 5/01 and fixed processors provide a baud rate of 19.2K or 9.6K only. SLC 5/02 and SLC 5/03 processors provide a baud rate of 19.2K, 9.6K, 2.4K, or 1.2K. SLC 5/04 processors provide a baud rate of 57.6K, 115.2K, and 230.4K. To change the baud rate from the default values of 19.2K or 57.6K, use either the Data Monitor or baud function of your programmer. The processor uses code 1 for 1.2K, code 2 for 2.4K, code 3 for 9.6K, code 4 for 19.2 K, code 11 for 57.6K, code 12 for 115.2K, and code 13 for 230.4K baud. Example showing runtime protection of baud rate 19.2K (code 4):
•
5/02
•
5/03
5/04
•
•
•
•
•
•
5/05
MOV MOVE Source Dest
1024 N7:100
MVM MASKED MOVE Source
N7:100
Mask
FF00
Dest
S:15
S:15H equal to 4 = 1024 decimal = 0400 hex = 0000 0100 0000 0000 binary Static Config
Example showing runtime protection for both baud rate 19200 (code 4) and node address 3: MOV MOVE Source
1027
Dest
S:15
S:15H equal to 4 and S:15L equal to 3 = 1027 decimal = 0403 hex = 0000 0100 0000 0011 binary When a configure channel command is received for channel 1, the baud rate is overwritten with the value contained in your channel configuration. Static Config
Ethernet Daughter Board Fault Code This word value contains a fault code when an Ethernet communication channel fault occurs.
•
Publication 1747-RM001G-EN-P - November 2008
Page 560
B-40
SLC Status File
Table B.4 Status File Functions (Continued) Address
Classification
Description
S:16 and S:17
Status
Test Single Step - Start Step On - Rung/File
Fixed 5/01
5/02
5/03
5/04
5/05
•
•
•
•
•
•
•
•
•
•
•
•
•
These registers indicate the executable rung (word S:16) and file (word S:17) number that the processor executes next when operating in the Test Single Step mode. To enable this feature, you must select the Test Single Step option at the time you save your program. These values are updated upon completion of every rung. Refer to word S:2/4 for more information. Your programming device interrogates this value when providing “start step on file x, rung y” status line information. There is no known use for this feature when addressed by your ladder program. This feature is built into the SLC 5/03 and higher processors. Selection is not required.
S:18 and S:19
Status and Dynamic Config
Test Single Step - Breakpoint - Rung/File
•
These registers indicate the executable rung (word S:18) and file (word S:19) number that the processor should stop in front of when executing in the Test Single Step mode. To enable this feature, you must select the Test Single Step option at the time you save your program. If both the rung and file number are 0, the processor steps to the next rung only; otherwise the processor continues until it finds a rung/file equaling the S:18/S:19 value. The processor stops, then clears S:18 and S:19 when it finds a match, while remaining in the Test Single Step mode. The processor operates indefinitely if it cannot find the end rung/file that you have entered. It operates until it finds a match, receives a mode change, or powers down. See S:2/4. Your programming device interrogates this value when providing “end step before file x, rung y” status line information. Your programming device also writes this value when prompting you for “set end rung.” There is no known use for this feature when addressed by your ladder program. This feature is built into the SLC 5/03 and higher processors. Selection is not required.
Publication 1747-RM001G-EN-P - November 2008