Function Codes Supported By The Module; Read Coil Status (Function Code 01) - ProSoft MVI69E-MBS User Manual

Modbus serial enhanced communication module
Table of Contents

Advertisement

Reference
User Manual

7.2.3 Function Codes Supported by the Module

The format of each command in the list depends on the Modbus Function Code
being executed. The following table lists the Function Codes supported by the
MVI69E-MBS module.
Function Code
1
2
3
4
5
6
8
15
16
17
22
23
Each command list record has the same general format. The first part of the
record contains the information relating to the communication module and the
second part contains information required to interface to the Modbus slave.

7.2.4 Read Coil Status (Function Code 01)

Query
This function allows you to obtain the ON/OFF status of logic coils (Modbus 0x
range) used to control discrete outputs from the addressed slave only. Broadcast
mode is not supported with this function code. In addition to the slave address
and function fields, the message requires that the information field contain the
initial coil address to be read (Starting Address) and the number of locations that
are interrogated to obtain status data.
The addressing allows up to 2000 coils to be obtained at each request; however,
the specific slave device may have restrictions that lower the maximum quantity.
The coils are numbered from zero; (coil number 1 = zero, coil number 2 = one,
coil number 3 = two, and so on).
The following table is a sample read output status request to read coils 0020 to
0056 (37 coils) from slave device number 11.
Note: This is the structure of the message being sent out to the Modbus network. The byte values
below are in hexadecimal display
Page 106 of 154
Definition
Read Coil Status 0x
Read Input Status 1x
Read Holding Registers 4x
Read Input Registers 3x
Set Single Coil 0x
Single Register Write 4x
Diagnostics
Multiple Coil Write 0x
Multiple Register Write 4x
Report Slave ID
Mask Write 4X
Read/Write
MVI69E-MBS ♦ CompactLogix Platform
Modbus Serial Enhanced Communication Module
Supported as Master
X
X
X
X
X
X
X
X
Supported as Slave
X
X
X
X
X
X
X
X
X
X
X
X
ProSoft Technology, Inc.
June 28, 2017

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MVI69E-MBS and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents