The text of a manual · part 45 of 55
Hand-Held Terminal (Catalog Number 1747-PT1) User Manual: 27 - The Status File, pages 387 to 395
Pages 387 to 395 of 486, from Hand-Held Terminal (Catalog Number 1747-PT1) User Manual
The original document is the PDF (1.5 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-PT1
Page 387
Chapter 27 The Status File
Fault Classification Description Address S:6
Error Code (Hex)
Runtime Errors
0020
A minor error bit is set at the end of the scan. (See S:5 minor error bits.)
0021
Remote power failure of an expansion I/O rack occurred.
Processor
User Non-User
Non-Recov
Recov
5/02
5/01, Fixed
X
•
•
•
•
•
X
Note: A modular system that encounters an overvoltage or overcurrent condition in any of its power supplies can produce any of the I/O error codes listed on pages 27–21 and 27–22 (instead of code 0021). The overvoltage or overcurrent condition is indicated by the power supply LED being off.
!
ATTENTION: Fixed and FRN 1 to 4 SLC 5/01 processors – If the remote power failure occurred while the processor was in the Run mode, error 0021 will cause the major error halted bit (S:1/13) to be cleared at the next powerup of the local rack. SLC 5/02 processors and FRN 5 SLC 5/01 processors – Power to the local rack does not need to be cycled to resume the Run mode. Once the remote rack is re-powered, the CPU will restart the system.
0022
User watchdog scan time exceeded.
X
•
0023
Invalid or non-existent STI interrupt file.
X
•
0024
Invalid STI interrupt interval (greater than 2550 ms or negative).
X
•
0025
Excessive stack depth/JSR calls for STI routine.
X
•
0026
Excessive stack depth/JSR calls for I/O interrupt routine.
X
•
0027
Excessive stack depth/JSR calls for user fault routine.
X
•
0028
Invalid or non-existent “startup protection” fault routine file value.
0029
Indexed address reference outside of entire data file space (range of B3:0 through the last file).
002A
Indexed address reference beyond specific referenced data file.
•
X
X
X
• •
27–19
Page 388
Chapter 27 The Status File
Fault Classification Description Address
Error Code (Hex)
S:6
0030
Attempt was made to jump to one too many nested subroutine files. Can also mean that a program has potentially recursive routines.
0031
Unsupported instruction reference was detected.
0032
Sequencer length/position points past end of data file.
0033
0034
27–20
Processor
User 5/02
5/01, Fixed
X
•
•
X
•
•
X
•
•
Length of LFU, LFL, FFU, FFL, BSL, or BSR points past end of data file.
X
•
•
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 an HSC instruction.
X
User Program Instruction Errors
0035
TND, SVC, or REF instruction is called within an interrupting or user fault routine.
0036
Invalid value for a PID parameter. This code is discussed in chapter 26.
0038
A RET instruction was detected in a non-subroutine file.
Non-User
Non-Recov
Recov
•
X
X
X
•
• •
•
Page 389
Chapter 27 The Status File
SLOT NUMBERS (xx) IN HEXADECIMAL ERROR CODES: The characters xx in the following codes represent the slot number, in hex. If the exact slot cannot be determined, the characters xx become 1F.
Slot xx
Slot xx
Slot xx
Slot xx
0 1 2 3 4 5 6 7
00 01 02 03 04 05 06 07
8 9 10 11 12 13 14 15
08 09 0A 0B 0C 0D 0E 0F
16 17 18 19 20 21 22 23
10 11 12 13 14 15 16 17
24 25 26 27 28 29 30
18 19 1A 1B 1C 1D 1E
RECOVERABLE I/O FAULTS (SLC 5/02 processors only): Many I/O faults are recoverable. To recover, you must disable the specified slot, xx, in the user fault routine. If you do not disable slot xx, the processor will fault at the end of the scan.
Fault Classification Description Address
Error Code (Hex)
S:6 xx50
A rack data error is detected.
xx51
A “stuck” runtime error is detected on an I/O module.
xx52
A module required for the user program is detected as missing or removed.
xx53
Processor
User Recov
5/02
5/01, Fixed
X
•
•
•
•
X
•
•
At going-to-run, a user program declares a slot as unused, and that slot is detected as having an I/O module inserted. Can also mean that an I/O module has reset itself.
X
•
• xx54
A module required for the user program is detected as being the wrong type.
X
•
• xx55
A module required for the user program is detected as having the wrong I/O count or wrong I/O driver.
X
•
• xx56
The rack 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.
•
• xx58
A specialty I/O module has generated a generic fault. The module fault bit is set to 1 in the status byte of the module.
•
• xx59
A specialty I/O module has not responded to a command as being completed within the required time limit.
X
•
• xx5A
Hardware interrupt problem (“stuck”).
X
• xx5B
G file configuration error – user program G file size exceeds capacity of the module.
X
•
I/O Errors
Non-User
Non-Recov
X
X
X
X
27–21
Page 390
Chapter 27 The Status File
Fault Classification Description Address S:6
27–22
Error Code (Hex)
I/O Errors xx5C
Processor
User Non-User
Non-Recov
Recov
5/02
M0–M1 file configuration error – user program M0–M1 file size exceeds capacity of the module.
X
• xx5D
Interrupt service requested is not supported by the processor.
X
• xx5E
Processor I/O driver (software) error.
X
• xx60 thru xx6F
Identifies an I/O module specific recoverable major error. Refer to the user manual supplied with the specialty module.
X
• xx70 thru xx7F
Identifies an I/O module specific non-recoverable major error. Refer to the user manual supplied with the specialty module.
X
• xx90
Interrupt problem on disabled slot.
X
• xx91
A disabled slot has faulted.
X
• xx92
Invalid or non-existent module interrupt subroutine file.
X
• xx93
Unsupported I/O module specific major error.
X
•
In the run or test mode, a module has been detected as being inserted under power. Can also mean that an I/O module has reset itself.
X xx94
•
5/01, Fixed
Page 391
Chapter 27 The Status File
Address
Description
5/02
5/01, Fixed
S:7 and S:8
Suspend Code/Suspend File Read/write. 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. Application Note: Use the SUS instruction with startup troubleshooting, or as runtime diagnostics for detection of system errors. 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 I:1.0 ] [ ] [ 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 and S:10
Active Nodes Read only. 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 .
27–23
Page 392
Chapter 27 The Status File
Address
Description
5/02
5/01, Fixed
S:11 and S:12
I/O Slot Enables Read/write. 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 referenced 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 Run mode is exited, or a major fault occurs.
At that time the outputs will be zeroed, until the slot is again enabled (set). Disabled slots do not have to match the user program configuration.
!
ATTENTION: Make certain that you have thoroughly examined the effects of disabling (clearing) a slot enable bit before doing so in your application.
Note: The SLC 5/02 processor informs each specialty I/O module that has been disabled/enabled. Some I/O modules may perform other actions or inactions when disabled or re-enabled. Refer to the user information supplied with the specialty I/O module for possible differences from the above descriptions.
27–24
•
Page 393
Chapter 27 The Status File
Address
Description
5/02
5/01, Fixed
S:13 and S:14
Math Register Read/write. 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 functions is included with the instruction definitions. If you store 32-bit signed data values (example on page 20–6), 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.
S:15L
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.
•
Node Address Read/write. This byte value contains the node address of your processor on the DH–485 link. Each device on the DH–485 link must have a unique address between the decimal values 0 and 31. To change a processor node address, write a value in the range of 1–31 using either the EDT_DAT or NODE_CFG functions of your HHT, then cycle power to the processor.
•
•
The default node address of a processor is 1. The default node address of APS or the HHT programmer is 0. To provide runtime protection from inadvertent EDT_DAT alteration of your selection, program this value using a MOV and MVM instruction in an unconditional rung as shown below. Example, showing runtime protection of node address 3: MOV MOVE Source Dest
3 N7:0
MVM MASKED MOVE Source
N7:0
Mask
00FF
Dest
S:15
27–25
Page 394
Chapter 27 The Status File
Address
Description
5/02
5/01, Fixed
S:15H
Baud Rate Read/write. This byte value contains a code used to select the baud rate of the processor on the DH–485 link.
•
•
SLC 5/02 processors provide a baud rate of 19200, 9600, 2400, or 1200. SLC 5/01 and fixed processors provide a baud rate of 19200 or 9600 only. To change the baud rate from the default value of 19200, use either the EDT_DAT or NODE_CFG functions of your HHT. The processor uses code 1 for 1200 baud, code 2 for 2400 baud, code 3 for 9600 baud, and code 4 for 19200 baud. Example showing runtime protection of baud rate 19200 (code 4): MOV MOVE Source
1024
Dest
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 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
27–26
Page 395
Chapter 27 The Status File
Address
Description
5/02
S:16 and S:17
Test Single Step – Start Step On – Rung/File Read only. These registers indicate the executable rung (word S:16) and file (word S:17) number that the processor will execute 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.
•
5/01, Fixed
These values are updated upon completion of every rung (see S:2/4). 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. Note: The HHT can save a SLC 5/02 program that has this option enabled, but the Test Single Step mode is not available with the HHT. S:18 and S:19
Test Single Step – End Step Before – Rung/File Read only. 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 will step to the next rung only; otherwise the processor will continue 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 will operate 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. Note: The HHT can save a SLC 5/02 program that has this option enabled, but the Test Single Step mode is not available with the HHT.
27–27