Download Acti 9 Smartlink Ethernet Communication System - User Manual

Transcript
Appendix A: Details of Modbus Functions
Function 43–15: Read Date and Time
Structure of Modbus Read Date and Time Messages
Request
Definition
Number of Bytes
Value
Example
Slave number
1 byte
0x2F
47
Function code
1 byte
0x2B
43
Sub-function code
1 byte
0x0F
15
Reserved
1 byte
0x00
Reserved
Response
Definition
Number of
Bytes
Value
Example
Slave number
1 byte
0x2F
47
Function code
1 byte
0x2B
43
Sub-function code
1 byte
0x0F
15
Reserved
1 byte
0x00
Reserved
Date and time(1)
byte 1
Not used
1 byte
0x00
Not used
byte 2
Year
1 byte
0x0A
Year 2010
byte 3
Month
1 byte
0x0B
Month of November
byte 4
Day of the month
1 byte
0x02
Second day of the
month
byte 5
Hour
1 byte
0x0E
14 hours
byte 6
Minute
1 byte
0x20
32 minutes
byte 7 and byte 8
Millisecond
2 bytes
0x0DAC
3.5 seconds
(1) See description of the DATE type (see page 111).
144
DOCA0073EN 04/2014