You are on page 1of 123

User’s Manual for Triconex

Intelligent Communication
Modules

Manual Release 3
March 1998

for use with

Version 8 and 9 TRICON Systems


Version 2 TriconLite Systems

Part No. 9720047-003


User’s Manual for Triconex Intelligent Communication Modules

© Copyright 1994-1998 Triconex Corporation. All Rights Reserved.


Printed in the United States of America.

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.

In no event will Triconex Corporation be responsible or liable for direct,


indirect, or consequential damages resulting from the use or application of this
equipment.

TRICONEX CORPORATION DISCLAIMS ANY IMPLIED WARRANTY


OF FITNESS FOR A PARTICULAR PURPOSE.

No patent or copyright liability is assumed by Triconex Corporation with


respect to the use of information, circuits, equipment, or software described in
the text.

Reproduction of the content of this manual, in whole or part, without written


permission of Triconex Corporation, is prohibited.
Warning
To ensure that the equipment described in this manual, as well as the
equipment connected to and used with it, operates satisfactorily and safely, all
local and national codes and standards that apply to installing and operating
the equipment must be followed. At a minimum, these include the National
Fire Code, National Electrical Code, and the codes of the National Electrical
Manufacturers Association (NEMA). Since codes and standards can vary
geographically and can change with time, it is your responsibility to determine
which ones apply to your specific case, and to comply with them. If necessary,
please contact your local Fire Marshall and Electrical Inspector for assistance.

FAILURE TO COMPLY WITH APPLICABLE CODES AND


STANDARDS CAN RESULT IN DAMAGE TO EQUIPMENT AND/OR
SERIOUS INJURY TO PERSONNEL.

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.

If you have questions regarding the installation or operation of the equipment,


or if more information is desired, please contact:

Triconex Corporation
15091 Bake Parkway
Irvine, CA 92718
(949) 699-2100
(800) 325-2128
About this Manual

This manual describes the Intelligent Communication Module (ICM) of which


there are four models. The following table summarizes the differences among
the various models.
500 VDC Port
Model # System RS-232 Interface RS-422 Interface
Isolation
4108 EICM V8 TRICON ✓
4118 EICM V8 TRICON ✓ ✓ ✓
4119 EICM ✓ ✓ ✓
V9.X TRICON
4119A EICM ✓ ✓ ✓

6211 ICM V2 TriconLite ✓ ✓ ✓

Throughout this manual, the following naming conventions are used:


– ICM refers to both the ICM and EICM
– TRICON refers to both the TRICON and the TriconLite systems
– TriStation refers to both the TRISTATION Multi-System Workstation
(MSW) and TriStation 1131 Developer’s Workbench
When differences among the products exist, they are described in one of the
following two ways.

Major differences — Separate chapters, sections, and appendixes are


provided. For example:
Chapter 2 The TriconLite ICM
Chapter 3 The TRICON EICM
Section 3.4 Logical Configuration in TRISTATION MSW
Section 3.5 Logical Configuration in TriStation 1131
Minor differences — A note such as “For V2.0 TriconLite systems only…”
is added to applicable paragraphs, sentences or items.
Graphic symbols and explanations:

Alerts the user to the presence of important operating and


maintenance (servicing) instructions.

Alerts the user to the presence of uninsulated “dangerous voltage”


within the TRICON’s enclosure that may be of sufficient
magnitude to constitute a risk of electric shock to persons.
i

Table of Contents

CHAPTER 1. INTRODUCTION ...................................................... 1-1


1.1 Compatible Hardware & Software ............................................ 1-3
1.2 Brief Physical Description ......................................................... 1-4
1.3 The TRISTATION Interface ..................................................... 1-4
1.4 Overview of Modbus Communications ..................................... 1-4

CHAPTER 2. THE TRICONLITE ICM .......................................... 2-1


2.1 Physical Description .................................................................. 2-1
2.1.1 Dimensions ................................................................... 2-2
2.1.2 ICM Ports ...................................................................... 2-2
2.1.3 Module Status Indicators .............................................. 2-4
2.1.4 Transmit and Receive Status Indicators ........................ 2-5
2.1.5 Configuration Switches ................................................. 2-5
2.1.6 Environmental Specifications ....................................... 2-5
2.1.7 Power Module Load ...................................................... 2-6
2.2 Configuration Rules ................................................................... 2-6
2.3 Physical Configuration .............................................................. 2-8
2.3.1 Slot Keys ....................................................................... 2-8
2.3.2 ICM Port Numbers ........................................................ 2-8
2.3.3 Setting Up the TriStation Interface ............................... 2-9
2.3.4 Selecting RS-232 and RS-422 Interfaces .................... 2-11
2.3.5 Connecting to a Printer ............................................... 2-12
2.3.6 Connecting to a Modbus Device ................................. 2-13
2.4 Logical Configuration .............................................................. 2-13
2.4.1 Serial Ports .................................................................. 2-14
2.4.1.1 Unassigned, TRISTATION and Debug.......... 2-14
2.4.1.2 Modbus Master and Slave............................... 2-14
2.4.2 Parallel Ports ............................................................... 2-17

ICM User’s Guide Manual Release 3 March 1998


ii

CHAPTER 3. THE TRICON EICM ................................................. 3-1


3.1 Physical Description .................................................................. 3-1
3.1.1 Dimensions ................................................................... 3-2
3.1.2 EICM Ports ................................................................... 3-2
3.1.3 Module Status Indicators .............................................. 3-4
3.1.4 Transmit and Receive Status Indicators ........................ 3-4
3.1.5 Configuration Switches ................................................. 3-5
3.1.6 Environmental Specifications ....................................... 3-5
3.1.7 Power Module Load ...................................................... 3-5
3.2 Configuration Rules ................................................................... 3-6
3.3 Physical Configuration .............................................................. 3-6
3.3.1 Slot Keys ....................................................................... 3-6
3.3.2 EICM Port Numbers ..................................................... 3-7
3.3.3 Setting Up the TriStation Interface ............................... 3-7
3.3.4 Selecting RS-232 and RS-422 Interfaces .................... 3-10
3.3.5 Connecting to a Printer ............................................... 3-11
3.3.6 Connecting to a Modbus Device ................................. 3-11
3.4 Logical Configuration in TRISTATION MSW ...................... 3-12
3.4.1 Serial Ports .................................................................. 3-12
3.4.1.1 Unassigned, TRISTATION and Debug.......... 3-12
3.4.1.2 Modbus Master and Slave............................... 3-13
3.4.2 Parallel Ports ............................................................... 3-15
3.5 Logical Configuration in TriStation 1131 ............................... 3-16
3.5.1 Serial Ports .................................................................. 3-16
3.5.1.1 Not Configured, TriStation 1131 and Debug . 3-16
3.5.1.2 Modbus ........................................................... 3-17
3.5.2 Parallel Ports ............................................................... 3-19

CHAPTER 4. THEORY OF OPERATION ..................................... 4-1


4.1 General Operation ...................................................................... 4-1
4.2 Modbus Operation ..................................................................... 4-1
4.2.1 Query-Response Sessions ............................................. 4-2
4.2.2 Exception Conditions .................................................... 4-2
4.2.2.1 Slave Detected Exceptions................................ 4-2
4.2.2.2 ICM Detected Exceptions ................................. 4-3
4.2.2.3 Master Detected Exceptions ............................. 4-3
4.2.3 Session Execution Time ................................................ 4-4
4.2.3.1 Transmission Time ........................................... 4-4
4.2.3.2 Query Processing Time..................................... 4-4

ICM User’s Guide Manual Release 3 March 1998


iii

CHAPTER 5. MODBUS PROTOCOL ............................................. 5-1


5.1 Selecting a Mode of Transmission ............................................ 5-1
5.1.1 RTU Mode .................................................................... 5-2
5.1.2 ASCII Mode .................................................................. 5-2
5.2 Modbus Message Formats ......................................................... 5-2
5.2.1 Message Fields .............................................................. 5-3
5.2.1.1 Header Field (ASCII Only)............................... 5-3
5.2.1.2 Station Address Field........................................ 5-3
5.2.1.3 Function Code Field.......................................... 5-3
5.2.1.4 Data Fields ........................................................ 5-3
5.2.1.5 Checksum Field ................................................ 5-3
5.2.1.6 CR Field (ASCII Only) and
LF Field (ASCII Only) ..................................... 5-3
5.2.2 Sample Query and Response ........................................ 5-4
5.3 Modbus Functions ..................................................................... 5-5
5.3.1 Read Coil Status (Function Code 01) ........................... 5-6
5.3.2 Read Input Status (Function 02) ................................... 5-7
5.3.3 Read Holding Registers (Function Code 03) ................ 5-8
5.3.4 Read Input Registers (Function Code 04) ..................... 5-9
5.3.5 Force Single Coil (Function Code 05) ........................ 5-10
5.3.6 Preset Single Register (Function Code 06) ................. 5-11
5.3.7 Read Exception Status (Function Code 07) ................ 5-12
5.3.8 Loop-Back Diagnostic Test (Function 08) ................. 5-13
5.3.9 Force Multiple Coils (Function Code 15) ................... 5-14
5.3.10Preset Multiple Registers (Function Code 16) ............ 5-15
5.4 Error Detection and Exception Responses .............................. 5-16
5.4.1 Transmission Errors .................................................... 5-16
5.4.2 CRC and LRC Calculation ......................................... 5-17
5.4.2.1 CRC Error Check — RTU Mode ................... 5-17
5.4.2.2 LRC Error Check — ASCII Mode ................. 5-18
5.4.3 Exception Responses .................................................. 5-19
5.5 Performance Considerations .................................................... 5-21

ICM User’s Guide Manual Release 3 March 1998


iv

CHAPTER 6. MODBUS ALIASES ................................................... 6-1


6.1 General Information on Modbus Aliases ................................... 6-1
6.2 TRICON Aliases ........................................................................ 6-2
6.2.1 Registers and Integers ................................................... 6-3
6.2.2 Real Variables ............................................................... 6-3
6.2.2.1 Reading a Real Variable ................................... 6-4
6.2.2.2 Reading Multiple Real Variables...................... 6-5
6.2.3 Data Types for TRICON Points .................................... 6-5
6.3 Assigning Aliases in TRISTATION MSW ............................... 6-6
6.3.1 Input, Output and System Points .................................. 6-6
6.3.2 Memory Variables ........................................................ 6-6
6.4 Assigning Aliases in TriStation 1131 ....................................... 6-7
6.4.1 Fixed Aliases for Input and Output Points .................... 6-7
6.4.2 Selecting Aliases for Memory Points ........................... 6-7
6.5 Scaling of Real Values ............................................................... 6-8
6.5.1 For TRISTATION MSW .............................................. 6-8
6.5.2 For TriStation 1131 ...................................................... 6-9

APPENDIX A. REPLACING EPROMS .......................................... A-1


A.1 Availability of Firmware Updates ............................................. A-1
A.2 Locating the EPROMs on the EICM ......................................... A-1
A.3 Locating the EPROMs on the ICM ........................................... A-3
A.4 Identifying EPROMs ................................................................. A-4
A.5 Replacing EPROMs ................................................................... A-4

APPENDIX B. PIN-OUTS FOR ICM CONNECTORS ................. B-1


B.1 Printer Cable .............................................................................. B-2
B.2 Serial Ports ................................................................................. B-3
B.3 TriStation Communication Cable .............................................. B-9
B.4 TriStation RS-232 Cable .......................................................... B-10
B.5 25-Pin to 9-Pin Adapter ........................................................... B-11
B.6 Honeywell DHP RS-232 Cable ............................................... B-12
B.7 RS-422 Cables ......................................................................... B-14
B.7.1 Cable Selection ........................................................... B-21
B.7.2 Cable Termination ...................................................... B-22
INDEX..................................................................................................................... Index-1

