
Lenze · I/O system 1000 · Reference Manual · DMS 5.0 EN · 09/2016 · TD17
578
10
Modbus TCP communication
10.2
Access to the I/O system 1000
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Write n words and read n words
Code 0x17: This function serves to write n words in the master output range 4x via a request and
read n words of the master input range 3x.
Command frame:
Response message:
Modbus TCP Header
Slave
Address
Function
code
Read
address
Read
Number
Words
Write
address
Write
Number
of bytes
Write
Data
1st
byte
Write
data
2nd
byte
...
x x 0 0 0
6 byte
1 byte
1 byte
1 word
1 word
1 word
1 byte
1 word
1 word
max. 122 words
Modbus TCP Header
Slave
Address
Function
code
Read
Number
of bytes
Read
Data 1.
word
Read
Data 2.
word
...
x x 0 0 0
6 byte
1 byte
1 byte
1 word
1 word
1 word
max. 126 words