2 instructions, Output example – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 244

2 Instructions
2-208
CP1E CPU Unit Instructions Reference Manual(W483)
Output example
* Parity bit - changes according to the parity specification.
When CIO 0.00 is ON in the following example, HEX(162) converts the ASCII data in D10 beginning
with the rightmost byte and writes the hexadecimal equivalents in D300 beginning with digit 1.
The digit designator setting of #1011 specifies even parity, the starting byte (when reading) = rightmost
byte, the number of bytes to read = 2, and the starting digit (when writing) = digit 1.)
Conversion data
Output result (hex data)
ASCII
code
(MSB) bit content (LSB)
Value
Bit content
#30
*
0
1
1
0
0
0
0
0
0
0
0
0
#31
*
0
1
1
0
0
0
1
1
0
0
0
1
#32
*
0
1
1
0
0
1
0
2
0
0
1
0
#33
*
0
1
1
0
0
1
1
3
0
0
1
1
#34
*
0
1
1
0
1
0
0
4
0
1
0
0
#35
*
0
1
1
0
1
0
1
5
0
1
0
1
#36
*
0
1
1
0
1
1
0
6
0
1
1
0
#37
*
0
1
1
0
1
1
1
7
0
1
1
1
#38
*
0
1
1
1
0
0
0
8
1
0
0
0
#39
*
0
1
1
1
0
0
1
9
1
0
0
1
#41
*
1
0
0
0
0
0
1
A
1
0
1
0
#42
*
1
0
0
0
0
1
0
B
1
0
1
1
#43
*
1
0
0
0
0
1
1
C
1
1
0
0
#44
*
1
0
0
0
1
0
0
D
1
1
0
1
#45
*
1
0
0
0
1
0
1
E
1
1
1
0
#46
*
1
0
0
0
1
1
0
F
1
1
1
1
Number of bytes (2 bytes)
Starting digit (digit 1)
Parity bits: Result in even parity
Not changed
Not changed
Conversion
Parity: Even
Starting byte: rightmost
Starting digit in D: Digit 1
Number of bytes: 2
Starting byte in S: Rightmost
HEX
D10
#1011
D300
0.00
0
3
4
7
8
15
12 11
1
1
0
1
D: D300
8
C
0
15
0
15
S: D100 1 1 0 0 0 0 1 1 1 0 1 1 1 0 0 0
38
43