3. 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
400
Conversion data
(MSB) bit content (LSB)
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
D10
D300
S: D100
D: D300
Not changed
Value
0
0
0
0
0
0
1
1
0
1
0
2
0
1
1
3
1
0
0
4
1
0
1
5
1
1
0
6
1
1
1
7
0
0
0
8
0
0
1
9
0
0
1
A
0
1
0
B
0
1
1
C
1
0
0
D
1
0
1
E
1
1
0
F
Parity bits: Result in even parity
Conversion
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers