![Omron CVM1D Operation Manual Download Page 234](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532234.webp)
(117)
HEX D00010 #1011 D00300
0000
00
229
2: Odd
The data (8 bits) can only be converted when the number of “1” bits is odd. If the
number is even, the Error Flag will turn ON and the data will not be converted.
1 1 0 0 0 0 0 1
$41
Odd number of “1” bits
Conversion
executed.
“A”
0 1 0 0 0 0 0 1
Even number of “1” bits
Conversion
executed.
Not converted.
Example
ASCII Code Table
The following table shows the ASCII codes before conversion and the hexadeci-
mal values after conversion. Refer to Appendix I for a table of ASCII characters.
Original data
Converted data
ASCII Code
Bit status (See note.)
Digit
Bits
$30
P
0
1
1
0
0
0
0
0
0
0
0
0
$31
P
0
1
1
0
0
0
1
1
0
0
0
1
$32
P
0
1
1
0
0
1
0
2
0
0
1
0
$33
P
0
1
1
0
0
1
1
3
0
0
1
1
$34
P
0
1
1
0
1
0
0
4
0
1
0
0
$35
P
0
1
1
0
1
0
1
5
0
1
0
1
$36
P
0
1
1
0
1
1
0
6
0
1
1
0
$37
P
0
1
1
0
1
1
1
7
0
1
1
1
$38
P
0
1
1
1
0
0
0
8
1
0
0
0
$39
P
0
1
1
1
0
0
1
9
1
0
0
1
$41
P
1
0
0
0
0
0
1
A
1
0
1
0
$42
P
1
0
0
0
0
1
0
B
1
0
1
1
$43
P
1
0
0
0
0
1
1
C
1
1
0
0
$44
P
1
0
0
0
1
0
0
D
1
1
0
1
$45
P
1
0
0
0
1
0
1
E
1
1
1
0
$46
P
1
0
0
0
1
1
0
F
1
1
1
1
Note The leftmost bit of each ASCII code is adjusted for parity.
Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
ASCII in S does not match parity designation.
Data in word S is not ASCII that can be converted.
Content of
*
DM word is not BCD when set for BCD.
Programming Example
When CIO 000000 is ON in the following example, the ASCII data in D00010 is
converted to binary data and then output to D00300.
Address
Instruction
Operands
00000
LD
000000
00001
HEX(117)
D00010
#1011
D00300
1
1
Specifies the first digit to receive converted data: 1
Number of digits to be converted: 2 digits
First ASCII data to be converted: Rightmost 8 bits
Parity: Even
Di Word Contents: #1011
1
0
Precautions
Conversion Instructions
Section 5-17
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...