GTW/EN CT/C40
Communication
Page 30/64
PACiS Gateway
4. MODBUS
PROFILE
The purpose of this chapter is to describe the support of the MODBUS RTU protocol in the
PACiS system for Gateway PC.
The MODBUS RTU protocol defines a message structure that controllers will recognise and
use. It describes the process a controller uses to request access to another device, how it
will respond to requests from other devices, and how errors will be detected.
4.1 Introducing
MODBUS
Controllers communicate using a master-slave scheme, in which only the master (called
SCADA) can initiate requests. The MODBUS gateway is a slave device that responds by
supplying the requested data to the master.
Transmission mode used is the MODBUS RTU. Queries and replies have the same format
on a master-slave query-response cycle:
Query message from Server
Response message from Slave
Function code
Function code
Eight-bit Data bytes
Eight-bit data bytes
Error check
Error check
4.1.1
Device address field
The device address field of a message frame contains eight bits. Valid slave device
addresses in queries are in the range of 0 – 247, but individual slave devices are assigned
addresses in the range 1- 247 and address 0
is reserved for broadcast operations.
The device address field of a message frame always identifies a slave (slave destination in
master to slave queries and slave source in slave to master responses).
If the gateway receives a frame with a broadcast device address, no reply is returned.
If the gateway receives a frame with a not expected device address, no reply is returned.
4.1.2
Function code field
The function code field of a message frame contains eight bits. Valid codes are in the range
of 1-255.
In master to slave queries, the function code identifies the operation that is to be executed by
the slave.
In slave to master responses, the function code is used to indicate either a normal (error-
free) response or a failure of the operation execution (called an exception response). For a
normal response, the slave simply echoes the original function code. For an exception
response, the slave returns a code that is equivalent to the original function code with its
MSB set to 1. In addition to the modification of the function code the slave places a unique
code into the data field of the response message, which identifies the reason for the
exception.
4.1.3 Data
field
The data field of a message frame is constructed using sets of two hexadecimal digits, in the
range of 00h to FFh.
In master to slave queries, the data field contains additional information to be used by the
slave to execute the operation defined by the function code.
In slave to master responses, the data field contains the data requested by the master.
The data field can be non-existent in some kind of messages.
Summary of Contents for GTW/EN T/C40
Page 1: ...PACiS GTW Gateway GTW EN T C40 Version 4 5 Technical Guide ...
Page 2: ......
Page 4: ...GTW EN T C40 Technical Guide Page 2 2 PACiS GTW gateway BLANK PAGE ...
Page 5: ...Safety Handling GTW EN SA C40 PACiS GTW gateway SAFETY HANDLING ...
Page 6: ......
Page 8: ...GTW EN SA C40 Safety Handling Page 2 8 PACiS GTW gateway BLANK PAGE ...
Page 14: ...GTW EN SA C40 Safety Handling Page 8 8 PACiS GTW gateway BLANK PAGE ...
Page 15: ...Technical Data GTW EN TD C40 PACiS GTW gateway TECHNICAL DATA ...
Page 16: ......
Page 31: ...Introduction GTW EN IT C40 PACiS GTW Gateway INTRODUCTION ...
Page 32: ......
Page 34: ...GTW EN IT C40 Introduction Page 2 8 PACiS GTW Gateway BLANK PAGE ...
Page 40: ...GTW EN IT C40 Introduction Page 8 8 PACiS GTW Gateway BLANK PAGE ...
Page 41: ...Hardware Description GTW EN HW C40 PACiS GTW gateway HARDWARE DESCRIPTION ...
Page 42: ......
Page 44: ...GTW EN HW C40 Hardware Description Page 2 8 PACiS GTW gateway BLANK PAGE ...
Page 51: ...Connection GTW EN CO C40 PACiS Gateway CONNECTION ...
Page 52: ......
Page 54: ...GTW EN CO C40 Connection Page 2 8 PACiS Gateway BLANK PAGE ...
Page 60: ...GTW EN CO C40 Connection Page 8 8 PACiS Gateway BLANK PAGE ...
Page 61: ...Installation GTW EN IN C40 PACiS Gateway INSTALLATION ...
Page 62: ......
Page 64: ...GTW EN IN C40 Installation Page 2 30 PACiS Gateway BLANK PAGE ...
Page 82: ...GTW EN IN C40 Installation Page 20 30 PACiS Gateway Don t forget to click on the Apply button ...
Page 93: ...Human Interface GTW EN HI C40 PACiS GTW gateway HUMAN INTERFACE ...
Page 94: ......
Page 96: ...GTW EN HI C40 Human Interface Page 2 12 PACiS GTW gateway BLANK PAGE ...
Page 106: ...GTW EN HI C40 Human Interface Page 12 12 PACiS GTW gateway BLANK PAGE ...
Page 107: ...Communication GTW EN CT C40 PACiS Gateway COMMUNICATION ...
Page 108: ......
Page 172: ...GTW EN CT C40 Communication Page 64 64 PACiS Gateway BLANK PAGE ...
Page 173: ...Commissioning GTW EN CM C40 PACiS GTW gateway COMMISSIONING ...
Page 174: ......
Page 176: ...GTW EN CM C40 Commissioning Page 2 4 PACiS GTW gateway BLANK PAGE ...
Page 179: ...Record Sheet GTW EN RS C40 PACiS GTW gateway RECORD SHEET ...
Page 180: ......
Page 182: ...GTW EN RS C40 Record Sheet Page 2 6 PACiS GTW gateway BLANK PAGE ...
Page 187: ...Maintenance GTW EN MF C40 PACiS GTW gateway MAINTENANCE ...
Page 188: ......
Page 192: ...GTW EN MF C40 Maintenance Page 4 68 PACiS GTW gateway BLANK PAGE ...
Page 256: ...GTW EN MF C40 Maintenance Page 68 68 PACiS GTW gateway BLANK PAGE ...
Page 257: ...Problem Analysis GTW EN PR C40 PACiS GTW gateway PROBLEM ANALYSIS ...
Page 258: ......
Page 260: ...GTW EN PR C40 Problem Analysis Page 2 4 PACiS GTW gateway BLANK PAGE ...
Page 263: ...Functional Description GTW EN FT C40 PACiS Gateway FUNCTIONAL DESCRIPTION ...
Page 264: ......
Page 266: ...GTW EN FT C40 Functional Description Page 2 12 PACiS GTW gateway BLANK PAGE ...
Page 276: ...GTW EN FT C40 Functional Description Page 12 12 PACiS GTW gateway BLANK PAGE ...
Page 277: ...Logical Diagram GTW EN LG C40 PACiS GTW gateway LOGICAL DIAGRAM ...
Page 278: ......
Page 280: ...GTW EN LG C40 Logical Diagram Page 2 6 PACiS GTW gateway BLANK PAGE ...
Page 284: ...GTW EN LG C40 Logical Diagram Page 6 6 PACiS GTW gateway BLANK PAGE ...
Page 285: ...Glossary GTW EN LX C40 PACiS GTW gateway GLOSSARY ...
Page 286: ......
Page 287: ...Glossary GTW EN LX C40 PACiS GTW gateway Page 1 10 CONTENT 1 INTRODUCTION 3 2 LEXICAL 4 ...
Page 288: ...GTW EN LX C40 Glossary Page 2 10 PACiS GTW gateway BLANK PAGE ...
Page 297: ......