Omron C200HX Operation Manual page 239

Hide thumbs Also See for C200HX:
Table of Contents

Advertisement

Data Conversion
ASCII Code Table
Parity
Some examples of Di values and the 8-bit ASCII to 4-bit hexadecimal conver-
sions that they produce are shown below.
S
st
1
byte
nd
2
byte
S
st
1
byte
nd
2
byte
S+1
st
1
byte
nd
2
byte
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.
ASCII Code
30
*
0
31
*
0
32
*
0
33
*
0
34
*
0
35
*
0
36
*
0
37
*
0
38
*
0
39
*
0
41
*
1
42
*
1
43
*
1
44
*
1
45
*
1
46
*
1
Note The leftmost bit of each ASCII code is adjusted for parity.
The leftmost bit of each ASCII character (2 digits) is automatically adjusted for
either even or odd parity.
With no parity, the leftmost bit should always be zero. With odd or even parity, the
leftmost bit of each ASCII character should be adjusted so that there is an odd or
even number of ON bits.
If the parity of the ASCII code in S does not agree with the parity specified in Di,
the ER Flag (SR 25503) will be turned ON and the instruction will not be
executed.
Di: 0011
D
0
1
2
3
Di: 0023
D
0
1
2
3
Original data
Bit status (See note.)
1
1
0
0
0
1
1
0
0
0
1
1
0
0
1
1
1
0
0
1
1
1
0
1
0
1
1
0
1
0
1
1
0
1
1
1
1
0
1
1
1
1
1
0
0
1
1
1
0
0
0
1
0
0
0
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
1
0
1
1
Section 5-18
Di: 0030
S
D
st
0
1
byte
1
nd
2
byte
2
S+1
3
st
1
byte
nd
2
byte
Di: 0133
S
D
st
1
byte
nd
0
2
byte
1
S+1
2
st
1
byte
3
nd
2
byte
S+2
st
1
byte
nd
2
byte
Converted data
Digit
Bits
0
0
0
0
0
1
1
0
0
0
0
2
0
0
1
1
3
0
0
1
0
4
0
1
0
1
5
0
1
0
0
6
0
1
1
1
7
0
1
1
0
8
1
0
0
1
9
1
0
0
1
A
1
0
1
0
B
1
0
1
1
C
1
1
0
0
D
1
1
0
1
E
1
1
1
0
F
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
221

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200hgC200he

Table of Contents