Energy Meter Manual

4-10
<Toc> <Ind> <4. PC Link Communication Protocol>
IM 77C01E01-10E
WRW
Writes data into D registers on a word-by-word basis in random order
Function
This function code writes register information specified for each register into the registers
specified in a random order by the specified number of words.
The number of words to be written at a time is 1 to 32.
For the format of response in the event of failure, see subsection 4.1.2.
The command shown below includes the checksum function. When performing
communication without the checksum, do not include the 2-byte checksum element in
the command.
Command/Response (for normal operation)
Write information is specified in a 4-digit character string (0000 to FFFF) in hexadecimal.
ddddn: repetition of register numbers and write information of the specified number
of words
ddddn = character string in hexadecimal
n = 1 to 32 words
Number
of Bytes
Command
element
1
STX
2
Station
number
(ST-NO)
2
Number
of words
(n)
5
Register
number
1
1
Comma
or
space
1
Comma
or
space
1
Comma
or
space
1
Comma
or space
5
Register
number
2
5
Register
number
n
2
01
3
WRW
4
dddd1
4
dddd2
4
ddddn
1
0
2
Checksum
1
ETX
1
CR
Command (continued)
Number
of Bytes
Response
element
1
STX
2
Station
number
(ST-NO)
2
01
2
OK
2
Checksum
1
ETX
1
CR
Example
Write 1 into the remote reset (register symbol: RMT RST) and active energy reset (register
symbol: kWh RST) of the PR300 at station number 01.
The register number for remote reset is D0400.
The register number for active energy reset is D0353.
[Command]
[STX]01010WRW02D0400,0001,D0353,000171[ETX][CR]
OK will be returned in response to the command above.
[Response]
[STX]0101OK5C[ETX][CR]