Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 443

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Conversion Instructions
Di: #0011
Digit 3 Digit 2 Digit 1 Digit 0
Leftmost
Rightmost
Di: #0130
Digit 3 Digit 2 Digit 1 Digit 0
Leftmost
Rightmost
Leftmost
Rightmost
Flags
Example
410
Examples of odd parity:
When adjusted for odd parity, ASCII "36" (00110110) will be "B6" (10110110:
parity bit turned ON to create an odd number of ON bits); ASCII "46"
(01000110) will be "46" (01000110: parity bit remains OFF because the num-
ber of ON bits is already odd).
Examples of Di
When two or more digits are being converted, ASC(086) will read the bytes in
S from right to left and will wrap around to the rightmost byte if necessary. The
following diagram shows some example values for Di and the conversions that
they produce.
Di: #0112
Digit 3 Digit 2 Digit 1 Digit 0
Leftmost
Name
Label
Error Flag
ER
When CIO 0.00 is ON in the following example, ASC(086) converts three
hexadecimal digits in D100 (beginning with digit 1) into their ASCII equivalents
and writes this data to D200 and D201 beginning with the leftmost byte in
D200. In this case, a digit designator of #0121 specifies no parity, the starting
byte (when writing) is the leftmost byte, the number of digits to read is 3, and
the starting digit (when reading) is digit 1.
Digit 3 Digit 2 Digit 1 Digit 0
Rightmost
Operation
ON if the content of Di is not within the specified ranges.
OFF in all other cases.
Section 3-11
Di: #0030
Leftmost
Rightmost
Leftmost
Rightmost

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents