![Omron CJ1G-CPUxx Instructions Manual Download Page 477](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491477.webp)
456
Conversion Instructions
Section 3-12
Flags
Precautions
An error will occur and the Error Flag will be turned ON if there is a parity error
in the ASCII data, the ASCII data in the source words is not equivalent to
hexadecimal digits, or the content of Di is not within the specified ranges.
Examples
When CIO 000000 is ON in the following example, HEX(162) converts the
ASCII data in D00100 and D00101 according to the settings of the digit desig-
nator. (Di=#0121 specifies no parity, the starting byte (when reading) = left-
most byte, the number of bytes to read = 3, and the starting digit (when
writing) = digit 1.)
HEX(162) converts three bytes of ASCII data (3 characters) beginning with
the leftmost byte of D00100 into their hexadecimal equivalents and writes this
data to D00200 beginning with digit 1.
When CIO 000000 is ON in the following example, HEX(162) converts the
ASCII data in D00010 beginning with the rightmost byte and writes the hexa-
decimal equivalents in D00300 beginning with digit 1.
The digit designator setting of #1011 specifies even parity, the starting byte
(when reading) = rightmost byte, the number of bytes to read = 2, and the
starting digit (when writing) = digit 1.)
Name
Label
Operation
Error Flag
ER
ON if there is a parity error in the ASCII data.
ON if the ASCII data in the source words is not equivalent
to hexadecimal digits
ON if the content of Di is not within the specified ranges.
OFF in all other cases.
Di: #
S:
D: D00200
Starting byte
(leftmost byte)
Number of digits
Starting digit (digit 1)
3 digits
S
Di
D
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...