EasyManua.ls Logo

Omron CQM1H - PROGRAM

Omron CQM1H - PROGRAM
602 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
304
Conversion Instructions Section 5-20
Some examples of Di values and the 8-bit ASCII to 4-bit hexadecimal conver-
sions that they produce are shown below.
ASCII Code Table The following table shows the ASCII codes before conversion and the hexa-
decimal values after conversion. Refer to Appendix H for a table of ASCII
characters.
Note The leftmost bit of each ASCII code is adjusted for parity.
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.
0
1
2
3
D
Di: 0011
S
Di: 0030
Di: 0133Di: 0023
1st byte
2nd byte
S
1st byte
2nd byte
S+1
1st byte
2nd byte
0
1
2
3
D
S
1st byte
2nd byte
S+1
1st byte
2nd byte
0
1
2
3
D
S
1st byte
2nd byte
S+1
1st byte
2nd byte
0
1
2
3
D
S+2
1st byte
2nd byte
Original data Converted data
ASCII Code Bit status (See note.) Digit Bits
30 * 01100000 0 0 00
31 * 01100011 0 0 01
32 * 01100102 0 0 10
33 * 01100113 0 0 11
34 * 01101004 0 1 00
35 * 01101015 0 1 01
36 * 01101106 0 1 10
37 * 01101117 0 1 11
38 * 01110008 1 0 00
39 * 01110019 1 0 01
41 * 1010001A 1 0 10
42 * 1010010B 1 0 11
43 * 1010011C 1 1 00
44 * 1010100D 1 1 01
45 * 1010101E 1 1 10
46 * 1010110F 1 1 11

Table of Contents

Related product manuals