RM85x Hand-held Terminals User Manual
36
CNI Engineering S.r.l.
05-10-2007
4.1.15 Sample variable
This command commences sampling two variables in the terminal’s firmware.
See the appendices for details on the coding of these variables.
Byte
Command
Response
01
STX
STX
02
Node
Node
03
0x08
0x0
StatusBit
04
CmdSampleVar
CmdSampleVar
05
0x00
0x00
06
Variable 1 code
Variable 1 code
07
Variable 2 code
Variable 2 code
08
CRC
CRC
09
ETX
ETX
Example:
To sample the two variables coded 0x04 and 0x05 in the terminal at node address 0.
Byte
Command
Response
01
0x02
(STX)
0x02
(STX)
02
0x00
(Node)
0x00
(Node)
03
0x08
0x0
0x0
(StatusBit)
04
0xa8
(CmdSampleVar)
0xa8
(CmdSampleVar)
05
0x00
0x00
06
0x04
(
Variable 1 code
)
0x04
(
Variable 1 code
)
07
0x05
(
Variable 2 code
)
0x05
(
Variable 2 code
)
08
0x5e
(CRC)
0x56
(CRC)
09
0x03
(ETX)
0x03
(ETX)
4.1.16 Sample address
This command commences sampling two variable addresses in the terminal’s firmware at a specified
interval.
Example
Byte
Command
Response
01
0x02
(STX)
0x02
(STX)
02
0x00
(Node)
0x00
(Node)
03
0x08
0x0
0x08
04
0xb0
(CmdSampleMem)
0xb0
(CmdSampleMem)
05
High part of variable address 1
High part of variable address 1
06
Low part of variable address 1
Low part of variable address 1
07
High part of variable address 2
High part of variable address 2
08
Low part of variable address 2
CRC
09
High part of sampling interval
0x03
(ETX)
10
Low part of sampling interval
11
CRC
12
0x03
(ETX)
Summary of Contents for RM85x
Page 4: ......
Page 8: ...TABLE OF CONTENTS 05 10 2007 CNI Engineering S r l iv...