10 Modbus TCP communication
10.2 Access to the I/O system 1000
577
Lenze · I/O system 1000 · Reference Manual · DMS 5.0 EN · 09/2016 · TD17
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Write n bits
Code 0x0F: Write n bits in the master output range 0x
Please observe that the number of bits must be additionally given in bits.
Command frame:
Response message:
Write n words
Code 0x10: Write n words in the master output range.
Command frame:
Response message:
Mask 1 word
Code 0x16: This function serves to mask a word in the master output range 4x.
Command frame:
Response message:
Modbus TCP Header Slave
Address
Function
code
Address
1. bit
Number
Bits
Number
Bytes
Data
1st byte
Data
2nd byte
...
x x 0 0 0
6 byte 1 byte 1 byte 1 word 1 word 1 byte 1 byte 1 byte 1 byte
max. 248 bytes
Modbus TCP Header Slave
Address
Function
code
Address
1. bit
Number
Bits
x x 0 0 0 6
6 byte 1 byte 1 byte 1 word 1 word
Modbus TCP Header Slave
Address
Function
code
Address
1st word
Number
Words
Number
Bytes
Data
1st word
Data
2. word
...
x x 0 0 0
6 byte 1 byte 1 byte 1 word 1 word 1 byte 1 word 1 word 1 word
max. 124 words
Modbus TCP Header Slave
Address
Function
code
Address
1st word
Number
Words
x x 0 0 0 6
6 byte 1 byte 1 byte 1 word 1 word
Modbus TCP Header Slave
Address
Function
code
Address
Word
AND
Mask
OR
Mask
x x 0 0 0 8
6 byte 1 byte 1 byte 1 word 1 word 1 word
Modbus TCP Header Slave
Address
Function
code
Address
Word
AND
Mask
OR
Mask
x x 0 0 0 8
6 byte 1 byte 1 byte 1 word 1 word 1 word