646 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Appendix A Common Attributes
Expressions in Array Subscripts
Expressions set status flags based on the results of arithmetic operations. If you
have an array subscript as an expression, both the expression and the instruction
could generate minor faults.
Under certain circumstances, the S:Z status flag may be set if the expression of an
array element evaluates to zero. In this example, Array[Element*3], 0 if
Element=0 the subscript [Element*3] evaluates to 0 and the S:Z bit will be set.
Immediate Values
When you enter an immediate value (constant) in decimal format
(for example, -2, 3) the controller stores the value by using 32 bits. If you enter a
value in a radix other than decimal, such as binary or hexadecimal, and do not
specify all 32 bits, the controller places a zero in the bits that you do not specify
(zero-fill).
Zero-filling of immediate values
If you enter The controller stores
-1 16#ffff ffff (-1)
16#ffff (-1) 16#0000 ffff (65535)
8#1234 (668) 16#0000 029c (668)
2#1010 (10) 16#0000 000a (10)