ICM User’s Guide Manual Release 3 March 1998


1-1

Chapter 1

Introduction

This chapter describes the purpose and features of the Intelligent


Communications Module (ICM).
The ICM allows the TRICON to participate in an industrial communication
network using the Modbus protocol at data rates of 1200, 2400, 4800, 9600 or
19,200 baud. Chapter 5 describes the Modbus master/slave protocol. The ICM
can operate as a Modbus master, slave, or both.
When the ICM is operating as a slave, a computer in the network is the master
and initiates all communications with the ICM, as shown in Figure 1–1. The
computer can be a distributed process control system such as a Honeywell
TDC, an operator workstation, or any general-purpose computer programmed
to support Modbus devices.

Modbus Slave
Modbus Master

TRICON Controller Host Computer

Figure 1–1. The EICM as a Modbus Slave

ICM User’s Guide Manual Release 3 March 1998


1-2

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

Modbus Master and Slave

Host Computer

Modbus Slave
TRICON Controller
αλαρµ αλαρµ αλαρµ αλαρµ αλαρµ

αλαρµ αλαρµ αλαρµ αλαρµ αλαρµ

αλαρµ αλαρµ αλαρµ αλαρµ αλαρµ

Annunciator
Figure 1–3. The EICM as a Modbus Master and Slave

ICM User’s Guide Manual Release 3 March 1998


1-3

Modbus Master and Slave

Modbus Master and Slave

TRICON TriconLite
Figure 1–4. The ICM and EICM as Modbus Masters and Slaves

1.1 COMPATIBLE HARDWARE & SOFTWARE


This manual describes the Intelligent Communication Module (ICM),
available in four models. The following table summarizes the differences
among the various models:
500 Vdc Port
Model # System RS-232 Interface RS-422 Interface
Isolation
4108 EICM V8 TRICON ✓
4118 EICM V8 TRICON ✓ ✓ ✓
4119 EICM ✓ ✓ ✓
V9.X TRICON
4119A EICM ✓ ✓ ✓

6211 ICM V2 TriconLite ✓ ✓ ✓

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.

ICM User’s Guide Manual Release 3 March 1998


1-4

1.2 BRIEF PHYSICAL DESCRIPTION


The TriconLite ICM has three serial ports and one parallel port. The TRICON
EICM has four serial ports and one parallel port. The serial ports are used for
Modbus and TriStation communications and the parallel port is used with a
printer. Indicators on the front panel show the module status and whether data
is being transmitted and received through the serial ports. See Chapters 2 and
3 for detailed descriptions of the ICM and EICM.

1.3 THE TRISTATION INTERFACE


To set up the TRICON system, your TriStation PC must be physically
connected to the TRICON by means of the communication module. An ICM
that is physically installed in the TRICON can be used for this purpose by
connecting one of its serial ports to the TriStation PC. TriStation can then be
used to logically configure the TRICON system, including the ICM ports. In
TriStation 1131, use the TRICON Configuration editor to allocate the
TRICON hardware and configure the ICM ports. In TRISTATION MSW, use
the Module Configuration [ALT 3] screen. See Chapters 1 and 2 in this
manual and the TriStation 1131 User’s Guide or the TRISTATION MSW
User’s Manual.
NOTE
The TRICON EICM is supported by both TriStation 1131 and TRISTA-
TION MSW. The TriconLite ICM is supported only by TRISTATION MSW.

1.4 OVERVIEW OF MODBUS COMMUNICATIONS


Traditionally, the Modbus protocol has been a part of energy management,
transfer line control, pipeline monitoring, and other rugged industrial
applications. The Modbus system uses a master/slave protocol. The master
initiates all communications by sending query messages to specific slaves. A
slave performs the indicated action, then sends a response message to the
master in answer to the query.
The Modbus protocol defines specific message formats for queries and
responses. See Chapter 5 for information about the Modbus functions the ICM
supports.

ICM User’s Guide Manual Release 3 March 1998


2-1

Chapter 2

The TriconLite ICM


NOTE
The information in this chapter is specific to the TriconLite and the ICM.
For information about the TRICON and the EICM see Chapter 3.

This chapter provides the following information about the TriconLite ICM:
– Physical description
– Configuration instructions
– Installation instructions

2.1 PHYSICAL DESCRIPTION


The ICM consists of the following:
– Three serial ports and one parallel port all with 500 Vdc isolation
between the external signals and TriconLite logic ground
– Each serial port has a 9-pin D-series connector and indicators
showing when data is being transmitted and received
– The parallel port has a 25-pin D-series connector
– Four module status indicators: PASS, FAULT, ACTIVE and LOCK
– Switches for selecting an ICM port for the TRISTATION MSW
– Switches for selecting between RS-232 and RS-422 serial interfaces for
each serial port

Figure 2–1 shows the ICM’s front panel.

ICM User’s Guide Manual Release 3 March 1998


2-2

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)

2.1.2 ICM Ports


The ICM has four ports for the following connections:
– You can configure ports 1 through 3 for Modbus or TRISTATION.
– Port 1 is the default for the TRISTATION MSW.
– Port 5 is a Centronics-compatible parallel port for a printer.

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.

ICM User’s Guide Manual Release 3 March 1998


2-3

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

PRINT

Parallel Port #5
for Centronics-
compatible printer

White Stripe ICM 6211

LOCK

Figure 2–1. ICM Front Panel

ICM User’s Guide Manual Release 3 March 1998


2-4

2.1.3 Module Status Indicators


The ICM displays its status with four indicators: PASS, ACTIVE, FAULT,
and LOCK. Table 2–1 lists the conditions that the indicators can show and
provides a description and a recommended action for each condition.
Table 2–1. ICM Module Status Indicators

PASS ACTIVE FAULT LOCK DESCRIPTION & ACTION


The module is active and operating properly.
On On Off Off No action is required. Do not pull an active
module!

The module is operational but not active.


If the module has just been installed or the system
has just been turned ON, allow a few minutes for
automated initialization to complete. Verify that
the ICM has been configured in TRISTATION
On Off Off Off MSW and that the control program has been
downloaded.
If the ACTIVE indicator does not light, the module
is faulty and must be replaced.
Install a replacement module and lock it into place.

The module has detected a fault.


Either Either On Off
Install a replacement module and lock it into place.

The indicators/signal circuitry are malfunctioning.


Off Either Off Off
Install a replacement module and lock it into place.

Module is not properly seated and locked.


Either Either Either On
Seat the module properly and lock it into place.

NOTE
The ICM is not a TMR module and is not guaranteed to be fault tolerant
under all conditions.

ICM User’s Guide Manual Release 3 March 1998


2-5

2.1.4 Transmit and Receive Status Indicators


Ports 1 through 3 have TX indicators to show data is being transmitted, and
RX indicators to show data is being received. The indicators are labeled TX
RX 1, TX RX 2 and TX RX 3. For information about the states of these
indicators, see Table 2–2.
Table 2–2. ICM Transmit and Receive Indicators

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.

2.1.5 Configuration Switches


The ICM has an eight-position switch block for defining which ICM port is
used for the TRISTATION MSW and whether each serial port uses RS-232 or
RS-422 signaling. See page 2-9 and following for instructions on setting these
switches.

2.1.6 Environmental Specifications


The ICM is designed to operate predictably in a hostile industrial
environment. The ICM has the same environmental specifications as the
TriconLite. See the TriconLite Planning & Installation Guide for information
about:
– Temperature and humidity
– Shock and vibration tolerance
– Protection from atmosphere
– Conformity to standards and codes
– EMI susceptibility
– 500 VDC isolation between interface ports and logic ground

ICM User’s Guide Manual Release 3 March 1998


2-6

2.1.7 Power Module Load


The power module load of the ICM is less than 10 watts.

2.2 CONFIGURATION RULES


