Modbus Remote Communication Protocol For REM 54 - : Technical Description
Modbus Remote Communication Protocol For REM 54 - : Technical Description
Modbus Remote Communication Protocol For REM 54 - : Technical Description
Contents
1. Overview of the protocol ..........................................................4
1.1. Transmission frame formats ..........................................................5
1.1.1. ASCII mode ........................................................................5
1.1.2. RTU mode ..........................................................................7
1.2. Master’s queries ............................................................................8
1.3. Normal responses .........................................................................9
1.4. Exception responses ...................................................................10
2. REM 54_ profile of Modbus ....................................................11
2.1. Supported application functions ..................................................11
2.2. Supported diagnostic subfunctions .............................................11
2.3. Diagnostic counters .....................................................................13
2.4. Possible exception codes ............................................................13
2.5. Event reporting ............................................................................14
3. Setup of the Modbus interface ...............................................15
3.1. Protocol activation .......................................................................15
3.2. Protocol parameters ....................................................................16
4. Explanation of the REM 54_ configurations .........................17
4.1. Modbus configurations ................................................................17
4.2. General guidelines for how the REM 54_ application data is
seen on the Modbus protocol ......................................................17
4.3. Modbus point lists for Modbus configurations .............................18
4.3.1. Interpretation of the Modbus point list ..............................19
4.3.1.1. Coils ...................................................................20
4.3.1.2. Digital inputs .......................................................21
4.3.1.3. Input registers ....................................................21
4.3.1.4. Holding registers ................................................22
5. Appendix A: Profile checklist ................................................23
6. Appendix B: List of used abbreviations ...............................26
3
Modbus Remote Communication Protocol for REM 54_ 1MRS 750781-MUM
Technical Description
8-bit 8-bit
Data Bytes Data Bytes
)LJ 4XHU\UHVSRQVHF\FOH
The devices in the Modbus protocol are made up of four groups of scan or control
points (Digital Inputs, Input Registers, Coils and Holding Registers). Each group
consists of either scan or control points, which all have separate 16-bit addresses.
4
1MRS 750781-MUM Remote Communication Protocol for REM 54_ Modbus
Technical Description
All data addresses in the Modbus protocol are referenced to zero. The first
occurrence of a data item is addressed as item number zero: for example the coil
known as ‘coil 1’ is addressed as coil 0000 in the data address field of a Modbus
message and ‘coil 127’ as coil 007E hex (126 in decimal format).
5
Modbus Remote Communication Protocol for REM 54_ 1MRS 750781-MUM
Technical Description
)LJ 'HVFULSWLRQRIWKHELWVHTXHQFHIRUWKH$6&,,PRGH
The message starts with a colon character ( : ), followed by ASCII 3A in
hexadecimal format, and ends with a "carriage return - line feed" (CRLF) pair, i.e.
ASCII 0D and 0A in hexadecimal format. The other fields in the message frame (see
Fig. 1.1.1.-2) are identical in both modes of the Modbus protocol, with the exception
of the error-checking field. In the ASCII mode the LRC (Longitudinal Redundancy
Check) method is applied, whereas the CRC (Cyclical Redundancy Check) method
is applied in the RTU mode.
When a device that has been connected to the network detects a colon character, it
decodes the following field to find out whether it is the device to which the query is
directed. For this reason, each device must continuously monitor the Modbus
network.
If a longer interval than one second occurs between the characters, the receiving
device assumes that an error has occurred. Consequently, it clears the receive buffer
and starts waiting for the colon character. A typical message frame is shown in Fig.
1.1.1.-2.
6
1MRS 750781-MUM Remote Communication Protocol for REM 54_ Modbus
Technical Description
The messages are transmitted in the network from left to right, i.e. the Least
Significant Bit (LSB) first and the Most Significant Bit (MSB) last. The description
of the bit sequence for the RTU mode is presented in Fig. 1.1.2.-1.
)LJ 'HVFULSWLRQRIWKHELWVHTXHQFHIRUWKH578PRGH
The beginning of each frame is marked with a silent interval of at least 3.5 character
times. This is implemented as a multiple of character times at the baud rate that is
being used. The end of the frame is also marked with a silent interval of at least 3.5
character times.
The entire message frame must be transmitted continuously. If there is a silent
interval longer than 1.5 character times between the characters, the next byte is
considered as the beginning of a new frame. If a new message begins before the 3.5
character time silent interval, the characters received will be considered as part of
the old message frame.
7
Modbus Remote Communication Protocol for REM 54_ 1MRS 750781-MUM
Technical Description
The format of a force single coil or a preset single register function query is as
follows:
The format of a force multiple coil or a preset multiple registers function query is as
follows:
8
1MRS 750781-MUM Remote Communication Protocol for REM 54_ Modbus
Technical Description
9
Modbus Remote Communication Protocol for REM 54_ 1MRS 750781-MUM
Technical Description
The format of a response to a force single coil or a preset single register function
query is an echo of the query itself.
10
1MRS 750781-MUM Remote Communication Protocol for REM 54_ Modbus
Technical Description
11
Modbus Remote Communication Protocol for REM 54_ 1MRS 750781-MUM
Technical Description
12
1MRS 750781-MUM Remote Communication Protocol for REM 54_ Modbus
Technical Description
Name Meaning
Bus Message Count The number of messages that the REM 54_ has detected
in the communications system since its last restart, clear
counters operation, or power-up.
Bus Communication Error Count The number of CRC or LRC errors encountered by the
REM 54_ since its last restart, clear counters operation, or
power-up.
Bus Exception Error Count The number of Modbus exception responses sent by the
REM 54_ since its last restart, clear counters operation, or
power-up.
Slave Message Count The number of messages addressed to the REM 54_ or
broadcast that the REM 54_ has processed since its last
restart, clear counters operation, or power-up.
Slave No Response Count The number of messages addressed to the REM 54_ for
which it sent no response (neither a normal response nor
an exception response) since its last restart, clear counters
operation, or power-up.
Slave NACK Response Count The number of messages addressed to the REM 54_ for
which it returned a NACK response
Slave Busy Response Count The number of messages addressed to the REM 54_ for
which it returned a Slave Busy response
Bus Character Overrun Count The number of messages addressed to the REM 54_ that
it could not handle due to a character overrun condition
since its last restart, clear counters operation, or power-up
13
Modbus Remote Communication Protocol for REM 54_ 1MRS 750781-MUM
Technical Description
MOMENTARY STATE
1XXXX STATUS 0 1 1 0 0 1 0 0 1 0 1 1
INPUT 1
0 0 0 0 0 0 1 0 0 1 1 0
1XXXX + 1 MOMENTARY
INPUT 1
Time = 0
HOST READS HOST READS HOST READS HOST READS
1XXXX = 1 1XXXX = 0 1XXXX = 1 1XXXX = 1
1XXXX + 1 = 0 1XXXX + 1 = 0 1XXXX + 1 = 1 1XXXX + 1 = 1
READ. INPUT 1
STATE TRANSITIONED
MORE THAN ONCE
BETWEEN HOST ACCESSES
)LJ 0RPHQWDU\FKDQJHGHWHFWH[DPSOH
14
1MRS 750781-MUM Remote Communication Protocol for REM 54_ Modbus
Technical Description
)LJ 3URWRFRODVVLJQPHQWLQWKH5HOD\'RZQORDG7RRO
15
Modbus Remote Communication Protocol for REM 54_ 1MRS 750781-MUM
Technical Description
16
1MRS 750781-MUM Remote Communication Protocol for REM 54_ Modbus
Technical Description
4.2. General guidelines for how the REM 54_ application data is seen
on the Modbus protocol
The figure and the table in this section describe shortly how the process data in the
REM 54_ device is seen on the Modbus protocol.
The mapping of the function block’s data into Modbus process data is done by the
Modbus Protocol Object Dictionary (POD).
In the application example below, all the possible process data is present. The grey
boxes show to which Modbus data category the signals belong.
1)
4)
IR x DI y
instance
COIND1
BIO1_BI4 BINOPEN
BIO1_BI5 BINCLOSE Modbusexample
DI = digital inputs
IR = input registers IV
CO = coil outputs
)LJ $SSOLFDWLRQH[DPSOH
17
Modbus Remote Communication Protocol for REM 54_ 1MRS 750781-MUM
Technical Description
18
1MRS 750781-MUM Remote Communication Protocol for REM 54_ Modbus
Technical Description
)LJ ([DPSOHRID0RGEXVSRLQWOLVW
The lists start with a header identifying the Modbus configuration and the revision
letter. Hereafter follows a list of function blocks in the application. Also the revision
letters of the function blocks are shown.
After this follows the description of the process data: Coils, Digital inputs, Input
registers and Holding registers. Process data will be described further in the
following section.
19
Modbus Remote Communication Protocol for REM 54_ 1MRS 750781-MUM
Technical Description
In the REM 54_ Modbus configurations the Modbus basic data areas are used as
follows:
4.3.1.1. Coils
Coils are outputs used for control or acknowledgement purposes. Coil outputs start
from coil address 2000H. The coils in the REM 54_ can be written but not read.
Reading will cause an exception response from the REM 54_.
If more than one coil is written at a time (write multiple coils) it will result in
exception response 05. This response indicates that the request has been accepted by
the slave and processing has started. Still, a long duration of time is required. The
master will hereafter issue a Poll Program Complete message to determine if
processing is completed. See the Modicon technical publications for more
information. Do not use multiple coil writing unless your host can interpret the 05
exception response correctly.
)LJ ([DPSOHRID&RLOVVHFWLRQLQDSRLQWOLVW
20
1MRS 750781-MUM Remote Communication Protocol for REM 54_ Modbus
Technical Description
)LJ ([DPSOHRID'LJLWDOLQSXWVVHFWLRQLQDSRLQWOLVW
)LJ ([DPSOHRID,QSXWUHJLVWHUVVHFWLRQLQDSRLQWOLVW
21
Modbus Remote Communication Protocol for REM 54_ 1MRS 750781-MUM
Technical Description
)LJ ([DPSOHRID+ROGLQJUHJLVWHUVVHFWLRQLQDSRLQWOLVW
22
1MRS 750781-MUM Remote Communication Protocol for REM 54_ Modbus
Technical Description
MODBUS
DEVICE PROFILE DOCUMENT
Vendor Name: ABB Oy Substation Automation
Device Name: REM 54_
Device Function: Slave
Modes:
RTU
ASCII
6XSSRUWHGIXQFWLRQFRGHV
23
Modbus Remote Communication Protocol for REM 54_ 1MRS 750781-MUM
Technical Description
6XSSRUWHGGLDJQRVWLFVXEIXQFWLRQFRGHV
24
1MRS 750781-MUM Remote Communication Protocol for REM 54_ Modbus
Technical Description
6XSSRUWHGGDWDW\SHV
Name Supported
Digital input Yes
Coil Yes
Input register Yes
Holding register Yes
General reference No
6XSSRUWHGHYHQWUHSRUWLQJPHWKRGV
Name Supported
Momentary change detect on digital input Yes
25
Modbus Remote Communication Protocol for REM 54_ 1MRS 750781-MUM
Technical Description
26
1MRS 752015-MUM EN 06.2002
ABB Oy
Substation Automation
P.O. Box 699
FIN-65101 VAASA
Finland
Tel. +358 10 22 11
Fax. +358 10 224 1094
www.abb.com/substationautomation