Character Codes; Example Of Print Contents Transmission - Hitachi UX2 User Manual

Hide thumbs Also See for UX2:
Table of Contents

Advertisement

1.3.2-4 Character codes

(1) 2-byte code (number of communication bytes: 1-byte mode)
For 1-byte mode, 2-byte codes are sandwiched between "SI" and "SO".
One character
High-order
SI
byte
Two or more characters
High-order
SI
byte
(2) 2-byte code (number of communication bytes: 2-byte mode)
High-order
byte
(3) Mixture of ASCII and 2-byte codes
(number of communication bytes: 1-byte mode)
ASCII
ASCII
(4) Mixture of ASCII and 2-byte codes
(number of communication bytes: 2-byte mode)
ASCII
ASCII

1.3.2-5 Example of print contents transmission

(1) Example when No. of communication bytes: 1 byte mode
02H
10H 31H 41H 42H 43H 10H 32H 0FH F1H 40H
STX DLE
1
Print Item 1
(2) Example when No. of communication bytes: 2-byte mode
02H
10H 31H 41H 42H 43H 10H 32H F1H 40H
STX DLE
1
Print Item 1
[Transmission results]
Print Item 1 →
Print Item 2 →
Low-order
SO
byte
Low-order
High-order
byte
byte
Low-order
byte
High-order
Low-order
SI
byte
High-order
Low-order
byte
byte
A
B
C
DLE
A
B
C
DLE
A B C
U U
UU:User pattern character
12
Low-order
High-order
byte
byte
High-order
byte
byte
High-order
Low-order
byte
byte
User
2
SI
pattern
Print Item 2
F1H 41H 03H
User
User
2
pattern
pattern
Print Item 2
Low-order
SO
byte
Low-order
SO
ASCII
byte
ASCII
F1H 41H
0EH 03H
User
SO
ETX
pattern
ETX

Advertisement

Table of Contents
loading

Table of Contents