![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268547.webp)
508
Conversion Instructions
Section 3-12
Flags
Example
When CIO 000000 is ON in the following example, ASC(086) converts three
hexadecimal digits in D00100 (beginning with digit 1) into their ASCII equiva-
lents and writes this data to D00200 and D00201 beginning with the leftmost
byte in D00200. In this case, a digit designator of #0121 specifies no parity,
the starting byte (when writing) = leftmost byte, the number of digits to read =
3, and the starting digit (when reading) = digit 1.
With CPU Units with unit version 4.0 of later, there are instructions to convert
4, 8, and 16 digits of numeric data to ASCII (STR4(524), STR8(527), and
STR16(528)).
Di: #0011
Di: #0112
Di: #0030
Di: #0130
Digit 3 Digit 2 Digit 1 Digit 0
Leftmost
Rightmost
Digit 3 Digit 2 Digit 1 Digit 0
Digit 3 Digit 2 Digit 1 Digit 0
Leftmost
Rightmost
Leftmost
Rightmost
Leftmost
Rightmost
Digit 3 Digit 2 Digit 1 Digit 0
Leftmost
Rightmost
Rightmost
Leftmost
Name
Label
Operation
Error Flag
ER
ON if the content of Di is not within the specified ranges.
OFF in all other cases.
D:
S
D
S: D00100
Di: #
Number of digits
Digits
Di
Starting digit
Starting byte
(leftmost byte)
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...