Message Intersect & Pack
nlscan.com
Page 106
Code Programming ON
Code Programming OFF
Tools
Message Pack
ESC_AddLen Pack
ESC_AddLen pack format:
[STX] +[LEN] + [DATA] + [ETX] + [BCC]
STX
:
0x02
。
LEN
:
Barcode message length is expressed by 4 bytes. Every byte for an ASCII, and thus it
ranges
“
0~9999
”
. For example, LEN=0x30303137, refer to the ASCII chart for decimal value.
0x30303137=0017 (0x30=0, 0x31=1, 0x37=7).
DATA
:
Barcode message
ETX
:
0x03
。
BCC
:
Parity byte.
The algorithm:
1. computation sequence is BCC = [STX] +[LEN] + [DATA] + [ETX]
2. computation method is XOR, byte by byte
ESC_AddLen Pack
【
Pro CMD
:
0314040
】