The TriconLite is a one-chassis system which supports a maximum of two
ICMs. The two ICMs, which must reside in a single logical slot, provide a total
of eight ICM ports. The following rules apply to selecting and installing ICM
modules in a TriconLite system:
– Only one logical slot is available for the ICM. You have two
configuration choices as shown in Figure 2–2:
– You can install the ICM in Logical Slot #1 (COM1). This logical
slot provides only one physical slot (#5) with no hot-spare
position.
– You can install two ICMs in the left and right positions of a
logical slot, even though the ICM does not have a hot-spare
capability.

– The TRISTATION MSW PC can be connected to an ICM, an MP, or


another communications module. See the TriconLite Planning and
Installation Guide and the TRISTATION MSW User’s Manual for more
information about configuring modules.

– If your control program uses print functions, you must install an ICM.

ICM User’s Guide Manual Release 3 March 1998


2-7

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

Figure 2–2. ICM Configuration Options

ICM User’s Guide Manual Release 3 March 1998


2-8

2.3 PHYSICAL CONFIGURATION


This section lists the slot keys for different system versions and explains how
to configure the ICM serial ports using the switches on the ICM.

2.3.1 Slot Keys


Each slot in the TriconLite has metal keys at the top and bottom so that you
can insert only one specific type of module. If you ordered your ICM at the
same time you ordered a new TriconLite, the slot you designated for your ICM
will be fitted with the correct keys. If you ordered your ICM separately, you
have to replace the keys. Figure 2–3 shows the correct keys for the ICM.
Table 2–3. Slot Keys

TriconLite ICM Top Bottom


Version Model Key Key

2 #6211 2 4

See the TriconLite Planning & Installation Guide for more information about
replacing slot keys.

2.3.2 ICM Port Numbers


ICM ports are numbered 1 through 10. The ICM in the left slot contains Ports
#1 through #5 (reading from top to bottom), and the ICM in the right slot
contains Ports #6 through #10, as shown below. Ports #4 and #9 are not
available on TriconLite systems.

#01 #06 Serial Port—TRISTATION MSW (default)

#02 #07 Serial Port—Modbus

#03 #08 Serial Port—Modbus

#05 #10 Parallel Port—Printer

Left Slot Right Slot

Figure 2–3. ICM Port Numbers

ICM User’s Guide Manual Release 3 March 1998


2-9

2.3.3 Setting Up the TriStation Interface


To designate a port for the TRISTATION MSW, you need to set a switch
block in the upper-right corner of the ICM (see Figure 2–4). By default all
switches are OFF and Port #1 or Port #6 is the TRISTATION interface. When
setting up your system, you should verify the position of the switches for the
left ICM and the right ICM. In addition, you have to assign Port #1 or #6 to
TRISTATION MSW using the [F6 CONFIG MODULE] function, as
explained in "Logical Configuration" on page 2-13.
Triconex strongly recommends that you use one of the default ports (#1 or #6)
for the TRISTATION MSW. However, if these ports fail and you cannot
replace your ICM, you can configure Port #2 or #3 as the TRISTATION
interface by removing the ICM from the chassis and setting the switches as
shown in Figure 2–5. Before downloading the control program, be sure that
you assign the appropriate port number to TRISTATION MSW using the [F6
CONFIG MODULE] function.

DIP switches for


TRISTATION MSW
1 configuration
LICX B0 nnnn
80186 PROMs and RS-232/RS-422
LICX B1 nnnn selection

LICM pppp2

Front 8031 PROMs LICM pppp


panel Connector edge

LICM pppp

1 "nnnn" is the Software Revision Number for 80186 firmware.


2 "pppp" is the Software Revision Number for 8031 firmware.

Figure 2–4. ICM Layout

ICM User’s Guide Manual Release 3 March 1998


2 - 10

TRISTATION MSW on Port 1


ON
Switch 7 is off
Switch 8 is on
(default)
OFF
1 2 3 4 5 6 7 8

TRISTATION MSW on Port 2 ON


Switch 7 is on
Switch 8 is off
OFF

TRISTATION MSW on Port 3 ON


Switches 7 and 8 are on

OFF
1 2 3 4 5 6 7 8

Note: Switches 1, 2, and 3 select the interface type for


Ports #01, #02, and #03, respectively. If the switch is OFF,
the corresponding port is RS-232, and, if the switch is ON the
correspnding port is RS-422.

Figure 2–5. TRISTATION MSW Port Switch Settings

ICM User’s Guide Manual Release 3 March 1998


2 - 11

2.3.4 Selecting RS-232 and RS-422 Interfaces


Use switches 1, 2 and 3 on the 8-position switch block to select whether ports
#01, #02, and #03 use RS-232 or RS-422 signals. If the switch is OFF, the port
is RS-232, and if the switch is ON, the port is RS-422.
Port #02 is RS-232 Port #03 is RS-232

Port #01 is RS-232

ON

OFF
1 2 3 4 5 6 7 8

Port #02 is RS-422 Port #03 is RS-422

Port #01 is RS-232

ON

OFF
1 2 3 4 5 6 7 8

Notes: Switches 7 and 8 are used to select a port


for the TRISTATION MSW.

Port #01 is normally used for the TRISTATION


MSW which must use an RS-232 port.

Figure 2–6. Selecting RS-232 and RS-422 Interfaces

ICM User’s Guide Manual Release 3 March 1998


2 - 12

2.3.5 Connecting to a Printer


A printer is connected to the ICM using a standard personal computer printer
cable, as shown in Figure 2–7. The maximum cable length is 15 to 20 feet,
depending on the quality of the cable. See Appendix B for the printer cable’s
pin assignments.

TriconLite and ICM Printer


Figure 2–7. Parallel Port to Printer Connection

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.

ICM User’s Guide Manual Release 3 March 1998


2 - 13

2.3.6 Connecting to a Modbus Device


Normally, the ICM is connected to a Modbus device using point-to-point
cabling. Figure 2–8 shows this configuration. Appendix 2 gives the pin
assignments for cables that connect to various host computers and provides
information about cable lengths and termination techniques.

TriconLite and ICM Modbus Device


Figure 2–8. Modbus Device Connection

2.4 LOGICAL CONFIGURATION


After you add an ICM to a TriconLite chassis, you have to use the [F6
CONFIG MODULE] function of TRISTATION MSW’s Module
Configuration screen to define the protocol for the ICM ports. Pressing F6
displays a screen similar to the one shown in Figure 2–9 below:
ICM Configuration

Slave Baud Data Stop Hand- Modbus Printer


Port Protocol Addr Rate Bits Bits Prty shake Min Max SOE# Rows Cols
1 Tristation
2 Modbus 1 2400 7 2 EVEN NONE 0 21000
3 Modbus 2 9600 8 1 ODD HRDWR 0 32767
4 Unavailable
5 Prntr"prtname" 132 66

6 Unassigned
7 Unassigned
8 Unassigned
9 Unavailable
10 Unassigned
Use [ARROW] keys to move; [ENTER] to edit; [ESC] to exit

Figure 2–9. Configuring ICM Ports in TRISTATION MSW

ICM User’s Guide Manual Release 3 March 1998


2 - 14

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.

2.4.1 Serial Ports


When you have a serial port selected (port 1, 2, 3, 6, 7, or 8) and press [Enter],
TRISTATION MSW displays choices for Unassigned, TRISTATION,
Debug, Modbus Slave, Modbus Master, and combination Modbus Master and
Slave1.

2.4.1.1 Unassigned, TRISTATION and Debug


When you select Unassigned, TRISTATION or Debug, TRISTATION MSW
does not let you enter data in the remaining fields.

2.4.1.2 Modbus Master and Slave


When you configure a port as a Modbus master or slave, or combination
master and slave, TRISTATION MSW displays choices for the following
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 Min (0 – 32767 allowed)
– Modbus Max (1 – 32767 allowed)
NOTE
The Modbus master and all Modbus slaves on the same Modbus port must
use the same baud rate, data bits (mode), parity, and handshake settings.

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.

ICM User’s Guide Manual Release 3 March 1998


2 - 15

Slave Address — If you are configuring a Modbus slave or combination


master/slave, enter the slave address (1 through 247). Each slave on the same
Modbus must have a unique address. If you are configuring a Modbus master
port, TRISTATION MSW does not let you enter an address, because Modbus
masters do not need addresses.
Baud Rate — The ICM 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.) You select the baud rate for each serial port using the [F6 MODULE
CONFIG] function of TRISTATION MSW’s Module Configuration
screen. The available baud rates are: 19200, 9600, 4800, 2400 and 1200.
The following are examples of correct data rate selections:

Example 1. Port 1 (TRISTATION): 9,600 baud


Port 2 (Modbus): 19,200 baud
Port 3 (Modbus): + 19,200 baud
48,000 baud

Example 2. Port 1 (Modbus): 19,200 baud


Port 2 (Modbus): 19,200 baud
Port 3 (Modbus): + 19,200 baud
57,600 baud

Example 3. Port 1 (TRISTATION): 9,600 baud


Port 2 (Modbus): 2,400 baud
Port 3 (Modbus): + 1,200 baud
13,200 baud

Figure 2–10. Sample Data Rate Selections

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.

ICM User’s Guide Manual Release 3 March 1998


2 - 16

Handshake RS-232 Mode — Choose between RS-232 and RS-422 modes


using DIP switches on the ICM side panel (see Figure 2–6). If you select
hardware (HRDWR) handshake mode, the ICM asserts Request to Send
(RTS) when it has a message to transmit. The ICM begins transmission when
it receives Clear to Send (CTS) from the Modbus master. The ICM 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 ICM 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.
Handshake RS-422 Mode — Choose between RS-422 and RS-232 modes
using DIP switches on the ICM side panel (see Figure 2–6). If you select
hardware (HRDWR) handshake mode, the ICM 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 ICM 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

Honeywell DHP 0 9999

Operator Workstation 0 32767

ICM User’s Guide Manual Release 3 March 1998


2 - 17

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.

2.4.2 Parallel Ports


ICM Ports #05 and #10 are for Centronics-compatible printers. If you press
enter when ports 5 or 10 are selected in the ICM configuration screen (see
Figure 2–9), TRISTATION MSW displays prompts for the following values:
– Whether to configure the port for a printer or not
– Name of the printer
– Form length (0-255 rows; default is 66)
– Form width (0-255 columns; default is 132)

ICM User’s Guide Manual Release 3 March 1998


2 - 18

ICM User’s Guide Manual Release 3 March 1998


3-1

Chapter 3

The TRICON EICM


NOTE
This chapter is specific to the TRICON and the EICM. For information
about the TriconLite and the ICM, see Chapter 2.

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 PHYSICAL DESCRIPTION


The EICM consists of the following:
– Four serial ports and one parallel port. Models 4118, 4119 and 4119A
EICM provide 500 Vdc isolation between the external signals and
TRICON logic ground on all ports.
– Each serial port has a 25-pin “D” series connector and indicators
showing when data is being transmitted and received.
– The parallel port has a 25-pin “D” series connector.
– Three module status indicators: PASS, FAULT and ACTIVE.
– Switches for selecting an EICM port for the TriStation.
– Switches for selecting the RS-232 or RS-422 interface for each serial
port (models 4118, 4119 and 4119A only).

Figure 3–1 shows the EICM’s front panel.

ICM User’s Guide Manual Release 3 March 1998


3-2

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)

3.1.2 EICM Ports


The EICM has five ports available for the following connections:
– Ports 1 through 4 are configurable for Modbus or TriStation
– Port 4 is the default for TriStation
– Port 5 is a Centronics-compatible parallel interface for a printer
The EICM ports are configured with TriStation. In TriStation 1131, use the
EICM’s Setup dialog in the TRICON Configuration editor. In
TRISTATION MSW, use the [F6 CONFIG MODULE] function of the
Module Configuration [Alt 3] screen.
For more information, see the following:
– “Logical Configuration in TriStation 1131” (later in this section)
– TriStation 1131 User’s Guide
– “Logical Configuration in TRISTATION MSW” (later in this section)
– TRISTATION MSW User’s Manual

ICM User’s Guide Manual Release 3 March 1998


3-3

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

Figure 3–1. EICM Front Panel

ICM User’s Guide Manual Release 3 March 1998


3-4

3.1.3 Module Status Indicators


The EICM displays its status with three indicators labeled PASS, ACTIVE,
and FAULT. Table 3–1 lists the possible conditions that the indicators can
show and provides a description and a recommended action for each
condition.
Table 3–1. EICM Module Status Indicators
PASS FAULT ACTIVE DESCRIPTION & ACTION
The module is active and operating properly.
On Off On
No action is required. Do not pull an active module!

The module is operational but not active.


If the module has just been installed or the system has just
been started up, allow a few minutes for automated
initialization to complete. Verify that the EICM has been
On Off Off configured in TriStation and that the control program has
been downloaded.
If the ACTIVE indicator does not light, the module is faulty
and must be replaced.
Install a replacement module.

The module has detected a fault.


Either On Either
Install a replacement module.

The indicators/signal circuitry are malfunctioning.


Off Off Either
Install a replacement module.

NOTE
The EICM is not a TMR module and is not guaranteed to be fault tolerant
under all conditions.

3.1.4 Transmit and Receive Status Indicators


Ports 1 through 4 each have two status indicators showing when data is being
transmitted and received. The indicators are labeled 1TX for Port 1

ICM User’s Guide Manual Release 3 March 1998


3-5

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.

Table 3–2. EICM Transmit and Receive Indicators


TRANSMIT TX RECEIVE RX
DESCRIPTION & ACTION
(1-4) (1-4)
Indicators flash continuously if EICMs are commu-
nicating properly with external devices such as
Blink Blink Modbus and TriStation. There is one flash per mes-
sage. Indicators go off only if communication with
the Modbus device or TriStation breaks off.

3.1.5 Configuration Switches


The EICM uses an eight-position switch block to select an EICM port for the
TriStation, and to select the serial interface type (RS-232 or RS-422). See
“Setting Up the TriStation Interface” on page 3-7 and “Selecting RS-232 and
RS-422 Interfaces” on page 3-10 for instructions on setting these switches.

3.1.6 Environmental Specifications


The EICM is designed to operate predictably in a hostile industrial
environment. The EICM has the same environmental specifications as the
TRICON. See the TRICON Planning & Installation Guide for the following
information:
– Temperature and humidity
– Shock and vibration tolerance
– Protection from atmosphere
– Conformity to standards and codes
– EMI susceptibility

3.1.7 Power Module Load


The power module load of the model 4108 EICM is 20 watts. For models
4118, 4119 and 4119A, the power module load is 10 watts.

ICM User’s Guide Manual Release 3 March 1998


3-6

3.2 CONFIGURATION RULES


Each TRICON system supports a maximum of two EICMs, which can reside
in the Main Chassis or Chassis #2. In the latter case, you must connect Chassis
#2 to the Main Chassis with I/O-COMM Bus Expansion Cables (model 9001).
You can use any logical slot except the EMP slots.
Even though the EICM does not have a hot-spare capability, you can place a
second EICM in the hot spare position. Two EICMs in adjacent slots provide
a total of ten EICM ports.

3.3 PHYSICAL CONFIGURATION


This section lists the slot keys for different system versions and explains how
to configure the EICM serial ports using the switches on the EICM.

3.3.1 Slot Keys


Each slot in the TRICON is secured with metal keys on the top and bottom so
that you can install only type of module. If you ordered your EICM module at
the same time you ordered a new TRICON, the slot you designated for your
EICM will be fitted with the correct keys. If you ordered your EICM
separately, you have to replace the keys. The correct keys for any EICM model
are the same, as shown in Table 3–3.

Table 3–3. EICM Slot Keys


System Version EICM Model Top Key Bottom Key
8.X 4108 001 003

4118

9.X 4119

4119A

See the TRICON Planning & Installation Guide for more information about
replacing slot keys.

