06 writes data into d register, Writes data into d register -12, Function – Yokogawa PR300 Power and Energy Meter User Manual

Page 91: Message (for normal operation), Response (for normal operation), Example (ascii mode)

Advertising
background image

5-12

<Toc> <Ind>

<5. Modbus/RTU and ASCII Communication Protocols>

IM 77C01E01-10E

06

Writes data into D register

Function

This function code writes data into a specified D registers number.

The maximum number of D registers to be written into at a time is 1.

For the format of response in the event of failure, see subsection 5.1.4.

Broadcast addressing is possible (by setting “00” to the station number).

Message (for normal operation)

Element

Number of bytes

in RTU mode

Number of bytes

in ASCII mode

1

Write Data

(Upper Digit)

2

Start of

Message

Mark (:)

None

1

Write Data

(Lower Digit)

1

2

Error

Check

2

2

Station

Number
(ST-NO)

1

2

None

End of Message Mark

(CR + LF)

2

Function Code

(06)

1

2

D-Register

Number

(Upper Digit)

1

2

2

1

D-Register

Number

(Lower Digit)

Message (continued)

Response (for normal operation)

Element

Number of bytes

in RTU mode

Number of bytes

in ASCII mode

1

Write Data

(Upper Digit)

2

Start of

Message

Mark (:)

None

1

Write Data

(Lower Digit)

1

2

Error

Check

2

2

Station

Number
(ST-NO)

1

2

None

End of Message Mark

(CR + LF)

2

Function Code

(06)

1

2

D-Register

Number

(Upper Digit)

1

2

2

1

D-Register

Number

(Lower Digit)

Response (continued)

Example (ASCII mode)

Write 0001 into the D0302 (optional integration start/stop) at station number 11.

[Message]

[:]0B06012D0001C0[CR][LF]

“0B”: station number 11, “06”: function code 06, “012D”: D register number 302, “0001”:
data 0001, and “C0”: error check

* Numbers in quotation marks are hexadecimal.

The following response will be returned to the message above.
[Response]

[:]0B06012D0001C0[CR][LF]

The frame same as the message is returned.

Advertising