Omron CQM1H - PROGRAM Programming Manual page 327

Programmable controllers; inner boards
Table of Contents

Advertisement

Conversion Instructions
Digit Designator
Parity
Flags
302
The digits of Di are set as shown below.
Digit number: 3 2 1 0
Some examples of Di values and the 4-bit binary to 8-bit ASCII conversions
that they produce are shown below.
Di: 0011
S
0
1
2
3
Di: 0112
S
0
1
2
3
The leftmost bit of each ASCII character (2 digits) can be automatically
adjusted for either even or odd parity. If no parity is designated, the leftmost bit
will always be zero.
When even parity is designated, the leftmost bit will be adjusted so that the
total number of ON bits is even, e.g., when adjusted for even parity, ASCII "31"
(00110001) will be "B1" (10110001: parity bit turned ON to create an even
number of ON bits); ASCII "36" (00110110) will be "36" (00110110: parity bit
turned OFF because the number of ON bits is already even). The status of the
parity bit does not affect the meaning of the ASCII code.
When odd parity is designated, the leftmost bit of each ASCII character will be
adjusted so that there is an odd number of ON bits.
ER:
Incorrect digit designator, or data area for destination exceeded.
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
Specifies the first digit to be converted (0 to 3).
Number of digits to be converted (0 to 3)
0: 1 digit
1: 2 digits
2: 3 digits
3: 4 digits
First half of D to be used.
0: Rightmost 8 bits (1st half)
1: Leftmost 8 bits (2nd half)
Parity
0: none
1: even
2: odd
S
D
0
1st half
1
2nd half
2
3
D
S
0
1st half
1
2nd half
2
D+1
3
1st half
2nd half
Section 5-20
Di: 0030
D
1st half
2nd half
D+1
1st half
2nd half
Di: 0130
D
1st half
2nd half
D+1
1st half
2nd half
D+2
1st half
2nd half

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents

Save PDF