![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268574.webp)
535
Conversion Instructions
Section 3-12
■
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
■
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
3-12-19 FOUR-DIGIT NUMBER TO ASCII: STR4(601)
Purpose
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
1
C: D00000
0
0
0
4 3
7
8
11
12
15
0000
C+1: D00001
S: 0010
0
0
0
1
0
1
1
1
0
0
0
0
0
0
0
0
0100
D: D00200
0000
D+1: D00201
04C
C+2: D00002
1
Operating mode: Gray binary code conversion
Conversion mode: BCD Mode
Resolution: User-specified
Zero point offset: 0000 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.
0
1
C: D00000
0
0
0
4 3
7
8
11
12
15
000A
C+1: D00001
S: 0010
1
1
1
0
0
1
1
1
0
0
0
0
0
0
0
0
0100
D: D00200
0000
D+1: D00201
04C
C+2: D00002
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.
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...