ICM User’s Guide Manual Release 3 March 1998


3-7

3.3.2 EICM Port Numbers


EICM ports are numbered 1 through 10, where the EICM in the left slot has
Ports #1 through #5 from top to bottom, and the EICM in the right slot has
Ports #6 – #10, as shown in Figure 3–2.

#01 #06 Serial Port—Modbus

#02 #07 Serial Port—Modbus

#03 #08 Serial Port—Modbus

#04 #09 Serial Port—TriStation (default)

#05 #10 Parallel Port—Printer

Left Slot Right Slot

Figure 3–2. EICM Port Numbers

3.3.3 Setting Up the TriStation Interface


EICM Ports #4 and #9 are factory-configured for the TriStation interface. In
the switch block on the upper right-hand corner of the board, notice that all
eight switches are OFF. However, you still need to assign Ports #4 and #9 to
TriStation using TRISTATION MSW’s Module Configuration [Alt 3]
screen or TriStation 1131‘s TRICON Configuration editor, as explained
later in this chapter in “Logical Configuration in TRISTATION MSW” and
“Logical Configuration in TriStation 1131.”

ICM User’s Guide Manual Release 3 March 1998


3-8

ICXnnn F01

ICXnnn E01
80188 PROMs

Switches for TriStation


VRTX2

ICMmmm3 ICMmmm3 ICMmmm3

8031 PROMs

1 nnn is the Software Revision number of the 80188 firmware.


2 VRTX is a trademark of Hunter & Ready, Inc.
3 mmm is the Software Revsion number of the 8031 firmware.

Figure 3–3. Layout for Model 4108 TRICON EICM

Switches for RS-232 or RS-422

IICXnnn B11
80186 PROMs
IICXnnn B01

Switches for TriStation

ICMmmm2

8031 PROMs ICMmmm2

ICMmmm2

1 nnn is the Software Revision number of the 80186 firmware.


2 mmm is the Software Revsion number of the 8031 firmware.

Figure 3–4. Layout for Models 4118, 4119 and 4119A TRICON EICMs

ICM User’s Guide Manual Release 3 March 1998


3-9

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

Note: Switches 1, 2, 3, and 4 select the interface type for Ports


#01, #02, #03, and #04, respectively. If the switch is OFF,
the corresponding port is RS-232, and, if the switch is ON,
the corresponding port is RS-422.

Figure 3–5. Selecting an EICM Port for TriStation

ICM User’s Guide Manual Release 3 March 1998


3 - 10

3.3.4 Selecting RS-232 and RS-422 Interfaces


On models 4118, 4119 and 4119A, use switches 1, 2, 3 and 4 on the 8-position
switch block to select RS-232 or RS-422 signals for ports #01, #02, #03 and
#04. If the switch is OFF, the port is RS-232. If the switch is ON, the port is
RS-422.
Port #02 is RS-232 Port #03 is RS-232

Port #01 is RS-232 Port #04 is RS-232

ON

OFF
D7 D6 D5 D4 D3 D2 D1 D0

Port #02 is RS-422 Port #03 is RS-422

Port #01 is RS-422 Port #04 is RS-232

ON

OFF
D7 D6 D5 D4 D3 D2 D1 D0

Notes: Switches D0 and D1 are used to select a port


for the TriStation.

Port #04 is normally used for the TriStation


which must use an RS-232 port.

Figure 3–6. Selecting RS-232 and RS-422 Interfaces

ICM User’s Guide Manual Release 3 March 1998


3 - 11

3.3.5 Connecting to a Printer


A printer is connected to the EICM using a standard PC printer cable, as
shown in Figure 3–7. The maximum cable length is 15 to 20 feet, depending
on the quality of the cable. See Appendix 1 for the printer cable pin
assignments.

TRICON and EICM Printer


Figure 3–7. Printer Connection

3.3.6 Connecting to a Modbus Device


Normally, the EICM is connected to a Modbus device using point-to-point
cabling, as shown in Figure 3–8. Appendix B details the pin assignments for
the cable.

TRICON and EICM Modbus Device


Figure 3–8. Point-to-Point Connection between EICM and Modbus Device

ICM User’s Guide Manual Release 3 March 1998


3 - 12

3.4 LOGICAL CONFIGURATION IN TRISTATION MSW


NOTE
This section is specific to TRISTATION MSW. For information about con-
figuring the EICM in TriStation 1131, go to section 3.5.
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 MSW, go
to the Module Configuration [Alt 3] screen and use the [F6 CONFIG
MODULE] function. Pressing [F6] displays a screen similar to the one in
Figure 3–9.
EICM Configuration

Slave Baud Data Stop Hand- Modbus Printer


Port Protocol Addr Rate Bits Bits Prty shake Min Max SOE# Rows Cols
1 Modbus 2 9600 8 1 ODD HRDWR 0 32767
2 Modbus 1 2400 7 2 EVEN NONE 0 21000
3 Unassigned
4 Tristation
5 Prntr"prtname" 132 66

6 Unassigned
7 Unassigned
8 Unassigned
9 Unavailable
10 Unassigned
Use [ARROW] keys to move; [ENTER] to edit; [ESC] to exit

Figure 3–9. Configuring EICM Ports in TRISTATION MSW

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.

3.4.1 Serial Ports


When you have a serial port selected (port 1, 2, 3, 6, 7 or 8) and press [Enter],
TRISTATION MSW displays choices for Unassigned, TRISTATION,
Debug, and Modbus.

3.4.1.1 Unassigned, TRISTATION and Debug


When you select Unassigned, TRISTATION, or Debug, TRISTATION MSW
does not let you enter data in any of the remaining fields.

ICM User’s Guide Manual Release 3 March 1998


3 - 13

3.4.1.2 Modbus Master and Slave


When you configure a port as a Modbus master or slave, or combination
master and slave1, TRISTATION MSW displays choices for the following
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 Min (0 – 32767 allowed)
– Modbus Max (1 – 32767 allowed)
See “Parallel Ports” on page 3-15 for printer parameters.
NOTE
The Modbus master and all Modbus slaves on the same Modbus port must
use the same baud rate, data bits (mode), parity and handshake settings.

Slave Address — If you are configuring a Modbus slave or combination


master/slave, enter the slave address (1 through 247). Each slave on the same
Modbus must have a unique address. If you are configuring a Modbus master
port, TRISTATION MSW does not let you enter an address, because Modbus
masters do not need addresses.
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.) You select the baud rate for each serial port using the [F6 MODULE
CONFIG] function of TRISTATION MSW’s Module Configuration
screen. The available baud rates are: 19200, 9600, 4800, 2400 and 1200.

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.

ICM User’s Guide Manual Release 3 March 1998


3 - 14

The following are examples of correct data rate selections:


Example 1. Port 1 (Modbus): 19,200 baud
Port 2 (Modbus): 19,200 baud
Port 3 (Modbus): + 19,200 baud
57,600 baud

Example 2. Port 1 (Modbus): 9,600 baud


Port 2 (Modbus): 19,200 baud
Port 3 (Modbus): 9,600 baud
Port 4 (TRISTATION) + 9,600 baud
48,000 baud
Figure 3–10. Sample Data Rate Selections

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.

ICM User’s Guide Manual Release 3 March 1998


3 - 15

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

Honeywell DHP 0 9999

Operator Workstation 0 32767

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.

3.4.2 Parallel Ports


EICM Ports #05 and #10 are for Centronics-compatible printers. If you select
Port #05 or Port #10 when performing EICM configuration, TRISTATION
MSW displays prompts for the following parameters:
– Whether to configure the port for a printer
– Name of the printer
– Form length (0-255 rows; default is 66)
– Form width (0-255 columns; default is 132)

ICM User’s Guide Manual Release 3 March 1998


3 - 16

3.5 LOGICAL CONFIGURATION IN TRISTATION 1131


NOTE
This section is specific to TriStation 1131. For information about configur-
ing the EICM in TRISTATION MSW, see section 3.4.

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.

Figure 3–11. Configuring EICM Ports in TriStation 1131

Select the port you want to configure or modify, then choose protocol options.

3.5.1 Serial Ports


When you have a serial port selected (port 1, 2, 3, 6, 7 or 8), TriStation 1131
displays protocol options for Not Configured, TriStation 1131, Debug and
Modbus.

3.5.1.1 Not Configured, TriStation 1131 and Debug


When you select Not Configured, TriStation 1131 or Debug, no additional
configuration is required.

ICM User’s Guide Manual Release 3 March 1998


3 - 17

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.

ICM User’s Guide Manual Release 3 March 1998


3 - 18

The following are examples of correct data rate selections:


Example 1. Port 1 (Modbus): 19,200 baud
Port 2 (Modbus): 19,200 baud
Port 3 (Modbus): + 19,200 baud
57,600 baud

Example 2. Port 1 (Modbus): 9,600 baud


Port 2 (Modbus): 19,200 baud
Port 3 (Modbus): 9,600 baud
Port 4 (TriStation): + 9,600 baud
48,000 baud
Figure 3–12. Sample Data Rate Selections

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.

ICM User’s Guide Manual Release 3 March 1998


3 - 19

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

Honeywell DHP 0 9999

Generic Operator Workstation 0 32767

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.

3.5.2 Parallel Ports


EICM Ports #05 and #10 are for Centronics-compatible printers. If you select
Port #05 or Port #10 when configuring the EICM, TriStation 1131 displays
fields for the form length (0-255 rows; default is 66) and width (0-255
columns; default is 132).
NOTE
In TriStation 1131, printers are identified only by port numbers, rather than
printer names as in TRISTATION MSW.

ICM User’s Guide Manual Release 3 March 1998


3 - 20

ICM User’s Guide Manual Release 3 March 1998


4-1

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

4.1 GENERAL OPERATION


When power is first applied to the ICM, it performs a self-test and
initialization which takes about a minute. If the ICM passes its self-test and
initializes successfully, the ACTIVE and PASS indicators are ON, and the
FAULT indicator is OFF.

4.2 MODBUS OPERATION


This section describes how the ICM communicates using the Modbus protocol
and covers the following topics:
– Query-response sessions
– Exception conditions
– Session execution time

ICM User’s Guide Manual Release 3 March 1998


4-2

4.2.1 Query-Response Sessions


The Modbus data link operates in half-duplex mode with the master initiating
all query-response sessions. A session involves the following actions:
– The master sends the query to the slave.
– The master starts a fail-safe timer while the slave executes the query and
prepares the response. Typical slave execution times are on the order of
hundreds of milliseconds.
– The slave returns a response to the master.

4.2.2 Exception Conditions


There are several types of exceptions that can occur during a query-response
session. This section describes these exceptions in relation to the device
detecting the exception.

4.2.2.1 Slave Detected Exceptions


When a slave detects an exception, it usually sends an exception response. See
“Exception Responses” on page 5-19 for more information.
Query Message CRC or LRC Error — The slave does not respond, because
the error could be in the station address. The master uses its response fail-safe
timer to recover.
Query Function Code Error — The slave sends an Illegal Function (01)
response code when it detects an error in the function code field.
Query Address Error — The slave sends an Illegal Data Address (02)
response code when it detects an error in the starting address field.
Query Data Error — The slave sends an Illegal Data Value (03) response
code when it detects an error in the data field.

ICM User’s Guide Manual Release 3 March 1998


4-3

4.2.2.2 ICM Detected Exceptions


When an ICM port is functioning as a Modbus slave, there are some
TRICON-specific exceptions that can occur. When the ICM detects one of
these exceptions, it sends an exception response. See “Exception Responses”
on page 5-19 for more information.
Query Message CRC or LRC Error — The ICM does not respond, because
the error could be in the station address. The master uses its response fail-safe
timer to recover.
Query Function Code Error — The ICM sends a Busy, Reject Message (06)
response code when it detects an error in the data field.
Query Address Error — The ICM sends a Busy, Reject Message (06)
response code when it detects an error in the starting address field.
Query Data Error — The ICM sends a Busy, Reject Message (06) response
code when it detects an error in the function code field.
Main Processors not Communicating — If the ICM receives a query
requiring a data exchange and it cannot communicate with the Main
Processors, the ICM sends a Busy, Reject Message (06) response code. The
ICM’s turns the ACTIVE indicator OFF when it cannot communicate with the
Main Processors.
Keyswitch in Wrong Position — If the ICM receives a query for a function in
the following list and the TRICON’s keyswitch is not in the REMOTE or
PROGRAM state, the ICM sends a Busy, Reject Message (06) response code.
– Force Single Coil (Function Code 05).
– Preset Single Register (Function Code 06).
– Force Multiple Coils (Function Code 15).
– Preset Multiple Registers (Function Code 16).
4.2.2.3 Master Detected Exceptions
If the master detects an exception in a response or does not receive a response
to a query, the master takes appropriate actions including, usually,
re-transmitting the query message.

ICM User’s Guide Manual Release 3 March 1998


4-4

4.2.3 Session Execution Time


Session execution time is the sum of the times required by the operations listed
in Table 4–1.
Table 4–1. Query-Response Session Operations

Modbus Master Operations Modbus Slave Operations

Prepare Query

Transmit Query → Receive Query

Process Query

Lookup Data

Prepare Response

Receive Response ← Transmit Response

Process Response

4.2.3.1 Transmission Time


The time required to transmit a query or response is a function of the baud rate
and message size and can be calculated using the following formula:
1000
Transmission Time (ms) = ---------------------- • bits per character • number of characters
baud rate

See Table 4–2 for representative transmission times.

4.2.3.2 Query Processing Time


The time required for an ICM, acting as a Modbus slave, to process a query
depends on processor speeds, the volume of data, and, especially with writes
to the TRICON, the control program’s scan time. Table 4–3 lists average times
to perform the listed operations using the sample system configuration as the
Modbus master.

ICM User’s Guide Manual Release 3 March 1998


4-5

Sample System Configuration


Mode ......................... RTU
Baud rate ................... 19,200 for Port #1
Modbus master.......... 486, 33 MHz PC
Scan time................... 200 ms and 400 ms
Ports 2 through 5....... not active

Table 4–2. Average Response Times

Number of Variables
Function
1 4 64 125

Read Coil Status 15 16 19 23

Read Input Status 15 16 20 23

Read Holding Registers 16 19 91 164

Read Input Registers 16 19 91 164

Scan Time
Function
400 200

Force Single Coil 995 560

Preset Single Register 1012 564

Number of Variables 1 4 16
Scan Time (ms) 400 200 400 200 400 200
Function

Force Multiple Coils 996 560 1005 564 1005 564

Preset Multiple Registers 1012 564 1045 569 1065 583

ICM User’s Guide Manual Release 3 March 1998


4-6

Table 4–3. Modbus Message Lengths

Function Number of RTU Number of ASCII


Query
Code Characters Characters
01 Read Coil Status 8 17
02 Read Input Status 8 17
03 Read Holding Registers 8 17
04 Read Input Registers 8 17
05 Force Single Coil 8 17
06 Preset Single Register 8 17
15 Force Multiple Coils 9 + (1 per 8 coils) 19 + (2 per 8 coils)
16 Preset Multiple Registers 9 + (2 per register) 19 + (4 per register)

Function Number of RTU Number of ASCII


Response
Code Characters Characters
01 Read Coil Status 5 + (1 per 8 coils) 11 + (2 per 8 coils)
02 Read Input Status 5 + (1 per 8 coils) 11 + (2 per 8 coils)
03 Read Holding Registers 5 + (2 per register) 11 + (4 per register)
04 Read Input Register 5 + (2 per register) 11 + (4 per register)
05 Force Single Coil 8 17
06 Preset Single Register 8 17
15 Force Multiple Coils 8 17
16 Preset Multiple Registers 8 17

ICM User’s Guide Manual Release 3 March 1998


5-1

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

5.1 SELECTING A MODE OF TRANSMISSION


Each Modbus network operates in one of these modes:
– Remote Terminal Unit (RTU) mode
– ASCII mode
If both modes are available, use RTU mode because it is more efficient and
robust than ASCII mode. You can use only one mode for each Modbus
network. However, the serial ports on a single ICM can be assigned different
Modbus modes, assuming that the ports are connected to separate Modbus
networks. If you configure a port for combination Modbus master and slave
operations, you must use RTU mode.

ICM User’s Guide Manual Release 3 March 1998


5-2

5.1.1 RTU Mode


In RTU mode, data is sent in eight-bit binary characters. Gaps between
characters cannot exceed three character times. RTU mode uses a 16-bit
Cyclical Redundancy Check (CRC) to detect transmission errors. See "CRC
Error Check — RTU Mode" on page 5-17 for information about how to
compute a CRC.

5.1.2 ASCII Mode


In ASCII mode, data is sent as pairs of ASCII characters. The first character
is the ASCII representation of the most significant four bits of the
corresponding RTU character. Likewise, the second character is the ASCII
representation of the least significant four bits of the corresponding RTU
character. For example, the RTU character 010011112 (4F16) would be sent as
the two ASCII characters 4 and F (3416 and 4616). Each ASCII message has a
colon at the beginning and a carriage return and line feed at the end. Gaps
between characters in an ASCII message are not significant.
See “Sample Query and Response” on page "Sample Query and Response" on
page 5-4 for more information on RTU and ASCII message contents, and
"LRC Error Check — ASCII Mode" on page 5-18 for information about how
to compute error-checking codes.

5.2 MODBUS MESSAGE FORMATS


Figure 5–1 shows the message formats for RTU and ASCII modes.

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

Figure 5–1. Modbus Message Formats

ICM User’s Guide Manual Release 3 March 1998


5-3

5.2.1 Message Fields


5.2.1.1 Header Field (ASCII Only)
The message header in ASCII mode is a colon (:) and is required. There is no
message header in RTU mode.

5.2.1.2 Station Address Field


The station address is the station to which a query is directed or the station
sending a response. In RTU mode, the station address is one character (eight
bits); in ASCII mode, the station address is two characters.
The station address range is 1 through 247. You can assign any address in this
range to a station, but each address can be used only once in a network. Station
address 0 (zero) is the broadcast address and addresses all slaves. When a
slave receives a query with the broadcast address, the slave processes the
query but does not send a response.

5.2.1.3 Function Code Field


The function code field specifies the operation to be performed (query), or the
operation that was performed (response). If the most significant bit of the
function code in a response is 1, the response is an exception response. See
"Exception Responses" on page 5-19 for more information.

5.2.1.4 Data Fields


The data fields contain the information that is specific to the query or
response. The length of the data varies, depending on the function code.

5.2.1.5 Checksum Field


The checksum field is a 16-bit word which a CRC (RTU mode), or an LRC
(ASCII mode). The error check is performed by both the transmitting and the
receiving units to detect transmission errors. See "Transmission Errors" on
page 5-16 for more information about error checking.

5.2.1.6 CR Field (ASCII Only) and LF Field (ASCII Only)


The CR field contains an ASCII carriage return and LF field contains an
ASCII line feed.

ICM User’s Guide Manual Release 3 March 1998


5-4

5.2.2 Sample Query and Response


Table 5–1 shows the content of a sample query and response in RTU and
ASCII modes. The query is a Read Input Status (Function 02) requesting 37
(2516) points starting at point 20 (1316 + 1). The response packs the 37 points
into five 8-bit bytes, and clears the three high order bits of the last byte.
Table 5–1. Sample Query and Response
Query Message RTU ASCII
Header None :
Station Address 0000 0010 0 2
Function Code 0000 0001 0 1
Starting Address (High Order) 0000 0000 0 0
Starting Address (Low Order) 0001 0011 1 3
Number of Points (High Order) 0000 0000 0 0
Number of Points (Low Order) 0010 0101 2 5
Error Check 0000 1100 C 5
0010 0111
Trailer None CR LF

Response Message RTU ASCII


Header None :
Station Address 0000 0010 0 2
Function Code 0000 0001 0 1
Byte Count 0000 0101 0 5
Data Byte 1 1100† 1101‡ C D
Data Byte 2 0110 1011 6 B
Data Byte 3 1011 0010 B 2
Data Byte 4 0000 1110 0 E
Data Byte 5 0001 1011 1 B
Error Check 0000 0100 E 5
1111 1111
Trailer None CR LF

†The underscored digit indicates that Coil #27 is in the ON state.


‡The underscored digit indicates that Coil #20 is in the ON state.

ICM User’s Guide Manual Release 3 March 1998


5-5

5.3 MODBUS FUNCTIONS


This section describes the Modbus queries that the ICM supports. The
following table lists the queries and their function codes:

Instruction Function Code


Read Coil Status 01
Read Input Status 02
Read Holding Registers 03
Read Input Registers 04
Force Single Coil 05
Preset Single Register 06
Read Exception Status 07
Loop Back Diagnostic Test 08
Force Multiple Coils 15
Preset Multiple Registers 16

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

ICM User’s Guide Manual Release 3 March 1998


5-6

5.3.1 Read Coil Status (Function Code 01)

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.

ICM User’s Guide Manual Release 3 March 1998


5-7

5.3.2 Read Input Status (Function 02)


The query and response for Read Input Status operate in the same manner as
those for Read Coil Status (Function Code 01), except that the status of
discrete inputs is obtained. Inputs are also numbered starting at 0; for example,
input status 0 is alias 10001, input status 1 is alias 10002, and so forth. You
can request the status of as many as 2000 coils with each query, but some
Modbus devices have lower limits.
Read Input Status Query Format:
RTU Mode
Bytes
1 2 3 4 5 6 7 8
Station
0000 0010 Starting Address Number of Input Points CRC
Address

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

Read Input Status Response Format:


RTU Mode
Bytes
1 2 3 4 n n+1 n+2
∫ ∫
Station
0000 0010 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 2 Data Length Data Data LRC CR LF
Address
∫ ∫

ICM User’s Guide Manual Release 3 March 1998


5-8

5.3.3 Read Holding Registers (Function Code 03)

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.

Read Holding Registers Response Format

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.

ICM User’s Guide Manual Release 3 March 1998


5-9

5.3.4 Read Input Registers (Function Code 04)


The Read Input Registers function operates in the same manner as the Read
Holding Registers query (Function Code 03), except that it obtains the status
of input registers. 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 30001, register 1
is alias 30002, and so forth.
Read Input Registers Query Format
RTU Mode
Bytes
1 2 3 4 5 6 7 8
Station
0000 0100 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 4 Starting Address Number of Registers LRC CR LF
Address

Read Input Registers Response Format


RTU Mode
Bytes
1 2 3 4 n n+1 n+2
∫ ∫
Station
0000 0100 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 4 Data Length Data Data LRC CR LF
Address
∫ ∫

ICM User’s Guide Manual Release 3 March 1998


5 - 10

5.3.5 Force Single Coil (Function Code 05)


The Force Single Coil function turns a single coil ON or OFF, depending on
its current state. However, since the slave is actively scanning, it can also alter
the state of the coil (unless the coil is disabled). Coils are numbered beginning
with 0; for example, coil 0 is alias 1, coil 1 is alias 2, and so forth.
A coil value of 65,280 (FF0016) turns the coil ON, and a coil value of zero
(000016) turns the coil OFF. All other values are illegal and do not affect the
coil. If the query contains legal values, the slave responds after the coil state
has been altered.
Force Single Coil Query Format

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

Force Single Coil Response Format

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

ICM User’s Guide Manual Release 3 March 1998


5 - 11

5.3.6 Preset Single Register (Function Code 06)


The Preset Single Register function modifies the content of one holding
register. However, since the slave is actively scanning, it can also alter the
register’s content. Register values are 16 bits. Holding registers are numbered
starting at 0; for example, register 0 is alias 40001, register 1 is alias 40002.
Preset Single Register Query Format

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

Preset Single Register Response Format

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

ICM User’s Guide Manual Release 3 March 1998


5 - 12

5.3.7 Read Exception Status (Function Code 07)

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

Read Exception Status Response Format


RTU Mode
Bytes
1 2 3 4 5
Station Coil Data
0000 0111 CRC
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.

ICM User’s Guide Manual Release 3 March 1998


5 - 13

5.3.8 Loop-Back Diagnostic Test (Function 08)

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

Loop Back Diagnostics Test Response 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

4.
The ICM, as a Modbus Master, does not support this query.

ICM User’s Guide Manual Release 3 March 1998


5 - 14

5.3.9 Force Multiple Coils (Function Code 15)


The Force Multiple Coils query sets each coil in a consecutive block of coils
to the specified state (ON or OFF) regardless of whether the coils are enabled
or disabled. However, since the slave is actively scanning, it can also alter the
state of a coil (unless it is disabled). Coils are numbered from 0; for example,
coil 0 is alias 1, coil 1 is alias 2, and so forth. The status of each coil is packed
in the data field, one bit for each coil (1 = ON, 0 = OFF).
A single Force Multiple Coils query can set a maximum of 128 coils. The
query-response time required by some Modbus Masters may require a much
smaller quantity.
Force Multiple Coils Query Format

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
∫ ∫

Force Multiple Coils Response Format

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
∫ ∫

ICM User’s Guide Manual Release 3 March 1998


5 - 15

5.3.10 Preset Multiple Registers (Function Code 16)


The Preset Multiple Registers query can change the contents of a maximum of
60 consecutive holding registers, but some Modbus devices have lower limits.
Since the slave is actively scanning, it can also alter the state of the registers
(unless they are disabled). The values are provided in binary up to the
maximum valid register value of the controller (16-bit for the TRICON).
Unused high order bits must be set to zero. The registers are numbered
beginning with 0; for example, register 0 is alias 40001, register 1 is alias
40002, and so forth.
Preset Multiple Registers Query Format

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
∫ ∫

Preset Multiple Registers Response Format

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

ICM User’s Guide Manual Release 3 March 1998


5 - 16

5.4 ERROR DETECTION AND EXCEPTION RESPONSES


This section provides information on the following topics:
– Transmission errors
– CRC and LRC calculation
– Exception responses

5.4.1 Transmission Errors


The most frequent cause of transmission errors is noise. Noise sources
include: improperly installed or broken connectors, damaged cables, electrical
equipment such as generators and elevators, lightning, and so forth. You can
detect transmission errors using character framing, parity checking, and
redundancy checking.
When a slave detects a transmission error, it does not act on or respond to the
message. The Modbus master assumes a communications error has occurred
if there is no response within a specified time, usually three seconds.
Parity checking helps detect single-bit transmission errors. However, if there
are two errors within a single character, parity checking cannot detect a
change. For example, if 1100 0100 is distorted to 1111 0100, the number of
1’s in the data is still odd.
The Modbus system provides several levels of error checking in order to
assure the quality of the data transmission. To detect multiple bit errors, the
system uses Cyclical Redundancy Check (CRC) for RTU mode, or
Longitudinal Redundancy Check (LRC) for ASCII mode.

ICM User’s Guide Manual Release 3 March 1998


5 - 17

5.4.2 CRC and LRC Calculation


The paragraphs that follow describe the calculations that are performed for
CRC in RTU mode and LRC in ASCII mode.

5.4.2.1 CRC Error Check — RTU Mode


During a CRC error check, the CRC-16 polynomial is used to compute a
checksum for the entire message. The CRC-16 polynomial is:

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.

ICM User’s Guide Manual Release 3 March 1998


5 - 18

5.4.2.2 LRC Error Check — ASCII Mode


The LRC checksum is an eight-bit binary number represented and transmitted
as two ASCII hexadecimal characters. The checksum is produced in the
following manner:
– The hex characters that comprise the content of a message are converted
to binary notation. (The colon, carriage return, and line feed are ignored
when calculating the LRC.)
– The binary characters are summed without wraparound carry.
– The resulting sum is two’s-complemented (negated).

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

ICM User’s Guide Manual Release 3 March 1998


5 - 19

5.4.3 Exception Responses


A programming or operation error which involves an .illegal or illogical query
results in an exception response from the slave. When a station detects an
error, it sends a response message to the master consisting of station address,
function code, error code, and error-check fields. To indicate that the response
is an error notification, the high-order bit of the function code is set to 1. The
sample below shows an exception response to a Preset Multiple Registers
query.
Sample Query

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
∫ ∫

Sample Exception Response


RTU Mode
Bytes
1 2 3 4 5
Station Exception
1001 0000 CRC
Address Code

ASCII Mode
Bytes
1 2 3 4 5 6 7 8 9 10 11
Station Exception
: 9 0
Code
LRC CR LF
Address

ICM User’s Guide Manual Release 3 March 1998


5 - 20

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

The slave’s programmable controller (PC) failed to


Failure in Associated respond to a message or an error occurred in the
04
Device PC’s response. When a master receives this
response code, it must issue a supervisory alert.1

The slave has accepted a query and is busy


processing it. The Modbus master must issue a Poll
Program Complete query to the slave to get the
05 Acknowledge results of the initial query. If the slave receives a
Poll Program Complete before it is ready to respond
to the initial query, it responds with a Busy,
Rejected Message exception code. The TRICON
and ICM do not support this type of operation.

06 Busy, Rejected Message The message was received without error, but the
slave is engaged in processing a previous query.

The slave cannot perform the Program query. The


07 Negative Acknowledge master should issue a Poll query to obtain
device-dependent error information. The TRICON
and ICM do not support this type of operation.

A parity error occurred while the slave was


08 Memory Parity Error accessing extended memory. The TRICON and
ICM do not support this type of operation.
1. When the ICM is acting as a slave, it reports this condition differently. See "ICM Detected Exceptions"
on page 4-3.

ICM User’s Guide Manual Release 3 March 1998


5 - 21

5.5 PERFORMANCE CONSIDERATIONS


The scan rate of the TRICON affects Modbus performance in that
performance decreases slightly as the scan rate increases. With the TRICON
operating as a slave, the following Modbus queries are most affected by scan
rate increases:
– Force Single Coil (Function Code 05)
– Preset Single Register (Function Code 06)
– Force Multiple Coils (Function Code 15)
– Preset Multiple Registers (Function Code 16)

The queries least affected by scan rate increases are:


– Read Coil Status (Function Code 01).
– Read Input Status (Function Code 02).
– Read Holding Registers (Function Code 03).
– Read Input Registers (Function Code 04).

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.

ICM User’s Guide Manual Release 3 March 1998


5 - 22

ICM User’s Guide Manual Release 3 March 1998


6-1

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

6.1 GENERAL INFORMATION ON MODBUS ALIASES


In a Modbus network, the Modbus master can access points in a slave only if
the points have aliases. An alias is a five-digit decimal number with the
following properties:
– There are four data types. The left digit is a code that defines the
Modbus data type as follows:

0 Read/Write Discrete (coil)

1 Read Only Discrete (input coil)

3 Read Only Register (input register)

4 Read/Write Register (holding register)

– 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.

ICM User’s Guide Manual Release 3 March 1998


6-2

6.2 TRICON ALIASES


Modbus aliases range from 00001 to 49999. The TRICON limits aliases to
specific ranges depending on their class, point type, and message type (see
Table 6–1). TRICON aliases are assigned according to the following rules:
– TriStation automatically assigns aliases to input and output points
when you declare TRICON points in the Dictionary Editor [Alt 2]
screen of TRISTATION MSW, or the TRICON Configuration editor
in TriStation 1131.
– You must select aliases for memory variables with the TRISTATION
MSW’s Dictionary Editor [Alt 2] screen or TriStation 1131’s
TRICON Point Connections window, or TriStation 1131’s
Connections Wizard can do it automatically for you.

Table 6–1. Alias Ranges for TRICON Points

Point Message System User


Class Alias Range
Type Type Assigned Assigned
Input Discrete Read Only 10001-12000 ✓
Input Integer Read Only 30001-31000 ✓
Input Real Read Only 32001-32120 ✓
Output Discrete Read/Write 00001-02000 ✓
Output Integer Read/Write 40001-40250 ✓
Memory Discrete Read/Write 02001-04000 ✓
Memory Discrete Read Only 12001-14000 ✓
Memory Integer Read Only 31001-31382 ✓
Memory Integer Read/Write 40251-40632 ✓
Memory Real Read Only 33001-34000 ✓
Memory Real Read/Write 41001-42000 ✓

ICM User’s Guide Manual Release 3 March 1998


6-3

6.2.1 Registers and Integers


Modbus registers are 16 bits wide and TRICON integer variables are 32 wide.
When the TRICON maps integer variables to Modbus registers only the least
significant 16 bits are transferred. Likewise when the TRICON transfers a
Modbus register to an integer variable the register is placed in the least
significant 16 bits and the most significant 16 bits are cleared.

6.2.2 Real Variables


The TRICON provides special aliases for real variables. Each real variable is
mapped into two aliases to produce a 32-bit value. The following table shows
the mapping of real-variable aliases to the special aliases:
Table 6–2. Mapping of Real-Variable Aliases to Special Aliases
Variable Type Aliases Special Aliases
32001 34001 34002 - or - 44001 44002
32002 34003 34004 - or - 44003 44004
. . . . . .
Input Real, Read Only
. . . . . .
. . . . . .
32120 34239 34240 - or - 44239 44240
33001 35001 35002 - or - 45001 45002
33002 35003 35004 - or - 45003 45004
. . . . . .
Memory Real, Read Only
. . . . . .
. . . . . .
34000 36999 37000 - or - 46999 47000
41001 42001 42002
41002 42003 42004
. . .
Memory Real, Read/Write
. . .
. . .
42000 43999 44000

ICM User’s Guide Manual Release 3 March 1998


6-4

6.2.2.1 Reading a Real Variable


Assume that you have a memory-real, read-only variable called MRR0001
with alias 33001 and a current value of 119.21. When you monitor this
variable on TRISTATION MSW’s Monitor [Alt 8] screen or TriStation
1131’s TRICON Control Panel, you see:
MRR0001
119.21
When a master reads this variable using alias 33001 the master gets the value
119 (a 16-bit integer). The variable MRR0001 (alias 33001) is also mapped
into special aliases 35001 and 35002 as shown in the following figure:

MRR001

Alias 33001
(16bits)
Byte 0 1

15 0

MRR001

Aliases 45001 or 35001 45002 or 35002


Byte 0 1 0 1

Bit 31 22 15 0
8 bit exponent 23 bit fraction

sign of fraction

Figure 6–1. Special Alias Format

ICM User’s Guide Manual Release 3 March 1998


6-5

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.

6.2.2.2 Reading Multiple Real Variables


Assume that you want to read real values for 5 real variables, starting at alias
32002. In the query, you should specify the starting alias as 34003 and the
number of values to be read as 10. This will give you five 32-bit real values.

6.2.3 Data Types for TRICON Points


The TRICON uses three types of points: discrete, integer, and real. Each I/O
module uses a specific point type as shown in Table 6–3.

Table 6–3. I/O Module Data Types

Module Data Type

Digital Input Discrete

Digital Output Discrete

Analog Input Integer

Analog Output Integer

Pulse Input Real

Thermocouple Input Integer

Non-Isolated Thermocouple Input Integer

ICM User’s Guide Manual Release 3 March 1998


6-6

6.3 ASSIGNING ALIASES IN TRISTATION MSW


