Write Multiple Registers, 0X10; Diagnostics, 0X08 - Grundfos CIU 202 Functional Profile And User Manual

Modbus for seg autoadapt, modbus rtu, 3g/4g cellular, ethernet for modbus tcp
Table of Contents

Advertisement

Example of response from slave to master
Field
Address
Function code
Address HI
Address LO
Value HI
Value LO
The response is an echo of the request.

13.5 Write multiple registers, 0x10

This function is used for writing a block of contiguous holding
registers in the slave. Register addresses start from zero,
meaning that a register numbered 100 is addressed as 99.
Example of request from master to slave
Field
Address
Function code
Start address HI
Start address LO
Quantity HI
Quantity LO
Byte count
Register 33 HI
Register 33 LO
Register 34 HI
Register 34 LO
In the request, the slave with address 1 is asked to write the
value of 0x0001 to the register at address 0x0020 and the value
of 0xB0B0 to the register at address 0x0021.
Example of response from slave to master
Field
Address
Function code
Start address HI
Start address LO
Quantity written HI
Quantity written LO
The response returns the function code, starting address and
quantity of registers written.
44

13.6 Diagnostics, 0x08

This function provides a test for checking the communication
Value
system between the master and the Grundfos slave. It contains a
single-byte subcode to identify the test to be performed.
0x01
The following subcodes are supported:
0x06
0x10
0x00
0xAF
0xFE
Value
0x01
0x10
0x00
0x20
0x00
0x02
0x04
0x00
0x01
0xB0
0xB0
Value
0x01
0x10
0x00
0x20
0x00
0x02
Example of request from master to slave
The response is identical to the request.
Example of response from slave to master
Subcode Name
Return query data
Data in this request are to be echoed in the
0x00
response. The response must be identical to the
request, so this function is often used to verify
Modbus communication.
Restart communications
0x01
All communication counters are cleared, and the
device is restarted.
Return diagnostics register
0x02
Returns the 16-bit diagnostics register. See section
13.7 Diagnostics register
Force listen only
Forces the device into listen-only mode. This
effectively mutes the device, making it unable to
0x04
communicate on the network. To bring the device
back to normal mode, a "Restart communications"
command (code 0x08, subcode 0x01) must be
issued.
Clear counters and diagnostics register
0x0A
Clears all counters and the diagnostics register
(these are also cleared on power-up/restart).
Return bus message count
0x0B
Returns the number of messages detected by the
slave.
Return bus CRC error count
0x0C
Returns the number of CRC errors in the slave.
Return bus exception count
0x0D
Returns the number of Modbus exception responses
that the slave has transmitted.
Return slave message count
0x0E
Returns the number of messages that the slave has
processed.
Return slave no response count
0x0F
Returns the number of messages for which the
slave has sent no response.
Return bus character overrun count
0x12
Returns the number of overruns in the slave.
Clear overrun counter
0x14
Clears the overrun counter (this is also cleared on
power-up/restart).
Field
Address
Function code
Subcode
Data
Data
Field
Address
Function code
Subcode
Data
Data
interpretation.
Value
0x01
0x08
0x00
0xAB
0xCD
Value
0x01
0x08
0x00
0xAB
0xCD

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ciu 262Ciu 502

Table of Contents