SCT Weight Transmitter – 20 Series Technical Manual
56
Visit our website
3.16 Communication Examples
The numerical data below are expressed in hexadecimal notation with prefix h.
Example 1: Command for multiple writing of registers (hexadecimal command 16, h10)
Assuming that we wish to write the value 0 to the register 40017 and the value 2000 to the register 40018, the string to generate
must be:
h01 h10 h00 h10 h00 h02 h04 h00 h00 h07 hD0 hF1 h0F
The instrument will respond with the string:
h01 h10 h00 h10 h00 h02 h40 h0D
Example 2: Command for multiple writing of registers (hexadecimal command 16, h10).
Assuming that we wish to write the two setpoint values on the instrument, at 2000 and 3000 respectively, the string must be
sent:
h01 h10 h00 h10 h00 h04 h08 h00 h00 h07 hD0 h00 h00 h0B hB8
hB0 hA2
The instrument will respond with the string:
h01 h10 h00 h10 h00 h04 hC0 h0F
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
h10
Address of the first register L
h10
Number of registers to send H
h00
Number of registers H
h00
Number of registers to send L
h02
Number of registers L
h02
Byte Count
h04
CRC16 H
h40
Datum 1 H
h00
CRC16 L
h0D
Datum 1 L
h00
Datum 2 H
h07
Datum 2 L
hD0
CRC16 H
hF1
CRC16 L
h0F
Table 3-50. Communication Example 1
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
h10
Address of the first register L
h10
Number of registers to send H
h00
Number of registers H
h00
Number of registers to send L
h04
Number of registers L
h04
Byte Count
h08
CRC16 H
hC0
Datum 1 H
h00
CRC16 L
h0F
Table 3-51. Communication Example 2
Содержание SCT20-AN
Страница 1: ...SCT Weight Transmitter 20 Series Technical Manual PN 131128 Rev F June 26 2018...
Страница 64: ......