You use the TRISTATION’s Dictionary Editor [Alt 2] screen to assign
aliases to TRICON points. When you are using the Dictionary Editor, the
TRISTATION displays prompts that make it easy to assign valid aliases, and
in some cases the TRISTATION assigns aliases automatically. This section
provides general instructions for assigning aliases. See the TRISTATION
MSW User’s Manual for more detailed information.

6.3.1 Input, Output and System Points


When you define input and output points using the Dictionary Definition
Form, (within the Dictionary Editor [Alt 2] screen), TRISTATION
automatically assigns aliases which you cannot change. Aliases for system
variables are pre-defined by the TRICON’s system software. See Appendix A
for more information about aliases for system variables.

6.3.2 Memory Variables


For memory variables, TRISTATION displays the first available default alias
from the appropriate range. You can use that alias, or you can enter another
alias that falls within the range displayed on the screen.
Additionally, TRISTATION prompts you as to whether the memory variable
should be assigned to a Read Only or Read/Write range of Modbus aliases. A
point that is Read Only for Modbus can still be written to by the control
program or by TRISTATION; only Modbus writes are prohibited.

ICM User’s Guide Manual Release 3 March 1998


6-7

6.4 ASSIGNING ALIASES IN TRISTATION 1131


TriStation 1131 automatically supplies aliases for all types of TRICON points
which need to be connected to program variables. When you open the
TRICON Point Connections window, a column called Alias displays all of
the currently allocated aliases, if any, associated with the selected point type.

6.4.1 Fixed Aliases for Input and Output Points


For Input and Output points, TriStation 1131 automatically provides a fixed
alias for each hardware address. If you decide to assign a Tag Name and other
properties to an Input or Output point located on a particular I/O module
within a certain TRICON chassis, you must use the alias that TriStation 1131
has provided for that address. This is true whether you assign the Tag Names
manually one-by-one, or automatically using the Connections Wizard.

6.4.2 Selecting Aliases for Memory Points


For Memory points, whose hardware addresses are not identified in TriStation
1131, the TRICON Point Connections window displays a range of available
aliases1 for the selected point type. If you know which aliases you need to use
for particular points, select the <not yet named> rows where the desired
aliases are displayed and bring up the Properties box so you can assign Tag
Names and other properties to the points.
If you do not know which aliases you will be using for particular Memory
points, you can use the Connections Wizard to automatically connect
program variables of the Memory type to Aliased Memory points.

1.
To access additional aliases, increase the memory allocation for the desired point type using the
Memory Allocation window.

ICM User’s Guide Manual Release 3 March 1998


6-8

6.5 SCALING OF REAL VALUES


When the data type of a variable is real and you are not using the special
aliases for real variables, the real value has to be converted into an integer for
transmission over Modbus. TriStation provides two methods for converting,
or scaling, real values in the desired engineering units:
– Use of MinSpan and MaxSpan values for individual real variables.
MinSpan is the lower limit of the span and MaxSpan is the upper limit
of the span.
– Use of Modbus Min and Modbus Max values for all of your real
variables. Modbus Min is the lower limit of the Modbus master’s
numeric range and Modbus Max is the upper limit of the range. To
determine appropriate values for this range, refer to the user’s manual
for the Modbus master. Common values for Modbus masters are:

Modbus Master Modbus Min Value Modbus Max Value

Honeywell DHP 0 9999

Most Modbus masters 0 32767

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 )

6.5.1 For TRISTATION MSW


For a selected real value, use the Dictionary Definition Form in the
Dictionary Editor [ALT 2] screen to assign values to MinSpan and
MaxSpan.

ICM User’s Guide Manual Release 3 March 1998


6-9

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.)

( 250.0 – 30.0 ) • ( 9999 – 0 )


4680 = -------------------------------------------------------------------- + 0
( 500.0 – 30.0 )

Example for ICM Interface to Operator Workstation


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 an operator workstation.
(The normal numeric range for an operator workstation is 0 to 32767.)

( 250.0 – 30.0 ) • ( 32767 – 0 )


15337 = ----------------------------------------------------------------------- + 0
( 500.0 – 30.0 )

6.5.2 For TriStation 1131


For selected real values, go to the TRICON Point Connections screen,
double-click on the desired Real points and set the Minimum Value
(MinSpan) and Maximum Value (MaxSpan) in the Properties dialog box.
To affect all real variables in your configuration, go to the TRICON Point
Connections screen and set the Min and Max limits for the Modbus Range
in the Setup dialog for the desired EICM port. See Chapter 3 for information
on port configuration.

ICM User’s Guide Manual Release 3 March 1998


6 - 10

ICM User’s Guide Manual Release 3 March 1998


A-1

Appendix A

Replacing EPROMs

WARNING

Never replace EPROMs on an ICM while a process is being controlled. Ef-


fective control cannot be guaranteed if firmware versions running in the
machine are incompatible.

This appendix covers the following topics:


– Availability of firmware updates
– Locating EPROMs on the EICM
– Locating EPROMs on the ICM
– Identifying EPROMs
– Replacing EPROMs

A.1 AVAILABILITY OF FIRMWARE UPDATES


Please contact the Triconex Customer Satisfaction Group to inquire about the
availability of updated firmware for the ICM.

A.2 LOCATING THE EPROMS ON THE EICM


The figures on the next page show the locations of the firmware EPROMs on
the model 4108 and on the models 4118, 4119 and 4119A TRICON EICMs
respectively.

ICM User’s Guide Manual Release 3 March 1998


A-2

ICXnnn F01

ICXnnn E01
80188 PROMs

Switches for TriStation


VRTX2

ICMmmm3 ICMmmm3 ICMmmm3

8031 PROMs

1 nnn is the Software Revision number of the 80188 firmware.


2 VRTX is a trademark of Hunter & Ready, Inc.
3 mmm is the Software Revsion number of the 8031 firmware.

Figure A–1. Layout of the Model 4108 TRICON EICM

Switches for RS-232 or RS-422

IICXnnn B11
80186 PROMs
IICXnnn B01

Switches for TriStation

ICMmmm2

8031 PROMs ICMmmm2

ICMmmm2

1 nnn is the Software Revision number of the 80186 firmware.


2 mmm is the Software Revsion number of the 8031 firmware.

Figure A–2. Layout of Model 4118, 4119 and 4119A TRICON EICMs

ICM User’s Guide Manual Release 3 March 1998


A-3

A.3 LOCATING THE EPROMS ON THE ICM


The figure below shows the location of the firmware EPROMs on the model
6211 TriconLite ICM.

DIP switches for


TRISTATION MSW
1 configuration
LICX B0 nnnn
80186 PROMs and RS-232/RS-422
LICX B1 nnnn selection

LICM pppp2

Front 8031 PROMs LICM pppp


panel Connector edge

LICM pppp

1 "nnnn" is the Software Revision Number for 80186 firmware.


2 "pppp" is the Software Revision Number for 8031 firmware.

Figure A–3. Layout of Model 6211 TriconLite ICM

ICM User’s Guide Manual Release 3 March 1998


A-4

A.4 IDENTIFYING EPROMS


Each EPROM has a label that provides the following information:
- EPROM type
- Software revision number
- Module serial number
The EPROM type is a four-letter code as shown in the figures on the preceding
pages.

A.5 REPLACING EPROMS

WARNING

Static electricity discharges can damage EPROMs. Keep the EPROMs in


their conductive foam shipping containers until you are ready to use them.
Before removing them from the shipping container, discharge static elec-
tricity from your body by touching a grounded, conductive surface.

1. Remove the EPROMs from the ICM using an IC extractor or similar


tool.
2. Remove the new EPROMs from the shipping container and store the
old EPROMs in the container.
3. Inspect the pins on the new EPROMs; they should lie at a 90° angle to
the upper surface of the chip.
4. If one or more pins are bent, straighten them using a needle-nose pliers
or similar tool.
5. If the pins on one side of the chip lie at an angle of more than 90°, rest
the flat side of the pins on a sturdy, flat surface and, with a rolling mo-
tion, rotate the body of the chip toward the pins until you reach the 90°
requirement. Repeat for the pins on the other side of the chip, if neces-
sary.
6. Align the notch (or dot or other pin 1 indicator) with the notch on the
socket.

ICM User’s Guide Manual Release 3 March 1998


A-5

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.

ICM User’s Guide Manual Release 3 March 1998


A-6

ICM User’s Guide Manual Release 3 March 1998


B-1

Appendix B

Pin-outs for ICM Connectors

This appendix provides pin-outs for the following EICM connections:


- Printer cable
- Serial ports
- TriStation communication cable
- TriStation RS-232 cable
- 25-pin to 9-pin adapter
- Honeywell DHP RS-232 cable
- RS-422 cables

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.

ICM User’s Guide Manual Release 3 March 1998


B-2

B.1 PRINTER CABLE


The ICM has a parallel port for a Centronics-compatible printer. The cable is
a standard PC printer cable, available from any PC dealer. Figure B–1 shows
the pin-outs of the printer cable.
NOTE
The connector is flush with the ICM’s front panel. To guarantee proper con-
nection, the printer cable must have a molded hood.

to EICM to Parallel Printer


Male Connector Connector
J2 (25 pins)

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

Figure B–1. Parallel Printer Port Cable

ICM User’s Guide Manual Release 3 March 1998


B-3

B.2 SERIAL PORTS


The remaining cables in this appendix attach to the ICM’s serial ports. This
section lists the pin assignments for the various ICMs and describes the
RS-232 and RS-422 signals. The maximum length of an RS-232 cable is 15
meters (50 feet). 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 both
RS-232 and RS-422 cables using modems.

ICM User’s Guide Manual Release 3 March 1998


B-4

Table B–1. Serial Port Pin-outs for Model 4108 TRICON EICM

Pin Signal Direction Designator Interface


1 Shield (ground)
2 Transmit Data Output TXD RS-232
3 Receive Data Input RXD RS-232
4 Request to Send Output RTS RS-232
5 Clear to Send Input CTS RS-232
6 Not used
7 Signal Ground
8 Data Carrier Detect Input DCD RS-232
9 Not used
10 Not used
11 Not used
12 Not used
13 Not used
14 Not used
15 Not used
16 Not used
17 Not used
18 Not used
19 Not used
20 Data Terminal Ready Output DTR RS-232
21 Not used
22 Not used
23 Not used
24 Not used
25 Not used

ICM User’s Guide Manual Release 3 March 1998


B-5

Table B–2. Serial Port Pin-outs for Models 4118, 4119 & 4119A TRICON EICM

Pin Signal Direction Designator Interface


1 Shield (ground)
2 Transmit Data Output TXD RS-232
3 Receive Data Input RXD RS-232
4 Request to Send Output RTS RS-232
5 Clear to Send Input CTS RS-232
6 Not used
7 Signal Ground
8 Data Carrier Detect Input DCD RS-232
9 Not used
10 Not used
11 Not used
12 Not used
13 Not used
14 Transmit Data, Inverted Output SD-B RS-422
15 Transmit Data Output SD-A RS-422
16 Not used
17 Not used
18 Not used
19 Not used
20 Data Terminal Ready Output DTR RS-232
21 Receive Data, Inverted Input RD-B RS-422
22 Receive Data Input RD-A RS-422
23 Not used
24 Not used
25 +5 Vdc through 1 KΩ1 RS-422
1. See "Cable Termination" on page B-22.

ICM User’s Guide Manual Release 3 March 1998


B-6

Table B–3. Serial Port Pin-outs for TriconLite Model 6211 ICM, RS-232 Mode

Pin Signal Direction Designator Interface


1 Data Carrier Detect Input DCD RS-232
2 Receive Data Input RXD RS-232
3 Transmit Data Output TXD RS-232
4 Data Terminal Ready Output DTR RS-232
5 Signal Ground
6 Not used
7 Request to Send Output RTS RS-232
8 Clear to Send Input CTS RS-232
9 5 Vdc through 1 KΩ1
Housing Shield (ground)
1. Do not connect.

