
- 47 -
COMMUNICATION EXAMPLES
The numerical data below are expressed in hexadecimal notation with prefix h.
EXAMPLE 1
Command for multiple writing of registers (command 16, h10 hexadecimal).
Assuming that we wish to write the value 0 to the register 40051 and the value 2000 to the register
40052, the string to generate must be:
h01 h10 h00 h32 h00 h02 h04 h00 h00 h07 hD0 h72 hCE
The instrument will respond with the string:
h01 h10 h00 h32 h00 h02 hE0 h07
Query field name
hex
Response field name
hex
Instrument address
h01
Instrument address
h01
Function
h10
Function
h10
Address of the first register H
h00
Address of the first register H
h00
Address of the first register L
h32
Address of the first register L
h32
Number of registers H
h00
Number of registers H
h00
Number of registers L
h02
Number of registers L
h02
Byte count
h04
CRC16 L
hE0
Datum 1 H
h00
CRC16 H
h07
Datum 1 L
h00
Datum 2 H
h07
Datum 2 L
hD0
CRC16 L
h72
CRC16 H
hCE