
IEC61131 User and Reference Manual
April 22, 2008
Enron Modbus Function Codes
The following table shows the implemented function codes for Enron Modbus. The maximum
number of registers that can be read or written with one message is shown in the maximum
column. The slave device may support fewer registers than shown; consult the manual for
the device for details.
Functions 129, 130, 132, 133, 135, 136, 138, and 139 may be broadcast, but some Enron
Modbus slave devices may not support broadcast messages. Consult the manual for the
device for details.
Read Enron Boolean registers
Write Enron Boolean register
Write Enron Multiple
Boolean
Write Enron Boolean registers
Read Enron short integer
register
Write Enron Short Integer
Write Enron short integer
register
Write Enron Multiple Short
Integer
Write Enron short integer
registers
Read Enron long integer register
Write Enron long integer register
Write Enron Multiple Long
Integer
Write Enron long integer
registers
Read Enron Floating Point
Read Enron floating-point
register
Write Enron Floating Point
Write Enron floating-point
register
Write Enron Multiple Floating
Point
Write Enron floating-point
registers
Sending Messages
A master message is initiated in one of five ways:
using the master_message function from a C or C++ application program; or
using the MSTR function block from a TelePACE ladder logic program; or
using the MSIP function block from a TelePACE ladder logic program; or
using the master function in an ISaGRAF program; or
using the masterip function in an ISaGRAF program.
These functions specify the port on which to issue the command, the function code, the type
of station addressing, the slave station number, and the location and size of the data in the
slave and master devices. The protocol driver, independent of the application program
receives the response to the command.
The application program detects the completion of the transaction by:
calling the get_protocol_status function in a C application program; or
using the output of the MSTR function block in a TelePACE ladder logic program; or
using the output of the master function in an ISaGRAF program.
Kommentare zu diesen Handbüchern