Table B–4. Serial Port Pin-outs for TriconLite Model 6211 ICM, RS-422 Mode

Pin Signal Direction Designator Interface


1
2 Receive Data Input RD-A RS-422
3 Transmit Data Output SD-A RS-422
4
5 Signal Ground
6 Not used
7 Transmit Data, Inverted Output SD-B RS-422
8 Receive Data, Inverted Input RD-B RS-422
9 5 Vdc through 1 KΩ1
Housing Shield (ground)
1. See "Cable Termination" on page B-22.

ICM User’s Guide Manual Release 3 March 1998


B-7

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:

Table B–5. RS-232 Signal Description

Signal Designator Description


When in HRDWR handshake mode, the ICM
waits for CTS to go on before transmitting data.
Clear to Send CTS When not in HRDWR handshake mode, the ICM
ignores CTS and transmits data as soon as it is
available.
When in HRDWR handshake mode, the ICM set
RTS on when it has data to send.
Request to Send RTS
When not in HRDWR handshake mode, the ICM
turns RTS on unconditionally.
When in HRDWR handshake mode and if DCD
is off, the ICM ignores RXD.
Data Carrier Detect DCD
When not in HRDWR handshake mode, the ICM
always accepts data from RXD.
Transmit Data TXD Serial Transmit Data
Receive Data RXD Serial Receive Data

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.

ICM User’s Guide Manual Release 3 March 1998


B-8

Table B–6. RS-422 Signal Description

Signal Designator Description


In HRDWR handshake mode and when the ICM
has data to send, it:
1. enables the RS-422 SD-A/SD-B driver
2. waits five character intervals
3. sends the data
4. disables (tristates) the RS-422 driver
Transmit Data
SD-A When not in HRDWR handshake mode, the ICM
Transmit Data,
SD-B unconditionally enables the RS-422 SD-A/SD-B
Inverted
driver. To use this mode, the serial port must be:
- A master or slave in a double twisted-pair,
point-to-point network,
— or —
- A master in a double twisted-pair, multipoint
network
Receive Data
RD-A
Receive Data, Serial Receive Data
RD-B
Inverted
Optionally connected to RD-A through a 1 KΩ
Signal Ground
resistor.
Optionally connected to RD-B. This resistor is
5 Vdc through 1 KΩ1 internal to the ICM, whereas the resistor from
ground to RD-A must be external.
1. See "Cable Termination" on page B-22.

ICM User’s Guide Manual Release 3 March 1998


B-9

B.3 TRISTATION COMMUNICATION CABLE


TRICON EICM serial port connectors have 25 pins. This cable has 25-pin
connectors on each end. Figure B–2 shows the pin-out for the TRICON EICM
to TriStation communication cable. 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.

EICM
Female Connector Female Connector
P1 (25 pins) P2 (25 pins)

Housing (Ground)

TXD 2 3 RXD
RXD 3 2 TXD

Signal Ground 7 7 Signal Ground


RTS 4 5 CTS
CTS 5 4 RTS

DSR 6 20 DTR

DTR 20 6 DSR
Shield Ground
1

Figure B–2. TRICON to TriStation Communication Cable (Part No. 4000015-0xx)

ICM User’s Guide Manual Release 3 March 1998


B - 10

B.4 TRISTATION RS-232 CABLE


TriconLite ICM serial port connectors have 9 pins. This TriconLite TriStation
RS-232 cable has a 9-pin connector on one end and a 25-pin connector on the
other end. Figure B–3 shows the pin-outs for this cable. 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.

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

Signal Ground 7 5 Signal Ground


RTS 4 8 CTS
CTS 5 7 RTS

DSR 6 4 DTR

DTR 20 6 DSR
Shield Ground
1

Figure B–3. TriconLite to TriStation RS-232 Cable (Part No. 4000091-0xx)

ICM User’s Guide Manual Release 3 March 1998


B - 11

B.5 25-PIN TO 9-PIN ADAPTER


When the TriStation PC has a 9-pin serial port, you need an adapter to connect
the PC to TriStation RS-232 cable described in the previous section. Figure
B–4 shows the pin-outs for the PC, the adapter, and the ICM Port.

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

Signal Ground 5 7 5 Signal Ground

RTS 7 4 8 CTS

CTS 8 5 7 RTS

DSR 6 6 4 DTR

DTR 4 20 6 DSR
Shield Ground
1

Figure B–4. 25-Pin to 9-Pin Adapter (Part No. 1420102-001)

ICM User’s Guide Manual Release 3 March 1998


B - 12

B.6 HONEYWELL DHP RS-232 CABLE


Figure B–5 shows the pin-outs for a cable to connect the TRICON EICM 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.

EICM DHP
Female Female
Connector Connector
J2 (25 pins) J1 (25 pins)
Housing (Ground)

DTR 20 6 DSR

Signal Ground 7 7 Signal Ground

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)

ICM User’s Guide Manual Release 3 March 1998


B - 13

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

Figure B–6. ICM to Honeywell DHP Cable (Part No. 4000090-025)

ICM User’s Guide Manual Release 3 March 1998


B - 14

B.7 RS-422 CABLES


There are two RS-422 configurations for connecting the ICM to a Modbus
master: point-to-point and multipoint (or multidrop). Figure B–7 shows a
point-to-point connection which is always between a Modbus master and one
slave only. Figure B–8 shows a multipoint connection which includes one
Modbus master and from 2 to 32 slaves.

Modbus Slave
Master

Figure B–7. Point-to Point Connection

Modbus Trunk
Master

Branch Branch Branch

Slave Slave Slave

Figure B–8. Multipoint Connection

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

ICM User’s Guide Manual Release 3 March 1998


B - 15

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.

ICM User’s Guide Manual Release 3 March 1998


B - 16

ICM Network Trunk


Serial Port

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

Note: HRDWR handshake must be on.

Figure B–9. TRICON RS-422 Single Twisted-Pair Modbus Network

ICM User’s Guide Manual Release 3 March 1998


B - 17

ICM Network Trunk


Serial Port

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

Note: HRDWR handshake must be on.

Figure B–10. TriconLite RS-422 Single Twisted-Pair Modbus Network

ICM User’s Guide Manual Release 3 March 1998


B - 18

ICM Network Trunk


Serial Port

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

RD-A RD-B SD-A SD-B


Trunk R Trunk T

Note: If multipoint, HRDWR handshake must be on.

Figure B–11. TRICON (Slave) RS-422 Double Twisted-Pair Modbus Network

ICM User’s Guide Manual Release 3 March 1998


B - 19

ICM Network Trunk


Serial Port

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

RD-A RD-B SD-A SD-B


Trunk R Trunk T

Note: If multipoint, HRDWR handshake must be on.

Figure B–12. TriconLite (Slave) RS-422 Double Twisted-Pair Modbus Network

ICM User’s Guide Manual Release 3 March 1998


B - 20

ICM Network Trunk


Serial Port

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

RD-A RD-B SD-A SD-B


Trunk R Trunk T
Figure B–13. TRICON (Master) RS-422 Double Twisted-Pair Modbus Network

ICM User’s Guide Manual Release 3 March 1998


B - 21

ICM Network Trunk


Serial Port

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

RD-A RD-B SD-A SD-B


Trunk R Trunk T
Figure B–14. TriconLite (Master) RS-422 Double Twisted-Pair Modbus Network

B.7.1 Cable Selection


When you select the RS-422 cable selection for your Modbus network,
observe the following guidelines:
– Cable impedance should be ≥ 100 ohms.
– Each twisted pair should have its own shield.
– Double twisted-pair networks can house the pairs in a single sheath or
in separate sheaths.
– Branch cable should be the same quality as the trunk cable, but of less
rigid construction. For example, Belden 91822 for the trunk and Belden
97292 for the branches.
– Follow all applicable local codes.
– Terminate the trunk cable in the characteristic impedance of the cable.

2.
These are 150 Ω cables.

ICM User’s Guide Manual Release 3 March 1998


B - 22

B.7.2 Cable Termination


RS-422 trunk cable termination (point-to-point or multipoint) greater than 30
meters (100 feet) require termination at each end. Traditionally, you connect
resistors to each end of the cable. This technique matches the cable impedance
and prevents signal reflections which could cause data errors. However, this
technique has three undesirable side effects.
– When no driver is active on the pair, the resistors pull the two wires
together. Noise, even very low-level noise, can be appear to be data
when the wires are in this state.
– When a driver is active on the pair but not sending data, the resistors
cause 33 mA of DC current to flow in the cable. This is an excessive
load on the driver.
– When a driver is transmitting data on the cable, the resistors lower the
signal level and consequently lower the immunity to noise.
A better technique for terminating the cable pair is to use an RC network and
pull-up/pull-down resistors. This reduces power consumption and forces the
pair to a valid data state when no driver is active.

* *
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

* Resistor values must match the characteristic impedance of the cable.

Figure B–15. Traditional Network Termination

ICM User’s Guide Manual Release 3 March 1998


B - 23

* *
.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

* Resistor values must match the characteristic impedance of the cable.


Note: There is no need to provide pull-up/pull-down resistors at any of the slaves
because the Modbus master ICM is configured without HRDWR handshake.
Therefore, its transmitter is always enabled.

Figure B–16. Triconex-Recommended Network Termination


Using a Double-Pair Network

* *
.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

* Resistor values must match the characteristic


impedance of the cable.
Note: Install pull-up/pull-down resistors at one node.
You can install a second pair in one other node
for redundancy. But never install more than two
sets of resistors.

Figure B–17. Triconex-Recommended Network Termination


Using a Single-Pair Network

ICM User’s Guide Manual Release 3 March 1998


B - 24

ICM User’s Guide Manual Release 3 March 1998


Index - 1

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

ICM User’s Guide Manual Release 3 March 1998


Index - 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

ICM User’s Guide Manual Release 3 March 1998


Index - 3

printer scan rate, 5-21


connecting to EICM, 3-11 SD-A designator, B-8
connecting to ICM, 2-12 SD-B designator, B-8
selecting RS-422 cables, B-21
Q serial ports
query, 5-5 EICM, 3-12, 3-16
sample, 5-4 ICM, 2-14
query processing time, 4-4 session execution time, 4-4
query-response sessions, 4-2 slave, 1-1, 6-1
R slave address, 2-15, 3-13, 3-17
RD-A designator, B-8 slot keys
RD-B designator, B-8 EICM, 3-6
ICM, 2-8
Read Coil Status, 5-6
Read Exception Status, 5-12 special aliases, 6-3
Read Holding Registers, 5-8 station address, 5-3
Read Input Registers, 5-9 switches
Read Input Status, 5-7 EICM, 3-7
Read Only alias, 6-6 ICM, 2-9
Read/Write alias, 6-6 T
real variables, 6-3 termination, B-22
receive data, B-7, B-8 time
registers Modbus, 6-3 for query processing, 4-4
replacing EPROMs, A-4 for session execution, 4-4
request to send, B-7 transmission, 4-4
response transmission errors, 5-16
exception, 5-19 transmission time, 4-4
sample, 5-4 Transmit Data signal, B-7, B-8
RS-232 interface, 2-11, 3-10 TriStation interface
RS-232 signals, B-7 EICM, 3-7
RS-422 interface, 2-11, 3-10 ICM, 2-9
cable selection, B-21 trunk, B-15
cable termination, B-22 trunk cables, B-22
configurations, B-14 twisted-pair, B-15
signals, B-7 TX indicator, 2-5, 3-4
RTS designator, B-7 TXD designator, B-7
RTU mode, 2-15, 3-14, 3-18, 5-2
RX indicator, 2-5, 3-5 U
RXD designator, B-7 updating firmware
by replacing EPROMs, A-1
S
sample query, 5-4

ICM User’s Guide Manual Release 3 March 1998

You might also like