User Manual

17
3 Functions
The following functions are available for the device:
3.1 Read n words
This function reads n (n32) words, starting from a defined address.
Data request
Response
Example Read the two controller setpoints
Word address = 0x3100 (setpoint W1)
Data request:
Response:
Function number Function
0x03 or 0x04 Read n words
0x06 Write one word
0x10 Write n words
Slave
address
Function
0x03 or 0x04
Address
first word
Word
number
(max. 32)
Checksum
CRC16
1 byte 1 byte 2 bytes 2 bytes 2 bytes
Slave
address
Function
0x03 or 0x04
Number
of bytes
read
Word
value(s)
Checksum
CRC16
1 byte 1 byte 1 byte x byte(s) 2 bytes
01 03 31 00 00 04 4AF5
01 03 08 0000 41C8 0000 4120 4A9E
Setpoint 1
(25.0)
Setpoint 2
(10.0)