Omron SYSMAC C200HS Operation Manual page 207

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
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
*
31
*
32
*
33
*
34
*
35
*
36
*
37
*
38
*
39
*
41
*
42
*
43
*
44
*
45
*
46
*
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.)
0
1
1
0
0
0
0
1
1
0
0
0
0
1
1
0
0
1
0
1
1
0
0
1
0
1
1
0
1
0
0
1
1
0
1
0
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
1
0
0
0
1
1
1
0
0
1
0
1
0
0
0
1
0
1
0
0
1
1
0
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
Section 5-18
Di: 0030
S
D
st
0
1
byte
nd
1
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
197

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents