![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030574.webp)
534
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.
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...