Omron SYSMAC CP Series Instruction & Reference Manual page 244

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions
Output example
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
* 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.)
0.00
HEX
D10
#1011
D300
2-208
Conversion data
(MSB) bit content (LSB)
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
1
1
0
1
1
1
0
1
1
1
0
1
1
1
1
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
15
1
15
S: D100 1 1 0 0 0 0 1 1 1 0 1 1 1 0 0 0
15
12 11
D: D300
Not changed
Value
0
0
0
0
1
1
1
0
2
1
1
3
0
0
4
0
1
5
1
0
6
1
1
7
0
0
8
0
1
9
0
1
A
1
0
B
1
1
C
0
0
D
0
1
E
1
0
F
0
0
1
1
Parity bits: Result in even parity
0
43
38
Conversion
8
7
4
3
0
C
8
CP1E CPU Unit Instructions Reference Manual(W483)
Output result (hex data)
Bit content
0
0
0
0
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
1
1
0
1
1
1
0
0
1
0
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
1
1
1
1
Starting digit in D: Digit 1
Number of bytes: 2
Starting byte in S: Rightmost
Parity: Even
Starting byte: rightmost
Starting digit (digit 1)
Not changed
Number of bytes (2 bytes)
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents