Conversion Instructions
15
C: D00000
C+1: D00001
Zero point offset: 0000 hex
C+2: D00002
User-specified resolution: 360, Encoder remainder compensation: 04C hex (76 decimal)
S: 0010
0
D: D00200
D+1: D00201
15
C: D00000
C+1: D00001
Zero point offset: 000A hex
C+2: D00002
User-specified resolution: 360, Encoder remainder compensation: 04C hex (76 decimal)
S: 0010
0
D: D00200
D+1: D00201
3-12-19 FOUR-DIGIT NUMBER TO ASCII: STR4(601)
Purpose
534
■
Example 3: Converting to BCD Data with for an OMRON E6C2-AG5C
Absolute Encoder (Resolution: 360/rotation, Encoder Remainder
Compensation: 76) and Zero Point Offset of 0000 Hex
12
11
8
7
4 3
0
0
1
Conversion mode: BCD Mode
Operating mode: Gray binary code conversion
0000
1
04C
0
0
0
0
0
0
0
1
1
1
0
Converted and offset.
0100
0000
■
Example 4: Converting to BCD Data with for an OMRON E6C2-AG5C
Absolute Encoder (Resolution: 360/rotation, Encoder Remainder
Compensation: 76) and Zero Point Offset of 000A Hex
12
11
8
7
4 3
0
0
1
Conversion mode: BCD Mode
Operating mode: Gray binary code conversion
000A
1
04C
0
0
0
0
0
0
0
1
1
1
0
Converted and offset.
0100
0000
Converts a 4-digit hexadecimal number (#0000 to #FFFF) to ASCII data (4
characters).
This instruction is supported by CS/CJ-series CPU Units with unit version 4.0
or later only.
0
0
Resolution: User-specified
1
0
0
0
Gray binary code
Result of BCD conversion and offsetting stored.
0
0
Resolution: User-specified
0
1
1
1
Gray binary code
Result of BCD conversion and offsetting stored.
Section 3-12
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?