Modbus Remote Communication Protocol For REX 521: Technical Description
Modbus Remote Communication Protocol For REX 521: Technical Description
Industrial IT enabled products from ABB are the building blocks for greater
productivity, featuring all the tools necessary for lifecycle product support in
consistent electronic form.
1MRS 755017 Remote Communication Protocol for REX 521 Modbus
Issued: 24.11.2003
Version: A/24.11.2003 Technical Description
Contents
1. Protocol overview .....................................................................4
1.1. Transmission frame formats ..........................................................5
1.1.1. ASCII mode ........................................................................5
1.1.2. RTU mode ..........................................................................6
1.2. Master's queries ............................................................................7
1.3. Normal responses .........................................................................9
1.4. Exception responses ...................................................................10
2. Modbus REX 521 profile .........................................................11
2.1. Supported application functions ..................................................11
2.2. Supported diagnostic subfunctions .............................................11
2.3. Diagnostic counters .....................................................................12
2.4. Possible exception codes ............................................................13
2.5. User-defined registers .................................................................13
2.6. Digital inputs ................................................................................13
2.7. Protocol parameters ....................................................................14
2.8. General guidelines on how REX 521 application data
is seen on Modbus protocol ........................................................15
2.9. Modbus data mapping .................................................................16
3. References ...............................................................................19
4. Appendix A: Profile checklist ................................................20
5. Appendix B: Abbreviations ....................................................22
3
Modbus Remote Communication Protocol for 1MRS 755017
REX 521
1. Protocol overview
The Modbus protocol was first introduced by Modicon Inc. and is widely accepted
as a communication standard for industrial device controllers and programmable
logic controllers (PLCs). The protocol determines how each controller connected to
a Modbus network will recognize a message addressed to it. It also determines the
task to be performed and extracts any data or other information contained in the
message. If a reply is required, the controller will construct a reply message and send
it using the Modbus protocol.
A master device can be connected to slave devices either directly, or via modems
using a compatible serial interface. The interface defines the connector pinouts,
cabling, signal levels, transmission baud rates, and parity checking.
The communication technique used in the Modbus protocol is a master-slave
technique. This means that only one device can be the master and initiate
transactions while other devices connected to the network are slaves and can
accordingly not initiate any transactions.
A message sent by the master to the slave is called a query; see Figure 1.-1. The
master can address a query to an individual slave or to all slaves, that is, to broadcast
the query. After the slave has received a query, it attempts to perform the requested
task. If a query has been sent to an individual slave, the slave will send a message,
that is, a response to the master. However, if it has been broadcast, no response will
be sent. The response can be either a normal response (in case of performing the
requested task) or an exception response (other cases).
8-bit 8-bit
Data Bytes Data Bytes
4
1MRS 755017 Remote Communication Protocol for Modbus
REX 521
5
Modbus Remote Communication Protocol for 1MRS 755017
REX 521
6
1MRS 755017 Remote Communication Protocol for Modbus
REX 521
The messages are transmitted in the network from left to right, that is, the least
significant bit (LSB) first and the most significant bit (MSB) last. The RTU bit
sequence is shown in Figure 1.1.2.-1.
7
Modbus Remote Communication Protocol for 1MRS 755017
REX 521
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 755017 Remote Communication Protocol for Modbus
REX 521
The format of a response to a force single coil or a preset single register function
query is an echo of the query itself:.
9
Modbus Remote Communication Protocol for 1MRS 755017
REX 521
10
1MRS 755017 Remote Communication Protocol for Modbus
REX 521
11
Modbus Remote Communication Protocol for 1MRS 755017
REX 521
Sending other subfunction codes than the ones listed above cause
! an “Illegal data value” response.
12
1MRS 755017 Remote Communication Protocol for Modbus
REX 521
13
Modbus Remote Communication Protocol for 1MRS 755017
REX 521
1
REAL TIME STATE
INPUT X
0
MomChangeDetect_a
CHANGE DETECT
STATE INPUT X
0
14
1MRS 755017 Remote Communication Protocol for Modbus
REX 521
When using RTU mode, every time the parameter “Baud Rate” is
! reconfigured (value is changed) the software of REX recalculates the
default value for the timeout parameter (“End of frame TO”) according
to the standard. Therefore, to manually enforce the timeout value, the
timeout parameter must always be set after configuring the “Baud Rate”
parameter, never before. In this case it is recommended to set the
parameter value for longer timeout than the calculated default value with
the “Baud Rate” parameter in question.
Notice that the Modbus protocol should be selected for the rear port
before the automatic recalculation of the time out value is done.
IR/HR x
instance
IR/HR x+1 DI/CO y+2 (mom.) IR/HR w .bit n+4 (mom.)
IR/HR w .bit n+5 (CD)
NOC3Low DI/CO y+3 (CD)
BI3 BS2
...
BI1 RESERVE
BI2
2b)
3)
1) IR/HR v
DI/CO x (mom.) IR/HR w .bit n (mom.) CO n
DI/CO x+1 (CD) IR/HR w .bit n+1(CD) Direct Open
Direct Close CO n+1
Select Open
Select Close
CO n+2
CO n+3
instance
COIND1 (mom.)
BI4 BINOPEN
BI5 BINCLOSE
IV
CO =coil outputs
DI =digital inputs DI/CO z+2 (CLOSE mom.) IR/HR w .bit n+8 (CLOSE mom.)
HR =holding registers DI/CO z+3 (CD) IR/HR w .bit n+9 (CD)
IR =input registers
mom. =momentary state DI/CO z+4 (FAULTY mom.) IR/HR w .bit n+10 (FAULTY mom.)
CD =change detect DI/CO z+5 (CD) IR/HR w .bit n+11 (CD)
15
Modbus Remote Communication Protocol for 1MRS 755017
REX 521
16
1MRS 755017 Remote Communication Protocol for Modbus
REX 521
The response time for the data listed under Slowly changing and Device data
categories is longer than with other data categories. If possible, it is recommended
to poll Slowly changing and Device data categories less frequently than others to
save the bandwidth.
The application mappings (that is, register and bit addresses) for different standard
configurations of REX 521 are presented in CD-ROM Technical Descriptions of
Functions, rev. 2.7 or later (see See “References” on page 19.)
Table 2.9.-1 Example of application mapping point list (addresses are decimal numbers)
HR/IR address DI/Coil bit
Description Writable Value range Scale Unit
(.bit) address
User defined
MOD_BUS_REX-A, Special register 1 00001
MOD_BUS_REX-A, Special register 2 00002
MOD_BUS_REX-A, Special register 3 00003
… …
MOD_BUS_REX-A, Special register 32 00032
Process data
COCB1-B, Object state 00518
… …
MECU3A-C, IL1 00522 0.0...20000.0 x 10 [A]
MECU3A-C, IL2 00523 0.0...20000.0 x 10 [A]
MECU3A-C, IL3 00524 0.0...20000.0 x 10 [A]
… …
MEVO1A-E, Uo 00529 0...150000 [V]
DIPO-A, Input 1 state 00530.00 00512 0... 1
DIPO-A, Input 1 state CD 00530.01 00513 0... 1
DIPO-A, Input 2 state 00530.02 00514 0... 1
DIPO-A, Input 2 state CD 00530.03 00515 0... 1
… … …
COCB1-B, Object state closed 00537.08 00632
COCB1-B, Object state CD 00537.09 00633
COCB1-B, Object state open 00537.10 00634
COCB1-B, Object state CD 00537.11 00635
COCB1-B, Object state faulty 00537.12 00636
COCB1-B, Object state CD 00537.13 00637
… … …
NOC3LOW-D, Output START 00540.01 00673 0...1
[0 = Not active;
1 = Active]
NOC3LOW-D, Output START CD 00540.02 00674 0...1
[0 = Not active;
1 = Active]
Slowly changing
ERHA-B, Software reset 00541 W 0...1
[0 = 0;
1=Reset;]
… …
17
Modbus Remote Communication Protocol for 1MRS 755017
REX 521
Table 2.9.-1 Example of application mapping point list (addresses are decimal numbers) (Continued)
HR/IR address DI/Coil bit
Description Writable Value range Scale Unit
(.bit) address
DOHA-A, Test mode 00676 0...1
[0=No test;
1=Testing]
Control
COCB1-B, Direct open 08192 W 1=Direct open
COCB1-B, Direct close 08193 W 1=Direct close
… …
Device data
MOD_BUS_REX-A, Device clock register 04096 W
MOD_BUS_REX-A, Device clock register 04097 W
MOD_BUS_REX-A, Device clock register 04098 W
MOD_BUS_REX-A, Device clock register 04099 W
MOD_BUS_REX-A, Device clock register 04100 W
MOD_BUS_REX-A, Device clock register 04101 W
MOD_BUS_REX-A, Device clock register 04102 W
…
Table 2.9.-3 Other REX 521 device data in Modbus application mappings
Address Description
4103 Config build nr, ASCII Chrs 1-2 (HI-LO order)
4104 Config build nr, ASCII Chrs 3-4 (HI-LO order)
4105 Config build nr, ASCII Chrs 5-6 (HI-LO order)
4106 Config build nr, ASCII Chrs 7-8 (HI-LO order)
4107 Config build nr, ASCII Chrs 9-10 (HI-LO order)
4108 Config name, ASCII Chrs 1-2 (HI-LO order)
4109 Config name, ASCII Chrs 3-4 (HI-LO order)
4110 Config name, ASCII Chrs 5-6 (HI-LO order)
4111 Config name, ASCII Chrs 7-8 (HI-LO order)
4112 Config name, ASCII Chrs 9-10 (HI-LO order)
4113 Config revision, ASCII Chrs 1-2 (HI-LO order)
4114 Serial Number, HI_WORD
4115 Serial Number, LO_WORD
18
1MRS 755017 Remote Communication Protocol for Modbus
REX 521
3. References
Manuals for REX 521
Tool-specific manuals
19
Modbus Remote Communication Protocol for 1MRS 755017
REX 521
MODBUS
DEVICE PROFILE DOCUMENT
Vendor Name: ABB Oy Substation Automation
Device Name: REX 521
Device Function: Slave
Modes: RTU
ASCII
20
1MRS 755017 Remote Communication Protocol for Modbus
REX 521
Name Supported
Digital input Yes
Coil Yes
Input register Yes
Holding register Yes
General reference No
Name Supported
Momentary change detect on digital input Yes
21
Modbus Remote Communication Protocol for 1MRS 755017
REX 521
5. Appendix B: Abbreviations
ASCII American Standard Code for Information Interchange
CD Change Detect
CO Coil
CRC Cyclic Redundancy Check
DI Digital Input
HMI Human-machine interface
HR Holding Register
IR Input Register
LRC Longitudinal Redundancy Check
PLC Programmable Logic Controller
POD Protocol Object Dictionary
RTU Remote Terminal Unit
UDR User-Defined Register
22
1MRS 755017 EN 11.2003
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