CNI proprietary protocol commands
05-10-2007
CNI Engineering S.r.l.
31
4.1.9 Read type
This command reads the terminal type.
Byte
Command
Response
01
STX
STX
02
Node
Node
03
0x08
0x0
StatusBit
04
CmdGetType
CmdGetType
05
0x00
0x00
06
0x00
HighByteType
07
0x00
LowByteType
08
CRC
CRC
09
ETX
ETX
Response
The following table summarises the possible meanings of the response.
Type returned
Terminal type
Bus type
0x0200
RM85x
ENET
0x0201
RM85x
RS485
0x0202
RM85x
CAN
0x0203
RM85x
RS232 VT100
Example:
To read the type of the terminal at node address 0, which is type 0x0203 (with an RS232
serial bus and VT100 default protocol).
Byte
Command
Response
01
0x02
(STX)
0x02
(STX)
02
0x00
(Node)
0x00
(Node)
03
0x08
0x0
0x00
(StatusBit)
04
0xb8
(CmdGetType)
0xb8
(CmdGetType)
05
0x00
0x00
06
0x00
0x02
(HighByteType;
[0x1b 0xfd] = 0x02)
07
0x00
0x03
(LowByteType;
[0x1b 0xfc] = 0x03)
08
0xbf
(CRC)
0x46
(CRC)
09
0x03
(ETX)
0x03
(ETX)
Содержание RM85x
Страница 4: ......
Страница 8: ...TABLE OF CONTENTS 05 10 2007 CNI Engineering S r l iv...