beautypg.com

4 diagnostics (08), 5 report slave id (17), Diagnostics (08) – Bronkhorst Modbus slave interface User Manual

Page 18: Report slave id (17)

background image

BRONKHORST

®

4.4.4 Diagnostics (08)

The following sub-functions are supported

Sub-function code (dec)

Name

00

Return Query Data

10

Clear Counters and Diagnostics Register

11

Return Bus Message Count

12

Return Bus Communication Error Count

13

Return Bus Exception Error Count

14

Return Slave Message Count

15

Return Slave No Response Count

16

Return Slave NAK Count (always 0)

17

Return Slave Busy Count (always 0)

18

Return Bus Character Overrun Count

Warning: the maximum message size for the Return Query Data sub function is 100 bytes at 9600 baud

(200 bytes at 19200 baud and 400 bytes at 38400 baud). When this size is exceeded, corrupted

responses may be received.

Possible exception responses

Code Name

Meaning

01

ILLEGAL FUNCTION

of not-supported sub-function

03

ILLEGAL DATA VALUE

in case of an incorrect value for the data field

04

SLAVE DEVICE FAILURE

in case of writing illegal value to register

4.4.5 Report Slave ID (17)

The Slave ID field in the response is a string with the same contents as FlowDDE parameter 1 (ident number + version

nr/serial nr). The Run Indicator Status field in this message will indicate ON when the device is in normal operating

mode (FB_NORMAL).

Possible exception responses

Code Name

Meaning

04

SLAVE DEVICE FAILURE

in case of an internal error

Page 18

Modbus interface

9.17.035