Janitza UMG 604E Mains-analysis device, Mains analyser CAT III 300 V 52.16.002 Benutzerhandbuch
Produktcode
52.16.002
Modbus
Modbus-Function 01, Read Coil Status
Reads the ON/OFF status of discrete outputs (0X references, coils) in the slave.
Broadcast is not supported.
Appendix B lists the maximum parameters supported by various controller
models.
Query
The query message specifies the starting coil and quantity of coils to be read.
Coils are addressed starting at zero: coils 1&endash;16 are addressed as
0&endash;15.
Here is an example of a request to read coils 20&endash;56 from slave device
17:
Coils are addressed starting at zero: coils 1&endash;16 are addressed as
0&endash;15.
Here is an example of a request to read coils 20&endash;56 from slave device
17:
Field Name (Hex)
Slave Address 11
Function 01
Starting Address Hi 00
Starting Address Lo 13
No. of Points Hi 00
No. of Points Lo 25
Error Check (LRC or CRC) &endash;&endash;
Slave Address 11
Function 01
Starting Address Hi 00
Starting Address Lo 13
No. of Points Hi 00
No. of Points Lo 25
Error Check (LRC or CRC) &endash;&endash;
Response
The coil status in the response message is packed as one coil per bit of the data
field. Status is indicated as: 1 = ON; 0 = OFF. The LSB of the first data byte
contains the coil addressed in the query. The other coils follow toward the high
order end of this byte, and from ’r;low order to high order’ in subsequent bytes.
If the returned coil quantity is not a multiple of eight, the remaining bits in the
final data byte will be padded with zeros (toward the high order end of the byte).
The Byte Count field specifies the quantity of complete bytes of data.
Here is an example of a response to the query on the opposite page:
field. Status is indicated as: 1 = ON; 0 = OFF. The LSB of the first data byte
contains the coil addressed in the query. The other coils follow toward the high
order end of this byte, and from ’r;low order to high order’ in subsequent bytes.
If the returned coil quantity is not a multiple of eight, the remaining bits in the
final data byte will be padded with zeros (toward the high order end of the byte).
The Byte Count field specifies the quantity of complete bytes of data.
Here is an example of a response to the query on the opposite page:
Field Name (Hex)
Slave Address 11
Slave Address 11
51