Status Files
To access status files, specify a word and an optional bit in the word. The default data types are shown in bold.
 
Syntax
Data Type
Access
S:<word>
Short, Word, BCD, DWord, Long, LBCD
Read/Write
S:<word> [rows][cols]
Short, Word, BCD, DWord, Long, LBCD (array type)
Read/Write
S:<word> [cols]
Short, Word, BCD, DWord, Long, LBCD (array type)
Read/Write
S:<word>/<bit>
Boolean
Read/Write
S/bit
Boolean
Read/Write
 
The number of array elements (in bytes) cannot exceed the block request size specified. This means that the array size cannot exceed 16 words given a block request size of 32 bytes.
 
Ranges
PLC Model
Max. Word
MicroLogix
999
SLC 500 Fixed I/O
96
SLC 500 Modular I/O
999
PLC-5 Series
999
 
The maximum word location is one less when accessing as a 32-bit data type (such as Long, DWord, or Long BCD).
 
Examples
Example
Description
S:0
Word 0
S/26
Bit 26
S:4/15
Bit 15 word 4
S:10 [16]
16 element array starting at word 10
S:0 [4] [8]
4 by 8 element array starting at word 0
 
Was this helpful?