427
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Conversion Instructions
3
GRY
Example 4:
Converting to BCD Data with for an OMRON E6C2-AG5C Absolute Encoder (Resolution: 360/rota-
tion, Encoder Remainder Compensation: 76) and Zero Point Offset of 000A Hex
0 1
C: D0
0
00
4 3 7 8111215
000A
C+1: D1
S: 10 1110011100000000
0100
D: D200
0000
D+1: D201
04C
C+2: D2
1
Operating mode: Gray binary code conversion
Conversion mode: BCD Mode
Resolution: User-specified
Zero point offset: 000A hex
User-specified resolution: 360, Encoder remainder compensation: 04C hex (76 decimal)
Gray binary code
Converted and offset.
Result of BCD conversion and offsetting stored.