Professional Documents
Culture Documents
Intelligent Communication
Modules
Manual Release 3
March 1998
Information in this document is subject to change without notice and does not
represent a commitment on the part of Triconex corporation.
Acknowledgments
Modbus is a registered trademark of Modicon Corporation.
Triconex is a registered trademark of Triconex Corporation in the USA and
other countries.
TRISTATION MSW, TriStation 1131, TRICON and TriconLite are
trademarks of Triconex Corporation in the USA and other countries.
All other brands or product names may be trademarks or registered trademarks
of their respective owners.
Disclaimer
Because of the variety of uses for this equipment and because of the
differences between this fault-tolerant equipment and traditional
programmable logic controllers and process controllers, the user of, and those
responsible for applying, this equipment must satisfy themselves as to the
acceptability of each application and the use of the equipment.
To use the product described in this manual, the user should already know how
a PLC operates, and what the control requirements for his current application
are. The user also needs a basic understanding of programming languages for
process controllers. In addition, the user should understand the basic
operations of an IBM-compatible PC, and have a working knowledge of PC
operating systems.
The illustrations, charts, and layout examples shown in this manual are
intended solely to illustrate the text of this manual. Because of the many
variables and requirements associated with any particular installation,
Triconex Corporation cannot assume responsibility or liability for actual use
based upon the illustrative uses and applications.
Personnel who are to install and operate the equipment should carefully study
this manual and any others referred to it prior to installing and/or operating the
equipment. Because Triconex constantly strives to improve its products by
issuing periodic upgrades and new product releases, this manual and the
equipment it describes may be different from the ones already in your
possession.
Triconex Corporation
15091 Bake Parkway
Irvine, CA 92718
(949) 699-2100
(800) 325-2128
About this Manual
Table of Contents
Chapter 1
Introduction
Modbus Slave
Modbus Master
When the ICM is operating as a Modbus master, it controls slave devices such
as annunciators, PLCs, or even other TRICONs (see Figure 1-2).
Modbus Master
Modbus Slave
αλαρµ αλαρµ αλαρµ αλαρµ αλαρµ
Annunciator
TriconLite
Figure 1–2. The ICM as a Modbus Master
The ICM can also operate as a Modbus master and slave simultaneously,
normally using different ports (see Figure 1–3). But, you can also configure
the same port as a Modbus master and slave (see Figure 1–4).
Modbus Master
Host Computer
Modbus Slave
TRICON Controller
αλαρµ αλαρµ αλαρµ αλαρµ αλαρµ
Annunciator
Figure 1–3. The EICM as a Modbus Master and Slave
TRICON TriconLite
Figure 1–4. The ICM and EICM as Modbus Masters and Slaves
Throughout this manual ICM refers to both the ICM and EICM and TRICON
refers to both the TRICON and the TriconLite. See “About This Manual” for
details about the organization of this manual.
Chapter 2
This chapter provides the following information about the TriconLite ICM:
– Physical description
– Configuration instructions
– Installation instructions
2.1.1 Dimensions
The dimensions of the ICM are:
Height............27.3 centimeters (10.7 inches)
Width.............2.5 centimeters (1.0 inches)
Depth.............40.0 centimeters (15.8 inches)
Weight...........1.6 kilograms (3.5 pounds)
You configure the ICM ports using the [F6 CONFIG MODULE] function of
TRISTATION MSW’s Module Configuration [Alt 3] screen. See "Logical
Configuration" on page 2-13 and the TRISTATION MSW User’s Manual for
more information.
PASS
ACTIVE
FAULT
TX RX 1
Serial Port #1
for TRISTATION MSW
(default)
TX RX 2
Serial Port #2
for MODBUS interface
TX RX 3
Serial Port #3
for MODBUS interface
Parallel Port #5
for Centronics-
compatible printer
LOCK
NOTE
The ICM is not a TMR module and is not guaranteed to be fault tolerant
under all conditions.
TRANSMIT TX RECEIVE RX
DESCRIPTION
(1-3) (1-3)
Indicators flash continuously if ICMs are
communicating properly with external devices
Blink Blink such as MODBUS and TRISTATION MSW.
There is one flash per message. Indicators will go
off only if communication with the MODBUS
device or TRISTATION breaks off.
– If your control program uses print functions, you must install an ICM.
TriconLite Chassis
M M M I L R L R L R L R L R
P P P C e i e i e i e i e i TRISTATION MSW PC
M f g f g f g f g f g
A B C t h t h t h t h t h
t t t t t
M M M M M
o M o M o M o M o M
d o d o d o d o d o
u d u d u d u d u d
l u l u l u l u l u
e l e l e l e l e l
e e e e e
Configuration Option 1 — One ICM in COM1 Slot, Five Available I/O Slots
TriconLite Chassis
M M M B I I L R L R L R L R
TRISTATION MSW PC P P P l C C e i e i e i e i
a M M f g f g f g f g
A B C n t h t h t h t h
k t t t t
M M M M
o M o M o M o M
d o d o d o d o
u d u d u d u d
l u l u l u l u
e l e l e l e l
e e e e
Configuration Option 2 — Two ICMs in an I/O Slot, Four Available I/O Slots
2 #6211 2 4
See the TriconLite Planning & Installation Guide for more information about
replacing slot keys.
LICM pppp2
LICM pppp
OFF
1 2 3 4 5 6 7 8
ON
OFF
1 2 3 4 5 6 7 8
ON
OFF
1 2 3 4 5 6 7 8
NOTE
The connectors on the front of the TriconLite are flush with the ICM’s front
panel. To guarantee proper connection to the ICM, the printer cable must
have a molded hood.
6 Unassigned
7 Unassigned
8 Unassigned
9 Unavailable
10 Unassigned
Use [ARROW] keys to move; [ENTER] to edit; [ESC] to exit
Use the arrow keys to select the port or field you want to configure or modify,
then press [Enter] to make choices for that field.
1. The combination Modbus Master and Slave configuration is proprietary. If you need to use this configu-
ration, please contact the Triconex Customer Satisfaction Group.
Data Bits — If you select 7 data bits, the port operates in ASCII mode. If you
select 8 data bits, the port operates in RTU mode. If you are configuring a
combination master and slave, TRISTATION MSW automatically selects 8
data bits for RTU mode. See Chapter 5 for a description of ASCII and RTU
modes.
For memory real and input real variables, you also need to specify MinSpan
and MaxSpan values in TRISTATION MSW’s Dictionary Editor [Alt 2]
screen. MaxSpan and MinSpan are the upper and lower limits of the variable
in engineering units. For more information, see the “Dictionary Editor”
chapter in the TRISTATION MSW User’s Manual for the appropriate system
version.
Chapter 3
This chapter provides the following information about model 4108, 4118,
4119 and 4119A EICMs for TRICON systems:
– A physical description
– Configuration instructions
– Installation instructions
3.1.1 Dimensions
The dimensions of the EICM are:
Height............39.9 centimeters (15.7 inches)
Width.............2.3 centimeters (0.9 inches)
Depth.............42.5 centimeters (16.7 inches)
Weight...........2.3 kilograms (5.0 pounds)
PASS
FAULT
ACTIVE
1TX
1RX
Serial Port #1
for MODBUS interface
2TX
2RX
Serial Port #2
for MODBUS interface
3TX
3RX
Serial Port #3
for MODBUS interface
4TX
4RX
Serial Port #4
for TriStation
(default)
PRT
Parallel Port #5
for Centronics-
compatible printer
EICM
4119
NOTE
The EICM is not a TMR module and is not guaranteed to be fault tolerant
under all conditions.
transmitting, 1RX for Port 1 receiving, 2TX for Port 2 transmitting, and so on.
See Figure 3–1 for the location of the transmit and receive indicators.
4118
9.X 4119
4119A
See the TRICON Planning & Installation Guide for more information about
replacing slot keys.
ICXnnn F01
ICXnnn E01
80188 PROMs
8031 PROMs
IICXnnn B11
80186 PROMs
IICXnnn B01
ICMmmm2
ICMmmm2
Figure 3–4. Layout for Models 4118, 4119 and 4119A TRICON EICMs
Triconex strongly recommends that you use one of the default ports (#4 or #9)
for the TriStation. However, if these ports fail and you cannot replace your
EICM, you can configure Port #1, #2 or #3 as the TriStation interface by
removing the EICM from the chassis and setting the switches as shown in
Figure 3–5. Before downloading the control program, make sure you assign
the correct port number to TriStation using the TriStation 1131‘s TRICON
Configuration editor or the TRISTATION MSW’s Module Configuration
[Alt 3] screen.
TriStation on Port 1 ON
Switch 7 is off
Switch 8 is on
OFF
1 2 3 4 5 6 7 8
TriStation on Port 2 ON
Switch 7 is on
Switch 8 is off
OFF
1 2 3 4 5 6 7 8
TriStation on Port 3 ON
Switches 7 and 8 are on
OFF
1 2 3 4 5 6 7 8
TriStation on Port 4 ON
Switches 7 and 8 are off
(default)
OFF
1 2 3 4 5 6 7 8
ON
OFF
D7 D6 D5 D4 D3 D2 D1 D0
ON
OFF
D7 D6 D5 D4 D3 D2 D1 D0
6 Unassigned
7 Unassigned
8 Unassigned
9 Unavailable
10 Unassigned
Use [ARROW] keys to move; [ENTER] to edit; [ESC] to exit
Use the arrow keys to select the port or field you want to configure or modify,
then press [Enter] to make choices for that field.
1. The combination Modbus Master and Slave configuration is proprietary. If you need to use this configu-
ration, please contact the Triconex Customer Satisfaction Group.
Data Bits — If you select 7 data bits, the port operates in ASCII mode. If you
select 8 data bits, the port operates in RTU mode. If you are configuring a
combination master and slave, TRISTATION MSW automatically selects 8
data bits for RTU mode. See Chapter 5 for a description of ASCII and RTU
modes.
Multipoint RS-232 Mode — On models 4118, 4119 and 4119A, choose
between RS-232 and RS-422 modes using DIP switches on the EICM side
panel (see Figure 3–6). If you select hardware (HRDWR) handshake mode,
the EICM asserts Request to Send (RTS) when it has a message to transmit.
The EICM begins transmission when it receives Clear to Send (CTS) from the
Modbus master. The EICM ignores all characters unless the Modbus master
asserts Data Carrier Detect (DCD). This allows the Modbus master to use
half-duplex modems.
If you select NONE for the handshake mode, the EICM asserts RTS at all
times and ignores CTS and DCD. In other words, characters are transmitted
even if the receiver is not ready. This could result in an overrun state, and the
characters will have to be re-transmitted.
Multipoint RS-422 Mode — On models 4118, 4119 and 4119A, choose
between RS-422 and RS-232 modes using DIP switches on the EICM side
panel (see Figure 3–6). If you select hardware (HRDWR) handshake mode,
the EICM enables its RS-422 transmit driver only when it is sending data. This
is the correct setting for all single pair networks and for slave ports in two-pair,
multipoint networks.
If you select NONE for the handshake mode, the EICM enables its RS-422
transmit driver at all times. This is the correct setting for a Modbus master port
in two pair network and for a slave port in a two-pair, point-to-point network.
Modbus Min and Modbus Max — The TRICON uses the values you place in
these fields to convert real numbers into integers for transmission over
Modbus. Modbus Min and Modbus Max are the lower and upper limits of the
Modbus master’s numeric range. To determine the correct values for Modbus
Min and Modbus Max, see the user’s manual for your Modbus master. The
Modbus Min and Modbus Max values for commonly used Modbus Masters
are:
Modbus Master Min Value Max Value
For individual memory real and input real variables, you can also specify
MinSpan and MaxSpan values in the TRISTATION MSW’s Dictionary
Editor [Alt 2] screen. MaxSpan and MinSpan are the upper and lower limits
of the variable in engineering units. For more information, see the “Dictionary
Editor” chapter in the TRISTATION MSW User’s Manual for the appropriate
system version.
After you install an EICM in a Main Chassis or the first Expansion Chassis,
you must define the protocol for the EICM ports. In TriStation 1131, go to the
TRICON Configuration editor and use the Hardware Allocation screen.
Selecting Setup from the EICM’s Properties dialog displays a screen similar
to the one shown in Figure 3–11.
Select the port you want to configure or modify, then choose protocol options.
3.5.1.2 Modbus
NOTE
In the first release of TriStation 1131, the EICM ports can be configured
only as Modbus slaves. The functionality to configure an EICM port as a
Modbus master or combination master and slave will be available with a fu-
ture release.
When you configure a port as a Modbus slave, TriStation 1131 displays
choices for the following configuration items:
– Slave Address (1 – 247)
– Baud rate (19200, 9600, 4800, 2400 or 1200)
– Data bits (RTU mode or ASCII mode)
– Stop bits (1 or 2)
– Parity (Odd, Even, or None)
– Handshake (None or Hardware)
– Modbus Range: Min (0 – 32767 allowed) and Max (1 – 32767 allowed)
NOTE
All Modbus slaves connected to the same Modbus master port must use the
same baud rate, data bits (mode), parity, and handshake settings.
Slave Address — Enter the slave address (1 through 247) for the port you are
configuring as a Modbus slave.
Baud Rate — The EICM supports an aggregate data rate of 57,600 baud. (In
other words, the total data rate for all four ports must be less than or equal to
57,600.) The available baud rates are: 19200, 9600, 4800, 2400 and 1200.
Data Bits — If you select 7 data bits, the port operates in ASCII mode. If you
select 8 data bits, the port operates in RTU mode. See Chapter 5 for a
description of ASCII and RTU modes.
Multipoint RS-232 Mode — On models 4118, 4119 and 4119A, choose
between RS-232 and RS-422 modes using DIP switches on the EICM side
panel (see Figure 3–6). If you select Hardware (HRDWR) handshake mode,
the EICM asserts Request to Send (RTS) when it has a message to transmit.
The EICM begins transmission when it receives Clear to Send (CTS) from the
Modbus master. The EICM ignores all characters unless the Modbus master
asserts Data Carrier Detect (DCD). This allows the Modbus master to use
half-duplex modems.
If you select None for the handshake mode, the EICM asserts RTS at all times
and ignores CTS and DCD. In other words, characters are transmitted even if
the receiver is not ready. This could result in an overrun state, and the
characters will have to be re-transmitted.
Multipoint RS-422 Mode — On models 4118, 4119 and 4119A, choose
between RS-422 and RS-232 modes using DIP switches on the EICM side
panel (see Figure 3–6). If you select Hardware (HRDWR) handshake mode,
the EICM enables its RS-422 transmit driver only when it is sending data. This
is the correct setting for all single pair networks and for slave ports in two-pair,
multipoint networks.
NOTE
Multipoint RS422 mode is also known as RS-485 mode.
If you select None for the handshake mode, the EICM enables its RS-422
transmit driver at all times. This is the correct setting for a Modbus slave port
in a two-pair, point-to-point network.
Modbus Range — The TRICON uses the values you place in the Min and
Max fields to convert real numbers into integers for transmission over
Modbus. Modbus Min and Modbus Max are the lower and upper limits of the
Modbus master’s numeric range. To determine the correct values for Modbus
Min and Modbus Max, see the user’s manual for your Modbus master. The
Modbus Min and Modbus Max values for commonly used Modbus Masters
are:
Modbus Master Min Value Max Value
For individual memory real and input real variables, may want to specify
MinSpan and MaxSpan values in the TRICON Point Connections screen.
MaxSpan and MinSpan are the upper and lower limits of the variable in
engineering units. For more information, see the TriStation 1131 User’s
Guide.
Sequence of Events Block # — This feature is not implemented in the current
release of TriStation 1131.
Chapter 4
Theory of Operation
This chapter provides general information about ICM operation, and specific
information about the operation of Modbus interfaces. The Modbus-specific
information covers the following topics:
– Query-response sessions
– Exception conditions
– Session execution time
Prepare Query
Process Query
Lookup Data
Prepare Response
Process Response
Number of Variables
Function
1 4 64 125
Scan Time
Function
400 200
Number of Variables 1 4 16
Scan Time (ms) 400 200 400 200 400 200
Function
Chapter 5
Modbus Protocol
This chapter describes the Modbus protocol which the ICM uses to
communicate on a Modbus network. This protocol defines the query and
response exchange which takes place between a Modbus master and its slaves
and defines:
– How the master and slaves establish and break off contact
– How the sender and receiver are identified
– How messages are exchanged in an orderly manner
– How errors are detected
This chapter covers the following topics:
– Selecting a mode of transmission
– Modbus message formats
– Description of message functions
– Error detection and exception responses
– Modbus referencing of TRICON points
RTU Mode
Bytes
1 2 3 4 5 6 7 8
Station Function
Data Data CRC
Address Code
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Station Function
: Data Data LRC CR LF
Address Code
The sections that follow describe the queries. Each description includes the
query name, its function code, a definition, the query format, and the response
format.
The starting address field of a message ranges from 0 to one less than the
number of coils or registers available. The ICM maps the Modbus starting
address field to an alias by adding a constant determined by the function code
as shown in the following table. See Chapter 6 for more information about
aliases.
Function Coil or
Constant
Code Register
01 Coil 1
02 Coil 10001
03 Register 40001
04 Register 30001
05 Coil 1
06 Register 40001
15 Coil 1
16 Register 40001
The Read Coil Status1 query requests the ON/OFF status of a group of logic
coils from a station. You can request the status of as many as 2000 coils with
each query, but some Modbus devices have lower limits. The coils are
numbered starting at 0; for example, coil 0 is alias 1, coil 1 is alias 2, and so
forth.
Read Coil Status Query Format
RTU Mode
Bytes
1 2 3 4 5 6 7 8
Station
0000 0001 Starting Address Number of Coils CRC
Address
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Station
: 0 1 Starting Address Number of Coils LRC CR LF
Address
Data in the Read Coil Status response is packed with one bit for each coil,
where 1 = ON, and 0 = OFF. The low-order bit of the first RTU character
contains the first coil’s status. For coil quantities that are not even multiples of
eight, the last RTU character is zero-filled at the high-order end.
Read Coil Status Response Format
RTU Mode
Bytes
1 2 3 4 n n+1 n+2
∫ ∫
Station
0000 0001 Data Length Data Data CRC
Address
∫ ∫
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 n n+1 n+2 n+3 n+4
∫ ∫
Station
: 0 1 Data Length Data Data LRC CR LF
Address
∫ ∫
1.
The Read Coil Status query is also known as the Read Output Status query.
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Station
: 0 2 Starting Addresses Number of Input Points LRC CR LF
Address
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 n n+1 n+2 n+3 n+4
∫ ∫
Station
: 0 2 Data Length Data Data LRC CR LF
Address
∫ ∫
The Read Holding Registers2 query requests the binary content of holding
registers from a station. You can request the status of as many as 125 registers
with each query, but some Modbus devices have lower limits. The registers
are numbered beginning with 0; for example, register 0 is alias 40001, register
1 is alias 40002, and so forth.
Read Holding Registers Query Format
RTU Mode
Bytes
1 2 3 4 5 6 7 8
Station
0000 0011 Starting Address Number of Registers CRC
Address
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Station
: 0 3 Starting Address Number of Registers LRC CR LF
Address
The Read Holding Registers response data consists of two bytes for each
register queried, with the binary content right-justified. The leftmost character
includes the high-order bits, and the rightmost character includes the
low-order bits.
RTU Mode
Bytes
1 2 3 4 n n+1 n+2
∫ ∫
Station
0000 0011 Data Length Data Data CRC
Address
∫ ∫
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 n n+1 n+2 n+3 n+4
∫ ∫
Station
: 0 3 Data Length Data Data LRC CR LF
Address
∫ ∫
2.
The Read Holding Registers query is also known as the Read Output Registers query.
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Station
: 0 4 Starting Address Number of Registers LRC CR LF
Address
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 n n+1 n+2 n+3 n+4
∫ ∫
Station
: 0 4 Data Length Data Data LRC CR LF
Address
∫ ∫
RTU Mode
Bytes
1 2 3 4 5 6 7 8
Station
0000 0101 Address to Modify Coil Value CRC
Address
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Station
: 0 5 Address to Modify Coil Value LRC CR LF
Address
RTU Mode
Bytes
1 2 3 4 5 6 7 8
Station
0000 0101 Address Modified Coil Value CRC
Address
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Station
: 0 5 Address Modified Coil Value LRC CR LF
Address
RTU Mode
Bytes
1 2 3 4 5 6 7 8
Station
0000 0110 Address to Modify Register Value CRC
Address
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Station
: 0 6 Address to Modify Register Value LRC CR LF
Address
RTU Mode
Bytes
1 2 3 4 5 6 7 8
Station
0000 0110 Address to Modify Register Value CRC
Address
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Station
: 0 6 Address to Modify Register Value LRC CR LF
Address
The Read Exception Status3 returns the status of eight coils from the slave.
Which coils and what they represent depends on the slave. When the ICM
port, configured as a slave, responds to this query it sends the status of the first
eight coils (aliases 00001 through 00008) defined in the TRICON controller.
You can program these coils to hold any type of information; for example,
machine on or off, heads retracted, safeties satisfied, receipt-in-process error
conditions, and so forth.
Read Exception Status Query Format
RTU Mode
Bytes
1 2 3 4
Station
0000 0111 CRC
Address
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9
Station
: 0 7 LRC CR LF
Address
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11
Station
: 0 7 Coil Data LRC CR LF
Address
3.
The ICM, as a Modbus Master, does not support this query.
The Loop Back Diagnostics Test4 query tests the communications link
between the Modbus master and slave. This query does not affect point values
in the slave. When the ICM, acting as a slave, receives this query, it
re-transmits the query as the response.
Loop Back Diagnostics Test Query Format
RTU Mode
Bytes
1 2 3 4 5 6 7 8
Station
0000 1000 Data CRC
Address
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Station
: 0 8 Data LRC CR LF
Address
RTU Mode
Bytes
1 2 3 4 5 6 7 8
Station
0000 1000 Data CRC
Address
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Station
: 0 8 Data LRC CR LF
Address
4.
The ICM, as a Modbus Master, does not support this query.
RTU Mode
Bytes
1 2 3 4 5 6 7 8 n n+1 n+2
∫ ∫
Station Starting Byte Coil Coil
0000 1111 Quantity CRC
Address Address Count Data Data
∫ ∫
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 n n+1n+2 n+3 n+4
∫ ∫
Station Starting Byte Coil Coil
: 0 F
Address
Quantity
Count
LRC CR LF
Address Data Data
∫ ∫
RTU Mode
Bytes
1 2 3 4 5 6 7 8 n n+1 n+2
∫ ∫
Station Starting Byte Coil Coil
0000 1111 Quantity CRC
Address Address Count Data Data
∫ ∫
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 n n+1n+2 n+3 n+4
∫ ∫
Station Starting Byte Coil Coil
: 0 F
Address
Quantity
Count
LRC CR LF
Address Data Data
∫ ∫
RTU Mode
Bytes
1 2 3 4 5 6 7 8 n n+1 n+2
∫ ∫
Station Starting Byte Register Register
0001 0000 Quantity CRC
Address Address Count Data Data
∫ ∫
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 n n+1n+2 n+3 n+4
∫ ∫
Station Starting Byte Register Register
: 1 0
Address
Quantity
Count
LRC CR LF
Address Data Data
∫ ∫
RTU Mode
Bytes
1 2 3 4 5 6 7 8
Station
0001 0000 Starting Address Quantity CRC
Address
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Station
: 1 0 Starting Address Quantity LRC CR LF
Address
x 16 + x 15 + x 2 + 1
The CRC is computed across the station address, the function code, and the
data and then it is appended to the end of the message.
Table 5–2 shows how to calculate the LRC for the sample message presented
earlier in this chapter.
Table 5–2. Sample LRC Checksum Calculation
Message Content Checksum Calculation
Address 0 2 0000 0010
Function Code 0 1 0000 0001
Starting Address (H.O.) 0 0 0000 0000
Starting Address (L.O.) 1 3 0001 0011
Quantity of Points (H.O.) 0 0 0000 0000
Quantity of Points (L.O.) 2 5 + 0010 0101
0011 1011
One’s-Complement: 1100 0100
Add 1: + 0000 0001
Two’s-Complement: 1100 0101
Error Check C 5
RTU Mode
Bytes
1 2 3 4 5 6 7 8 n n+1 n+2
∫ ∫
Station Starting Byte Register Register
0001 0000 Quantity CRC
Address Address Count Data Data
∫ ∫
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 n n+1n+2 n+3 n+4
∫ ∫
Station Starting Byte Register Register
: 1 0
Address
Quantity
Count
LRC CR LF
Address Data Data
∫ ∫
ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11
Station Exception
: 9 0
Code
LRC CR LF
Address
The Modbus master can receive any of the following exception response
codes following an incorrect query:
Table 5–3. Exception Responses
Code Name Description
The requested function is not in the slave’s
01 Illegal Function
repertoire.1
02 Illegal Data Address The address in the query does not exist in the slave.1
03 Illegal Data Value The value in not in the range allowed for the
address.1
06 Busy, Rejected Message The message was received without error, but the
slave is engaged in processing a previous query.
Since the ICM maintains a local copy of the Main Processors’ point-value
database, the frequency of point-value updates to the ICM copy is also
affected by the TRICON scan rate. See the TriStation 1131 User’s Guide or
TRISTATION MSW User’s Manual for more information about the TRICON
scan rate.
Chapter 6
Modbus Aliases
This chapter explains how to use aliases to access TRICON data through an
ICM Modbus slave port and covers the following topics:
– General information on Modbus aliases
– Description of TRICON aliases
– Assigning aliases to TRICON variables
– The last four digits of the alias are the address of the point and can have
any value between 1 and 9999.
The alias for a point must be compatible with the point’s data type. A point
with a mismatched alias returns an incorrect value to a Modbus query. The
first point in a Modbus query must have a corresponding alias defined in the
slave, or the query is rejected.
MRR001
Alias 33001
(16bits)
Byte 0 1
15 0
MRR001
Bit 31 22 15 0
8 bit exponent 23 bit fraction
sign of fraction
So the master can read aliases 35001 and 35002 and combine them to obtain
the real value 119.21.
As shown in the example above, always start with an odd special alias and the
number of values to be read set to 2. If you start with an even special alias, you
will get an incorrect value.
1.
To access additional aliases, increase the memory allocation for the desired point type using the
Memory Allocation window.
The following formula shows how the span and range operate mathematically
upon the real values in your control program:
Modbus Value =
(Real Value – MinSpan) (Modbus Max – Modbus Min ) Modbus Min
(MaxSpan – MinSpan )
To affect all real variables in your control program, specify Modbus Min and
Modbus Max values for the desired ICM port using the [F6 CONFIG
MODULE] function in the Module Configuration [ALT 3] screen. See
Chapters 2 and 3 for information on port configuration.
Example for ICM Interface to Honeywell Data Highway Port (DHP)
The following equation shows how to use the linear conversion formula to
convert a flow rate of 250.0 gallons/minute from a sensor range of 30.0 to
500.0 gallons/minute to an integer for transmission to a Honeywell DHP. (The
normal numeric range for a Honeywell DHP is 0 to 9999.)
Appendix A
Replacing EPROMs
WARNING
ICXnnn F01
ICXnnn E01
80188 PROMs
8031 PROMs
IICXnnn B11
80186 PROMs
IICXnnn B01
ICMmmm2
ICMmmm2
Figure A–2. Layout of Model 4118, 4119 and 4119A TRICON EICMs
LICM pppp2
LICM pppp
WARNING
7. Insert the pins on one side of the EPROM about the socket. Make sure
the pins are properly aligned with the holes.
8. Now insert the pins from the other side of the EPROM into the holes on
the other side of the socket.
9. Press down on the top of the EPROM until all the pins are firmly seated
into their holes.
10. Inspect each pin to make sure it is in its hole properly and not folded
under the EPROM.
Appendix B
WARNING
You should not construct cables solely on the basis of information contained
in this manual. Triconex is not responsible for problems that may be en-
countered if cables are constructed in this manner.
1 1 - Strobe
2 2 + Data Bit 0
3 3 + Data Bit 1
4 4 + Data Bit 2
5 5 + Data Bit 3
6 6 + Data Bit 4
7 7 + Data Bit 5
8 8 + Data Bit 6
9 9 + Data Bit 7
10 10 - Acknowledge
11 11 + Busy
12 12 + P. End (out of paper)
13 13 + Select
14 14 - Auto Feed
15 32 - Error
16 31 - Initialize
17 36 - Select Input
18 - 25 19 - 30, Ground
33
Table B–1. Serial Port Pin-outs for Model 4108 TRICON EICM
Table B–2. Serial Port Pin-outs for Models 4118, 4119 & 4119A TRICON EICM
Table B–3. Serial Port Pin-outs for TriconLite Model 6211 ICM, RS-232 Mode
Table B–4. Serial Port Pin-outs for TriconLite Model 6211 ICM, RS-422 Mode
When RS-232 signals are between +6 and +12 Vdc they are spacing (on or 0);
when they are between -6 and -12 Vdc they are marking (off or 1). The
maximum length of an RS-232 cable is 15 meters (50 feet). You can extend
the length of RS-232 cables using modems. The following table describes the
RS-232 signals as they are used by TRICON and ICM:
RS-422 signals are transmitted over twisted-pair wires. The polarity of the 2-
to-6 volt differential1 between the two wires indicates whether the data is
marking or spacing. The maximum length of an RS-422 cable is dependent
upon the type of cable you use. For example, using 24 awg twisted-pair wire,
the maximum length is 1220 meters (4000 feet). You can extend the length of
RS-422 cables using modems. The following table describes the RS-422
signals as they are used by TRICON and ICM:
1. If terminal A is negative with respect to terminal B, the line is marking. If terminal A is positive with re-
spect to terminal B, the line is spacing.
EICM
Female Connector Female Connector
P1 (25 pins) P2 (25 pins)
Housing (Ground)
TXD 2 3 RXD
RXD 3 2 TXD
DSR 6 20 DTR
DTR 20 6 DSR
Shield Ground
1
NOTE
The 9-pin connector must have a molded hood for proper connection to the ICM.
TriconLite
PC Female Connector
Female Connector P2 (9 pins)
P1 (25 pins) (molded hood)
Housing (Ground)
TXD 2 2 RXD
RXD 3 3 TXD
DSR 6 4 DTR
DTR 20 6 DSR
Shield Ground
1
PC 25-Pin to ICM
Female 9-Pin Adapter Female Connector
Connector P1 (25 pins) P2 (9 pins)
(9 pins)
Housing (Ground)
TXD 3 2 2 RXD
RXD 2 3 3 TXD
RTS 7 4 8 CTS
CTS 8 5 7 RTS
DSR 6 6 4 DTR
DTR 4 20 6 DSR
Shield Ground
1
EICM DHP
Female Female
Connector Connector
J2 (25 pins) J1 (25 pins)
Housing (Ground)
DTR 20 6 DSR
TXD 2 3 RXD
RXD 3 2 TXD
RTS 4 4 RTS
CTS 5 5 CTS
DSR 6 20 DTR
Shield 1 1 Shield
DCD 8 8 DCD
NC 25 25 +5/+12 Vdc
Figure B–5. EICM to Honeywell DHP RS-232 Cable (Part No. 4000041-0xx)
Figure B–6 shows the pin-out for a cable to connect the TriconLite ICM to a
Honeywell DHP. The maximum length of an RS-232 cable is 15 meters (50
feet). You can extend the length of a RS-232 connection by using modems.
TriconLite
DHP Female
Female Connector
Connector J2 (9 pins)
J1 (25 pins) (molded hood)
Housing (Ground)
RXD 3 3 TXD
TXD 2 2 RXD
Signal Ground 7 5 Signal Ground
RTS 4 7 RTS
CTS 5 8 CTS
DTR 20 6 DSR
DSR 6 4 DTR
Shield Ground
1
8
25
Modbus Slave
Master
Modbus Trunk
Master
Models 4118, 4119 and 4119A EICM, and model 6211 ICM serial ports are
configurable for multi-point RS-422 operation without using modems. The
following table shows the RS-422 network specifications:
Item Specification
Nodes One Modbus master and up to 32 slaves
Cable dependent; 1220 meters (4000 feet) maximum using 24 awg
Trunk Length
twisted-pair wire (shielding recommended)
Branch Length 0.6 meters (2 feet) maximum
Data Rate 2400, 4800, 9600, and 19200 bits per second
The network trunk can consist of single or double twisted-pair wires. The
trunk accommodates up to 32 two-foot branches. There is no restriction on the
distance between branches.
When the trunk consists of double twisted pairs, one pair serves as the output
line for the Modbus master (input line to all slaves). The other pair serves as
the input line to the Modbus master (output line from all slaves). When the
trunk consists of a single twisted pair, it serves as both the output and input
lines to the Modbus master and all slaves. Figures B–9 through B–14 show
these connections as you make them at the ICM.
When the ICM is a slave in a multipoint network or when the ICM is a Modbus
master in a single twisted-pair network (point-to-point or multipoint), there
are multiple transmitters connected to the same conductor. No more than one
transmitter can be active at any time or the signal will be garbled.
Therefore, each node must put its transmit driver in the tristate (or off) mode.
You accomplish this for the ICM by setting the handshake mode to HRDWR
using the [F6 CONFIG MODULE] function in TRISTATION MSW’s
[Alt 3] Module Configuration screen, or the Setup dialog box for the ICM
in TriStation 1131’s Hardware Allocation screen.
NOTE
For TRISTATION MSW users only: Triconex does not recommend using
the RS-422 single twisted-pair trunk (point-to-point or multi-point) due to
the possibility of collisions with messages that were just sent. If you must use
a single twisted pair, then you must use TRISTATION MSW’s Module
Configuration [ALT 5] screen to do the following:
1. Configure the EICM port as a Modbus master/slave, even if you are not
going to use the EICM as a Modbus master.
2. Turn on HRDWR Handshake mode for the port.
3. In the control program, use the Modbus Master Write function and
aliases 40001 (Set CTS pre-delay) and 40004 (Set CTS post-delay) to set
the CTS and RTS delays (CTR post-delays) for the EICM’s Modbus
ports. For baud rates of 1200, 2400, 4800, 9600, or 19200, calculate the
RTS delay (CTS post-delay) for the Modbus port as follows:
RTS delay in milliseconds = (48 ÷ baud rate) x 1000
Round the delay up to the nearest whole number of milliseconds. The CTS
pre-delay must be greater than the RTS delay doubled.
Shield 1
SD-A 15
RD-A 22
optional
Signal Ground 7
1 KΩ
SD-B 14
RD-B 21
5 Vdc through 1 KΩ 25 optional
SD-A SD-B
RD-A RD-B
Shield 1
SD-A 3
RD-A 2
optional
Signal Ground 5
1 KΩ
SD-B 7
RD-B 8
5 Vdc through 1 KΩ 9 optional
SD-A SD-B
RD-A RD-B
Shield 1
SD-A 15
RD-A 22
optional
Signal Ground 7
1 KΩ
SD-B 14
RD-B 21
5 Vdc through 1 KΩ 25 optional
Shield 1
SD-A 3
RD-A 2
optional
Signal Ground 5
1 KΩ
SD-B 7
RD-B 8
5 Vdc through 1 KΩ 9 optional
Shield 1
SD-A 15
RD-A 22
optional
Signal Ground 7
1 KΩ
SD-B 14
RD-B 21
5 Vdc through 1 KΩ 25 optional
Shield 1
SD-A 3
RD-A 2
optional
Signal Ground 5
1 KΩ
SD-B 7
RD-B 8
5 Vdc through 1 KΩ 9 optional
2.
These are 150 Ω cables.
* *
Trunk R
* *
Trunk T
SD-A
SD-B
Ground
RD-A
RD-B
+5 Vdc thru 1 KΩ
SD-A
SD-B
Ground
RD-A
RD-B
+5 Vdc thru 1 KΩ
SD-A
SD-B
Ground
RD-A
RD-B
+5 Vdc thru 1 KΩ
SD-A
SD-B
Ground
RD-A
RD-B
+5 Vdc thru 1 KΩ
ICM
Modbus
Master Slave Slave Slave
* *
.01 µf Trunk R .01 µf
* *
.01 µf Trunk T .01 µf
1 KΩ
SD-A
SD-B
Ground
RD-A
RD-B
+5 Vdc thru 1 KΩ
SD-A
SD-B
Ground
RD-A
RD-B
+5 Vdc thru 1 KΩ
SD-A
SD-B
Ground
RD-A
RD-B
+5 Vdc thru 1 KΩ
SD-A
SD-B
Ground
RD-A
RD-B
+5 Vdc thru 1 KΩ
ICM
Modbus
Master Slave Slave Slave
* *
.01 µf Trunk T and R .01 µf
1 KΩ
SD-A
SD-B
Ground
RD-A
RD-B
+5 Vdc thru 1 KΩ
SD-A
SD-B
Ground
RD-A
RD-B
+5 Vdc thru 1 KΩ
SD-A
SD-B
Ground
RD-A
RD-B
+5 Vdc thru 1 KΩ
SD-A
SD-B
Ground
RD-A
RD-B
+5 Vdc thru 1 KΩ
Modbus ICM
Master Slave Slave Slave
Index
A E
ACTIVE indicator, 2-4, 3-4 EICM, 3-1
address configuration rules, 3-6
station, 5-3 dimensions, 3-2
alias, 6-1, 6-2, 6-3, 6-5 front panel, 3-3
assigning, 6-6, 6-7 Modbus device
ASCII mode, 2-15, 3-14, 3-18, 5-3 connection, 3-11
assigning aliases, 6-6, 6-7 parallel ports, 3-15, 3-19
port configuration, 3-12, 3-16
B port numbers, 3-7
baud rate, 2-15, 3-13, 3-17 power module load, 3-5
C serial ports, 3-12, 3-16
cable selection, B-21 slot keys, 3-6
status indicators, 3-4
cable termination, B-22
switches, 3-7
checksum, 5-3
Enhanced Intelligent
clear to send, B-7
configuration Communications Module,
EICM ports, 3-12, 3-16 See EICM, ICM
ICM ports, 2-13 EPROM updates, A-1
errors
RS-422 interface, B-14
configuration rules transmission, 5-16
exception conditions, 4-2
EICM, 3-6
exception response, 5-19
ICM, 2-6
CR field, 5-3 F
CRC error check, 5-17 fail-safe timer, 4-2, 4-3
CTS designator, B-7 FAULT indicator, 2-4, 3-4
cyclic redundancy check, See CRC fields
D message, 5-3
data bits, 2-15, 3-14, 3-18 Force Multiple Coils, 5-14
Force Single Coil, 5-10
data carrier detect, B-7
function code, 5-3
data field, 5-3
data rate, 1-1 H
data types, 6-5 hardware handshake mode, 2-16,
DCD designator, B-7 3-14, 3-18, B-15
dimensions HRDWR handshake mode, 2-16,
EICM, 3-2 3-14, 3-18, B-15
ICM, 2-2
I O
I/O module, 6-5 output points, 6-2, 6-6, 6-7
ICM, 1-1, 2-1
configuration rules, 2-6 P
front panel, 2-3 parallel port
Modbus device EICM, 3-15, 3-19
connection, 2-13 ICM, 2-2
port configuration, 2-13 parity checking, 5-16
port numbers, 2-8 PASS indicator, 2-4, 3-4
serial ports, 2-14 performance considerations, 5-21
slot keys, 2-8 pin-out for
status indicators, 2-4 25-pin to 9-pin adapter, B-11
switches, 2-9 EICM to Honeywell DHP
input points, 6-2, 6-6, 6-7 cable, B-12
integers, 6-3 EICM to TriStation cable, B-9
Intelligent Communications ICM to Honeywell DHP
Module, See ICM cable, B-13
ICM TriStation cable, B-10
L model #6211
LF field, 5-3 serial port
LOCK indicator, 2-4 RS-232 mode, B-6
longitudinal redundancy check, model 4108
See LRC serial port, B-4
Loop Back Diagnostics Test, 5-13 model 4118
LRC checksum, 5-18 serial port, B-5
model 4119
M serial port, B-5
master, 1-1, 1-2 model 6211
memory variables, 6-2, 6-6, 6-7 serial port
message fields, 5-3 RS-422 mode, B-6
message format, 5-2 printer cable, B-2
message header, 5-3 point-to-point configuration, B-14
message, See query port numbers
MinSpan value, 6-8 EICM, 3-7
Modbus master, 1-1, 1-2 ICM, 2-8
Modbus Max value, 2-16, 3-15, 3-19 power module load
Modbus Min value, 2-16, 3-15, 3-19 EICM, 3-5
multipoint connection, B-14 ICM, 2-6
Preset Multiple Registers, 5-15
N Preset Single Register, 5-11
noise, 5-16