The text of a manual · part 53 of 70
SLC 500 Instruction Set Reference Manual, pages 521 to 530
Pages 521 to 530 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 521
Appendix
B
SLC Status File
This appendix lists the: • SLC processor status file overview • status file detailed word/bit descriptions This appendix discusses the status file functions of the Fixed, SLC 500, SLC 5/01, SLC 5/02, SLC 5/03, SLC 5/04 and SLC 5/05 processors. The processors function similarly, but the higher numbered processors utilize more features. The tables in this appendix indicate which functions are supported by each processor. The appendix starts with an overview listing of the status file. A more detailed description of each status word follows. Use the overview list to find the page number of the detailed description.
Status File Overview
The status file lets you monitor how your operating system works and lets you direct how you want it to work. This is done by using the status file to set up interrupts, load memory module programs, and monitor both hardware and software faults.
TIP
1
Do not write to status file data unless the word or bit is listed as dynamic/static configuration in the descriptions that follow. If you intend writing to status file data, it is imperative that you first understand the function fully.
Publication 1747-RM001G-EN-P - November 2008
Page 522
B-2
SLC Status File
The status file contains the following words:
Table B.1 Status File Location
Publication 1747-RM001G-EN-P - November 2008
Word
Function
Applies To
Page
S:0
Arithmetic and Scan Status Flags
B-5
S:1
Processor Mode Status/Control all processors
S:2
Processor Alternate Mode Status/Control
B-13
S:3L
Current Scan Time
B-19
S:3H
Watchdog Scan Time
B-20
S:4
Free Running Clock
B-21
S:5
Minor Error Bits
B-21
S:6
Major Error Fault Code
B-26
S:7, S:8
Suspend Code/Suspend File
B-35
S:9
DH-485 Active Nodes (Fixed, SLC 5/01, SLC 5/02) Channel 1 Active Nodes (SLC 5/03) Unused (SLC 5/04) Ethernet Daughterboard Firmware Series (SLC 5/05)
B-35
S:10
DH-485 Active Nodes (Fixed, SLC 5/01, SLC 5/02) Channel 1 Active Nodes (SLC 5/03) Unused (SLC 5/04) Ethernet Daughterboard Firmware Revision (SLC 5/05)
B-35
S:11, S;12
I/O Slot Enables
B-36
S:13, S:14
Math Register
B-37
S:15L
DH-485 Node Address (Fixed, SLC 5/01, SLC 5/02) Channel 1 DH-485 Node Address (SLC 5/03) Channel 1 DH+ Node Address (SLC 5/04) Ethernet Daughterboard Fault Code (SLC 5/05)
B-38
S:15H
DH-485 Baud Rate (Fixed, SLC 5/01, SLC 5/02) Channel 1 DH-485 Baud Rate (SLC 5/03) Channel 1 DH+ Baud Rate (SLC 5/04) Ethernet Daughterboard Fault Code (SLC 5/05)
B-39
B-6
Page 523
SLC Status File
B-3
Table B.1 Status File Location (Continued) Word
Function
Applies To
Page
S:16, S:17
Word Single Step Rung/File
S:18, S:19
Single Step Breakpoint Rung/File
SLC 5/02 and B-40 higher B-40
S:20, S:21
Word Fault Powerdown Rung/File
B-41
S:22
Maximum Observed Scan Time
B-42
S:23
Average Scan Time
B-42
S:24
Index Register
B-43
S:25, S:26
I/O Interrupt Pending
B-43
S:27, S28
I/O Interrupt Enabled
B-44
S:29
User Fault Routine File Number
B-44
S:30
Selectable Timed Interrupt Set Point
B-45
S:31
Selectable Timed Interrupt File Number
B-45
S:32
I/O Interrupt Executing
B-46
S:33
Extended Processor Status and Control
S:34
Processor Extended Mode Status/Control
S:35
Last 1 ms Scan Time
B-52
S:36
Extended Minor Error Bits Reserved
B-52
S:37
Clock/Calendar Year
B-53
S:38
Clock/Calendar Month
B-53
S:39
Clock/Calendar Day
B-54
S:40
Clock/Calendar Hours
B-54
S:41
Clock/Calendar Minutes
B-54
S:42
Clock/Calendar Seconds
B-54
S:43
Selectable Timed Interrupt Time
B-54
S:44
I/O Event Interrupt Time
B-54
S:45
Discrete Input Interrupt Time
B-54
S:46
Discrete Input Interrupt File Number
B-55
S:47
Discrete Input Interrupt Input Slot
B-55
S:48
Discrete Input Interrupt Bit Mask
B-55
S:49
Discrete Input Interrupt Compare Value
B-56
S:50
Discrete Input Interrupt Down Count
B-56
S:51
Discrete Input Interrupt Return Mask
B-56
S:52
Discrete Input Interrupt Accumulator
B-56
S:53L
Day-of-Week (SLC 5/03 OS302 Series B and higher, SLC 5/04 OS401 Series B and higher, and SLC 5/05)
B-57
S:53H
Reserved
B-57
SLC 5/03 and B-46 higher B-51
Publication 1747-RM001G-EN-P - November 2008
Page 524
B-4
SLC Status File
Table B.1 Status File Location (Continued) Word
Function
Applies To
S:54
Last Major Error Fault Code
S:55
Last DII ISR Scan Time
SLC 5/03 and B-57 higher B-57
S:56
Maximum DII ISR Scan Time
B-57
S:57
Operating System Catalog Number
B-57
S:58
Operating System Series
B-57
S:59
Operating System FRN
B-57
S:60
Processor Catalog Number
B-57
S:61
Processor Series
B-58
S:62
Processor Revision
B-58
S:63
User Program Type
B-58
S:64
User Program Functionality Index
B-58
S:65
User RAM Size
B-58
S:66
Flash EEPROM Size
B-58
S:67 to S:82
Channel 0 Active Node Table
B-58
S:83 to S:86
Channel 1 Active Node Table
S:87 to S:98
Reserved
B-59
S:99
Global Status Word
B-59
S:100 to S:163 Global Status File
Status File Details
SLC 5/04
Page
B-59
B-59
Conventions Used in the Displays The following tables describe the status file functions, beginning at address S:0 and ending at address S:163. A bullet (•) indicates that the function applies to the specified processor. The following classifications are used: • Status - Use these words, bytes, or bits to monitor processor options or processor status information. The information is seldom written to the user program or programming device (unless you want to reset or clear a function such as a minor error bit). • Dynamic Configuration - Use these words, bytes, or bits to select processor options while in the RUN mode. • Static Configuration - Use these words, bytes, or bits to select processor options prior to entering the RUN mode. Note that some options must be selected while in the offline program mode, prior to restoring the user program.
Publication 1747-RM001G-EN-P - November 2008
Page 525
SLC Status File
B-5
Table B.2 Status File Functions Address
Classification
S:0
Description
Fixed 5/01
5/02
5/03
5/04
5/05
Arithmetic and Scan Status Bits
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
The arithmetic flags are assessed by the processor following the execution of any math, logical, or move instruction. The state of these bits remains in effect until the next math, logical, or move instruction in the program is executed. S:0/0
Status
Carry Bit This bit is set by the processor if a mathematical carry or borrow is generated. Otherwise the bit remains cleared. This bit is assessed as if a function of unsigned math. When a STI, I/O Slot, or Fault Routine interrupts normal execution of your program, the original value of S:0/0 is restored when execution resumes. When a DII interrupts normal execution of your program, the original value of S:0/0 is restored when execution resumes.
S:0/1
Status
•
Overflow Bit This bit is set by the processor when the result of a mathematical operation does not fit in its destination. Otherwise the bit remains cleared. Whenever this bit is set, the overflow trap bit S:5/0 is also set. Refer to S:5/0. When a STI, I/O Slot, or Fault Routine interrupts normal execution of your program, the original value of S:0/1 is restored when execution resumes. When a DII interrupts normal execution of your program, the original value of S:0/1 is restored when execution resumes.
S:0/2
Status
•
Zero Bit This bit is set by the processor when the result of a math, logical, or move instruction is zero. Otherwise the bit remains cleared. When a STI, I/O Slot, or Fault Routine interrupts normal execution of your program, the original value of S:0/2 is restored when execution resumes. When a DII interrupts normal execution of your program, the original value of S:0/2 is restored when execution resumes.
Publication 1747-RM001G-EN-P - November 2008
Page 526
B-6
SLC Status File
Table B.2 Status File Functions (Continued) Address
Classification
Description
Fixed 5/01
5/02
5/03
5/04
5/05
S:0/3
Status
Sign Bit
•
•
•
•
•
•
•
•
•
•
•
•
This bit is set by the processor when the result of a math, logical, or move instruction is negative. Otherwise the bit remains cleared. When a STI, I/O Slot, or Fault Routine interrupts normal execution of your program, the original value of S:0/3 is restored when execution resumes. When a DII interrupts normal execution of your program, the original value of S:0/3 is restored when execution resumes. S:0/4 to S:0/15
NA
Reserved
•
•
•
•
•
S:1/0
Status
Processor Mode Status/Control
•
•
•
•
•
•
•
•
•
•
•
Bits 0-4 function as follows:
to S:1/4
TIP
0 0000 = (0)
Remote Download in progress.
0 0001 = (1)
Remote Program mode (the fault mode exists when bit S:1/13 is set along with mode 0 0001)
0 0011 = (3)
Suspend Idle (operation halted by SUS instruction execution) fault mode exists when bit S:1/13 is set along with mode 0 0011.
0 0110 = (6)
Remote Run mode
0 0111 = (7)
Remote Test continuous mode
0 1000 = (8)
Remote Test single scan mode
0 1001 = (9)
Remote Test single step (step until)
All modes in the fixed, SLC 5/01, and SLC 5/02 processors are considered as remote because they do not have a keyswitch. 1 0000 = (16) Download in progress (keyswitch=PROGram) 1 0001 = (17) PROGram mode - the fault mode exists when bit S:1/13 is set along with mode 1 0001. 1 1011 = (27) Suspend Idle - the fault mode exists when bit S:1/13 is set along with mode 1 1011 (keyswitch=RUN) 1 1110 = (30) RUN - the fault mode exists when bit S:1/13 is set along with mode 1 1110 (keyswitch=RUN). All other values for bits 0-4 are reserved.
S:1/5
Status
Forces Enabled Bit This bit is set by the processor if you have enabled forces in a ladder program. Otherwise, the bit remains cleared. The processor Forced I/O LED is on continuously when forces are enabled.
Publication 1747-RM001G-EN-P - November 2008
•
•
Page 527
SLC Status File
B-7
Table B.2 Status File Functions (Continued) Address
Classification
Description
Fixed 5/01
5/02
5/03
5/04
5/05
S:1/6
Status
Forces Installed Bit
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
This bit is set by the processor if you have installed forces in a ladder program. The forces may or may not be enabled. Otherwise the bit remains cleared. The processor Forced I/O LED flashes when forces are installed, but not enabled. S:1/7
Status
Communications Active Bit (Channel 1) This bit is set by the processor when at least one other node is present on the network attached to channel 1. Otherwise, the bit remains cleared. When the node is active, it is a recognized participant in a DH-485 or DH+ token-passing network. For Ethernet communications, this bit is only an indication that the Ethernet daughter board is functioning properly, not necessarily that there are any other active Ethernet nodes, or that channel 1 is connected to an Ethernet network.
S:1/8
Dynamic Config
Fault Override at Powerup Bit When set, this bit causes the processor to clear the Major Error Halted bit S:1/13 and Minor error bits S:5/0 to S:5/7 on power up; if the processor had previously been in the REM Run mode and had faulted. The processor then attempts to enter the REM Run mode. When this bit remains cleared (default value), the processor remains in a major fault state at power up. To program this feature, set this bit using the Data Monitor function.
S:1/9
Dynamic Config
Startup Protection Fault Bit When this bit is set and power is cycled while the processor is in the REM Run mode, the processor executes your fault routine prior to the execution of the first scan of your program. You then have the option of clearing the Major Error Halted bit S:1/13 to resume operation in the REM Run mode. If your fault routine does not reset bit S:1/13, the fault mode results. To program this feature, use the Data Monitor function, then program your fault routine logic accordingly. When executing the startup protection fault routine, S:6 (major error fault code) will contain the value 0016H.
Publication 1747-RM001G-EN-P - November 2008
Page 528
B-8
SLC Status File
Table B.2 Status File Functions (Continued) Address
Classification
Description
Fixed 5/01
5/02
5/03
5/04
5/05
S:1/10
Static Config
Load Memory Module on Memory Error Bit
•
•
•
•
•
(See table on page B-60 for all setting combinations.)
You can use this bit to transfer a memory module program to the processor in the event that a processor memory error is detected at power-up. A memory error means the processor cannot run the program in the RAM because the program has been corrupted, as detected by a parity or checksum error. This type of error is caused by battery or capacitor drain, noise, or a power problem. You must set S:1/10 in the status file of the program in the memory module. When a memory module is installed that has bit S:1/10 set, a processor memory error detected at power-up causes the memory module program to be transferred to the processor, and the REM Run mode to be entered. When S:1/10 is cleared in the memory module, the processor remains in a major fault condition if a memory error is detected on power-up, regardless if a memory module exists. When S:1/10 is set in the status file of the user program in RAM memory, the memory module must be installed at all times to enter the REM Run or REM Test modes. To program this feature, set this bit using the Data Monitor function. Then store the program in the memory module.
Publication 1747-RM001G-EN-P - November 2008
Page 529
SLC Status File
B-9
Table B.2 Status File Functions (Continued) Address
Classification
Description
S:1/11
Static Config
Load Memory Always Bit
(See table on page B-60 for all setting combinations.)
When this bit is set, you can overwrite a processor program with a memory module program by cycling processor power. A programming device is not required. The processor mode after powerup is as follows for SLC 5/02 and higher processors:
TIP
Fixed 5/01
Mode before Powerdown
Mode after Powerup
REM Test/Program REM Run Fault after REM Test/Program Fault after REM Run REM Idle REM Download
REM Program REM Run REM Program REM Run REM Program REM Program
Mode before Powerdown
Mode after Powerup (same keyswitch position)
Run Program Idle Fault after Run Fault after Program
RUN PROGram RUN RUN PROGram
All modes in the fixed, SLC 5/01, and SLC 5/02 processors are considered to be remote because they do not have a keyswitch.
5/02
5/03
5/04
5/05
•
•
•
•
•
•
•
•
•
•
•
•
•
•
The memory module you install in the processor must have status file bit S:1/11 set. Loading takes place if the master password and/or password in the processor and memory module match. Loading can also take place if the processor has neither a password nor master password. When S:1/11 is also set in the status file of the user program in RAM, the memory module must be installed at all times to enter the REM Run or REM Test modes. ATTENTION
The overwriting process, including data tables, is repeated each time you cycle power.
To program this feature, set this bit using the Data Monitor function. Then store the program in the memory module. You may choose not to overwrite data files on a per file basis.
Publication 1747-RM001G-EN-P - November 2008
Page 530
B-10
SLC Status File
Table B.2 Status File Functions (Continued) Address
Classification
Description
Fixed 5/01
S:1/12
Static Config
Load Memory Module and Run Bit
(See table on page B-60 for all setting combinations.)
With this bit, you can overwrite a processor program with a memory module program by cycling processor power. A programming device is not required. The processor will attempt to enter the REM Run mode, regardless of what mode was in effect before cycling power:
Mode before Powerdown
Mode after Powerup
REM Test/Rem Program REM Run/Rem Fault REM Idle/Rem Download
REM Run REM Run REM Run
Mode before Powerdown
Mode after Powerup (same keyswitch position)
Run Idle Program/Download Fault after Run Fault after Program
RUN Run PROGram RUN PROGram
Publication 1747-RM001G-EN-P - November 2008
5/02
5/03
5/04
5/05
•
•
•
•
•
•
•
•
•
•
•