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.
Содержание GTW/EN T/C40
Страница 1: ...PACiS GTW Gateway GTW EN T C40 Version 4 5 Technical Guide ...
Страница 2: ......
Страница 4: ...GTW EN T C40 Technical Guide Page 2 2 PACiS GTW gateway BLANK PAGE ...
Страница 5: ...Safety Handling GTW EN SA C40 PACiS GTW gateway SAFETY HANDLING ...
Страница 6: ......
Страница 8: ...GTW EN SA C40 Safety Handling Page 2 8 PACiS GTW gateway BLANK PAGE ...
Страница 14: ...GTW EN SA C40 Safety Handling Page 8 8 PACiS GTW gateway BLANK PAGE ...
Страница 15: ...Technical Data GTW EN TD C40 PACiS GTW gateway TECHNICAL DATA ...
Страница 16: ......
Страница 31: ...Introduction GTW EN IT C40 PACiS GTW Gateway INTRODUCTION ...
Страница 32: ......
Страница 34: ...GTW EN IT C40 Introduction Page 2 8 PACiS GTW Gateway BLANK PAGE ...
Страница 40: ...GTW EN IT C40 Introduction Page 8 8 PACiS GTW Gateway BLANK PAGE ...
Страница 41: ...Hardware Description GTW EN HW C40 PACiS GTW gateway HARDWARE DESCRIPTION ...
Страница 42: ......
Страница 44: ...GTW EN HW C40 Hardware Description Page 2 8 PACiS GTW gateway BLANK PAGE ...
Страница 51: ...Connection GTW EN CO C40 PACiS Gateway CONNECTION ...
Страница 52: ......
Страница 54: ...GTW EN CO C40 Connection Page 2 8 PACiS Gateway BLANK PAGE ...
Страница 60: ...GTW EN CO C40 Connection Page 8 8 PACiS Gateway BLANK PAGE ...
Страница 61: ...Installation GTW EN IN C40 PACiS Gateway INSTALLATION ...
Страница 62: ......
Страница 64: ...GTW EN IN C40 Installation Page 2 30 PACiS Gateway BLANK PAGE ...
Страница 82: ...GTW EN IN C40 Installation Page 20 30 PACiS Gateway Don t forget to click on the Apply button ...
Страница 93: ...Human Interface GTW EN HI C40 PACiS GTW gateway HUMAN INTERFACE ...
Страница 94: ......
Страница 96: ...GTW EN HI C40 Human Interface Page 2 12 PACiS GTW gateway BLANK PAGE ...
Страница 106: ...GTW EN HI C40 Human Interface Page 12 12 PACiS GTW gateway BLANK PAGE ...
Страница 107: ...Communication GTW EN CT C40 PACiS Gateway COMMUNICATION ...
Страница 108: ......
Страница 172: ...GTW EN CT C40 Communication Page 64 64 PACiS Gateway BLANK PAGE ...
Страница 173: ...Commissioning GTW EN CM C40 PACiS GTW gateway COMMISSIONING ...
Страница 174: ......
Страница 176: ...GTW EN CM C40 Commissioning Page 2 4 PACiS GTW gateway BLANK PAGE ...
Страница 179: ...Record Sheet GTW EN RS C40 PACiS GTW gateway RECORD SHEET ...
Страница 180: ......
Страница 182: ...GTW EN RS C40 Record Sheet Page 2 6 PACiS GTW gateway BLANK PAGE ...
Страница 187: ...Maintenance GTW EN MF C40 PACiS GTW gateway MAINTENANCE ...
Страница 188: ......
Страница 192: ...GTW EN MF C40 Maintenance Page 4 68 PACiS GTW gateway BLANK PAGE ...
Страница 256: ...GTW EN MF C40 Maintenance Page 68 68 PACiS GTW gateway BLANK PAGE ...
Страница 257: ...Problem Analysis GTW EN PR C40 PACiS GTW gateway PROBLEM ANALYSIS ...
Страница 258: ......
Страница 259: ...Problem Analysis GTW EN PR C40 PACiS GTW gateway Page 1 4 CONTENT 1 SCOPE OF THE DOCUMENT 3 2 PROBLEM IDENTIFICATION 4 ...
Страница 260: ...GTW EN PR C40 Problem Analysis Page 2 4 PACiS GTW gateway BLANK PAGE ...
Страница 263: ...Functional Description GTW EN FT C40 PACiS Gateway FUNCTIONAL DESCRIPTION ...
Страница 264: ......
Страница 266: ...GTW EN FT C40 Functional Description Page 2 12 PACiS GTW gateway BLANK PAGE ...
Страница 276: ...GTW EN FT C40 Functional Description Page 12 12 PACiS GTW gateway BLANK PAGE ...
Страница 277: ...Logical Diagram GTW EN LG C40 PACiS GTW gateway LOGICAL DIAGRAM ...
Страница 278: ......
Страница 280: ...GTW EN LG C40 Logical Diagram Page 2 6 PACiS GTW gateway BLANK PAGE ...
Страница 284: ...GTW EN LG C40 Logical Diagram Page 6 6 PACiS GTW gateway BLANK PAGE ...
Страница 285: ...Glossary GTW EN LX C40 PACiS GTW gateway GLOSSARY ...
Страница 286: ......
Страница 287: ...Glossary GTW EN LX C40 PACiS GTW gateway Page 1 10 CONTENT 1 INTRODUCTION 3 2 LEXICAL 4 ...
Страница 288: ...GTW EN LX C40 Glossary Page 2 10 PACiS GTW gateway BLANK PAGE ...
Страница 297: ......