AO2020 Modbus Map
AO2020 Modbus Map
AO2020 Modbus Map
Page
Description
Application Information from the AO2000 gas analyzer can be transferred to a PC or DCS via
the Modbus. Measurement values, status signals and also signals of analog and
digital inputs and outputs are thus available for further usage.
Using the AO-MDDE server the signals can be integrated into standard software
(e.g. Excel, Visual Basic or LabVIEW). For further information, see Chapter 3
AO-MDDE Server and Demo Programs, page 29. AO-MDDE can be downloaded
from the CD-ROM which is delivered together with each gas analyzer. AO-MDDE
does not support Modbus over TCP/IP.
Basic documents Modbus Application Protocol Specification V1.1b, December 28, 2006
Modbus over Serial Line Specification and Implementation Guide V1.02,
December 20, 2006
Modbus Messaging on TCP/IP Implementation Guide V1.0b, October 24, 2006
These documents are available at http://www.modbus.org/specs.php.
Interfaces and The RS232 and the RS485 interface located on the RS232/ RS485 module in
Connection Versions AO2000 are supported, where only one can be operated at a time. Connection
versions are described in Chapter 2 Setting Modbus Parameters and Connection,
page 18.
As an alternative, the Ethernet 10/100BASE-T interface can be used for data
transmission via Modbus TCP/IP protocol (from software version 5.1, see page 7).
Data Transfer For data transfer a combination of frames is used, that consists of 1/0 information,
united to one or more telegrams.
Frame The transfer values are decomposed in bytes (= 8 bit). Each of these bytes is
completed by one start-bit, possibly one parity-bit (even number of 1) and one
stop-bit. In the following description the term byte will be used, even if ten or
eleven bits will be transferred including the start-, stop- and parity-bits.
Admissible Addresses As addresses for the participants of the bus the numbers 1 to 255 are admitted.
The address 0 is the global address (broadcast-address). When this address will
be used in a telegram, all participants accept this telegram without an acknowledg-
ment to the master.
Check Sum The check sum is calculated over all bytes of one telegram without the start-,
stop- and parity-bits.
Transfer Rules The neutral position of the data line corresponds with the logical 1.
A distance of more than 3.5 bytes, however at least 10 ms is defined as separation
between two telegrams. For the beginning of the data transfer the neutral position
of the data line must be observed.
Integration The AO2000 Modbus/TCP server expects requests from the current IP addresses
via the communication port. A maximum of 4 clients can be connected to the
Modbus/TCP server of an AO2000 at the same time. If the connection to a client
breaks down, the connection status in the Modbus/TCP server is enabled again
after a max. 60 seconds.
Reading out data The following procedure must be executed on the Modbus client, in order to
from the AO2000 receive data from the AO2000 Modbus/TCP server:
Modbus/TCP server
1. Establish a TCP connection to port 502 on the server.
2. Create a Modbus request.
3. Send the Modbus request incl. the Modbus/TCP MBAP Header.
4. Wait for a response to the same TCP connection.
5. Read the first 6 bytes of the response; these state the length of the response.
6. Read the remaining bytes of the response.
Functions, addresses The supported functions and the addresses and registers of Modbus over TCP/IP
and registers are equivalent to those of Modbus over RS232/RS485.
Modbus-Protocol and The Modbus-protocol allows only 16-bit-registers as transfer values. Some of the
IEEE 754-Format AO2000 data is stored in the IEEE 754-Format (32 bit). For this reason the data
must be processed by the interrogating device..
Example The number 12.5 is stored as the hexadecimal value 0xC1480000. The following
table shows the storage configuration:
Address +0 +1 +2 +3
format SEEEEEEE EMMMMMMM MMMMMMMM MMMMMMMM
binary 11000001 01001000 00000000 00000000
hexadecimal C1 48 00 00
Principle The AO2000 series gas analyzers are modular and very flexible. A gas analyzer
can consist of one or more analyzer modules which in itself can measure one or
more components. It is also possible to connect different kinds of I/O-modules
and I/O-boards to a device. For this reason the Modbus addressing schema is not
static.
Data Format There are six flexible groups, four configurable groups and two fixed length groups
of information defined in a AO2000 gas analyzer.
The grouped information can be read through Single Modbus Request.
Measurement Values The measurement values are transmitted in the IEEE 32 bit standard floating point
format. The floating point format is not a part of the Modbus specification. AO2000
devices use two word registers to represent a floating point value (high word, low
word).
Analog Inputs Analog inputs (AI) are transmitted in the IEEE 32 bit standard floating point format.
The floating point format is not a part of the Modbus specification. AO2000 devices
use two word registers to represent a floating point value (high word, low word).
Analog Outputs Analog outputs (AO) are transmitted in the IEEE 32 bit standard floating point
format. The floating point format is not a part of the Modbus specification. AO2000
devices use two word registers to represent a floating point value (high word, low
word).
Digital Inputs The Modbus master has only read access to digital input values (DI).
Digital Outputs The Modbus master has only read access to digital output values (DO).
Bus Analog Inputs Bus analog inputs (Bus AI) are transmitted in the IEEE 32 bit standard floating
point format. The floating point format is not a part of the Modbus specification.
AO2000 devices use two word registers to represent a floating point value (high
word, low word).
Bus AIs can be read and written by the Modbus Master. They can be used like
physical (real) AIs when configuring function blocks 1). The Master has access to
the configured variables (holding register) and uses function code 3 to read them.
Due to the 32-bit register, the variables can only be written using function code 16.
A maximum of 50 Bus AIs can be configured.
A waiting period of 250 msec per analog input should be observed after writing the
Bus AIs.
Bus Analog Outputs Bus analog outputs (Bus AO) are transmitted in the IEEE 32 bit standard floating
point format. The floating point format is not a part of the Modbus specification.
AO2000 devices use two word registers to represent a floating point value (high
word, low word).
Bus AOs can be used like physical (real) AOs when configuring function blocks.
A maximum of 50 Bus AOs can be configured.
Bus Digital Inputs Bus digital inputs (Bus DI) are bit variables in the gas analyzer. The Modbus master
has read and write access to these variables.
Bus DIs can be used like physical (real) DIs when configuring function blocks.
The master has access to all configured variables and uses function code 1 to read
and 5 or 15 to write the variables. A maximum of 50 Bus DIs can be configured.
Bus Digital Outputs Bus digital outputs (Bus DO) are bit variables in the gas analyzer which can only be
read by the Modbus master.
Bus DOs can be used like physical (real) DOs when configuring function blocks.
A maximum of 50 Bus DOs can be configured.
Configuration The Modbus has read access to the configuration register. By means of the this
register, a Master can determine how many components, AIs, AOs, etc. have been
installed in the gas analyzer. The data are represented as 16-bit integers.
Status The Modbus has read access to the three status values.
Reading out the The Modbus interface includes a structure for each component which enables the
calibration data setpoints and actual values, the measuring range and the date of the last
calibration to be read out.
The system time of the AO2000 is used as a time-stamp. If a calibration has not
yet been carried out, 0 is transmitted as a time-stamp and 0 as a measuring
range.
The time-stamp of the structure must be periodically read at least, in order to
record a change.
The setpoints and the actual values are transmitted in the unit of the measured
value. If the unit of the component is changed, the transmitted values are also
changed.
Mapping the The following parameters are made available for each component via the Modbus.
calibration data All the registers are based on a Modbus 16-bit "input register".
The setpoints and actual values are transmitted in the IEEE 32-bit floating-point
format. Two word registers are used to represent a floating-point value.
The measuring range is transmitted as a consecutive number 1-4.
Figure 1
Example of a
transmission with
Modbus DDE server
Data of a calibration read with the Modbus DDE server (see also page 29):
Current measured value of component 1 133.8980 [unit of component 1]
Last calibration:
Component 1 at zero point
Measuring range 1
on 20.07.2010 at 13:29:30
Setpoint 134.3499 [Unit of component 1]
Actual value 397.0912 [Unit of component 1]
Component 1 at end-point
Measuring range 1
on 20.07.2010 at 13:31:35
Setpoint 3486.0181 [Unit of component 1]
Actual value 9963.1553 [Unit of component 1]
The function "Mapping the calibration data for QAL3" is not available in these
analyzer modules: Limas11, Uras14, Magnos16, Magnos106, Caldos15, Caldos17,
and MultiFID14.
Modbus Parameters
Figure 2
Modbus
Configuration
in AO2000
Function The gas analyzer can be connected to a network with Modbus protocol via the
RS232 or the RS485 interface.
The RS232/RS485 module must be installed in the gas analyzer. Only then the
Modbus menu item is displayed.
As an alternative, the Ethernet 10/100BASE-T interface can be used for data
transmission via Modbus TCP/IP protocol (from software version 5.1, see page 7).
Request interval The request response of AO2000 is < 500 ms. Therefore the times for the time-out-
supervision in the master should be > 500 ms (recommendation: 1 s). Between two
faultless requests a minimum waiting time of 100 ms needs to be kept.
"Modbus map" The "Modbus map" sub-menu is integrated in the menu Configure System
sub-menu Network Modbus, in order to provide an overview of the addresses of the
Modbus registers.
Entry to the Modbus map menu with a Modbus module installed:
Figure 3
Modbus
configuration menu
If a Modbus module has not been installed, the Modbus map menu is directly
available in the network menu:
Figure 4
Network menu
In both cases, the sub-menu for displaying the Modbus registers is called by
pressing the ENTER key.
Figure 5
Sub-menu for
displaying the
Modbus registers
This general menu is subdivided into the Modbus main register groups:
Input register (input)
Status
Holding register (holding)
Coils
The AO2000 elements associated with the respective group and their number are
listed in the Modbus register groups. If the number is > 0, elements exist, and the
respective menu can be called by pressing the ENTER key (see the following
example).
Figure 6
Example: Modbus
analog outputs
An overview line with the component name followed by the parameters associated
with this component are shown in the calibration data display:
Figure 7
Example:
Calibration data
Action required to If the generation or deletion of sample components has been provided for in the
generate or delete configuration of a measuring detector (currently only in Fidas24), this results in a
components change to the analyzer configuration and therefore also in a change in the number
and registers of the measured values. A generated component is added to the
components of the associated detector. All the other components are conse-
quently shifted.
Assigning Input and The assignment of input and output signals to Modbus addresses depends on
Output Signals to the number of input and output signals available on the I/O modules and I/O
Modbus Addresses boards in the gas analyzer and
the sequence in which the I/O modules and I/O boards have been registered in
the gas analyzer.
All existing inputs and outputs are mapped to the Modbus irrespective of their
assignment to signals.
Note: The Modbus address assignment does not depend on the slot on which the
I/O modules and I/O boards are installed.
Procedure In principle proceed as follows to assign input and output signals to Modbus
addresses for software versions < 5.1:
Step Action
1 Determine the sequence of the I/O modules and I/O boards.
2 Determine the respective numbers of the input and output signals.
3 Assign input and output signals to Modbus addresses.
Step 1: Determine the Use the system overview menu item to determine the sequence in which the I/O
Sequence of the modules and I/O boards have been registered in the gas analyzer (see Fig. 8).
I/O Modules and
Menu path: MENU Diagnostic/Information System overview
I/O Boards.
Figure 8
System Overview
(Example)
Step 2: The numbers of the input and output signals can be obtained from the digital and
Determine the analog input and output function block lists.
Numbers of the Input
Menu path (example, see also Fig. 2): MENU Configure Function
and Output Signals
blocks Inputs Digital input
The inputs and outputs are listed in the registration sequence from the bottom up.
Enumerate the list accordingly from the bottom up to determine the number of an
input or output signal.
In the example shown in Fig. 9, digital input 2 on digital I/O board 3 has the
consecutive number 7.
Figure 9
Digital Input
Function Blocks
(Example)
Step 3: Assign the number determined in step 2 to a Modbus address in that Modbus
Assign Input and address list which corresponds to the input or output signal type. Enumerate this
Output Signals to list top down to determine the address.
Modbus Addresses
In the digital input address list (see page 11), Modbus address 10022 is assigned
to number 7 determined in the above example.
Connecting Connect the Modbus master to the RS232 interface of the gas analyzer. This con-
nection only provides a point to point access (e.g. AO2000 and a PC, see Fig. 10).
Figure 10
Connection via the
RS232 Interface
Figure 11 2 RxD
1 2 3 4 5 3 TxD
Pin Configuration
5 GND
of the AO2000 6 7 8 9
RS232 Interface Type: 9-pin male Sub-D connector
Materials Needed A cable with two 9-pin female Sub-D connectors, pins 2 and 3 twisted pair, is
needed for connecting.
Figure 12
Connection via the
RS485 Interface
RC Termination RC Termination
Plug T-Connection T-Connection Plug
T-Connection
Figure 13 2 RTxD
5 4 3 2 1
3 RTxD+
Pin configuration
5 GND
of the AO2000 9 8 7 6
RS485 Interface Type: 9-pin female Sub-D connector
Materials Needed See Section Components for RS485 Connection, page 27.
Cable Type A three lines twisted pair cable e.g. Thomas & Betts Type LiYCY, 0.25 mm2 is used
for the Modbus connection. The max. cable length is limited to 1200 m.
Signal Converter If the PC has no RS485 interface, an RS232/ RS485 signal converter must be
linked between the PC and the Modbus network.
Technical details are depicted in Fig. 8. Note the input circuit of a Modbus slave.
Any internal termination need to be disconnected. AC termination is only allowed
at the cable ends using the RC termination plugs.
You can also use other cables and connectors as long as they correspond to the
specifications in Fig. 14.
0,1 uF 0,1 uF
RTXD-
3 5 2
200 k 200 k
5V
RTXD+ RTXD- RTXD+ RTXD-
GND .......... GND
EasyLine
AO2000 3rd party product
connected via connected via
T connection T connection
T-connection
1 2 3
2
3
5
1
1 2 3 4
6
Not used 7
8
9
Socket connector
UNC 4-40
Arrangem. of contacts 2
Connection 1 - 1
1 3
Colour gn Pin 1
Colour br Pin 2
Colour wh Pin 3
1 5
Arrangem. of contacts
6 9
Sub-D connector
Figure 16
100 nF
120 Ohm
1 2
RC Termination Plug
Coding Connection
Resistor 120 Ohm an Pin 1
Capacity 100 nF an Pin 2
Not used Pin 3
Arrangem. of contacts 2
3 1
Modbus Connections When using this type of cable one has to specify the desired length. Furthermore
with User Defined the connectors and the cable come as a set that need to be assembled. Two types
Cable Length of cables can be assembled.
connection between two T-connections (pin connectors at each end)
extension cord (pin and socket connector)
Variable Connections
Pin Socket
Catalog No.
Cable with variable length 24009-4-0746622
Pin connector 24009-4-0746318
Socket connector 24009-4-0746471
Cables with This option allows ordering cables of three different lengths. The cable can be
Predefined Length used to connect two T-connections.
Figure 18
Cables with
Predefined Length
Coding
Colour gn Pin 1
Colour br Pin 2
Colour wh Pin 3
Description
Application The AO-MDDE server is an effective and easy-to-use tool for integrating AO2000
signals into standard software through the RS232 or the RS485 interface (AO-
MDDE does not support Modbus over TCP/IP). Measured values, status signals
and the signals of the analog and digital inputs and outputs can be easily
integrated e.g. in Microsoft Excel or Microsoft Visual Basic and visualized.
AO-MDDE can be downloaded from the CD-ROM which is delivered together with
each gas analyzer.
Both demo programs are intended to show by example how AO2000 can be
linked to standard PC programs. Neither the transfer nor the storage of data can
be regarded as fail-safe. Modbus knowledge is not necessary for demo program
operation. Demo programs do not support Modbus over TCP/IP. ABB offers no
support for the demo programs.
Installation
AO-MDDE Start Start the AO-MDDE server in the Start menu or by running the program
OPTIMDDE.EXE. Please refer to the integrated help function for further information
about AO-MDDE.
Check that the bus transfer rates on the gas analyzer and the PC are identical.
Open the device description AODEF.DDB or AODEF_KOMP20.DDB and select the
desired variables (see Figure 19). After this the data are transferred (see Figure 20).
Figure 19
Selection of Variables
(Example)
Figure 20
Device Description
(Example)
Application The LabVIEW demo program presents a possible digital and trend display for data
visualization.
LabVIEW Demo Start the demo program in the Start menu or by opening the file AOMDDEMO.EXE
Program Start on your PC. The AO-MDDE server is started automatically by the demo program.
Basic Settings in In the File Open device description menu: Open the device description
AO-MDDE-Server file.
In the Device Communication parameters menu: Deactivate the function
Bundle couple of registers on the Protocol tab.
Figure 21
LabVIEW
Demo Program
(Example)
Excel Demo Start the demo program in the Start menu or by opening the file AO-DDESE.XLS
Program Start on your PC. The AO-MDDE server is started automatically by the demo program.
Basic Settings in In the File Open device description menu: Open the device description
AO-MDDE-Server file.
In the Device Communication parameters menu: Deactivate the function
Bundle couple of registers on the Protocol tab.
Figure 22
Excel Demo Program
(Example)
Integration of The integration of information into standard software such as Microsoft Excel is
Information straightforward: Select the required data field in AO-MDDE (see Fig. 19), copy it to
the clipboard, select the required program, paste and the data should appear
and be ready for further processing. Please refer to the integrated help function for
further information about AO-MDDE.
ABB 2016