The text of a manual · part 58 of 70
SLC 500 Instruction Set Reference Manual, pages 571 to 580
Pages 571 to 580 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 571
SLC Status File
B-51
Table B.4 Status File Functions (Continued) Address
Classification
Description
S:34/0
Dynamic Config
DH-485 Passthru Disabled Bit
Fixed 5/01
5/02
5/03
5/04
5/05
•
•
•
When channel 0 is configured for DH-485 protocol, this bit provides the capability to pass received packets between channels. When set, the processor does not support passthru. When reset, the processor allows packets to be passed from one channel to the other. Only packets that contain the Internet network layer remote MSG packets and whose Destination Link ID equals that specified for the opposite channel will be passed. The default is reset. The default Link ID for channel 0 is one. The default Link ID for channel 1 is two. S:34/1
Static Config
•
DH+ Active Node Table Enable Bit This bit enables processing of the DH+ active node table. When set, the DH+ active node table is processed. When clear, the DH+ active node table is not processed. The default is clear. This bit is evaluated upon each entry into the REM Run mode. Note that the processor updates individual status words S:83 to S:86.
S:34/2
Dynamic Config
•
Floating Point Math Flag Disable Bit
•
This bit disables the processing of math flags when using floating point math (F8:). The math flags effected are Overflow (S:0/1), Zero (S:0/2), Sign (S:0/3), and the Minor Error Overflow Trap bit (S:5/0). When the bit is clear, the math flags are processed. When the bit is set, the math flags are cleared except for the Minor Error Overflow Trap bit which remains in its last state. The Carry Flag (S:0/0) is reserved for internal use during all floating point operations. The default is clear. Instructions effected by floating point include ADD, SUB, MUL, DIV, NEG, SQR, and MOV. Setting this bit reduces the execution times for the above instructions. This bit is evaluated when each instruction is executed. S:34/3
Dynamic Config
•
Global Status Word Transmit Enable Bit When this bit is set, the Global Status Word at S:99 is transmitted with every DH+ token pass. When clear, the token is passed without the Global Status Word.
S:34/4
Dynamic Config
•
Global Status Word Receive Enable Bit When this bit is set, the processor collects the Global Status Word being transmitted by other devices on the DH+ network and stores them in the Global Status File (S:100-S:163). When clear, the processor ignores the Global Status information from other devices on the network.
Publication 1747-RM001G-EN-P - November 2008
Page 572
B-52
SLC Status File
Table B.4 Status File Functions (Continued) Address
Classification
Description
S:34/5
Dynamic Config
DF1 Passthru Enabled Bit
Fixed 5/01
5/02
5/03
5/04
5/05
•
•
•
•
•
•
•
•
•
•
•
•
If channel 0 is enabled with a DF1 protocol and this bit is SET, then the passthru operation is enabled between Channel 0 and Channel 1. Passthru supported DF1 protocols include DF1 Full-duplex, DF1 Half-duplex, and DF1 Radio Modem. Refer to Chapter 14 for additional passthru information. S:34/6
Dynamic Config
DF1 Remote/Local Passthru bit
•
When set, SLC 5/03 DF1 passthru command packets are transmitted on the channel 1 DH-485 network as local command packets. This is important to set when trying to access nodes on a DH-485 network that do not support remote packets. When reset, the SLC 5/03 DF1 passthru command packets are transmitted on the DH-485 network as remote command packets. The default is reset. S:34/7
Status
Local Passthru Queue Full bit
•
This bit is set by the SLC 5/03 processor when there are no available entries in the passthru queue. Entries may be lost if active nodes on the Channel 1 DH-485 network fail to respond. Use this bit in conjunction with the ACL instructions to flush the passthru queue. Refer to chapter 10 for more information regarding the ACL instruction. S:34/8
Status
Processor Secured Bit This bit indicates that the processor has been secured through RSLogix 500 version 7.10 or higher. Once you have been authenticated and authorized via RSAssetSecurity, you will be able to go online and upload and download this processor using RSLogix 500 version 7.10 or higher. If the processor is secured, the only way to unsecure it is to either disconnect the battery and clear processor memory back to factory default, or install a memory module with an unsecured program configured to autoload at powerup.
S:35
Status
Last 1 ms Scan Time The value of this word tells you how much time elapsed in a program cycle. A program cycle includes the ladder program, housekeeping, I/O scan, and servicing of the communication port. This word value is only updated by the processor once each scan, immediately preceding the execution of rung 0, file 2 (or upon return of a REF instruction).
S:36/0 to S:36/7
NA
Reserved
Publication 1747-RM001G-EN-P - November 2008
Page 573
SLC Status File
B-53
Table B.4 Status File Functions (Continued) Address
Classification
Description
S:36/8
Status
DII Lost
Fixed 5/01
5/02
5/03
5/04
5/05
•
•
•
•
•
•
•
•
•
This bit is set anytime a DII interrupt occurs while the DII Pending bit (S:2/11) is also set. When set, you are notified that a DII interrupt has been lost. For example, the interrupt is lost because a previous interrupt was already pending and waiting execution. Examine this bit in your user program and take appropriate action if your application cannot tolerate this condition. Then clear this bit with your user program to prepare for the next possible occurrence of this error. S:36/9
Status
STI Lost This bit is set anytime an STI interrupt occurs while the STI Pending bit (S:2/0) is also set. When set, you are notified that a STI interrupt has been lost. For example, the interrupt is lost because a previous interrupt was already pending and waiting execution. Examine this bit in your user program and take appropriate action if your application cannot tolerate this condition. Then clear this bit with your user program to prepare for the next possible occurrence of this error.
S:36/10
Status
Memory Module Data File Overwrite Protection Use this bit to determine the validity of retentive data following a memory module transfer. This bit is always set when a memory module to processor transfer occurs with Data File Overwrite Protection selected and protected files are overwritten. Protected files are overwritten anytime a memory module program does not match the processor program at the time of the transfer. This bit is not cleared by the processor.
S:36/11 to S:36/15
NA
Reserved for additional minor errors.
•
•
•
S:37
Dynamic Config
Clock/Calendar Year
•
•
•
•
•
•
This value contains the year value of the clock/calendar. Valid range is 0 to 65535. To disable the clock/calendar, write zeros to all clock/calendar words (S:37 to S:42). S:38
Dynamic Config
Clock/Calendar Month This value contains the month value of the clock/ calendar. Valid range is 1 to 12. To disable the clock/calendar, write zeros to all clock or calendar words (S:37 to S:42). January equals the value of 1.
Publication 1747-RM001G-EN-P - November 2008
Page 574
B-54
SLC Status File
Table B.4 Status File Functions (Continued) Address
Classification
Description
S:39
Dynamic Config
Clock/Calendar Day
Fixed 5/01
5/02
5/03
5/04
5/05
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
This value contains the day value of the clock/calendar. Valid range is 1 to 31. To disable the clock/calendar, write zeros to all clock or calendar words (S:37 to S:42). The first day of the month equals the value of 1. See status word S:53 for Day-of-Week. S:40
Dynamic Config
Clock/Calendar Hours This value contains the hour value of the clock/calendar. Valid range is 0 to 23. To disable the clock/calendar, write zeros to all clock or calendar words (S:37 to S:42). 0000 hundred hours equals the value of 0.
S:41
Dynamic Config
Clock/Calendar Minutes This value contains the minute value of the clock/calendar. Valid range is 0 to 59. To disable the clock/calendar, write zeros to all clock or calendar words (S:37 to S:42).
S:42
Dynamic Config
Clock/Calendar Seconds This value contains the seconds value of the clock/calendar. Valid range is 0 to 59. To disable the clock/calendar, write zeros to all clock or calendar words (S:37 to S:42).
ATTENTION
S:43
Status
The second value may not reliably increment every second, and therefore should not be relied upon for seconds-based control or selection. Use the STI function for reliable time-based control or calculations.
Selectable Timed Interrupt - 10 µs Timer
S:44
I/O Event Interrupt - 10 µs Timer
S:45
Discrete Input Interrupt - 10 µs Timer This 16-bit value is “free running” and is used to measure the amount of time that expires between consecutive interrupt subroutine executions (in increments of 10 µs). This value is updated upon each entry into the interrupt subroutine. The 10 µs timer dictates that the maximum amount of time that can expire between any two interrupts and still result in a valid time measurement is 0.32767 seconds. (16-bit signed x 10 µs = 32767 x .00001 = 0.32767 seconds) The 10 µs timer is common to the STI interrupt, the Event I/O interrupt, and the DII interrupt.
Publication 1747-RM001G-EN-P - November 2008
Page 575
SLC Status File
B-55
Table B.4 Status File Functions (Continued) Address
Classification
Description
S:46
Dynamic Config
Discrete Input Interrupt - File Number
Fixed 5/01
5/02
5/03
5/04
5/05
•
•
•
•
•
•
•
•
•
You enter a program file number (3-255) to be used as the discrete input interrupt subroutine. Write a zero value to disable the function. This value is applied upon detection of a DII Reconfigure bit, each DII ISR exit, and each end of scan (END, TND, or REF). To provide protection from inadvertent data monitor alteration of your selection, program an unconditional MOV instruction containing the file number value of your DII to S:46 or program a CLR instruction at S:46 to prevent DII operation. S:47
Dynamic Config
Discrete Input Interrupt - Slot Number You enter the slot number (1-30) that contains the Discrete I/O module to be used as the discrete input interrupt slot. The processor will fault if the slot is empty or contains a non-discrete I/O module. For example, an analog module causes a processor fault to occur. This bit is applied upon detection of the DII Reconfigure bit. This value is only applied upon execution of the DII reconfiguration function (setting bit S:33/10 or upon REM Run mode entry with the DII Enable bit S:2/12 set). To provide protection from inadvertent data monitor alteration of your selection, program an unconditional MOV instruction containing the slot number value of your DII to S:47.
S:48
Dynamic Config
Discrete Input Interrupt - Bit Mask You enter a bit mapped value that corresponds to the bits that you wish to monitor on the discrete I/O module. Only bits 0 to 7 are used in the DII function. Setting a bit indicates that you wish to include the bit in the comparison of the discrete I/O module’s bit transition to the DII Compare Value (S:49). Clearing a bit indicates that the transition state of that particular bit is a “don’t care” bit. This value is applied upon detection of a DII Reconfigure bit, each DII ISR exit, and at each end of scan (END, TND, or REF). To provide protection from inadvertent data monitor alteration of your selection, program an unconditional MOV instruction containing the bit mask value of your DII to S:48.
Publication 1747-RM001G-EN-P - November 2008
Page 576
B-56
SLC Status File
Table B.4 Status File Functions (Continued) Address
Classification
Description
S:49
Dynamic Config
Discrete Input Interrupt - Compare Value
Fixed 5/01
5/02
5/03
5/04
5/05
•
•
•
•
•
•
•
•
•
•
•
•
You enter a bit mapped value that corresponds to the bit transitions that must occur in the discrete I/O card for a count or interrupt to occur. Only bits 0 to 7 are used in the DII function. Setting a bit indicates that the bit must transition from a 0 to a 1 to satisfy the compare condition for that bit. Clearing a bit indicates that the bit must transition from a 1 to a 0 in order to satisfy the compare condition for that bit. An interrupt or count will be generated upon the last bit transition of the compare value. This value is applied upon detection of a DII Reconfigure bit, each DII ISR exit, and each end of scan (END, TND, or REF). To provide protection from inadvertent data monitor alteration of your selection, program an unconditional MOV instruction containing the compare value of your DII to S:49. S:50
Dynamic Config
Discrete Input Interrupt - Preset When this value is equal to 0 or 1, an interrupt is generated each time the comparison specified in words S:48 and S:49 is satisfied. When this value is between 2 and 32767, a count will occur each time the bit comparison is satisfied. An interrupt will be generated when the accumulator value reaches 1 or exceeds the preset value. This value is applied on detection of DII Reconfigure bit, each DII ISR exit, and at each end of scan (END, TND, or REF). To provide protection from inadvertent data monitor alteration of your selection, program an unconditional MOV instruction containing the preset value of your DII to S:50.
S:51
Status
Discrete Input Interrupt - Return Mask The return mask is updated immediately preceding entry into the DII subroutine. This value contains the bit map of the bit transitions that caused the interrupt. The bit is set if it was included in the list of bit transitions that caused the interrupt, (specified to transition in the S:48 and S:49 comparisons). The bit is cleared if it was masked. This value is cleared by the processor upon exit of the DII subroutine. Use this value to validate the interrupt transitions. Or when dynamically reconfiguring (sequencing) the DII, you can use this value inside your DII’s subroutine to help determine or validate its position in the sequence.
S:52
Status
Discrete Input Interrupt - Accumulator The DII accumulator contains the number of counts that have occurred (see S:50.) When a count occurs, and the accumulator is greater than or equal to the preset value, a DII interrupt is generated.
Publication 1747-RM001G-EN-P - November 2008
Page 577
SLC Status File
B-57
Table B.4 Status File Functions (Continued) Address
Classification
Description
S:53L
Dynamic Config
Day-of-Week
Fixed 5/01
5/02
5/03
5/04
5/05
•
•
•
This value contains the day-of-week value of the clock/calendar. Valid range is 0 to 6 (Sunday=0). To disable the clock/calendar, write zeros to all clock and calendar words (S:37 to S:42). S:53H
NA
Reserved
•
•
•
S:54
Status
Last Major Error Fault Code
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Mirrors the last error code value stored in S:6. S:55
Status
Last Discrete Input Interrupt Scan Time This value indicates, in 1 ms increments, the amount of time elapsed by the most recent DII subroutine. The resolution of this value is +0 to -1 ms.
S:56
Status
Maximum Observed Discrete Input Scan Time This value indicates, in 1 ms increments, the maximum amount of time elapsed by any single DII subroutine execution. The processor compares each last DII scan value (S:55) to the maximum DII scan value contained in S:56. If the processor determines that the last DII scan value is larger than the value stored at S:56, the last scan value (S:55) is written to S:56, thus becoming the new maximum DII scan time. The resolution of this value is +0 to -1 ms. Interrogate this value using a programming device Data Monitor function if you need to determine or verify the longest scan time of your program.
S:57
Status
Operating System Catalog Number Indicates the operating system catalog number. For example, the value of 300 indicates operating system -OS300, the value of 301 indicates -OS301.
S:58
Status
Operating System Series Indicates the operating system series. For example, the value of 0 indicates series A and the value of 1 indicates series B.
S:59
Status
Operating System FRN Indicates the operating system firmware release number. For example, the value of 1 indicates FRN1 and the value of 2 indicates FRN2.
S:60
Status
Processor Catalog Number Indicates the catalog number of the processor. For example, the value of 532 indicates -L532 and the value of 534 indicates -L534.
Publication 1747-RM001G-EN-P - November 2008
Page 578
B-58
SLC Status File
Table B.4 Status File Functions (Continued) Address
Classification
Description
S:61
Status
Processor Series
Fixed 5/01
5/02
5/03
5/04
5/05
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Indicates the processor series. For example, the value of 0 indicates series A and the value of 1 indicates series B. S:62
Status
Processor Revision Indicates the processor revision. For example, the value of 1 indicates REV1 and the value of 2 indicates REV2.
S:63
Status
User Program Type Indicates the programming device that created the user program.
S:64
Status
User Program Functionality Index Indicates the level of functionality contained in a given program type.
S:65
Status
User RAM Size Applies to SLC 5/03 (OS302), SLC 5/04 (OS401), and SLC 5/05 processors. Indicates the size of NVRAM in instruction words. For example, the value 64 equals 64K instruction words of NVRAM.
S:66
Status
Flash EEPROM Size Indicates the size of operating system memory in 16 bit K words. For example, the value of 128 equals 128K words of memory.
S:67 to S:82
Status
Channel 0 Active Node Table When channel 0 is configured for DF1 Half-duplex Master or DH-485, these 16 words are bit mapped to represent status of the nodes on the network. For the DH-485 network only 32 possible nodes are allowed. For the DF1 Half-duplex Master network 255 nodes are allowed. Bit S:67/0 represents node 0, bit S:82/14 represents node 254, and bit S:82/15 is not used since address 255 is reserved for broadcasts. DF1 Half-duplex Master configured for either of the two standard polling modes has these bits set by the processor when a node is polled and it responds to the master poll. A node’s bit is cleared if no response is received after a master poll. In DH-485 configuration, these bits are set by the processor when a node exists on the DH-485 link that your processor is connected to. These bits are cleared when a node is not present on the link.
Publication 1747-RM001G-EN-P - November 2008
Page 579
SLC Status File
B-59
Table B.4 Status File Functions (Continued) Address
Classification
Description
S:67 to S:82
Dynamic Config
DF1 Radio Modem Store and Forward Table
Fixed 5/01
5/02
5/03
5/04
5/05
•
•
•
In DF1 Radio Modem with Store and Forward enabled in the channel configuration, these 16 words are bit mapped to represent the 255 possible nodes and the broadcast address. The user is required to set these bits to enable Store and Forward operation. For a node on the radio modem network to rebroadcast a message, both the message’s destination and source addresses must have their respective bits set in this table. To rebroadcast a broadcast message (destination = 255) only bit S:82/15 needs to be set. S:83 to S:86
Status
•
Channel 1 Active Node Table These 4 words are bit mapped to represent the 64 possible nodes on a DH+ link. S:83/0 through S:86/15 represent node addresses 0 to 63 (0 to 77 octal). These bits are set by the processor when a node exists on the DH+ link that your processor is connected to. These bits are cleared when a node is not present on the link. Note that S:34/1 must be set for the above words to work.
S:87 to S:98
NA
Reserved
•
S:99
Dynamic Config
Global Status Word
•
Data placed in this memory location is transmitted as the processor’s Global Status Word and is sent to all other devices on the DH+ network every time the processor passes the DH+ token. S:100 to S:163
Static Config
•
Global Status File When a processor passes the DH+ token to the next node, it also sends a 16-bit word called the Global Status Word (S:99 and above). All of the nodes on the network read the Global Status Word sent by each processor and saves the word to memory. Each processor has a table (Global Status File) in memory where global status words from other processors are stored. This table is completely updated every token rotation. (Example: The word from node “x” is placed at S:100 + x.) You can use the Global Status File as a high-speed broadcast message for status passing and synchronization of processors.
Publication 1747-RM001G-EN-P - November 2008
Page 580
B-60
SLC Status File
The following table lists all combination settings for S:1/10, S:1/11 and S:1/12. Table B.5 Combination Settings for S:1/10, S:1/11, and S:1/12 S:1/10
S:1/11
S:1/12
Memory SLC Memory Mode Before/After Powerdown Module Memory Module Present? Error? Transfer?
Major Fault Before/After Powerdown
0
0
0 don’t care N/A no don’t care/same don’t care/same
1
0
0 no no
(REM) PROG/(REM) PROG dont’ care/same
REM RUN/faulted REM PROG no fault/faulted
N/A
RUN/faulted RUN yes no no don’t care/same don’t care/same yes yes yes faulted PROG/PROG faulted/no fault faulted REM PROG/REM RUN faulted RUN/RUN 0
1
0 no
N/A no
(REM) PROG/(REM) PROG don’t care/same
REM RUN/faulted REM PROG no fault/faulted
RUN/faulted RUN 0
0
1 yes
N/A yes don’t care/same don’t care/no fault no
N/A no
(REM) PROG/(REM) PROG don’t care/same
(REM) RUN/(REM) RUN yes
N/A yes
PROG/PROG don’t care/no fault
REM PROG/REM RUN (REM) RUN/(REM) RUN 0
1
1 no
N/A no
(REM) PROG/(REM) PROG don’t care/same
REM RUN/faulted REM PROG no fault/faulted
RUN/faulted RUN yes
N/A yes
PROG/PROG REM PROG/REM RUN (REM) RUN/(REM) RUN
Publication 1747-RM001G-EN-P - November 2008 don’t care/no fault