Modbus tcp kommunikation – Lenze I/O system 1000 System Manual User Manual
Page 720
![background image](/manuals/565636/720/background.png)
Modbus TCP Kommunikation
Access to the I/O system 1000
Function codes
l
720
EDSIO1000 EN 7.0
Read n words
03
h
: Read n words of the master output range 4x.
04
h
:Read n words of the master input range 3x.
Command frame:
Modbus TCP header
Slave address
Function
code
Address
Word
Number
Words
x
x
0
0
0
6
6 bytes
1 byte
1 byte
1 word
1 word
Response message:
Modbus TCP header
Slave address
Function
code
Number of
read bytes
Data
1. word
Data
2. word
...
x
x
0
0
0
6 bytes
1 byte
1 byte
1 word
1 word
max. 126 words
Write 1 bit
Code 05
h
: Write 1 bit in master output range 0x.
A status is changed under "Status bit" with the following values:
"Status bit" = 0000
h
®bit = 0
"Status bit" = FF00
h
® bit = 1
Command frame:
Modbus TCP header
Slave address
Function
code
Address
Bit
Status
Bit
x
x
0
0
0
6
6 bytes
1 byte
1 byte
1 word
1 word
Response message:
Modbus TCP header
Slave address
Function
code
Address
Bit
Status
Bit
x
x
0
0
0
6
6 bytes
1 byte
1 byte
1 word
1 word
Write 1 word
Code 06
h
: Write 1 word in master output range 4x.
Command frame:
Modbus TCP header
Slave address
Function
code
Address
Word
Value
Word
x
x
0
0
0
6
6 bytes
1 byte
1 byte
1 word
1 word
Response message:
Modbus TCP header
Slave address
Function
code
Address
Word
Value
Word
x
x
0
0
0
6
6 bytes
1 byte
1 byte
1 word
1 word