![Omron CVM1D Скачать руководство пользователя страница 228](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532228.webp)
(113)
ASC
D00010
#0000
0001
0000
00
223
Some examples of Di values and the 4-bit binary to 8-bit ASCII conversions that
they produce are shown below.
0
1
2
3
S
Di: 0011
D
0
1
2
3
Di: 0030
S
0
1
2
3
Di: 0130
S
Di: 0112
0
1
2
3
S
1st half
2nd half
D
1st half
2nd half
D+1
1st half
2nd half
D
1st half
2nd half
D+1
1st half
2nd half
D
1st half
2nd half
D+1
1st half
2nd half
D+2
1st half
2nd half
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 num-
ber 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.
Di must be within the values given below.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of
*
DM word is not BCD when set for BCD.
Improper digit designator.
Example
When CIO 000000 is ON in the following example, the content of digit 0 in
D00010 (8) is converted to ASCII(38) and output to the leftmost 8 bits of
CIO 0001. “No parity” is specified, so CIO 000107 is set to 0.
Address
Instruction
Operands
00000
LD
000000
00001
ASC(113)
D00010
#0000
0001
Parity
Precautions
Conversion Instructions
Section 5-17
Содержание CVM1D
Страница 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Страница 463: ...iv...
Страница 465: ...vi...