Communication Examples - LAUMAS TLU Installation And User Manual

Table of Contents

Advertisement

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
Query field name
Instrument Address
Function
Address of the first register H
Address of the first register L
Number of registers to send H
Number of registers to send L
Byte Count
Datum 1 H
Datum 1 L
Datum 2 H
Datum 2 L
CRC16 H
CRC16 L
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
Lo strumento risponderà con la stringa:
h01 h10 h00 h10 h00 h04 hC0 h0F
Query field name
Instrument Address
Fuction
Address of the first register H
Address of the first register L
Number of registers H

COMMUNICATION EXAMPLES

hex
Response field name
Instrument Address
h01
Function
h10
Address of the first register H
h00
Address of the first register L
h10
Number of registers H
h00
Number of registers L
h02
CRC16 H
h04
CRC16 L
h00
h00
h07
hD0
hF1
h0F
hex
Response field name
Instrument Address
h01
Function
h10
Address of the first register H
h00
Address of the first register L
h10
Number of registers H
h00
- 35 -
hex
h01
h10
h00
h10
h00
h02
h40
h0D
hex
h01
h10
h00
h10
h00

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tluana

Table of Contents