Download PR300 Power and Energy Meter Communication Interface

Transcript
<Toc> <Ind>
08
6-8
< 6. Modbus/TCP Communication Protocol>
Performs loop back test
● Function
This function code is used to check connection for communication.
• For the format of response in the event of failure, see subsection 6.4.4.
• The “0000” shown below (marked with an asterisk *) are fixed.
• Any value can be selected for transmit data.
● Request (for nomal operation)
Element
MBAP Header
PDU
Number of bytes
2
2
2
1
1
2
2
Command
element
Transaction ID
Protocol ID
Number of
bytes
Unit ID
Function
code
0000*
Transmit data
Hex value
Arbitrary
0000
0006
01 to 99
08
0000
Arbitrary
● Response (for normal operation)
Element
MBAP Header
PDU
Number of bytes
2
2
2
1
1
2
2
Command
element
Transaction ID
Protocol ID
Number of
bytes
Unit ID
Function
code
0000*
Transmit data
Hex value
Arbitrary
0000
0006
01 to 99
08
0000
Arbitrary
● Example
Send “1234” in hex to the PR300 to check the communication connection.
[Request]
000100000006010800001234
(1)
(2)
(3)
(4) (5)
(1) “0001”: Arbitrary 2-byte data
(3) “0006”: Number of bytes
(5) “08”: Function code=08
(6)
(2) “0000”: Protocol ID=0000 (fixed)
(4) “01”: Unit ID=01 indicating PR300
(6) “1234”: Transmit data
The following response will be returned to the request above.
[Response]
000100000006010800001234
(1)
(2)
(3)
(4) (5)
(6)
(1) “0001”: Arbitrary 2-byte data in the request
(2) “0000”: Protocol ID=0000 (fixed) (3) “0006”: Number of bytes
(4) “01”: Unit ID=01 indicating PR300 (5) “08”: Function code=08
(6) “1234”: Transmit data
* Numbers in quotation marks are hexadecimal.
IM 77C01E01-10E