RM85x Hand-held Terminals User Manual
2
CNI Engineering S.r.l.
05-10-2007
Character to transmit
Characters transmitted
STX
(0x02)
ESC
(0x1B)
0xFF
XOR
STX
(0xFD)
ETX
(0x03)
ESC
(0x1B)
0xFF
XOR
ETX
(0xFC)
ESC
(0x1B)
ESC
(0x1B)
0xFF
XOR
ESC
(0xE4)
XON
(0x11)
ESC
(0x1B)
0xFF
XOR
XON
(0xEE)
XOFF
(0x13)
ESC
(0x1B)
0xFF
XOR
XOFF (0xEC)
2.2.2 Packet checksum (8 bit CRC)
Each packet also contains a checksum character (CRC), calculated as follows.
STX
Datum1
…
DatumN
CRC
ETX
CRC = 0xFF XOR Datum1 XOR … XOR DatumN
N.B.: CRC is calculated on the basis of the bytes in the packet before control characters
are added. This is because control characters must also mask the CRC.
2.2.3 Packet length
The maximum number of data characters that can be transmitted is 68. This number does not include
the control characters in the packet.
2.2.4 Node address
The second byte of each command identifies the target terminal’s node address, as configured on the
terminal’s DIP-switch. If RM85x hand-held terminals communicate over an RS232 connection, this
address must be set to
0x00
to ensure correct functioning. All the switches on the configuration DIP
must be OFF for this setting.
3 VT100 protocol commands
6 groups of VT100 protocol commands are available:
Cursor control commands
Editor commands
Character delete commands
Information request commands
Terminal status commands
I/O commands
3.1 Cursor control commands
This group of command lets you control the position and the characteristics of the cursor.
Whenever the terminal is switched on or reset, the cursor is set off and is positioned at the first column
of the first row of the display.
Summary of Contents for RM85x
Page 4: ......
Page 8: ...TABLE OF CONTENTS 05 10 2007 CNI Engineering S r l iv...