Function, Command/response (for normal operation), Example – Yokogawa PR300 Power and Energy Meter User Manual

Page 72

Advertising
background image

<Toc> <Ind>

<4. PC Link Communication Protocol>

4-11

IM 77C01E01-10E

WRS

Specifies the D registers to be monitored on a word-by-word basis

Function

This function code specifies the register numbers to be monitored on a word-by-word
basis. Note that this command simply specifies the registers. Actual monitoring is per-
formed by the WRM command after the register numbers are specified by this command.

If the volume of data is large and you wish to increase the communication rate, it is effective
to use a combination of the WRS and WRM commands rather than the WRR command. If
the power supply is turned off, the register numbers specified will be erased.

The number of words to be specified 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)

Number

of Bytes

Command

element

1

STX

2

Station

number

(ST-NO)

2

Number

of words

(n)

5

Register

number

1

5

Register

number

2

1

Comma

or space

1

Comma

or space

5

Register

number

n

2

01

3

WRS

1

0

Number

of Bytes

Response

element

1

STX

2

Station

number

(ST-NO)

2

01

2

OK

2

Checksum

2

Checksum

1

ETX

1

CR

1

ETX

1

CR

Command (continued)

Example

Specify that the active power (register symbol: W L and W H) of the PR300 at station
number 01 is to be monitored. (This command simply specifies the registers.)
The register numbers for active power are D0021 and D0022.

[Command]

[STX]01010WRS02D0021,D00228B[ETX][CR]

“OK” will be returned in response to the command above.

[Response]

[STX]0101OK5C[ETX][CR]

Advertising