A S S er i es Pr og r am m ing M an u a l
Example
When X0.0 is ON, the instruction converts the Gray code in the absolute position encoder which is connected to the
inputs X0.0–X0.15 into the binary value, and stores the conversion result in D10.
GRAY CODE 6513
H1971=K6513
Additional remarks
If the value in S is less than 0, the operation error occurs, the instruction is not executed, SM0 is ON, and the error code
in SR0 is 16#2003.
_6
6 - 9 4
X0
X0.15
0 0 0 1
0 1
0
1
1
1
0
0
b15
0 0 0
1
1
0
0
1
0
1
1
1
X0.0
1
0 0
1
b0
0
0 0 1