![background image](http://html1.mh-extra.com/html/eaton/easye4-series/easye4-series_manual_3910990551.webp)
11. Connection to other devices
11.4 Modbus TCP
a. Byte 0 contains the request's function code
b. The remaining bytes are function-specific
If an error occurs, the Modbus TCP server will send an error message
l
Error-Frame
a. Byte 0 always contains the request's error code (0x80 + function code)
b. Byte 1 contains the exception code (error-specific)
Following is a description of the request & response function codes for each of the func-
tion descriptions in the table above:
11.4.2.1 Read Coils 0x01:
This function reads the entered number of bit outputs starting from a specified starting
address and then returns the result in bytes (8 outputs per byte)
Function Code
1 byte
0x01 ;Read Coils
Start address
2 byte
Must always be 1 less than the starting output you want
(zero-based)
Number of out-
puts
2 byte
1 to 2000 (0x7D0)
Table 94: Request-PDU
Response to the request being received
1. The starting address is analyzed (distributed among bytes 1 and 2)
a. Byte 1 = Hi; Byte 2 = Lo
2. The number of outputs is analyzed (distributed among bytes 3 and 4)
a. Byte 3 = Hi; Byte 4 = Lo
3. The output states are read
a. From the start of the (starting address) to (starting a number of
outputs)
Function Code
1 byte
0x01 ;Read Coils
Bye Count
1 byte
N
Output values
n * 1 byte
value
Table 95: Response-PDU
n= Number of outputs read / 8
Preparation for sending the response
1. The read bits are encoded in bytes
(1 but per output state; 1=ON, 0=OFF)
2. The LSB of the first byte, i.e., bit 0, contains the state of the output that is
addressed first in the request. The other outputs follow in ascending order.
easyE4
11/18 MN050009 EN www.eaton.com
547
Содержание easyE4 series
Страница 1: ...Manual 11 18 MN050009 EN easyE4 Manual...
Страница 4: ......
Страница 16: ...12 easyE4 11 18 MN050009 EN www eaton com...
Страница 22: ...0 1 About this manual 18 easyE4 11 18 MN050009 EN www eaton com...
Страница 40: ...1 easyE4 control relays description 1 10 Safety regulations 36 easyE4 11 18 MN050009 EN www eaton com...
Страница 169: ...easyE4 11 18 MN050009 EN www eaton com 165...
Страница 462: ...6 Function blocks 6 4 Timing and counter relay example 458 easyE4 11 18 MN050009 EN www eaton com...
Страница 490: ...7 System settings 7 16 Time and Date setting 486 easyE4 11 18 MN050009 EN www eaton com...
Страница 520: ...9 easyE4 inside 9 7 NET network 516 easyE4 11 18 MN050009 EN www eaton com...
Страница 524: ...10 Diagnostics messages of the operating system 10 2 Diagnostics buffer 520 easyE4 11 18 MN050009 EN www eaton com...
Страница 570: ...11 Connection to other devices 11 6 E mail function 566 easyE4 11 18 MN050009 EN www eaton com...
Страница 578: ...12 Faults 12 4 Functionality of the NET faulty 574 easyE4 11 18 MN050009 EN www eaton com...
Страница 582: ...13 Maintenance 13 3 Storage transport and disposal 578 easyE4 11 18 MN050009 EN www eaton com...
Страница 594: ...590 easyE4 11 18 MN050009 EN www eaton com...
Страница 614: ...610 easyE4 11 18 MN050009 EN www eaton com...