Modbus Slave Communication Function
(Original Document)
At a Glance
This page describes the services managed by the slave modules for a Modbus link.
Data Exchanges
The slave module manages the following requests:
Modbus request
Function code / sub-function code
PLC object
Read n output bits
16#01
%M
Read n input bits
16#02
%M
Read n output words
16#03
%MW
Read n input words
16#04
%MW
Write an output bit
16#05
%M
Write an output word
16#06
%MW
Write n output bits
16#0F
%M
Write n output words
16#10
%MW
Diagnostics and Maintenance
The diagnostics and maintenance information which are accessible from a Modbus link are shown below:
Designation
Function code / sub-function code
Read exception status
16#07
Echo
16#08 / 16#00
Initialize module
16#08 / 16#01
Read the diagnostic registers of the PLC
16#08 / 16#02
Change end of frame delimiter (ASCII mode)
16#08 / 16#03
Switch to listening mode
16#08 / 16#04
Reset counters
16#08 / 16#0A
Number of messages received without CRC error
16#08 / 16#0B
Number of frames received with CRC error
16#08 / 16#0C
Number of exceptional responses
16#08 / 16#0D
Number of messages addressed to the PLC
16#08 / 16#0E
Number of broadcast messages received
16#08 / 16#0F
Number of correct responses
16#08 / 16#10
Number of messages received in listening mode
16#08 / 16#11
Number of invalid characters received
16#08 / 16#12
Read event counter
16#0B
Read connection event
16#0C
Read identification
Note: The slave request response returns the same elements as the UNI-TE identification request (see the subchapter General Use Requests in the TSX DR NET manual).
16#11