Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 551

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Conversion Instructions
Flags
Precautions
Examples
Name
Label
Error Flag
ER
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.
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.
S
Di
D
S:
D: D00200
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.)
Operation
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: #
Starting byte
(leftmost byte)
Number of digits
Starting digit (digit 1)
3 digits
Section 3-12
511

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents