85586v2 AtlasPC™ Digital Control
85586v2 AtlasPC™ Digital Control
Volume 2
The engine, turbine, or other type of prime mover should be equipped with an
overspeed shutdown device to protect against runaway or damage to the prime
mover with possible personal injury, loss of life, or property damage.
The overspeed shutdown device must be totally independent of the prime mover
control system. An overtemperature or overpressure shutdown device may also
be needed for safety, as appropriate.
Read this entire manual and all other publications pertaining to the work to be performed before
installing, operating, or servicing this equipment. Practice all plant and safety instructions and
precautions. Failure to follow instructions can cause personal injury and/or property damage.
This publication may have been revised or updated since this copy was produced. To verify that
you have the latest revision, be sure to check the Woodward website:
www.woodward.com/pubs/current.pdf
The revision level is shown at the bottom of the front cover after the publication number. The latest
version of most publications is available at:
www.woodward.com/publications
If your publication is not there, please contact your customer service representative to get the
latest copy.
Any unauthorized modifications to or use of this equipment outside its specified mechanical,
electrical, or other operating limits may cause personal injury and/or property damage, including
damage to the equipment. Any such unauthorized modifications: (i) constitute "misuse" and/or
"negligence" within the meaning of the product warranty thereby excluding warranty coverage
for any resulting damage, and (ii) invalidate product certifications or listings.
Woodward Governor Company reserves the right to update any portion of this publication at any time. Information
provided by Woodward Governor Company is believed to be correct and reliable. However, no responsibility is assumed
by Woodward Governor Company unless otherwise expressly undertaken.
© Woodward 2000
All Rights Reserved
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Contents
Woodward i
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
ii Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Figure 6-54. MODBUS_M Block Group 3 Analog Write RPT Example ...............97
Figure 6-55. MODBUS_M Block Group 4 Analog Write RPT Example ...............97
Figure 6-56. 3170-MBS Status Information Addresses........................................99
Figure 6-57. Example of 3170-MBS Memory Map Discrete Read GAP Blocks...99
Figure 6-58. Example of 3170-MBS Memory Map Analog Read GAP Blocks...100
Figure 6-59. Example of 1794-IB16 Module Wiring ...........................................101
Figure 6-60. 1794-IB16 Memory Map ................................................................101
Figure 6-61. 1794-IB16 Input Filter Time Bit Map ..............................................102
Figure 6-62. Example of 1794-IB16 Read and Write GAP Blocks .....................102
Figure 6-63. Example of 1794-OV16 Module Wiring .........................................103
Figure 6-64. 1794-OV16 Module Memory Map ..................................................104
Figure 6-65. Example of 1794-OV16 GAP Write Blocks ....................................104
Figure 6-66. Example of 1794-OW8 Module Wiring ..........................................105
Figure 6-67. 1794-OW8 Module Memory Map ...................................................106
Figure 6-68. Example of 1794-OW8 GAP Write Blocks .....................................106
Figure 6-69. Example of 1794-IE8/B Module Wiring ..........................................107
Figure 6-70. 1794-IE8/B Input Module Memory Map .........................................108
Figure 6-71. 1794-IE8/B Output Module Memory Map ......................................108
Figure 6-72. Example of 1794-IE8/B Read and Write GAP Blocks ...................109
Figure 6-73. 1794-IE8/B and 1794-OE4/B Analog Data Format Table ..............110
Figure 6-74. Example of 1794-IE8/B GAP CALCULATE Scaling Blocks ..........110
Figure 6-75. Example of 1794-OE4/B Module Wiring ........................................111
Figure 6-76. 1794-OE4/B Module Input Memory Map .......................................112
Figure 6-77. 1794-OE4/B Module Output Memory Map ....................................112
Figure 6-78. 1794-OE4/B Write Range Selection Bits .......................................113
Figure 6-79. Example of 1794-OE4/B Read and Write GAP Blocks ..................113
Figure 6-80. Example of 1794-OE4/B GAP Analog Write Blocks ......................114
Figure 6-81. Example of 1794-IT8 Module Wiring .............................................115
Figure 6-82. 1794-IT8 Module Input Memory Map .............................................116
Figure 6-83. 1794-IT8 Module Output Memory Map ..........................................116
Figure 6-84. 1794-IT8 Write Word 0 ...................................................................117
Figure 6-85. 1794-IT8 Hardware First Notch Filter ............................................117
Figure 6-86. 1794-IT8 Write Word 1 and 2.........................................................118
Figure 6-87. Example of 1794-IT8 Read and Write GAP Blocks .......................119
Figure 6-88. 1794-IT8 Input Scaling ...................................................................120
Figure 6-89. Example of 1794-IT8 GAP Analog Read Blocks ...........................121
Figure 6-90. Example of 1794-IR8 Module Wiring .............................................122
Figure 6-91. 1794-IR8 Module Input Memory Map ............................................123
Figure 6-92. 1794-IR8 Module Output Memory Map .........................................123
Figure 6-93. 1794-IR8 Write Word 0 ..................................................................124
Figure 6-94. 1794-IT8 Hardware First Notch Filter ............................................124
Figure 6-95. 1794-IT8 Write Word 1 and 2.........................................................125
Figure 6-96. Example of 1794-IR8 Read and Write GAP Blocks .......................126
Figure 6-97. 1794-IR8 Input Scaling ..................................................................126
Figure 6-98. Example of 1794-IR8 GAP Analog Read Blocks ...........................127
Figure 6-99. Automation Direct Terminator I/O Configuration............................128
Figure 6-100. MODBUS_M Block Example .......................................................130
Figure 6-101. T1K-MODBUS Adapter Addressing Table ...................................132
Figure 6-102. MODBUS_M Block RPT Example ...............................................133
Figure 6-103. MODBUS_M Block Boolean Write RPT Example .......................134
Figure 6-104. MODBUS_M Block Boolean Read RPT Example .......................134
Figure 6-105. MODBUS_M Block Analog Read RPT Example .........................135
Figure 6-106. MODBUS_M Block Analog Write RPT Example .........................136
Figure 6-107. T1K-MODBUS Dip Switch Settings .............................................137
Woodward iii
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
iv Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Distributed I/O
The AtlasPC™ control supports industry standard field bus protocols to take
advantage of distributed I/O products from alternate manufacturers. Through
various networking options, expansion of the AtlasPC system is virtually
unlimited. Currently, the AtlasPC control supports:
• PC104 Profibus Interface (Chapter 1)
• PC104 DeviceNet Interface (Chapter 2)
• PC104 Ethernet Interface (Chapter 3)
• Serial (Modbus) Interface (Chapter 4)
• PC104 CanOpen Interface (Chapter 5)
855-744
00-05-30 KDW
Woodward 1
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Chapter 1.
PC104 Profibus Interface
Introduction
This chapter has been divided into two sections, Hardware for End Users, and
Software for Application Developers. The hardware section is aimed at
customers that are applying the Atlas in a permanent installation. The software
section is for customers that are developing software for the AtlasPC™ control.
2 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Woodward 3
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The cable specification below is provided for convenience and is typical for the
Profibus industry.
Recommended Connector
Manufacturer Part Number Website
Siemens Bus Connector 6ES7 972-0BA11-0XA0 www.ad.siemens.de/simatic
Alternate Connectors
Manufacturer Part Number Website
ERNI Erbic PROFIBUS Connectors www.erni.com
Siemens Bus Connector 6GK1500-0EA02 www.ad.siemens.de/simatic
Phoenix Contact SUBCON Profibus Connector–2744348 www.phoenixcon.com
4 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Name: Bus Connector www.ad.siemens.de/simatic
Mfr: Siemens
P/N: 6GK1500-0EA02
Connector: DB9M
Transmission Rate: 12 Mbits/sec
Shielding: Metal case with internal shld clamp
Bus Termination: Terminating resistor slide switch
Cable Ports: (2) for daisy chain use
Cable Connection: 4 Internal screw terminal blocks
Dim (WxHxD): 15 mm x 57 mm x 39 mm
1 --
2 --
3 RxD/TxD—P
4 --
5 GND
6 +5 V
7 --
8 RxD/TxD—N
9 --
Shield AC coupled to Earth Ground
Woodward 5
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
2) Allen-Bradley Flex I/O
6 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
The information in this section is intended for customers that create their own
GAP programs for the AtlasPC platform and who are using a Profibus network.
Woodward 7
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The Profibus master interface card in the AtlasPC control is manufactured by
Applicom International. All Applicom cards used in AtlasPC systems share IRQ 5.
Even though they can use other IRQ settings, it is necessary that they share IRQ
5 for proper operation and to prevent conflict with other devices in the AtlasPC
system. All IRQs are factory set and must not be changed by the end user.
All Applicom cards used in AtlasPC systems must use the same Base Address of
D4000 when configured in the ApplicomIO Console software. The following
example will show how to use the Applicom configuration tool.
8 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
e. Select DPRAM Base Address D4000, Interrupt Vector IRQ 5, and
PC104/ISA PC104_DPIO.
f. Select OK.
Woodward 9
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
g. Under Protocol, select Properties.
h. Select 12 Mbit in Baud Rate.
i. Select OK.
Before a slave head (Network Interface Module) can be selected, the associated
GSD file must be in the equipment library. If the GSD file doesn’t already exist in
the library, it must be downloaded and saved within the Applicom setup files
(C:\Program Files\ApplicomIO\2.1\Equipment Library\Profibus_gsd). In this
example, the ProSoft 3170-PDP GSD file (psft0882.gsd) is imported using
library, Add.
j. Select the 3170-PDP head under ProSoft Technology Inc. and drag to
the window on the right. This will open a 3170-PDP setup window.
10 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Woodward 11
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
m. Build the module configuration by dragging the desired modules from
the Available Module(s) window to the Configured Module(s) window.
12 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
p. Save the configuration and copy all files from the ConfigIO directory to
the AtlasPC control using AppManager. (C:/Woodward/Applications
directory)
b. Select a FB_EQUIP Block for every node in the Network and list it in
the FB_MODULE Parent Block. Every FB_EQUIP block must have its
EQUIP_NO set to the Station number of its respective node.
Woodward 13
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
c. Once completed, the GAP application must be compiled and
downloaded to the AtlasPC control using AppManager.
d. Once the GAP application is started on the AtlasPC control’s PC, the
Profibus module will automatically initialize and start the Profibus
Network. All nodes will be updated from the Applicom module in a
circular queue fashion, once every scan rate. The GAP application will
update its values once every rate group (defined in FB_MODULE).
The timing of the Applicom scan rate will depend on the number of
groups (heads) and the number of nodes (I/O modules) in the
network and will be independent of the rate group structure.
14 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Chapter 2.
PC104 DeviceNet Interface
Introduction
DeviceNet and CanOpen are protocols that uses CAN (Controller Area Network).
This chapter describes the DeviceNet protocol only and has been divided into
two sections, Hardware for End Users, and Software for Application Developers.
The hardware section is aimed at customers that are applying the Atlas in a
permanent installation. The software section is for customers that are developing
software for the AtlasPC™ control.
Woodward 15
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The ODVA standard for DeviceNet defines two variations of the bus cable that
are compatible with the Phoenix COMBICON connector on the AtlasPC control—
Thick and Thin types. The Thick cable is preferred and recommended for all
uses. Most DeviceNet cable is not rated for temperatures above 80 °C, so be
careful during installation to avoid hot routing areas. Always use the appropriate
CAN cable for DeviceNet wiring. Alternate cables will very likely inhibit reliable
communication.
• Thick—recommended for high transmission speeds and long network
distance in comparison to Thin cable.
• Thin—should only be used at low baud rates and low requirements on
network length. Thin cable should never be used on an engine in a vibration
environment.
16 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
The cable specification below is provided for convenience and is typical for the
DeviceNet industry.
Cable Connectors
The typical DeviceNet cable connector is a 5-pin open-style connector. The
following products are provided for reference and are compatible with the
AtlasPC interface connector.
Connector Specifications
General characteristics of connectors used for DeviceNet data cabling:
Plating: 762 nm (30 micro inch) gold minimum over 1270 nm (50 micro inch) nickel
minimum or 127 nm (5 micro inch) gold minimum over 508 nm (20 micro inch)
palladium-nickel minimum over 1270 nm (50 micro inch) nickel.
All gold must be 24 karat
Resistance: < 1 mΩ
If the CAN wiring is routed through a terminal block, the terminal block should
have the above characteristics. The drain/shield should be maintained through
the terminal block as well.
Woodward 17
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
DeviceNet Connector Pinout
In the connector photo, the pinout from left to right is shown in the table from top
to bottom. Other connectors may be used on some products.
Always ground the V(–) at only one point in the system. This point should be the
same as the DeviceNet power supply ground.
Network Wiring
CAN networks are multi-drop networks arranged with two physical ends and up
to 64 nodes connected between the ends. Many limitations work together to
define the total end-to-end length of the network. This section will help define
those.
Network Length
Length of the CAN cabling is variable depending on many factors. Cable type is
one factor that significantly affects maximum length. Woodward recommends
only the “thick” cable type which is capable of the maximum length.
CAN allows for a single trunk with drops to each (or multiple) nodes. The number
of drops is not limited nor is the number of nodes applied on a single drop.
However, the length of wire in each drop is limited. The length of any single drop
may be 0 to 6 meters where a zero length drop means the node is attached
directly to the trunk. The total length of all drops together (cumulative drop
length) is limited by the cable type and the baud rate in use.
18 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
V+ (Red)
Power pair
V- (Black)
Termination
resistor CAN-High (White) CAN
cable
121 121
Signal
CAN-Low (Blue) wires
Multi-node drop
The example below shows three methods of connecting a CAN device on the
network. The example also includes a couple of devices that do not use the
power pair in the CAN cable. Most devices require the power pair but some do
not. Reference the device literature for details and requirements.
The table below gives the maximum trunk and cumulative drop lengths for each
supported baud rate. Using less in one column does NOT allow usage of more in
another column. Each column is exclusive and represents an absolute maximum.
Terminating Resistors
A termination resistor must always be present at each end of the network for the
devices to communicate properly. CAN requires a terminating resistor to be
installed at each end of the trunk—not at the end of a drop. The resistor
requirements are:
• 121 Ω
• 1% Metal Film
• 0.25 W
The resistor must be installed between pins 2 and 4 (the CAN-Low and CAN-
High pins) of the DeviceNet connector.
IMPORTANT
Terminating resistors should not be installed at the end of a drop line. They
should be installed only at the two ends of the trunk line.
Since termination resistors cannot be placed at the end of a drop line, the
AtlasPC control is not provided with built-in network termination resistors.
Woodward 19
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Shielding
Shielded cable must be used between the AtlasPC control and any other
devices. Unshielded cables and improperly shielded cables will very likely lead to
communication problems and unreliable control operation.
The governing authority for DeviceNet (ODVA) has specific requirements for the
24 Vdc network supply. Select a supply that meets these requirements. Certified
supplies can be found on the ODVA web site (www.odva.org).
20 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
2) Allen-Bradley Flex I/O
Woodward 21
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
22 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
The DeviceNet master interface card in the AtlasPC control is manufactured by
Applicom International. All Applicom cards used in AtlasPC systems share IRQ 5.
Even though they can use other IRQ settings, it is necessary that they share IRQ
5 for proper operation and to prevent conflict with other devices in the AtlasPC
system. All IRQs are factory set and must not be changed by the end user.
All Applicom cards used in AtlasPC systems must use the same Base Address of
D4000 when configured in the ApplicomIO Console software. The following
example will show how to use the Applicom configuration tool.
Woodward 23
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
c. Under Board Configuration, select Add Board.
d. Under Add New Board, select Diagnostic and Manual Configuration.
24 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Woodward 25
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
g. Under Protocols, select Properties.
h. Select the correct Values for the Network. The DeviceNet Net Timeout
will be 4 times the expected packet rate, and must be set with care.
i. Drag and Drop all nodes in the Network from the Equipment Library to
the DeviceNet Master.
26 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Woodward 27
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
28 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
q. Copy all files from the ConfigIO directory to the AtlasPC control’s PC
using AppManager.
Woodward 29
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
DeviceNet Software Configuration (GAP)
After creating the DeviceNet I/O configuration, the GAP application must be
programmed to match. The steps necessary to program the DeviceNet module in
GAP are as follows:
b. Select a FB_EQUIP Block for every node in the Network and list it in
the FB_MODULE Parent Block. Every FB_EQUIP block must have it’s
EQUIP_NO set to the MACID of its respective node.
30 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
c. Every Node is then defined using specific GAP blocks (SPC, VPC,
SWIFT) or generic blocks (FB_AI, FB_AO, FB_BI, FB_BO).
For examples of a complete GAP setups for DeviceNet, see the Distributed I/O
Examples later in this chapter.
Woodward 31
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
d. Once completed, the GAP application must be compiled and
downloaded to the AtlasPC control using AppManager.
e. Once the GAP application is started on the AtlasPC control’s PC, the
DeviceNet module will automatically initialize and start the DeviceNet
Network. All nodes will be updated from the Applicom module in a
circular queue fashion, once every scan rate. The GAP application will
update its values once every rate group (defined in FB_MODULE).
The timing of the Applicom scan rate will depend on the number of
groups (heads) and the number of nodes (I/O modules) in the
network and will be independent of the rate group structure.
32 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Chapter 3.
PC104 Ethernet Interface
Introduction
This chapter has been divided into two sections, Hardware for End Users, and
Software for Application Developers. The hardware section is aimed at
customers that are applying the Atlas in a permanent installation. The software
section is for customers that are developing software for the AtlasPC™ control.
The AtlasPC control has one Ethernet port on the CPU and one optional PC104
Ethernet board. If the second PC104 Ethernet board is installed, it can be used
for either Modbus® * communication with an HMI, distributed I/O, or redundant
control. Redundant Ethernet is used with the GE EGD package for sequencing
controls. Either Ethernet port may be used for distributed I/O, but it is
recommended that only the PC104 Ethernet port be use for this purpose. The
CPU Ethernet port is the only Ethernet port accessible with AppManager. Each
port uses a different IP address that can be set by AppManager. This sub-
chapter deals primarily with distributed I/O connections. For more information on
HMI communications and redundant controls, consult appropriate vendor
manuals.
*—Modbus is a trademark of Schneider Automation Inc.
The PC104 Ethernet port is an auto-switching 10/100 Megabit per second (Mbps)
connection accessed through a second RJ45 connector labeled Ethernet #2. It
complies with IEEE/ANSI 802.3 and Blue Book standards. If 100 Megabit
operation is desired, all devices on the network must be 100 Base-TX capable.
The PC104 Ethernet module used in the AtlasPC control system is a PC/104
form factor module supporting TCP/IP and UDP protocols. This module operates
on the PCI bus but it has both PCI and PC104 pass through connectors to allow
use with other PCI and PC104 modules, depending on the Atlas configuration.
Woodward 33
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The AtlasPC control requires double-shielded cable (SSTP) for Ethernet in order
to be appropriately immune to EMC in industrial environments. Below are the
general requirements for Category 5 Ethernet cable.
34 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
The cable specification below is provided for convenience and is typical for the
Ethernet industry.
Weight: 34 lbs/1,000 ft
Ratings: UL/NEC TYPE CMP, CEC C(UL) CMP, TIA/EIA
568A CAT 5, UL VERIFIED TO CAT 5, NEMA WC-
63.1 CAT 5
Conductor: #24 AWG Solid
Insulation: FEP–Fluorinated Ethylene Propylene
Nom. O.D.: 0.24" (6 mm)
Shield: Aluminum Foil-Polyester Tape
Jacket: FA–FLAMARREST(TM) PVC
Impedance: 100 Ω
Velocity Of Prop. : 67% (nom.)
Mutual Capacitance: 15.0pF/ft (nom.) (~49 pF/m)
Attenuation: 1.8 DB/100 Mtrs @ .772 MHz
2.0 DB/100 Mtrs @ 1.0 MHz
4.1 DB/100 Mtrs @ 4.0 MHz
5.8 DB/100 Mtrs @ 8.0 MHz
6.5 DB/100 Mtrs @ 10.0 MHz
8.2 DB/100 Mtrs @ 16.0 MHz
9.3 DB/100 Mtrs @ 20.0 MHz
10.4 DB/100 Mtrs @ 25.0 MHz
11.7 DB/100 Mtrs @ 31.25 MHz
17.0 DB/100 Mtrs @ 62.5 MHz
22.0 DB/100 Mtrs @ 100 MHz
Standard Lengths: 1000 ft
Cable Connectors
The typical Ethernet cable connector is an RJ45 style connector. The following
products are provided for reference and are compatible with the AtlasPC RJ45
interface connector.
Woodward 35
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Ethernet Connector Pinout
1 TX+
2 TX-
3 RX+
4 --
5 --
6 RX-
7 --
8 --
Shield AC Coupled to Chassis
GND
Network Wiring
There are two possible connection setups for the Ethernet networks.
The first is a network consisting of an Atlas and one other device with no routers,
switches, or other external devices. In this configuration the cable between Atlas
and the other device must be a crossover cable. A crossover cable has the
following pin connections:
In the second type of network there will be at least two devices plus a router,
hub, server, or switch. This type of network will use straight-through cables,
meaning that pin 1 on one connector is connected to pin 1 on the other.
36 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
The 100BASE-TX media system is designed to allow segments of up to 100
meters in length when using data grade twisted-pair wire that has a characteristic
impedance of 100 ohms and meets the EIA/TIA Category Five wire
specifications. Segments of 100BASE-TX are limited to a maximum of 100
meters to ensure that the round-trip timing specifications are met. This is in
contrast with the 10BASE-T media system, where the maximum segment length
for the 10-Mbps link is mostly limited by signal strength. The EIA/TIA cabling
standard recommends a segment length of 90 meters between the wire
termination equipment in the wiring closet, and the wall plate in the office. This
provides 10 meters of cable allowance to accommodate patch cables at each
end of the link, signal losses in intermediate wire terminations on the link, etc.
Woodward recommends halving these maximum distances for use in industrial
environments.
Shielding
Double shielded Ethernet cable must be used between the AtlasPC control and
any other devices. Standard Ethernet cables used in office environments are
NOT shielded. Unshielded cables will very likely lead to communication problems
and unreliable control operation.
The shield must always be AC-coupled at one end and connected directly to
earth on the opposite end for proper operation. The Atlas has been constructed
so that the Ethernet cable shield is AC-coupled to earth at the Atlas. It is
assumed that most other devices on the network will provide for direct grounding
of the shield at that device. However, if an external device provides AC-coupling
of its shield, Woodward can supply an Ethernet Interface FTM (Field Termination
Module) to allow earth grounding at the Atlas end of the cable. The FTM (part
number 5453-754) has two female RJ45 connectors. One is AC-coupled to its
chassis, and the other is direct coupled to its chassis.
Slave Hardware
Woodward is always testing new Ethernet networked Distributed I/O modules.
When an Ethernet interface module has been proven to meet Woodward’s
requirements, it will be documented in this section.
Woodward 37
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
IP Address Setup
The AtlasPC Ethernet connections are designed to work with either DHCP
servers or with fixed IP addresses.
• Refer to the software tools manual (26103 or 26199) for factory default IP
address settings and configuration details.
• If two or more AtlasPC controls are to be used on the same network, the IP
addresses must be changed to unique addresses (valid for your particular
network) or to DHCP mode, whichever is appropriate in order to avoid
address conflicts.
• AppManager can be used to view the AtlasPC Ethernet ports’ existing IP
addresses. To find the 2nd Ethernet port’s IP address, connect to the
Ethernet port, highlight the unit’s name in AppManager, and press the
“Control Info” button. Under “Footprint Description”→ “Network Adaptors”
there should be two IP addresses. One is the AtlasPC Ethernet IP; the other
is the AtlasPC PC/104 Ethernet IP.
38 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
• The PC/104 Ethernet connection must be configured with a different
network domain identifier from the primary Ethernet connection resident on
the CPU board. If this is not done, the operating system will only require one
port to operate even though both may respond to ping requests.
TCP/IP
• Use the FBUS_M block in the GAP application. No port is needed. Multiple
FBUS_M blocks can be used.
• Load and execute the GAP application.
Woodward 39
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Chapter 4.
Serial (Modbus) Interface
Introduction
This chapter has been divided into two sections, Hardware for End Users, and
Software for Application Developers. The hardware section is aimed at
customers that are applying the Atlas in a permanent installation. The software
section is for customers that are developing software for the AtlasPC™ control.
The AtlasPC control uses AEG-Modicon Inc.'s Modbus protocol. The Modbus
protocol determines 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, and how errors are detected. The protocol also controls the
query and response cycle which takes place between the master and slave
devices.
40 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
RS422—Also an ANSI standard definition of electrical connections for
communications between devices. Because it uses balanced drivers, it can
communicate over long distances (1200 m/4000 ft) at high baud rates (115K).
Woodward's implementation of RS-422 is actually a 4-wire RS-485
communications network. Since Woodward convention has been to call this RS-
422, this manual will continue to do so. However, it may be important to
understand that the actual port is RS-485. The port supports up to 32 devices as
a full duplex, multi-drop communications network. This allows more than one
device to be connected to the common bus with a single master requesting data.
It requires two twisted pairs and ground to operate.
RS485—Also an ANSI standard definition of electrical connections for
communications between devices. Because it uses balanced drivers, it can
communicate over long distances (1200 m/4000 ft) at high baud rates (115K).
This protocol is implemented identically to “RS-422” with the exception that only
one twisted pair is required. Both transmitted and received data use the same
pair of wires. A ground wire is still required since the output is isolated. The port
supports up to 32 devices as a half duplex, multi-drop communications network.
This allows more than one device to be connected to the common bus with a
single master requesting data. It requires one twisted pair and ground to operate.
General recommendations for serial cable are listed in the following table.
Woodward 41
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Ethernet Category 5 cable is a very good cable selection for RS-485 networks. It
will support cables lengths to 1200 m (4000 ft) at baud rates up to 115,200. Since
Ethernet cable is easy to find and is inexpensive, it will often be the cable of
choice. Always use shielded cable.
Installations with high electrical interference (noise) and/or long cable lengths
together with high baud rates may benefit from larger gauge cable.
Network Construction
While there are a number of different ways to physically connect devices on a
network, Woodward recommends that multi-drop networks be constructed using
a “daisy chain” configuration or a “backbone with stubs” for best performance. In
a daisy chain, wires are run from device one to device two to device three, etc. In
a backbone with stubs, a main trunk line is run between the two devices that are
physically farthest apart, and then stub lines are run from the intermediate
devices to the trunk line. Stubs should be kept as short as possible. See Volume
I, Figure 11-2 for a graphical representation.
Termination
To achieve best performance with RS-485 serial communication networks, it is
necessary to terminate the network to prevent interference caused by signal
reflections. RS-232 networks are short enough that termination is not required.
For ease of setup, Woodward has provided built-in network termination resistors
on the SmartCore board for the RS-485 serial ports. To activate the termination
resistors, an external jumper must be placed at the connector. The resistor
network used is a special design intended to provide maximum noise immunity.
The same design should be used at the opposite end of the network. This
termination network is necessary due to limitations of the Modbus protocol. (See
the information in the SmartCore chapters of Volume I.)
Termination resistors must be installed only on the two units that are at the
physical ends of the network. Terminating other midpoint units can overload the
network and put it into a cyclic thermal shutdown mode. As a rule, no matter how
many units are on a network, there should never be more than two terminations
installed. For 2-wire networks, a termination network should be used at the two
physical ends of the network. For 4-wire networks, Woodward has elected to use
a termination network only across the receiver lines at either end of the network.
This is feasible due to the baud rate limit of 115K. In either case (2- or 4-wire
configurations), a total of two termination networks are used.
42 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Shielding
Shielded cable is required between the AtlasPC control and any other devices.
Unshielded cables and improperly shielded cables are likely to cause
communication problems and unreliable control operation. The shield must
always be ac-coupled (connected through a capacitor) at one end and connected
directly to earth on the opposite end for proper operation. The SmartCore board
has been constructed so that the serial port Shield connections are directly
connected to the Atlas chassis ground (which must be tied directly to earth).
Devices connected to the opposite end of the cable must provide for the ac-
coupled shield connection.
Woodward has found that a 0.01 µF capacitance is typically adequate for this
purpose. A minimum rating of 1000 Vdc on the capacitor is required.
Connectors Pinouts
SmartCore SIO # 1 Connector and Pinout
1 93 232 TXD
2 94 232 RXD
3 95 SIG GND
4 96 422/485 (+) RECEIVE
5 97 TERM RES. +
6 98 TERM RES. -
7 99 422/485 (–) RECEIVE
8 100 422 (+) TRANSMIT
9 101 422 (1) TRANSMIT
10 102 SHLD (CHASSIS)
1 83 232 TXD
2 84 232 RXD
3 85 SIG GND
4 86 422/485 (+) RECEIVE
5 87 TERM RES. +
6 88 TERM RES. -
7 89 422/485 (–) RECEIVE
8 90 422 (+) TRANSMIT
9 91 422 (1) TRANSMIT
10 92 SHLD (CHASSIS)
Woodward 43
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
SmartCore SIO # 3 Connector and Pinout
1 --
2 RXD
3 TXD
4 --
5 GND
6 --
7 --
8 --
9 --
Shield --
1 DCD
2 RXD
3 TXD
4 DTR
5 SIG COM.
6 DSR
7 RTS
8 CTS
9 RI
Shield SHLD (CHASSIS)
1 DCD
2 RXD
3 TXD
4 DTR
5 SIG COM.
6 DSR
7 RTS
8 CTS
9 RI
Shield SHLD (CHASSIS)
44 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Network Wiring
See Chapters 5 and 6 of Volume I for serial I/O wiring.
Network Length
When choosing a transmission line for RS-232, RS-422, or RS-485, it is
necessary to examine the required distance of the cable and the data rate of the
system. Losses in a transmission line are a combination of AC losses (skin
effect), dc conductor loss, leakage, and AC losses in the dielectric.
Maximum Distances
RS-232 15 m (50 ft)
RS-422, RS-485 1219 m (4000 ft)
Woodward 45
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
3) Automation Direct Terminator I/O
46 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Serial (Modbus) Software Configuration (Protocol)
The AtlasPC control supports both the ASCII and RTU versions of the Modbus
protocol. RTU is more widely used since it is the more efficient of the two.
• ASCII: hex coding / 7 bits per character (4 transmitted) / any parity / 1 or 2
stop bits
• RTU: 8 bit binary coding/ 8 bits per char (8 transmitted) / any parity / 1 or 2
stop bits
RTU sends data in 8-bit binary characters. ASCII firsts divides each RTU
character into two 4-bit parts (high order and low order) and then represents
them by their hexadecimal equivalent. The ASCII characters representing the
hexadecimal characters are used to construct the message thus using twice as
many characters as RTU mode. Additionally, RTU message characters are
transmitted in a continuous stream, whereas ASCII can have breaks of up to one
second between characters.
The following is a guideline for configuring a serial port interface from the control
to a communication device.
Modbus RTU
BAUD 10 (38400)
BITS 2 (RTU-8 bits)
STOP 1 (1 stop)
PARITY 1 (none)
MODE 1 (line)
FLOW 1 (off)
ECHO 1 (off)
ENDLINE 3 (crlf)
IGNCR 1 (off)
After completing the GAP application, it must be compiled and downloaded to the
AtlasPC control’s PC using AppManager. Once the GAP application is started on
the AtlasPC control’s PC, the Serial Modbus module will automatically initialize
and start the Modbus Network.
The timing of the serial scan rate will depend on the number of
groups (heads) and the number of nodes (I/O modules) in the
network and will be independent of the rate group structure.
Woodward 47
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Chapter 5.
PC104 CanOpen Interface
48 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Chapter 6.
Distributed I/O Examples
Introduction
This chapter documents the hardware setup and software configuration for two
manufacturers of Distributed I/O modules. Since there are numerous
manufacturers and options available by numerous manufacturers, Woodward
chose Allen-Bradley Flex I/O as a representative of a high end Distributed I/O
system and Automation Direct Terminator I/O hardware as a low cost system
representative. There are other good high end and low cost manufactures of
Distributed I/O systems and therefore these examples should not be taken as a
Woodward endorsement. The I/O configurations for each manufacturer were
limited to specific I/O modules and a limited application of the possible options
available with these modules.
It is the responsibility of the end user to review the options available from each
distributed I/O supplier and derive the necessary software configurations needed
to support their specific applications. Woodward Governor Company makes no
expressed or implied statement of suitability for the Allen-Bradley, Automation
Direct, or any other supplier of Distributed I/O systems. It is hoped that these
specific examples of I/O module configurations can be used as a foundation for
building a majority of the AtlasPC control applications where Distributed I/O is
needed. Ease in applying the Woodward software interface may differ from
vendor to vendor. Due to limited resources, Woodward can only supply limited
technical support for those applications using other vendors or part numbers not
shown in these examples. If extensive support is required, contact Woodward for
setting up an application development contract.
Woodward 49
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
All three network interfaces use the same I/O module configuration and order.
The Profibus and Modbus Network interface modules are manufactured by a
third party manufacturer (ProSoft Technology, Inc.). Allen-Bradley manufactures
the DeviceNet module.
50 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Upon power-up, the 3170-PDP goes to an initialization state and performs a self-
test (memory check, data memory clear). If a failure occurs, the interface adapter
transitions to a faulted state and waits for reset (cycle power). Otherwise, the
adapter begins monitoring the network (run state) for messages.
DIN RAIL
Thermocouple
Discrete Output Discrete Output Analog Input Analog Output Input (1794-IT8)
Discrete Input RTD Input (1794-
(Sink) (1794- (Relay) (1794- (Current) (1794- (Current) (1794- with Terminal
Profibus Interface (Sink) (1794-IB16) IR8) with Terminal
(3170-PDP) OV16) with OW8) with IE8/B) with OE4/B) with Base (1794-
with Terminal Base (1794-
Terminal Base Terminal Base Terminal Base Terminal Base TB3TS) and Cold
Base (1794-TB3S) TB3TS)
(1794-TB3S) (1794-TB3S) (1794-TB3S) (1794-TB3S) Junction (1794-
CJC2)
Group Node 1 Node 2 Node 3 Node 4 Node 5 Node 7
Node 6
24VDC
EXTERNAL
24VDC
POWER
SUPPLY
Address Spreadsheet
The I/O map for a module is divided into read words and write words. Read
words consist of input and status words, and write words consist of output and
configuration words. The number of read words or writes words can be 0 or
more.
In this example, the first read word received by the AtlasPC control from the
Network Interface Adapter (3170-PDP) is the Adapter Status Word. This is
followed by the input data from each Node, in the order of the installed I/O
modules. The Input data from Node 1 is first after the status word, followed by
Input data from Node 2, and so on up to slot 7. The Output data is received by
the Network Interface Adapter in the order of the installed I/O modules. The
Output data for Node 1 is received first, followed by the Output data for Node 2,
and so on up to slot 7. All bits in the adapter write word are reserved and
therefore are not used by the GAP application.
To keep track of the addressing for all of the reads and write addresses, the
creation of an address spreadsheet is very useful. This address spreadsheet can
be derived from the GSD file supplied by the manufacturer of the network
interface module (head).
The GSD file defines how the network interface module interacts with the I/O
modules being used. The GSD file can be downloaded from the Internet at the
network interface module manufacturer’s site. It needs to be imported into the
Applicom configuration program to create the necessary configuration files.
Woodward 51
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The condensed configuration does not use all reads and writes for all
of the modules as seen in the full format configuration and on the
Memory Map tables shown in the manufactures documentation. In
this example, the condensed configuration was used for setting up
the addressing spreadsheet. Verify the number of reads and writes
for each module in GSD file. Configure the required reads and writes
in the spreadsheet accordingly.
Addressing is sequential starting with the slave network interface module, which
gets the first read word and the first write word. The rest are addressed
according to how many read words and write words are associated with each
module, and in what order the modules are installed. Addressing begins at 0, not
1. For example, an IB16 module has one read and one write word, and the OV16
module has two write words. When configuring a slave interface module with one
IB16 module followed by one OV16 module, the slave interface module is
assigned read bits 0 through 15 (one word) and write bits 0 through 15 (one
word), the IB16 module gets read bits 16 through 31 (one word) and write bits 16
through 31 (one word) and the OV16 module gets write bits 32 through 63 (two
words).
Based on the GSD file, the address spreadsheet can be calculated. Using the
configuration of the example, the following address spreadsheet was generated.
See Table 6-1 for the address spreadsheet.
After creation of the address spreadsheet, the functionality associated with these
addresses must be obtained. This is done by reviewing the documentation for
each module supplied by the manufacturer.
Use the following documents from the manufacturer to obtain the Memory Maps
and related information.
52 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Module Document P/N
Discrete Input (Sink) 1794-5.4
Discrete Output (Sink) 1794-5.29
Discrete Output (Relay) 1794-5.19
Analog Input (Current) 1794-5.6
Analog Output (Current) 1794-5.5
Thermocouple Input 1794-6.5.7
RTD Input 1794-6.5.4
Profibus Interface FLEX-UM-PDP-1.2
Woodward 53
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
GAP Application
When setting up a new GAP application, create the chassis block with the
appropriate network interface configuration for the AtlasPC control chosen. In
Figure 6-2, an Applicom Profibus Master Network interface adapter is located in
slot 6 and an Applicom Master DeviceNet Network interface adapter in slot 7.
The DeviceNet slot is not used in this example, but will be used in the DeviceNet
example (see Allen-Bradley Flex I/O DeviceNet Configuration below).
DeviceNet Module
Profibus Module
When creating a new GAP application, the Applicom Profibus module is defined
with the FB_MODULE hardware block from the FieldBus MODULES menu. It is
generated automatically when “Generate channel sheet(s)” is chosen in the
chassis configuration. If more than one Profibus network interface module is
going to be connected to the A6 interface, then use the Append Rpt button to
create additional IO_B_X input fields within the FB_MODULE block. See Figure
6-3 for example of FB_MODULE with two Profibus interface groups. Only one
interface group is used in the following example.
The next GAP block that connects to the FB_MODULE block is the FB_EQUIP
block. This block can be found under the Hardware Group, select the
FB_MODULES tab and then select the FB_EQUIP block. This block is used to
define the Profibus network interface adapter. Use the Append Rpt button to
create additional IO_B_X fields within the FB_EQUIP block. Every FB I/O block
used for this distributed I/O group needs an IO_B_X field. If there are many I/O
blocks, as in this example, the FB_EQUIP block IO_B_X fields can’t all be
displayed on a single FB_EQUIP block. To simplify the block, only the first
channel for each node is shown. All other input channels are hidden. See Figure
6-4 for FB_EQUIP setup example.
54 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Node 1
Ch. G1N1_ B16.BI_02 through 16 not shown
Node 2
Ch. G1N2_OV16.BO_02 through 16 not shown
Node 3
Node 4
Node 5
Node 6
Node 7
The COMM_ERR output goes TRUE if there is a Communications error from the
PC104 Profibus Master to the individual Profibus Slave. The ERR_NUM output
displays the error number to define the type of error the Profibus slave has
detected (See Table 12.7.1.1-2, Applicom Error Num Table Definition). It has
been found that if there is a loss of communications between the Profibus master
and slave occurs, the COMM_ERR will go true and ERR_NUM will be 33. The
COMM_ERR will remain true until communications is restored.
Woodward 55
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Error Definition
0 No anomaly detected. The function took place correctly.
1 Unknown function. The requested function is not supported.
2 Incorrect address. The address of the variable you are soliciting is incorrect.
3 Incorrect data. Further details :Profibus DP protocol :- Wrong initialization of the
parameters related to the configuration of the equipment.- Start the configuration
again and import the GSD file.
4 Irretrievable data.
6 Layer 2 negative acknowledgment from the equipment (NACK).Further details
:Profibus DP protocol:- NO (Not Ok) , remote equipment is missing or defective.
10 Layer 2 negative acknowledgment from the equipment (NACK).Further details
:Protocol Profibus:- UE (User Error), Error in remote equipment.
11 Layer 2 negative acknowledgment from the equipment (NACK).Profibus Protocol:-
RR (Remote Resource), Not enough resources in remote equipment. Or invalid
initialization parameters.
12 Layer 2 negative acknowledgment from the equipment (NACK).Further details
:Profibus Protocol:- RS (Remote Service), The layer 2 service used is not
authorized on the SAP or the SAP is not activated.
13 Layer 2 negative acknowledgment from the equipment (NACK).Further details
:Profibus Protocol:- RDL (Response FDL/FMA1/2 Data Low), Not enough
resources in remote equipment to reply in low priority.
14 Layer 2 negative acknowledgment from the equipment (NACK).Further details
:Profibus Protocol:- RDH (Response FDL/FMA1/2 Data High), Not enough
resources in remote equipment to reply in high priority. Or invalid initialization
parameters.
15 Profibus Protocol:- LS (Local Service), local SAP not activated.
16 Profibus Protocol:- NO (Not OK), Significance dependent on layer 2 service.
21 Profibus Protocol:- IV (Invalid parameter in request),Further details : TS
ApplicomIO® = adr equipment. TS or adr equipment > to HSA
32 Bad parameter passed into the function. Incorrect number of variables.
33 Response time fault (Time-Out).Further details :- The remote equipment is
missing- the data of the local slave DP is not polled by another master.
36 Equipment not configured. Define the equipment configuration with PCCONFIO
and start again the ApplicomIO® product.
There are two approaches to configuring the I/O blocks (FB_BI, FB_BO, FB_AI,
and FB_AO). One way would be to use one block and use the repeat option to
create multiple fields within the block. This approach was used in this example to
read status bits (FB_BI) such as underrange, overrange, etc. and to set functions
(FB_BO) such as filter times, ranges, etc. The other way to configure the
application would be to use an I/O block for every channel or every bit. This
approach was used to create individual channels. Alternatively, FB_INITA and
FB_INITB blocks could be used for writes that only need to occur on power-up. In
this example, the FB_INITA and FB_INITB blocks are not used.
Nomenclature
When creating a new GAP application, it is important to establish a well
organized block naming convention up front. Once done, it is easier to find
specific functions and I/O within a large GAP application. In this example,
Woodward has formulated certain nomenclature rules to facilitate ease in
navigating through the example application. Here are some rules to follow:
56 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
1. The AtlasPC control is always referred to as the A1 Chassis. If there were
more than one AtlasPC control per system, then they would be A2, A3, etc.
2. The board slots in the AtlasPC control are referred to as slots A01 – A07.
The Profibus slot is A06 and the DeviceNet slot is A07 in this example.
3. The Profibus network may consist of one or more network interface adapters,
(3170-PDP). Each adapter (referred to as Nodes by Allen-Bradley) and its
associated modules are listed as groups G1, G2, etc.
4. A group may consist of one to eight I/O modules. These modules (referred to
as slots by Allen-Bradley) are listed as nodes N1_, N2_, etc., followed by the
module type.
5. To designate status and config. blocks, Read or Write followed by a 1, 2, or 3
is used to delineate individual words written or read from a module.
6. A period is used to separate the category, block name, and block field
nomenclature.
7. In the table below, a GAP block that has a single channel per block is
referred to as a configuration type 1. These blocks are named with Category
= G1Nx_xxxx, Block name = BI_01, BI_02, etc. or BO_01, BO_02, etc.
8. A GAP block that has multiple bits per block is referred to as a configuration
type 2. These blocks are named with Category = G1Nx_xxxx, Block name =
READ1, READ2, etc. or WRITE1, WRITE2, etc.
For this example, the naming convention has been setup as follows.
Woodward 57
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
From the GSD file, the number of read and write addresses and their order were
defined based on the physical order of the modules and the memory maps
defined by Allen-Bradley. The GAP application is also constructed in the same
order that the modules are ordered. In setting up the first I/O module in GAP, the
application must read and write to the specific addresses defined in the address
spreadsheet. These read and write addresses are used to extract data from the
distributed I/O modules and to set certain options. In GAP, reads are done with
FB_AI and FB_BI blocks, writes with FB_AO and FB_BO blocks. AI’s and AO’s
are addressed by the byte, while BI’s and BO’s are addressed by the bit. The
following steps will show how to set up these FB_XX blocks to read and write to
the distributed I/O modules.
Allen-Bradley modules reverse the order of the high and low bytes of
their discrete reads and writes (BI’s and BO’s). this has to be
accommodated in the BI and BO GAP blocks as shown in Table 6-3.
See Table 6-3 for example of Boolean address order for block field numbering.
58 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
ProSoft Network Interface Adapter (3170-PDP) Module
Based on the address spreadsheet, the ProSoft Network Interface Adapter 3170-
PDP has one read and one write address word allocated in the memory map.
According to the FLEX-UM-PDP-1.2 User Manual from ProSoft, the write word is
reserved. Therefore there is no need to write to addresses 0-15. See Figure
18-5. for the read memory map for the 3170-PDP Interface Module.
Woodward 59
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The node address (Group address) changed bit is set when the node address
switch setting has been changed since power up. The new node address does
not take affect until the adapter has been powered down and then powered back
up. Until this power cycling occurs, the node address switches will not match the
actual node address.
Based on this memory map, an FB_BI read block was created to allow the GAP
application to read all of the used bits. See Figure 6-6 for example of setup of
STATUSREAD GAP block used to read the 3170-PDP memory map.
Spreadsheet Addresses
60 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Allen-Bradley 24 Vdc Sink Input (1794-IB16) Module
In this example, the 1794-IB16 module is plugged into a 1794-TB3S base. See
Figure 6-7 for example of 1794-IB16 module wiring.
DISTRIBUTED I/O
Allen-Bradley FLEX I/O 1794-IB16 To 24VDC Com
DISCRETE INPUT To +24VDC
(-COM) B16
(+24VDC) C34
DI (+) A0 1
PBI.A1.A06.G1.N1_BI_01 (-COM) B17 2
(+24VDC) C35
DI (+) A1 3
PBI.A1.A06.G1.N1_BI_02 (-COM) B18
(+24VDC) C36
DI (+) A2
PBI.A1.A06.G1.N1_BI_03 (-COM) B19
(+24VDC) C37
DI (+) A3 5
PBI.A1.A06.G1.N1_BI_04 (-COM) B20
(+24VDC) C38
DI (+) A4 6
Woodward 61
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The memory map indicates that there are two read addresses and one write
address. The condensed format used to set up the address spreadsheet only
uses one read and one write address. See Figure 6-8 for memory map of Allen-
Bradley 1794-IB16 Discrete input module.
In this example, this module was set up with filter times of 256us for all inputs,
Counter Reset set to off, and Counter set to standard input filtered data. See
Figure 6-9 for input filter time bit map and Figure 6-10 for example of 1794-IB16
Write GAP block.
62 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Spreadsheet Addresses
To read the discrete input bits for the 1794-IB16 module, individual FB_BI blocks
were used. See Figure 6-11 for example of GAP block configuration.
Woodward 63
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Each of the FB_BI blocks have fault indication (BI_F_X) and fault number
(BI_FN_X) output fields for each channel within the block. In this example there
is only one channel per block and the BI_FN_X field is hidden. These fault fields
may be used during initial application checkout to identify programming errors.
The BI_F_X and BI_FN_X fields display the same errors as the COMM_ERR and
ERR_NUM fields in the FB_EQUIP block. Therefore, only the FB_EQUIP
COMM_ERR and ERR_NUM fields need to be monitored for faults after the
application and hardware has been verified to work. The FB_BO, FB_AI, and
FB_AO blocks also have similar fault output fields and can be treated the same
as the FB_BI block fields. The BI_R_X field is used to reset the fault output fields.
By setting TRUE on the BI_R_1 input, the fault output is non-latching.
64 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
+28VDC TB49 +
DISTRIBUTED I/O 28COM TB50 -
Allen-Bradley FLEX I/O 1794-OV16 J1-23
J1-24 Woodward
DISCRETE OUTPUT 16 Channel Relay
J1-21
(-COM) B16 J1-22 P/N 5441-691
(+24VDC) C34
DO (+) A0 J1-19 K1 or
PBI.A1.A06.G1.N2_BO_01 (-COM) B17 P/N 5441-419
(+24VDC) C35
J1-18
DO (+) A1 K2
PBI.A1.A06.G1.N2_BO_02 (-COM) B18
(+24VDC) C36
J1-17
DO (+) A2 K3
PBI.A1.A06.G1.N2_BO_03 (-COM) B19
(+24VDC) C37
J1-16
DO (+) A3
PBI.A1.A06.G1.N2_BO_0 (-COM) B20
K4
(+24VDC) C38
J1-15
DO (+) A4 K5
PBI.A1.A06.G1.N2_BO_05 (-COM) B21
(+24VDC) C39
J1-14
DO (+) A5 K6
PBI.A1.A06.G1.N2_BO_06 (-COM) B22
(+24VDC) C40
J1-13
DO (+) A6 K7
PBI.A1.A06.G1.N2_BO_07 (-COM) B23
(+24VDC) C41
DO (+) A7
J1-12 K8
PBI.A1.A06.G1.N2_BO_08 (-COM) B24
(+24VDC) C42
J1-11
DO (+) A8 K9
PBI.A1.A06.G1.N2_BO_09 (-COM) B25
(+24VDC) C43
J1-10
DO (+) A9 K10
PBI.A1.A06.G1.N2_BO_10 (-COM) B26
(+24VDC) C44
DO (+) A10 J1-9 K11
PBI.A1.A06.G1.N2_BO_11 (-COM) B27
(+24VDC) C45
DO (+) A11 J1-8 K12
PBI.A1.A06.G1.N2_BO_12 (-COM) B28
(+24VDC) C46
DO (+) A12 J1-7 K13
PBI.A1.A06.G1.N2_BO_13 (-COM) B29
(+24VDC) C47
J1-6
DO (+) A13 K14
PBI.A1.A06.G1.N2_BO_1 (-COM) B30
(+24VDC) C48
DO (+) A14 J1-5
K15
PBI.A1.A06.G1.N2_BO_15 (-COM) B31
(+24VDC) C49
DO (+) A15 J1-4 K16
PBI.A1.A06.G1.N2_BO_16 (-COM) B32
(+24VDC) C50
(-COM) B33 To 24VDC COM
(+24VDC) C51 To +24VDC
The memory map indicates that there are zero read addresses and one write
address. The condensed format used to set up the address spreadsheet
specifies zero read and two write addresses. The extra write word is not defined
in the memory map therefore no GAP block is used. However this undefined
address must be reserved when setting up the address spreadsheet. See Figure
6-13 for memory map of 1794-OV16 module.
Woodward 65
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
To write the discrete output bits for the 1794-OV16 module, individual FB_BO
blocks were used. See Figure 6-14 for example of GAP write block configuration.
Spreadsheet Address
Bit to be written to Module (True or False from GAP application)
66 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
In this example, the relay outputs are individually fused to protect the module.
See Figure 6-15 for example of 1794-OW8 module wiring.
DISTRIBUTED I/O
Allen-Bradley FLEX I/O 1794-OW8
RELAY OUTPUT
(-COM) B16
(+24VDC) C34 2A
Valve
A0 1
Coil
(-COM) B17
K0 (+24VDC) C35
PBI.A1.A06.G1.N3_BO_01
A1
(-COM) B18
(+24VDC) C36 2A
Valve
A2 2
Coil
(-COM) B19
K1 (+24VDC) C37
PBI.A1.A06.G1.N3_BO_02
A3
(-COM) B20
(+24VDC) C38 2A
Valve
A4 3
Coil
(-COM) B21
K2 (+24VDC) C39
PBI.A1.A06.G1.N3_BO_03
A5
(-COM) B22
(+24VDC) C40 2A
Valve
A6 4
Coil
(-COM) B23
K3 (+24VDC) C41
PBI.A1.A06.G1.N3_BO_04
A7
(-COM) B24
(+24VDC) C42 2A
Valve
A8 5
Coil
(-COM) B25
K4 (+24VDC) C43
PBI.A1.A06.G1.N3_BO_05
A9
(-COM) B26
(+24VDC) C44 2A
Valve
A10 6
Coil
(-COM) B27
K5 (+24VDC) C45
PBI.A1.A06.G1.N3_BO_06
A11
(-COM) B28
(+24VDC) C46 2A
Valve
A12 7
Coil
(-COM) B29
K6 (+24VDC) C47
PBI.A1.A06.G1.N3_BO_07
A13
(-COM) B30
(+24VDC) C48 2A
Valve
A14 8
Coil
(-COM) B31 9
K7 (+24VDC) C49
PBI.A1.A06.G1.N3_BO_08
A15
(-COM) B32
(+24VDC) C50
(-COM) B33 To 24VDC COM
(+24VDC) C51 To +28VDC
The memory map indicates that there are one read address and one write
address. The condensed format used to set up the address spreadsheet
specifies zero read and one write address. Since the read address is not used,
nothing is read from this address for this example. See Figure 6-16 for memory
map of 1794-OW8 module.
Woodward 67
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
To write the discrete output bits for the 1794-OW8 module, individual FB_BO
blocks were used. See Figure 6-17 for example of GAP write block configuration.
Spreadsheet Address
Bit to be written to Module (True or False from GAP application)
68 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Allen-Bradley Analog Input (1794-IE8/B) Module
In this example, loop powered transducers are shown. See Figure 6-18 for
example of 1794-IE8/B module wiring.
DISTRIBUTED I/O
Allen-Bradley FLEX I/O 1794-IE8/B
ANALOG INPUT To 24COM
To +24VDC
(-COM) B16
(+24VDC) C34
AI (+) A0 1 - 4-20mA +
Xducer
PBI.A1.A06.G1.N4_AI_01 (-COM) B17
(+24VDC) C35 2
VI (+) A1
Not Used (-COM) B18
(+24VDC) C36
- 4-20mA +
AI (+) A2 3
Xducer
PBI.A1.A06.G1.N4_AI_02 (-COM) B19
(+24VDC) C37 4
VI (+) A3
Not Used (-COM) B20
(+24VDC) C38
AI (+) A4 5 - 4-20mA +
Xducer
PBI.A1.A06.G1.N4_AI_03 (-COM) B21
(+24VDC) C39 6
VI (+) A5
Not Used (-COM) B22
(+24VDC) C40
AI (+) A6 7 - 4-20mA +
Xducer
PBI.A1.A06.G1.N4_AI_04 (-COM) B23
(+24VDC) C41 8
VI (+) A7
Not Used (-COM) B24
(+24VDC) C42
AI (+) A8 9 - 4-20mA +
Xducer
PBI.A1.A06.G1.N4_AI_05 (-COM) B25
(+24VDC) C43 10
VI (+) A9
Not Used (-COM) B26
(+24VDC) C44
AI (+) A10 11 - 4-20mA +
Xducer
PBI.A1.A06.G1.N4_AI_06 (-COM) B27
(+24VDC) C45 12
VI (+) A11
Not Used (-COM) B28
(+24VDC) C46
AI (+) A12 13 - 4-20mA +
Xducer
PBI.A1.A06.G1.N4_AI_07 (-COM) B29
(+24VDC) C47 14
VI (+) A13
Not Used (-COM) B30
(+24VDC) C48
AI (+) A14 15 - 4-20mA +
Xducer
PBI.A1.A06.G1.N4_AI_08 (-COM) B31
(+24VDC) C49 16
VI (+) A15
Not Used (-COM) B32
(+24VDC) C50
(-COM) B33
Woodward 69
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The memory map indicates that there are nine read addresses and one write
address. The condensed format used to set up the address spreadsheet
specifies the same. See Figure 6-19 for the input memory map and Figure 6-20
for the output memory map for the 1794-IE8/B module.
Underrange bits (U)—These bits are set (1) when the input channel is below a
preset limit as defined by the configuration selected. U0 (bit 00) corresponds to
input channel 0 and U1 (bit 01) corresponds to input channel 1, etc.
Power Up (unconfigured state) bit (PU)—This bit is set (1) when the
configuration word is all zeroes (0) due to a reset (adapter power cycle or module
insertion) or a cleared configuration word (all 0). When this bit is set (1), the
module status indicator flashes.
70 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
In this example, this write block is set up with Range Select bits for all channels
set to 0-21mA. The read block is set up to be able to read the status of the
underrange bits for all channels and the Power Up bit (PU). See Figure 6-21 for
example of 1794-IE8/B Read and Write GAP blocks.
Spreadsheet Addresses
To read the analog input words for the 1794-IE8/B module, individual FB_AI
blocks were used. The addressing for the analog input blocks needs to be in
bytes rather than bits. To convert from spreadsheet bit addresses to bytes, take
the first bit of the word in the spreadsheet for the 1794-IE8/B module and divide
by 8bits/byte (32÷8=4). Repeat this calculation for the rest of the addresses for
each channel. The relationship between raw counts and engineering units needs
to be specified in the analog read block. The raw count to milliamp relationship
can be found in the Allen-Bradley manual 1794-6.5.2. See Figure 6-22 for Analog
Data Format Table. The table specifies counts in Hexadecimal form and the
FB_AI block requires the AI_RL_1 and AI_RH_1 fields to be entered in decimal
form. Under the 0-20mA column in the Analog Data Format Table, 21mA is
equivalent to 7FF8 Hexadecimal. Converting 7FF8 to decimal equals 32760
Counts High. In this example the block was scaled to 0-21mA (engineering units)
for 0-32760 counts from the module. See Figure 6-23 for example of 1794-IE8/B
GAP Analog Read Blocks.
Woodward 71
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
72 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Allen-Bradley Analog Output (1794-OE4/B) Module
DISTRIBUTED I/O
Allen-Bradley FLEX I/O 1794-OE4/B
ANALOG OUTPUT
AO (+) A0 1 + 4-20mA -
PBI.A1.A06.G1.N5_AO_01 Load
AO (-) A1 2
VO (+) A2
Not Used VO (-) A3
AO (+) A4 5 + 4-20mA -
PBI.A1.A06.G1.N5_AO_02 Load
AO (-) A5 6
Not Used
VO (+) A6
VO (-) A7
AO (+) A8 9 + 4-20mA -
PBI.A1.A06.G1.N5_AO_03 Load
AO (-) A9 10
Not Used
VO (+) A10
VO (-) A11
AO (+) A12 13 + 4-20mA -
Load
PBI.A1.A06.G1.N5_AO_04
AO (-) A13 14
Not Used
VO (+) A14
VO (-) A15
B16
B17
B18
B19
B20
B21
B22
B23
B24
24V (COM) B25
B26
B27
B28
B29
B30
B31
B32 To 24COM
B33
C34 To +24VDC
C35
C36
C37
C38
C39
C40
C41
C42
24V (+) C43
C44
C45
C46
C47
C48
C49
C50
C51
Woodward 73
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The memory map indicates that there is one read address and 13 write
addresses. The condensed format used to set up the address spreadsheet
specifies one read address and 6 write addresses. From the output memory map
addresses 6-9 are not used and 10-13 are used to specify safe state values that
are not available in the condensed format. Therefore, the output memory map
words 0-5 correspond to the six write words specified in the address
spreadsheet. See Figure 6-25 for the input memory map and Figure 6-26 for the
output memory map for the 1794-OE4/B module.
Multiplex control bit (M) for individual channels. These bits control the safe state
analog outputs. – Bit 00 corresponds to output channel 0, bit 01 corresponds to
output channel 1, and so on.
1 = use words 0,1,2 or 3 as directed by channel number n.
0 = use words 10, 11, 12 or 13 as directed by channel number n.
For definition of Fx and Cx bits, see Figure 6-27.
74 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
In this example, the read block is set up to monitor the four broken wire
addresses and the power up bit on the module. The write blocks are set up to
configure the module for multiplex control and 0-20mA range. Since word
addresses 10-13 are not defined with the condensed format in the GSD file, the
multiplex control functionality is not relevant. Therefore all of the M bits were set
to true. See Figure 6-28 for example of 1794-OE4/B Read and Write GAP blocks.
Spreadsheet Addresses
Woodward 75
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
To write the analog output words for the 1794-OE4/B module, individual FB_AO
blocks were used. The addressing for the analog output blocks needs to be in
bytes like the analog input blocks. To convert from spreadsheet bit addresses to
bytes, take the first bit of the word in the spreadsheet for the 1794-OE4/B module
and divide by 8 bits/byte (96÷8=12). Repeat this calculation for the rest of the
addresses for each channel. For the 1794-OE4/B module to output the correct
current, the GAP block must convert the engineering units requested to raw
counts used by the module. The milliamp to raw count relationship can be found
in the Allen-Bradley manual 1794-6.5.2. See Figure 6-22 for Analog Data Format
Table. The table specifies counts in Hexadecimal form and the FB_AO block
requires the AO_RL_1 and AO_RH_1 fields to be entered in decimal form. Under
the 0-20mA column, of the Analog Data Format Table, 21mA is equivalent to
7FF8 Hexadecimal and 0mA is 0000 Hexadecimal. Converting 7FF8 to decimal
equals 32760 Counts High. In this example the block was scaled to 0-21mA
(engineering units) for 0-32760 counts from the module. See Figure 6-29 for
example of 1794-OE4/B GAP Analog Write Blocks.
Spreadsheet Address
Input from GAP Application
(Bytes)
Minimum mA
Maximum mA
Counts Low
Counts High
76 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Allen-Bradley Thermocouple Input (1794-IT8) Module
In this example, the first six channels are used for thermocouples and the last
two channels are used for monitoring the reference junction temperatures. See
Figure 6-30 for example of 1794-IT8 module wiring.
DISTRIBUTED I/O
Allen-Bradley FLEX I/O 1794-IT8
THERMOCOUPLE INPUT
Chromel
TC (+) A0 1
PBI.A1.A06.G1.N6_TC_01 Alumel
TC (-) A1 2
TC (+) A2 3
PBI.A1.A06.G1.N6_TC_02
TC (-) A3 4
PBI.A1.A06.G1.N6_TC_03
TC (+) A4 5
TC (-) A5 6
PBI.A1.A06.G1.N6_TC_04
TC (+) A6 7
TC (-) A7 8
TC (+) A8 9
PBI.A1.A06.G1.N6_TC_05
TC (-) A9 10
PBI.A1.A06.G1.N6_TC_06
TC (+) A10 11
TC (-) A11 12
C35
C36
C37 CJC
C38
C39
C40
C41
C42
24V (+) C43
C44
C45
C46
C47
C48 CJC
C49
C50
C51
Woodward 77
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The memory map indicates that there are eleven read addresses and 3 write
address. The condensed format used to set up the address spreadsheet
specifies eleven read addresses and 4 write addresses. The extra write word is
not defined in the memory map, therefore no GAP block is used. However this
undefined address must be reserved when setting up the address spreadsheet.
In this example the undefined write address was allocated to addresses 240
through 255. See Figure 6-31 for the input memory map and Figures 6-32
through 6-35 for the output memory map for the 1794-IT8 module.
Underrange bits—These bits are set if the input signal is below the input
channel's minimum range.
Overrange bits—These bits are set if 1) the input signal is above the input
channel's maximum range, or 2) an open detector is detected.
Cold Junction sensor underrange bit—This bit is set if the cold junction
temperature is below 0 °C.
Cold Junction sensor overrange bit—This bit is set if the cold junction
temperature is above 70 °C.
Bad Structure—This bit is set if an invalid thermocouple type is selected.
Powerup bit—This bit is set (1) until configuration data is received by the
module.
Critical Error bits—If these bits are anything other than all zeroes, return the
module to the factory for repair.
Calibration Range bit—Set to 1 if a reference signal is out of range during
calibration
Calibration Done bit—Set to 1 after an initiated calibration cycle is complete.
Calibration Bad bit—Set to 1 if the channel has not had a valid calibration.
78 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Woodward 79
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
In this example, the first read block is set up to monitor the all of the under and
overrange bits on the module. The second read block monitors the Cold Junction
sensor underrange bit, Cold Junction sensor overrange bit, Bad Structure,
Powerup bit, Critical Error bits, Calibration Range bit, Calibration Done bit, and
Calibration Bad bit. The first write word(1) sets the module for °F units, 100 Hz
filtering, and no calibration. The second write word(2) sets the module for type K
thermocouples on channels 0, 1, 2, and 3. The third write word(3) sets the
module for type K thermocouples for channels 4 and 5, cold junction (0-3)
temperature on channel 6, and cold junction (4-7) on channel 7. See Figure 6-36
for GAP read and write block example.
80 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
To read the analog input words for the 1794-IT8 module, individual FB_AI blocks
were used. Again, the addressing for the analog input blocks need to be in bytes.
To convert from spreadsheet bit addresses to bytes, take the first bit of the word
in the spreadsheet for the 1794-IT8 module and divide by 8 bits/byte (208÷8=26).
Repeat this calculation for the rest of the addresses for each channel. In order to
read the output from the 1794-IT8 module correctly, the FB_AI block must be
scaled appropriately. According to the 1794-IT8 manual, the AI_RL_1 (Minimum
Temp) and AI_RH_1 (Maximum Temp) must be scaled to ten times the AI_BL_1
(Scale Low) and AI_BH_1 (Scale High) values. Do not use the –95 to 2502 °F
range indicated in Figure 6-35, 1794-IT8 Write Word 1 and 2, above, because it
is in error. Use Figure 6-37 1794-IT8 Input Scaling, below, for type K
thermocouple range of –454 to 2502 °F.
Woodward 81
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Again, from the 1794-IT8 manual, the range of the cold junction (reference
junction) sensor is 0-70 °C. This converts to 32 to 158 °F. It has been found that
the AI_RL_1 and AI_RH_1 must be scaled to one hundred times the AI_BL_1
and AI_BH_1 values. See Figure 6-38 for example of 1794-IT8 GAP Analog
Read Blocks.
82 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Spreadsheet Address Output to GAP Application
(Bytes)
Reference Junction
Minimum Temp
Maximum Temp
Scale Low
Scale High
Woodward 83
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
DISTRIBUTED I/O
Allen-Bradley FLEX I/O 1794-IR8
RTD INPUT with TB3TS BASE
RTD
RTD (+) A0 1
C35
+24VDC C36
C37
C38
C39
C40
C41
Chassis C42
Grnd C43
C44
C45
C46
C47
C48
C49
C50
C51
The memory map indicates that there are eleven read addresses and 3 write
address. The condensed format used to set up the address spreadsheet
specifies eleven read addresses and 3 write addresses also. See Figure 6-40 for
the input memory map and Figures 6-41 through 6-44 for the output memory
map for the 1794-IR8 module.
84 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Underrange bits—These bits are set if the input signal is below the input
channel's minimum range.
Overrange bits—These bits are set if 1), the input signal is above the input
channel's maximum range, or 2), an open detector is detected.
Powerup bit—This bit is set (1) until configuration data is received by the
module.
Critical Error bits—If these bits are anything other than all zeroes, return the
module to the factory for repair.
Calibration Range bit—Set to 1 if a reference signal is out of range during
calibration
Calibration Done bit—Set to 1 after an initiated calibration cycle is complete.
Calibration Bad bit—Set to 1 if the channel has not had a valid calibration.
Woodward 85
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
86 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
In this example, the first read block is set up to monitor the all of the under and
overrange bits on the module. The second read block monitors the Powerup bit,
Critical Error bits, Calibration Range bit, Calibration Done bit, and Calibration Bad
bit. The first write word(1) sets the module for °F units, 100 Hz filtering, and no
calibration. The second write word(2) sets the module for 100 ohm Pt Euro RTD
on channels 0, 1, 2, and 3. The third write word(3) sets the module for 100 ohm
Pt Euro RTD for channels 4, 5, 6, and 7. See Figure 6-45 for GAP read and write
block example.
Woodward 87
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
To read the analog input words for the 1794-IR8 module, individual FB_AI blocks
were used. Again, the addressing for the analog input blocks needs to be in
bytes. In order to read the output from the 1794-IR8 module correctly, the FB_AI
block must be scaled appropriately. According to the 1794-IR8 manual, the
AI_RL_1 (Minimum Temp) and AI_RH_1 (Maximum Temp) must be scaled to ten
times the AI_BL_1 (Scale Low) and AI_BH_1 (Scale High) values. From the
1794-IR8 Input Scaling, it can be seen that the 100 ohm Pt Euro RTD range is –
328 to 1598 °F. See Figure 6-46 for Input scaling for RTDs.
88 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
See Figure 6-47 for example of 1794-IR8 GAP Analog Read Blocks.
Minimum Temp
Maximum Temp
Scale Low
Scale High
Modicon developed the Modbus addressing scheme around the data table and
I/O structure in Modicon PLCs. Allen-Bradley Flex I/O is a modular system which
combines the functions of terminal blocks and I/O modules for distributed I/O.
Each Flex I/O system has the following components: a Base Controller and one
or more I/O Module(s). Flex I/O systems can contain up to 8 I/O modules per
slave (node). An external +24 Vdc power supply is required.
In this example, one 3170-MBS MODBUS adapter from ProSoft Technology, Inc.
is interfaced with seven terminal base units with installed FLEX I/O modules,
forming a FLEX I/O system.
Woodward 89
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The most common data space used is the 4xxxx space using the Function Codes
3, 6 and 16. This space is used to transfer 16 bit register values and can be used
to transfer bit mapped data. In this example of the Allen-Bradley configuration,
only the 4xxxx address space is used, which results in all discrete
communications being done in analog words.
Each Flex module has 60 words of address space (30 Input or Read addresses
and 30 Output or Write addresses). Data can be mapped in two directions,
horizontal or vertical. There are 15 Horizontal and 15 Vertical addresses
assigned per module. With horizontal addressing, the adapter addresses the first
input and output word for each module incrementally across the modules. 40001
for module 0, 40002 for module 1 and so on. Vertical addressing increments all
the words for each module. For example, the vertical read words for slot 0 start
with 41001 and increment to 41015.
DIN RAIL
Thermocouple
Discrete Output Discrete Output Analog Input Analog Output Input (1794-IT8)
Discrete Input RTD Input (1794-
(Sink) (1794- (Relay) (1794- (Current) (1794- (Current) (1794- with Terminal
Modbus Interface (Sink) (1794-IB16) IR8) with Terminal
(3170-MBS) OV16) with OW8) with IE8/B) with OE4/B) with Base (1794-
with Terminal Base (1794-
Terminal Base Terminal Base Terminal Base Terminal Base TB3TS) and Cold
Base (1794-TB3S) TB3TS)
(1794-TB3S) (1794-TB3S) (1794-TB3S) (1794-TB3S) Junction (1794-
CJC2)
Group Node 1 Node 2 Node 3 Node 4 Node 5 Node 7
Node 6
24VDC
EXTERNAL
24VDC
POWER
SUPPLY
Address Spreadsheet
The I/O map for a module is divided into read words and write words. Read
words consist of input and status words, and write words consist of output and
configuration words. The number of read words or write words can be 0 or more.
To keep track of the addressing for all of the reads and writes, the creation of an
address spreadsheet is very useful. This address spreadsheet can be derived
from the network interface module (head) 3170-MBS User Manual. The Allen-
Bradley I/O modules can be addressed in two ways (Horizontal or Vertical). It has
been found that vertical addressing works best with the sequential nature of the
MODBUS_M GAP block repeat field functionality. See Table 12.7.1.3-1 for
address spread sheet for this example.
90 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Woodward 91
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Use the following documents from the manufacturer to obtain the Memory Maps
and related information.
Nomenclature
When creating a new GAP application, it is important to establish a well
organized block naming convention up front. Once done, it is easier to find
specific functions and I/O within a large GAP application. Though not shown in
this example, the Category and Block Names could follow similar nomenclature
rules to those shown in Chapter 1 (Profibus).
GAP Application
In order to communicate between the Atlas serial RS-485 port and the 3170-
MBS, a MOD_PORT and MODBUS_M block must be defined in GAP. The
MOD_PORT block defines the serial communications baud rate, stop, parity, and
type of interface (RS-232, 422, 485). The MODBUS_M block defines the
addressing for Modbus communications between the Atlas and the distributed
I/O. Based on the Address Spreadsheet, this block can be customized to read
and write to appropriate addresses. See Figure 6-49 for
MODBUS_M/MOD_PORT setup example.
92 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
The E_ERR_1_x output field on the MODBUS_M block is used to display
Exception Error on PORT_1 per RPTx. It latches TRUE when an exception error
is detected. E_NUM_1_X (hidden) displays the error number. See Table
12.7.1.3-3 for exception errors.
The L_ERR_1_x is used to display Link Error on PORT_1 for RPTx. It goes
TRUE when the slave fails to answer a data request. If a response isn't received
in TIME_OUT_x seconds, the request is retried. If a response isn't received in
TIME_OUT_x seconds after the request is retried, then this output is set true.
While waiting for a response from one slave, the master is not communicating
with the other slaves. So, if multiple slaves fail at the same time (i.e. broken
cable), the L_ERR_1_x for the first slave attempted will occur at 2 x
TIME_OUT_x. But, the second L_ERR_1_x won't go true until 2 x TIME_OUT_x
after the first failure because no communications are attempted with that slave
until after the first has timed out.
Woodward 93
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The 3170-MBS RS-485 communications setup must be configured manually with
two DIP switches located on the Adapter. These DIP switches must reflect the
settings specified in the MOD_PORT and MODBUS_M blocks. The MOD_PORT
block defaults to 8 data bits per word. These setting were set as follows for this
example:
In order to limit the size of the MODBUS_M address repeat groups, four repeat
groups were set up. These groups consisted of:
The analog writes were split into small groups with no more than 45 analog write
addresses each. It was found that the Allen-Bradley adapter couldn’t accept
more than 45 write requests per group. If more than 45 analog write addresses
are listed, the 3170-MBS will not communicate with the AtlasPC control. From
the Address Spreadsheet, it can be seen that the Allen-Bradley modules require
all read and write addresses be in the 40000 block of addresses. The
AR_F_CODE field specifies the Analog Read Function Code for Modbus. By
setting the AR_F_CODE field to 3, the MODBUS_M block will access addresses
40001-4FFFF for reads. Address offsets are specified in the AR_ADD_X fields in
order to limit the number of repeats within each address group. See Figure 6-50
for example of MODBUS_M repeat fields.
94 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Within the MODBUS_M RPT window, there are four repeats for each group
(RPTbw1, RPTbr1, RPTar1, and RPTaw1). Each one of these RPT fields opens
another window which displays the addresses assigned for that particular group.
See specific module sections below for memory map function assignment.
Example for Module 1 status bits (AR_V_1_1): since group one uses
AR_F_CODE = 3, the starting address is 40000. The AR_ADD_1 offset is 120.
Therefore the Module 1 status word (AR_V_1_1) has an address of 40000 + 120
+ 1 = 40121. All of the addresses specified in the Address Spreadsheet are
mapped into MODBUS_M block by applying this formula. See Figures 6-51,
6-52, 6-53, 6-54, and 6-55 for Groups 1, 2, 3, and 4 read/write address windows.
Only those addresses specified in the Memory map/Address Spreadsheet are
shown to abbreviate the figures. Group 1 doesn’t contain any RPTbw1, RPTbr1,
or RPTaw1 repeat fields because it is used for the Adapter Status Words. See
Prosoft Modbus Interface (3170-MBS) Module section below for memory map
functionality. Figure 6-51 shows the read addresses for Group 1 (40121-40173,
Adapter Status Words).
Woodward 95
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Figure 6-52 shows all of the used read addresses for Group 2 (41001-41120,
Analog Read)
Figure 6-53 shows the used write addresses for Group 2 (41201-41245, Analog
Write).
96 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Figure 6-54 shows all of the used write addresses for Group 3 (41246-41290,
Analog Write)
Figure 6-55 shows all of the used write addresses for Group 4 (41291-41294,
Analog Write).
Woodward 97
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
ProSoft Modbus Interface (3170-MBS) Module
In addition to the individual I/O module read and write addresses, there are
several status read addresses provided by the 3170-MBS Interface module.
These status words can be used to monitor the condition of the I/O modules via
the GAP application. See Figure 6-56 for 3170-MBS Status Information
addresses from the 3170-MBS User Manual.
98 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Addresses 40121 to 40129 are all status words that represent 16 individual
Boolean output conditions. For the GAP application to read the individual bits
associated with the 16 bit words in the status addresses above, an A_TO_16B
GAP Block is used. These blocks convert the 16 bit word from the addresses in
the MODBUS_M group 1 entries to individual Boolean states that can be used by
the GAP application. See Figure 6-57 for example of setup of the discrete Status
Word GAP blocks used to read the 3170-MBS memory map.
Adapter Module 1 Module 2 Module 3 Module 4
Status Word Status Word Status Word Status Word Status Word
From MODBUS_M
(Address 40129)
Discrete Outputs
Figure 6-57. Example of 3170-MBS Memory Map Discrete Read GAP Blocks
Woodward 99
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The remaining Adapter status words (40154 – 40163 and 40171 – 40173) are all
16 bit words and can be handled by the GAP application as an analog values. An
A_NAME block is used to connect the specific status function with the addresses
entered in the MODBUS_M block. See Figure 6-58 for an example of the 3170-
MBS Status Word monitoring.
From MODBUS_M
(Address 40173)
Figure 6-58. Example of 3170-MBS Memory Map Analog Read GAP Blocks
In this example, the 1794-IB16 module is plugged into a 1794-TB3S base. See
Figure 6-59 for example of 1794-IB16 module wiring.
100 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
DISTRIBUTED I/O
Allen-Bradley FLEX I/O 1794-IB16 To 24VDC Com
DISCRETE INPUT To +24VDC
(-COM) B16
(+24VDC) C34
DI (+) A0 1
MBI.A1.A02.G1.N1_BI_01 (-COM) B17 2
(+24VDC) C35
DI (+) A1 3
MBI.A1.A02.G1.N1_BI_02 (-COM) B18
(+24VDC) C36
DI (+) A2 4
MBI.A1.A02.G1.N1_BI_03 (-COM) B19
(+24VDC) C37
DI (+) A3 5
MBI.A1.A02.G1.N1_BI_04 (-COM) B20
(+24VDC) C38
DI (+) A4 6
The 1794-IB16 memory map indicates that there are two read addresses and
one write address. See Figure 6-60 for memory map of Allen-Bradley 1794-IB16
Discrete input module.
Woodward 101
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
In this example, this module was set up with filter times of 256us for all inputs,
Counter Reset set to off, and Counter set to standard input filtered data. See
Figure 6-61 for input filter time bit map.
To MODBUS_M
(Address 41201)
From MODBUS_M
(Address 41001)
1794-IB16 Inputs
To GAP Application
Data Word to be
written to Module
102 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Allen-Bradley 24 Vdc Sink Output (1794-OV16) Module
Woodward 103
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The memory map indicates that there are zero read addresses and one write
address. See Figure 6-64 for memory map of 1794-OV16 module.
To write the discrete output bits for the 1794-OV16 module, a B16_TO_A block is
used. See Figure 6-65 for example of GAP write block configuration.
To MODBUS_M
(Address 41216)
Data Word to be
written to Module
(From GAP Application)
104 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Allen-Bradley Relay Output (1794-OW8) Module
In this example, the relay outputs are individually fused to protect the module.
See Figure 6-66 for example of 1794-OW8 module wiring.
DISTRIBUTED I/O
Allen-Bradley FLEX I/O 1794-OW8
RELAY OUTPUT
(-COM) B16
(+24VDC) C34 2A
Valve
A0 1
Coil
(-COM) B17
K0 (+24VDC) C35
MBI.A1.A02.G1.N3_BO_01
A1
(-COM) B18
(+24VDC) C36 2A
Valve
A2 2
Coil
(-COM) B19
K1 (+24VDC) C37
MBI.A1.A02.G1.N3_BO_02
A3
(-COM) B20
(+24VDC) C38 2A
Valve
A4 3
Coil
(-COM) B21
K2 (+24VDC) C39
MBI.A1.A02.G1.N3_BO_03
A5
(-COM) B22
(+24VDC) C40 2A
Valve
A6 4
Coil
(-COM) B23
K3 (+24VDC) C41
MBI.A1.A02.G1.N3_BO_04
A7
(-COM) B24
(+24VDC) C42 2A
Valve
A8 5
Coil
(-COM) B25
K4 (+24VDC) C43
MBI.A1.A02.G1.N3_BO_05
A9
(-COM) B26
(+24VDC) C44 2A
Valve
A10 6
Coil
(-COM) B27
K5 (+24VDC) C45
MBI.A1.A02.G1.N3_BO_06
A11
(-COM) B28
(+24VDC) C46 2A
Valve
A12 7
Coil
(-COM) B29
K6 (+24VDC) C47
MBI.A1.A02.G1.N3_BO_07
A13
(-COM) B30
(+24VDC) C48 2A
Valve
A14 8
Coil
(-COM) B31 9
K7 (+24VDC) C49
MBI.A1.A02.G1.N3_BO_08
A15
(-COM) B32
(+24VDC) C50
(-COM) B33 To 24VDC COM
(+24VDC) C51 To +28VDC
Woodward 105
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The memory map indicates that there is one read address and one write
address. See Figure 6-67 for memory map of 1794-OW8 module.
To write the discrete output bits for the 1794-OW8 module, again a B16_TO_A
block is used. Since there are only eight outputs, only the first eight block inputs
are used. See Figure 6-68 for example of GAP write block configuration.
To MODBUS_M
(Address 41231)
Data Word to be
written to Module
(From GAP Application)
106 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Allen-Bradley Analog Input (1794-IE8/B) Module
In this example, loop powered transducers are shown. See Figure 6-69 for
example of 1794-IE8/B module wiring.
DISTRIBUTED I/O
Allen-Bradley FLEX I/O 1794-IE8/B
ANALOG INPUT To 24COM
To +24VDC
(-COM) B16
(+24VDC) C34
AI (+) A0 1 - 4-20mA +
Xducer
MBI.A1.A02.G1.N4_AI_01 (-COM) B17
(+24VDC) C35 2
VI (+) A1
Not Used (-COM) B18
(+24VDC) C36
AI (+) A2 3 - 4-20mA +
Xducer
MBI.A1.A02.G1.N4_AI_02 (-COM) B19
(+24VDC) C37 4
VI (+) A3
Not Used (-COM) B20
(+24VDC) C38
AI (+) A4 5 - 4-20mA +
Xducer
MBI.A1.A02.G1.N4_AI_03 (-COM) B21
(+24VDC) C39 6
VI (+) A5
Not Used (-COM) B22
(+24VDC) C40
AI (+) A6 7 - 4-20mA +
Xducer
MBI.A1.A02.G1.N4_AI_04 (-COM) B23
(+24VDC) C41 8
VI (+) A7
Not Used (-COM) B24
(+24VDC) C42
AI (+) A8 9 - 4-20mA +
Xducer
MBI.A1.A02.G1.N4_AI_05 (-COM) B25
(+24VDC) C43 10
VI (+) A9
Not Used (-COM) B26
(+24VDC) C44
AI (+) A10 11 - 4-20mA +
Xducer
MBI.A1.A02.G1.N4_AI_06 (-COM) B27
(+24VDC) C45 12
VI (+) A11
Not Used (-COM) B28
(+24VDC) C46
AI (+) A12 13 - 4-20mA +
Xducer
MBI.A1.A02.G1.N4_AI_07 (-COM) B29
(+24VDC) C47 14
VI (+) A13
Not Used (-COM) B30
(+24VDC) C48
AI (+) A14 15 - 4-20mA +
Xducer
MBI.A1.A02.G1.N4_AI_08 (-COM) B31
(+24VDC) C49 16
VI (+) A15
Not Used (-COM) B32
(+24VDC) C50
(-COM) B33
Woodward 107
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The memory map indicates that there are nine read addresses and one write
address. See Figure 6-70 for the input memory map and Figure 6-71 for the
output memory map for the 1794-IE8/B module.
Underrange bits (U)—These bits are set (1) when the input channel is below a
preset limit as defined by the configuration selected. U0 (bit 00) corresponds to
input channel 0 and U1 (bit 01) corresponds to input channel 1, etc.
Power Up (unconfigured state) bit (PU)—This bit is set (1) when the
configuration word is all zeroes (0) due to a reset (adapter power cycle or module
insertion) or a cleared configuration word (all 0). When this bit is set (1), the
module status indicator flashes.
108 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
In this example, the write block is set up with Range Select bits for all channels
set to 0-21mA. The read block is set up to be able to read the status of the
underrange bits for all channels and the Power Up bit (PU). See Figure 6-72 for
example of 1794-IE8/B Read and Write GAP blocks.
To MODBUS_M
(Address 41246)
From MODBUS_M
(Address 41054)
Data Word to be
written to Module
To read and scale the analog input words for the 1794-IE8/B module,
CALCULATE blocks were used. For the GAP block to convert the raw counts
read from the 1794-IE8/B module to engineering units, the relationship between
raw counts and engineering units needs to be specified in the CALCULATE
block. The raw count to milliamp relationship can be found in the Allen-Bradley
manual 1794-6.5.2. See Figure 6-73 for Analog Data Format Table. The table
specifies counts in hexadecimal form and the CALCULATE block requires the
RAW_LOW and RAW_HIGH fields to be entered in decimal form. Under the 0-
20mA column in the Analog Data Format Table, 21mA is equivalent to 7FF8
hexadecimal. Converting 7FF8 to decimal equals 32760 Counts RAW_HIGH. In
this example the CALCULATE block scales the 0-32760 counts for 0-21mA
(engineering units) for the module. The output of the CALCULATE block is in
engineering units (milliamps) and is used by the GAP application as the milliamp
value read from the 1794-IE8/B module. See Figure 6-74 for example of 1794-
IE8/B GAP CALCULATE scaling blocks.
Woodward 109
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
From MODBUS_M
(Address 41046)
From MODBUS_M
(Address 41053)
110 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Allen-Bradley Analog Output (1794-OE4/B) Module
DISTRIBUTED I/O
Allen-Bradley FLEX I/O 1794-OE4/B
ANALOG OUTPUT
AO (+) A0 1 + 4-20mA -
MBI.A1.A02.G1.N5_AO_01 Load
AO (-) A1 2
VO (+) A2
Not Used VO (-) A3
AO (+) A4 5 + 4-20mA -
MBI.A1.A02.G1.N5_AO_02 Load
AO (-) A5 6
Not Used
VO (+) A6
VO (-) A7
AO (+) A8 9 + 4-20mA -
MBI.A1.A02.G1.N5_AO_03 Load
AO (-) A9 10
Not Used
VO (+) A10
VO (-) A11
AO (+) A12 13 + 4-20mA -
Load
MBI.A1.A02.G1.N5_AO_04
AO (-) A13 14
Not Used
VO (+) A14
VO (-) A15
B16
B17
B18
B19
B20
B21
B22
B23
B24
24V (COM) B25
B26
B27
B28
B29
B30
B31
B32 To 24COM
B33
C34 To +24VDC
C35
C36
C37
C38
C39
C40
C41
C42
24V (+) C43
C44
C45
C46
C47
C48
C49
C50
C51
Woodward 111
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The memory map indicates that there is one read address and 13 write
addresses. Output memory map addresses 6-9 are not used and 10-13 are used
to specify safe state values that are not used in this example. Therefore, the
output memory map words 0-5 correspond to the first six write words specified in
the address spreadsheet. See Figure 6-76 for the input memory map and Figure
6-77 for the output memory map for the 1794-OE4/B module.
Multiplex control bit (M) for individual channels. These bits control the safe state
analog outputs. – Bit 00 corresponds to output channel 0, bit 01 corresponds to
output channel 1, and so on.
1 = use words 0,1,2 or 3 as directed by channel number n.
0 = use words 10, 11, 12 or 13 as directed by channel number n.
For definition of Fx and Cx bits, see Figure 6-78.
112 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
In this example, the read block is set up to monitor the four broken wire bits and
the power up bit on the module. The write blocks are set up to configure the
module for multiplex control and 0-20mA range. Since all of the multiplex control
(M) bits are set to true, the safe state words in addresses 10-13 are not relevant.
See Figure 6-79 for example of 1794-OE4/B Read and Write GAP blocks.
To MODBUS_M To MODBUS_M
(Address 41265) (Address 41266)
From MODBUS_M
(Address 41061)
Woodward 113
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
To write the analog output words for the 1794-OE4/B module, CALCULATE
blocks were again used. For the 1794-OE4/B module to output the correct
current, the GAP block must convert the engineering units requested to raw
counts used by the module. The milliamp to raw count relationship can be found
in Allen-Bradley manual 1794-6.5.2. See Figure 6-73 for Analog Data Format
Table. The table specifies counts in hexadecimal form and the CALCULATE
block requires the RAW_LOW and RAW_HIGH fields to be entered in decimal
form. Under the 0-20mA column, of the Analog Data Format Table, 21mA is
equivalent to 7FF8 hexadecimal and 0mA is 0000 hexadecimal. Converting 7FF8
to decimal equals 32760 counts high. In this example, the block scales 0-21mA
(engineering units) for 0-32760 counts for the module. The CALCULATE block
output is connected to the MODBUS_M block address associated with the
correct memory map address. In this example a 0 to 24 mA tunable set for 4mA
is shown for the input to the CALCULATE block. See Figure 6-80 for example of
1794-OE4/B GAP Analog Write Blocks.
From MODBUS_M
(Address 41261)
To MODBUS_M
(Address 41264)
114 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Allen-Bradley Thermocouple Input (1794-IT8) Module
In this example, the first six channels are used for thermocouples and the last
two channels are used for monitoring the reference junction temperatures. See
Figure 6-81 for example of 1794-IT8 module wiring.
DISTRIBUTED I/O
Allen-Bradley FLEX I/O 1794-IT8
THERMOCOUPLE INPUT
Chromel
TC (+) A0 1
MBI.A1.A02.G1.N6_TC_01 Alumel
TC (-) A1 2
TC (+) A2 3
MBI.A1.A02.G1.N6_TC_02
TC (-) A3 4
MBI.A1.A02.G1.N6_TC_03
TC (+) A4 5
TC (-) A5 6
MBI.A1.A02.G1.N6_TC_04
TC (+) A6 7
TC (-) A7 8
TC (+) A8 9
MBI.A1.A02.G1.N6_TC_05
TC (-) A9 10
MBI.A1.A02.G1.N6_TC_06
TC (+) A10 11
TC (-) A11 12
C35
C36
C37 CJC
C38
C39
C40
C41
C42
24V (+) C43
C44
C45
C46
C47
C48 CJC
C49
C50
C51
Woodward 115
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
The memory map indicates that there are eleven read addresses and 3 write
address. See Figure 6-82 for the input memory map and Figures 6-83 through
6-86 for the output memory map for the 1794-IT8 module.
Underrange bits—These bits are set if the input signal is below the input
channel's minimum range.
Overrange bits—These bits are set if 1), the input signal is above the input
channel's maximum range, or 2), an open detector is detected.
Cold Junction sensor underrange bit—This bit is set if the cold junction
temperature is below 0 °C.
Cold Junction sensor overrange bit—This bit is set if the cold junction
temperature is above 70 °C.
Bad Structure—This bit is set if an invalid thermocouple type is selected.
Powerup bit—This bit is set (1) until configuration data is received by the
module.
Critical Error bits—If these bits are anything other than all zeroes, return the
module to the factory for repair.
Calibration Range bit—Set to 1 if a reference signal is out of range during
calibration.
Calibration Done bit—Set to 1 after an initiated calibration cycle is complete.
Calibration Bad bit—Set to 1 if the channel has not had a valid calibration.
116 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Woodward 117
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
In this example, the first read block is set up to monitor the underrange and
overrange bits on the module. The second read block monitors the Cold Junction
sensor underrange bit, Cold Junction sensor overrange bit, Bad Structure,
Powerup bit, Critical Error bits, Calibration Range bit, Calibration Done bit, and
Calibration Bad bit. The first write word (0) sets the module for °F units, 100 Hz
filtering, and no calibration. The second write word (1) sets the module for type K
thermocouples on channels 0, 1, 2, and 3. The third write word (2) sets the
module for type K thermocouples for channels 4 and 5, cold junction (channels 0-
3) temperature on channel 6, and cold junction (channels 4-7) on channel 7. See
Figure 6-87 for GAP read and write block example.
118 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
To MODBUS_M
(Address 41276)
To MODBUS_M
(Address 41277)
To MODBUS_M
(Address 41278)
Data Words to be
written to Module Data words read from
Module
To read the analog input words for the 1794-IT8 module, DIVIDE blocks were
used. According to the 1794-IT8 manual, the thermocouple module’s output must
be scaled to one tenth the value read by the 3170-MBS interface module. See
Figure 6-88 for Input scaling of the thermocouples.
Woodward 119
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
A divide by 10 block is used to scale the thermocouple outputs. Again, from the
1794-IT8 manual, the range of the cold junction (reference junction) sensor is 0-
70 °C. It has been found that the output must be scaled to one hundredth the
value output by the 3170-MBS interface module. A divide by 100 block is used to
accomplish this. The output of the DIVIDE block will be in engineering units (°F).
See Figure 6-89 for example of 1794-IT8 GAP Analog Read Blocks.
120 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Analog Temperature
From MODBUS_M (To GAP Application)
(Address 41077)
Woodward 121
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Allen-Bradley RTD Input (1794-IR8) Module
DISTRIBUTED I/O
Allen-Bradley FLEX I/O 1794-IR8
RTD INPUT with TB3TS BASE
RTD
RTD (+) A0 1
C35
+24VDC C36
C37
C38
C39
C40
C41
Chassis C42
Grnd C43
C44
C45
C46
C47
C48
C49
C50
C51
122 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
The memory map indicates that there are eleven read addresses and 3 write
address. See Figure 6-91 for the input memory map and Figures 6-92 through
6-95 for the output memory map for the 1794-IR8 module.
Underrange bits—These bits are set if the input signal is below the input
channel's minimum range.
Overrange bits—These bits are set if 1) the input signal is above the input
channel's maximum range, or 2) an open detector is detected.
Powerup bit—This bit is set (1) until configuration data is received by the
module.
Critical Error bits—If these bits are anything other than all zeroes, return the
module to the factory for repair.
Calibration Range bit—Set to 1 if a reference signal is out of range during
calibration
Calibration Done bit—Set to 1 after an initiated calibration cycle is complete.
Calibration Bad bit—Set to 1 if the channel has not had a valid calibration.
Woodward 123
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
124 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
In this example, the first read block is set up to monitor the underrange and
overrange bits on the module. The second read block monitors the Powerup bit,
Critical Error bits, Calibration Range bit, Calibration Done bit, and Calibration Bad
bit. The first write word (0) sets the module for °F units, 100 Hz filtering, and no
calibration. The second write word (1) sets the module for 100 ohm Pt Euro RTD
on channels 0, 1, 2, and 3. The third write word (2) sets the module for 100 ohm
Pt Euro RTD for channels 4, 5, 6, and 7. See Figure 6-96 for GAP read and write
block example.
Woodward 125
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
To MODBUS_M
(Address 41291)
To MODBUS_M
(Address 41292)
To MODBUS_M
(Address 41293)
From MODBUS_M
(Address 41101)
From MODBUS_M
(Address 41100)
Data Words to be
written to Module Data word read from
Module
To read the analog input words for the 1794-IR8 module, DIVIDE blocks were
used. According to the 1794-IR8 manual, the RTD module’s output must be
scaled to one tenth the value read by the 3170-MBS interface module. From the
1794-IR8 Input Scaling, it can be seen that the 100 ohm Pt Euro RTD range is –
328 to 1598 °F. The output of the DIVIDE block will be in engineering units (°F).
See Figure 6-97 for Input scaling for RTDs.
126 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
See Figure 6-98 for example of 1794-IR8 GAP Analog Read Blocks.
Analog Temperature
From MODBUS_M (To GAP Application)
(Address 41092)
Modicon developed the Modbus addressing scheme around the data table and
I/O structure in Modicon PLCs. Terminator I/O is a modular system which
combines the functions of terminal blocks and I/O modules for distributed I/O.
Each Terminator I/O system has the following components: a Power Supply, a
Base Controller, and one or more I/O Module(s). Terminator I/O systems can
contain up to 16 I/O modules per slave (node). Each slave (node) system can be
divided into one row of base I/O plus two rows of local expansion I/O using a
base expansion cable.
In this example, one T1K-MODBUS adapter and two power supplies from
Automation Direct are interfaced with seven terminal base units with installed
Terminator I/O modules, forming a Terminator I/O system.
Woodward 127
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
In order to simplify the nomenclature used in creating the GAP application,
certain naming conventions were changed with respect to the manufacturer’s
naming convention. In this example, Woodward refers to the node address as the
Group address. The T1K-MODBUS Group address, (Node address), is set by
two rotary switches located on the front of the T1K-MODBUS module. In this
example the address is set to 01.
The Automation Direct Terminator I/O system requires DIN rail mounted power
supplies to power the individual I/O module over the Terminator I/O back plane.
In this example, a 120 Vac unit (T1K_01AC) was used to power the Discrete I/O
modules and a 24 Vdc unit (T1K-01DC was used to power the Analog I/O
modules.
In this example, the power supplies were also used to generate the needed
current for the external power requirements of the circuits. See Figure 6-99 for
Automation Direct Terminator I/O configuration layout.
DIN RA L
Discrete
Input
(Sink) Discrete Input Discrete Output Discrete Output Analog Input Analog Output Thermocouple
Modbus (T1K- (Sink) (T1K- (Sink) (T1K- (Relay) (T1K- (Current) (T1F- (Current) (T1F- Input (T1F-
Power Supply Interface 08ND3) Power Supply
(T1K- with
16ND3) with 16TD1) with 08TRS) with 16AD-1) with 16DA-1) with 14THM) with
(T1K-01AC) (T1K-01DC)
MODBUS) Terminal Terminal Base Terminal Base Terminal Base Terminal Base Terminal Base Terminal Base
Base (T1K-16B-1) (T1K-16B-1) (T1K-16B-1) (T1K-16B-1) (T1K-16B-1) (T1K-16B-1)
(T1K-
08B-1)
Group Node 1 Node 2 Node 3 Node 4 Node 5 Node 6 Node 7
24VDC
EXTERNAL
120VAC 24VDC
POWER
SUPPLY
Address Spreadsheet
The I/O map for a module is divided into read words and write words. Read
words consist of input and status words, and write words consist of output and
configuration words. The number of read words or write words can be 0 or more.
To keep track of the addressing for all of the reads and writes, an address
spreadsheet is very useful. This address spreadsheet can be derived from
memory maps in the I/O modules User Manual and the network interface module
(head) T1K-MODBUS User Manual. These memory maps define which
addresses to allocate within the Address Spreadsheet. Not all of the addresses
allocated to each module are written to or read from. Some addresses are either
not used or reserved. See specific I/O module memory maps for detail
functionality used to define the GAP reads and writes. The Automation Direct
Terminator I/O system addresses its discrete I/O by bits and analog I/O by
words. See Table 6-6 for the address spreadsheet for this example.
128 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Module Byte # Read Address Bits Write Address Bits
T1K-MODBUS 0 None None
T1K-08ND3 0 10000-10008 None
T1K-16ND3 0 10009-10016 None
1 10017-10024 None
T1K-16TD1 0 None 00000-00008
1 None 00009-00016
T1K-08TRS 0 None 00017-00024
Module Word # Read Addr. Words Write Addr. Words
T1F-16AD-1 0 30001 None
1 30002
2 30003
3 30004
. .
. .
. .
29 30030
30 30031
31 30032
T1F-16DA-1 0 None 40001
1 40002
2 40003
3 40004
. .
. .
. .
29 40030
30 40031
31 40032
T1F-14THM 0 30033 None
1 30034
2 30035
3 30036
. .
. .
. .
29 30062
30 30063
31 30064
Use the following documents from the manufacturer to obtain the Memory Maps
and related information.
Woodward 129
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Nomenclature
When creating a new GAP application, it is important to establish a well
organized block naming convention up front. Once done, it is easier to find
specific functions and I/O within a large GAP application. Though not shown in
this example, the Category and Block Names could follow similar nomenclature
rules to those shown in Chapter 1 (Profibus).
GAP Application
In order to communicate between the Atlas serial RS-232 port and the T1K-
MODBUS, a MOD_PORT and MODBUS_M block must be defined in GAP. The
MOD_PORT block defines the serial communications baud rate, stop, parity, and
type of interface (RS-232, 422, 485). The MODBUS_M block defines the
addressing for Modbus communications between the Atlas and the distributed
I/O. Based on the Address Spreadsheet, this block can be customized to read
and write to appropriate addresses. See Figure 6-100 for
MODBUS_M/MOD_PORT setup example.
130 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
The L_ERR_1_x is used to display Link Error on PORT_1 for RPTx. It goes
TRUE when the slave fails to answer a data request. If a response isn't received
in TIME_OUT_x seconds, the request is retried. If a response isn't received in
TIME_OUT_x seconds after the request is retried, then this output is set true.
While waiting for a response from one slave, the master is not communicating
with the other slaves. So, if multiple slaves fail at the same time (i.e. broken
cable), the L_ERR_1_x for the first slave attempted will occur at 2 x
TIME_OUT_x. But, the second L_ERR_1_x won't go true until 2 x TIME_OUT_x
after the first failure because no communications are attempted with that slave
until after the first has timed out.
In this example, the TIK-MODBUS adapter is configured for the 584 / 984
Addressing mode (Dip switch 7). See Figure 6-101 for the full T1K-MODBUS
adapter addressing table.
Woodward 131
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
In the RPT window for the MODBUS_M block, the BR_F_CODE and
AR_F_CODE fields specify the Boolean and Analog read Function Codes for
Modbus. The Boolean Read Function Code input defines the Boolean read and
write addresses as follows:
The Analog Read Function Code input defines the Analog read and write
addresses as follows:
The S_ADD_1 field must agree with the Group or Node address for the T1K-
MODBUS adapter. In this example, the address is set to 01 which matches the
two rotary switch settings on the adapter. See Figure 6-102 for example of
MODBUS_M repeat fields.
132 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Within the MODBUS_M RPT window, there are four repeats (RPTbw1, RPTbr1,
RPTar1, and RPTaw1). Each one of these RPT fields opens another window
which displays the addresses assigned for that particular RPT. See specific
module sections below for memory map function assignment. Example for the
T1K-08ND3 module bits (BR_V_1_1): since the starting address is 10000, the
BR_F_CODE = 2. The BR_ADD_1 offset is 0. Therefore the T1K-08ND3 module
bit (BR_V_1_1) has an address of 10000 + 0 + 1 = 10001. All of the addresses
specified in the address spreadsheet are mapped into the MODBUS_M block by
applying this formula. See Figures 6-103, 6-104, 6-105, and 6-106 for all
read/write address windows. Figure 6-107 shows the write addresses for the
discrete output modules (T1K-16TD1 and T1K-08TRS), addresses 00001 to
00024.
Woodward 133
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Figure 6-104 shows all of the used read input addresses for Discrete Input
modules (T1K-08ND3 and T1K-16ND3), addresses 10001 to 10024.
Figure 6-105 shows all of the used read input addresses for analog Input
modules (T1F-16AD-1 and T1F-14THM), addresses 30001 to 30060.
134 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
The Automation Direct analog modules use two address words per
channel. The first word is used, and the second is not used. The
unused address must be accounted for when addressing the
modules and therefore requires each channel to increment by two
addresses. Example: 2X16 addresses for the T1F-AD-1 module +
2X14 addresses for the T1F-14THM module = 60 addresses total.
Figure 6-106 shows all of the used write output addresses for the analog output
module (T1F-16DA-1), addresses 40001 to 40032.
Note: The Automation Direct analog modules use two address words per
channel. The first word is used, and the second is not used. The un-used
address must be accounted for when addressing the modules and therefore
requires each channel to increment by two addresses.
Woodward 135
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
136 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
In this example, the T1K-MODBUS adapter was set up for RS-232
communications. The T1K-MODBUS RS-232 communications setup must be
configured manually with DIP switches located on the Adapter. These DIP
switches must agree with the settings specified in the MOD_PORT and
MODBUS_M blocks. The MOD_PORT block uses 8 data bits per word. The
settings for this example are shown in Figure 6-107, T1K-MODBUS Dip Switch
Settings.
This configures the module for 38,400 Baud rate (Sw1-3), default communication
setting mode (Sw4), hold outputs off (Sw5), 9600 bps for RJ12 connection (Sw6),
584/984 Modbus slave addressing mode (Sw7), and disable the CTS pin on the
RJ12 connector (Sw8). Because the default communications mode is selected,
the RJ12 connection is not used. The default communications mode is set for 8
bit communications data, 1 start bit, 1 stop bit, odd parity, 1second
communication timeout, and 0 ms RTS Delay time. The MOD_PORT GAP block
settings must match these communication settings when configured.
A02_MAIN.COMM_02
(+) TERM. RES. TB10-97 DB15-5 CTS (RS-232C)
(RS-232/485/422)
(-) TERM. RES. TB10-98 DB15-6 RXD (-) (RS-422)
RS-485/422 (-) RECEIVE TB10-99 DB15-7 LOGIC GROUND
RS-422 (+) TRANSMIT TB10-100 DB15-8 LOGIC GROUND
RS-422 (-) TRANSMIT TB10-101 DB15-9 TXD (+) (RS-422)
SHLD (CHASSIS) TB10-102 DB15-10 TXD (-) (RS-422)
The Automation Direct T1K-MODBUS adapter doesn’t reserve any read or write
addresses for status words as the Allen-Bradley unit did.
Woodward 137
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Automation Direct Discrete Input (Sink) (T1K-08ND3) Module
The T1K-08ND3 can be configured for sink or source detection with internal or
external power. In this example, the unit is configured for sink mode with external
power. This configuration is set up with jumpers located on the module. See
Figure 6-109 for T1K-08ND3 Sink/External Power Configuration.
138 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
DISTRIBUTED I/O
Automation Direct T1K-08ND3
DISCRETE INPUT
Input Input 0 1
MBI.A1.A02.G1.N1_BI_01 Common Com0-0
Internal Supply Voltage V0-0 2
Input Input 1 3
MBI.A1.A02.G1.N1_BI_02 Common Com0-1
Internal Supply Voltage V0-1
Input Input 2 4
MBI.A1.A02.G1.N1_BI_03 Common Com0-2
Internal Supply Voltage V0-2
Input Input 3 5
MBI.A1.A02.G1.N1_BI_04 Common Com0-3
Internal Supply Voltage V0-3
Input Input 4 6
The T1K-08ND3 memory map indicates that there is one read byte (8 bits)
address and no write addresses. See Figure 6-111 for memory map of
Automation Direct T1K-08ND3 Discrete input module.
The Automation Direct T1K-08ND3 doesn’t have any filter or other options to set,
therefore there are no write addresses assigned. In this example, each bit is
displayed using a B_NAME block. Each block is connected to the specific
address in the MODBUS_M block RPT window shown above. See Figure 6-112
for example of T1K-08ND3 Read GAP blocks.
From MODBUS_M
(Address 10001)
From MODBUS_M
To GAP Application (Address 10008)
Woodward 139
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Automation Direct Discrete Input (Sink) (T1K-16ND3) Module
The T1K-16ND3 can be configured for sink or source detection with internal or
external power. In this example, the unit is configured for sink mode with external
power. This configuration is set up with jumpers located on the module. See
Figure 6-113 for T1K-16ND3 Sink/External Power Configuration.
140 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
DISTRIBUTED I/O
Automation Direct T1K-16ND3
DISCRETE INPUT
Input Input 0 1
MBI.A1.A02.G1.N2_BI_01 Common Com0-0
Internal Supply Voltage V0-0 2
Input Input 1 3
MBI.A1.A02.G1.N2_BI_02 Common Com0-1
Internal Supply Voltage V0-1
Input Input 2 4
MBI.A1.A02.G1.N2_BI_03 Common Com0-2
Internal Supply Voltage V0-2
Input Input 3 5
MBI.A1.A02.G1.N2_BI_04 Common Com0-3
Internal Supply Voltage V0-3
Input Input 4 6
The T1K-16ND3 memory map indicates that there are two read byte (16 bits)
addresses and no write addresses. See Figure 6-115 for memory map of
Automation Direct T1K-16ND3 Discrete input module.
The Automation Direct T1K-16ND3 doesn’t have any filter or other options to set,
therefore there are no write addresses assigned. In this example, each bit is
displayed using a B_NAME block. Each block is connected to the specific
address in the MODBUS_M block RPT window shown above. See Figure 6-116
for example of T1K-16ND3 Read GAP blocks.
Woodward 141
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
From MODBUS_M
(Address 10009)
From MODBUS_M
To GAP Application (Address 10024)
142 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
+28VDC TB19 +
DISTRIBUTED I/O 28COM TB19 -
Automation Direct T1K-16TD1 +28VDC J1-23 Woodward
+28VDC J1-24 16 Channel Relay
DISCRETE OUTPUT
28COM J1-21 Module
Output Output 0 28COM J1-22
P/N 5441-691
MBI.A1.A02.G1.N3_BO_01 Common Com0-0 J1-19
+24VDC Input Power V0-0 K1 or
Output Output 1 P/N 5441-419
MBI.A1.A02.G1.N3_BO_02 Common Com0-1 J1-18
+24VDC Input Power V0-1 K2
Output Output 2
MBI.A1.A02.G1.N3_BO_03 Common Com0-2 J1-17
+24VDC Input Power V0-2 K3
Output Output 3
MBI.A1.A02.G1.N3_BO_0 Common Com0-3 J1-16
+24VDC Input Power V0-3 K4
Output Output 4
MBI.A1.A02.G1.N3_BO_05 Common Com1-4 J1-15
+24VDC Input Power V1-4 K5
Output Output 5
MBI.A1.A02.G1.N3_BO_06 Common Com1-5 J1-14
+24VDC Input Power V1-5 K6
Output Output 6
MBI.A1.A02.G1.N3_BO_07 Common Com1-6 J1-13
+24VDC Input Power V1-6 K7
Output Output 7
MBI.A1.A02.G1.N3_BO_08 Common Com1-7 J1-12 K8
+24VDC Input Power V1-7
Output Output 8
MBI.A1.A02.G1.N3_BO_09 Common Com2-8 J1-11
+24VDC Input Power V2-8 K9
Output Output 9
MBI.A1.A02.G1.N3_BO_10 Common Com2-9 J1-10
+24VDC Input Power V2-9 K10
Output Output 10
MBI.A1.A02.G1.N3_BO_11 Common Com2-10 J1-9 K11
+24VDC Input Power V2-10
Output Output 11
MBI.A1.A02.G1.N3_BO_12 Common Com2-11
+24VDC Input Power V2-11
J1-8 K12
Output Output 12
MBI.A1.A02.G1.N3_BO_13 Common Com3-12
+24VDC Input Power V3-12
J1-7 K13
Output Output 13
MBI.A1.A02.G1.N3_BO_1 Common Com3-13 J1-6
+24VDC Input Power V3-13 K14
Output Output 14
MBI.A1.A02.G1.N3_BO_15 Common Com3-14 J1-5
+24VDC Input Power V3-14 K15
Output Output 15
MBI.A1.A02.G1.N3_BO_16 Common Com3-15 J1-4 K16
+24VDC Input Power V3-15
To 24VDC COM
To +24VDC
The T1K-16TD1 memory map indicates that there are no read byte (8 bits)
addresses and two write byte (16 bits) addresses. See Figure 6-118 for memory
map of Automation Direct T1K-16TD1 Discrete Output module.
The Automation Direct T1K-16TD1 module doesn’t have any status words to
read, therefore there are no read addresses assigned. In this example, each bit
is written using a B_NAME block. Each block is connected to the specific
address in the MODBUS_M block RPT window shown above. See Figure 6-119
for example of T1K-16TD1 write GAP blocks.
Woodward 143
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
To MODBUS_M
(Address 00001)
144 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
DISTRIBUTED I/O
Automation Direct T1K-8TRS
RELAY OUTPUT
Valve
Output 0 1
Co l
K0
MBI.A1.A02.G1.N4_BO_01 10A
C0
NC V0
Valve
Output 1 2
Co l
K1
MBI.A1.A02.G1.N4_BO_02 10A
C1
NC V0
Valve
Output 2 3
Co l
MBI.A1.A02.G1.N4_BO_03
K2
10A
C2
NC V1
Valve
Output 3 Co l
K3
10A
MBI.A1.A02.G1.N4_BO_04 C3
NC V1
Valve
Output 4 5
Co l
K4
10A
MBI.A1.A02.G1.N4_BO_05 C4
NC V2
Valve
Output 5 6
Co l
K5
MBI.A1.A02.G1.N4_BO_06 10A
C5
NC V2
Valve
Output 6 7
Co l
K6
10A
MBI.A1.A02.G1.N4_BO_07 C6
NC V3
Valve
Output 7 8
Co l
9
K7
MBI.A1.A02.G1.N4_BO_08 10A To 24VDC COM
C7 10 To +28VDC
NC V3
The T1K-08TRS memory map indicates that there are no read byte addresses
and one write byte (8 bits) address. See Figure 6-121 for memory map of
Automation Direct T1K-08TRS Relay Output module.
The Automation Direct T1K-08TRS module doesn’t have any status words to
read, therefore there are no read addresses assigned. In this example, each bit
is written using a B_NAME block. Each block is connected to the specific
address in the MODBUS_M block RPT window shown above. See Figure 6-122
for example of T1K-08TRS write GAP blocks.
Woodward 145
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
In this example, the T1F-16AD-1 is wired with loop powered transducers. See
Figure 6-123 for example of T1F-16AD-1 module wiring.
146 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
DISTRIBUTED I/O
Automation Direct T1F-16AD-1
ANALOG INPUT
Input Input 0 1 - -20mA +
Source
MBI.A1.A02.G1.N5_AI_01 Common Com0-0
External Supply Voltage V0-0 2
Input Input 1 3
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_02 Common Com0-1
External Supply Voltage V0-1
Input Input 2 5
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_03 Common Com0-2
External Supply Voltage V0-2
Input Input 3 7
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_04 Common Com0-3
External Supply Voltage V0-3
Input Input 4 9
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_05 Common Com1-4
External Supply Voltage V1-4
Input Input 5 11
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_06 Common Com1-5
External Supply Voltage V1-5
Input Input 6 13
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_07 Common Com1-6
External Supply Voltage V1-6
Input Input 7 15 - -20mA +
Source
MBI.A1.A02.G1.N5_AI_08 Common Com1-7
External Supply Voltage V1-7
Input Input 8 17
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_09 Common Com2-8
Common Supply Voltage V2-8
Input Input 9 19
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_10 Common Com2-9
Common Supply Voltage V2-9
Input Input 10 21
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_11 Common Com2-10
Common Supply Voltage V2-10
Input Input 11 23
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_12 Common Com2-11
Common Supply Voltage V2-11
Input Input 12 25
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_13 Common Com3-12
Common Supply Voltage V3-12
Input Input 13 27
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_14 Common Com3-13
Common Supply Voltage V3-13
Input Input 14 29
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_15 Common Com3-14
Common Supply Voltage V3-14
Input Input 15 31
- -20mA +
Source
MBI.A1.A02.G1.N5_AI_16 Common Com3-15
Common Supply Voltage V3-15 To +24VDC
To 24COM
The T1F-16AD-1 memory map indicates that there are 64 read byte (32 words)
addresses and no write byte addresses. See Figure 6-124 for memory map of
Automation Direct T1F-16AD-1 Analog Input module.
Woodward 147
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
To scale the analog input for the T1F-16AD-1 module, CURVE_2D blocks were
used. For the GAP block to convert the raw counts read from the T1F-16AD-1
module to engineering units, the relationship between raw counts and
engineering units is specified in the CURVE_2D block. The raw count to milliamp
relationship can be found in the Automation Direct manual T1K-INST-M. See
Figure 6-125 for Current Input Module Resolution. The charts specify counts in
decimal form. In this example, the 0-20mA scaling graph was used. The
CURVE_2D block can be scaled to output any engineering units desired. In this
example, the CURVE_2D block was scaled to output 0-20mA when 0-20mA is
seen by the module. The X_1 field specifies the module output counts when the
module input is at zero mA. The X_2 field specifies the module output counts
when the input is at 20mA. The Y_1 field specifies the block output in milliamps
when the input counts are 0. The Y_2 field specifies the block output in milliamps
when the input is at maximum counts (8191). The CURVE_2D X_1 and Y_1
fields have been set up as tunable so that the block can be set for a 4-20mA
scale if desired. See Figure 6-126 for example of T1F-16AD-1 GAP CURVE_2D
scaling blocks.
148 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
Since each channel has two read words, each block address is incremented by
two, starting at 30001 and going to 30031.
From MODBUS_M
(Address 30001)
Woodward 149
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Automation Direct Analog Output (T1F-16DA-1) Module
DISTRIBUTED I/O
Automation Direct T1F-16DA-1
ANALOG OUTPUT
Output Output 0 1 - -20mA +
Load
MBI.A1.A02.G1.N6_AO_01 Common Com0-0
External Supply Voltage V0-0 2
Output Output 1 3 - -20mA +
Load
MBI.A1.A02.G1.N6_AO_02 Common Com0-1
External Supply Voltage V0-1
Output Output 2 5 - -20mA +
Load
MBI.A1.A02.G1.N6_AO_03 Common Com0-2
External Supply Voltage V0-2
Output Output 3 7 - -20mA +
Load
MBI.A1.A02.G1.N6_AO_04 Common Com0-3
External Supply Voltage V0-3
Output Output 4 9 - -20mA +
Load
MBI.A1.A02.G1.N6_AO_05 Common Com1-4
External Supply Voltage V1-4
Output Output 5 11 - -20mA +
Load
MBI.A1.A02.G1.N6_AO_06 Common Com1-5
External Supply Voltage V1-5
Output Output 6 13
- -20mA +
Load
MBI.A1.A02.G1.N6_AO_07 Common Com1-6
External Supply Voltage V1-6
Output Output 7 15
- -20mA +
Load
MBI.A1.A02.G1.N6_AO_08 Common Com1-7
External Supply Voltage V1-7
Output Output 8 17 - -20mA +
Load
MBI.A1.A02.G1.N6_AO_09 Common Com2-8
Common Supply Voltage V2-8
Output Output 9 19 - -20mA +
Load
MBI.A1.A02.G1.N6_AO_10 Common Com2-9
Common Supply Voltage V2-9
Output Output 10 21 - -20mA +
Load
MBI.A1.A02.G1.N6_AO_11 Common Com2-10
Common Supply Voltage V2-10
Output Output 11 23
- -20mA +
Load
MBI.A1.A02.G1.N6_AO_12 Common Com2-11
Common Supply Voltage V2-11
Output Output 12 25
- -20mA +
Load
MBI.A1.A02.G1.N6_AO_13 Common Com3-12
Common Supply Voltage V3-12
Output Output 13 27
- -20mA +
Load
MBI.A1.A02.G1.N6_AO_14 Common Com3-13
Common Supply Voltage V3-13
Output Output 14 29 - -20mA +
Load
MBI.A1.A02.G1.N6_AO_15 Common Com3-14
Common Supply Voltage V3-14
Output Output 15 31 - -20mA +
Load
MBI.A1.A02.G1.N6_AO_16 Common Com3-15
Common Supply Voltage V3-15 To +24VDC
To 24COM
150 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
The memory map indicates that there are no read addresses and 64 byte (32
words) write addresses. Each Analog channel uses 4 bytes. The first and second
bytes of a channel contain the analog data. The third and fourth bytes are not
used at this time. Channel 1 is an exception, where the 4th byte is the Module
Control Byte. See Figure 6-128 for the memory map for the Automation Direct
T1F-16DA-1 module.
Since each channel has two read words, each block address is incremented by
two, starting at 40001 and going to 40031. Based on the memory map and the
Control Byte Table, there are 32 bits (4 bytes or 2 words) allocated for channel 1.
The 4th byte (2nd word) is designated as the Module Control Byte. The control
byte allows discrete bits to be set for certain functions. This byte is addressed
using word address 40002. Individual bits are set using a B16_TO_A block to
write to address 40002. See Figure 6-129 for example of the Control Byte GAP
block. The first 8 bits (byte3) are not used. Bit 24 in the Control Byte Table is the
IN_9_1 field on the block. This bit is the first bit in byte 4. In this example,
Outputs Enable (bit 24) is on (True), the polarity is Unipolar (False), the Voltage
Range (bit 26) is not needed and therefore set to (False), the Current Range (bit
27) is set for 0-20mA (False), and bits 28-31 are reserved and therefore set to
(False). See Figure 6-130 for T1F-16DA-1 Control Byte Table.
Woodward 151
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
To MODBUS_M
(Address 40002)
Data Word to be
written to Module
152 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
To scale the analog output words for the T1F-16DA-1 module, CURVE_2D
blocks were used. The GAP block converts the input, in milliamps, to raw counts
used by the T1F-16AD-1 module. The milliamp to raw count relationship can be
found in the Automation Direct manual T1K-INST-M. See Figure 6-131 for
Current Output Module Resolution. The charts specify counts in decimal form. In
this example, the 0-20mA scaling graph was used. The CURVE_2D block can be
scaled to output any engineering units desired. In this example, the CURVE_2D
block was scaled to output 0-4095 counts when 0-20mA is seen by the
application. The X_1 field specifies the minimum milliamp value (0mA) from the
GAP application. The X_2 field specifies the maximum milliamp value (20mA)
from the GAP application. The Y_1 field specifies the block output in counts (0
counts) when the minimum input is 0mA. The Y_2 field specifies the block output
in counts (4095 counts) when the maximum input is 20mA. The CURVE_2D X_1
field has been set up as tunable so that the block can be set for a 4-20mA scale
if desired. See Figure 6-132 for example of T1F-16DA-1 GAP CURVE_2D
scaling blocks.
Minimum Input mA
Minimum Output Counts @ Min Input
Maximum Input mA From MODBUS_M
Maximum Output Counts @ Max Input (Address 30031)
Woodward 153
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
Automation Direct Thermocouple Input (T1F-14THM) Module
In this example, Type K thermocouples are used. See Figure 6-133 for example
of T1F-14THM module wiring.
DISTRIBUTED I/O
Automation Direct T1F-14THM
THERMOCOUPLE INPUT
Chromel Chromel
MBI.A1.A02.G1.N7_TC_01
TC (+) 1+ 1
Alumel Alumel
TC (-) 1- 2
MBI.A1.A02.G1.N7_TC_02
TC (+) 2+ 3
TC (-) 2- 4
MBI.A1.A02.G1.N7_TC_03
TC (+) 3+ 5
TC (-) 3- 6
MBI.A1.A02.G1.N7_TC_04
TC (+) 4+ 7
TC (-) 4- 8
MBI.A1.A02.G1.N7_TC_05
TC (+) 5+ 9
TC (-) 5- 10
MBI.A1.A02.G1.N7_TC_06
TC (+) 6+ 11
TC (-) 6- 12
MBI.A1.A02.G1.N7_TC_07
TC (+) 7+ 13
TC (-) 7- 14
TC (+) 8+ 15
MBI.A1.A02.G1.N7_TC_08
TC (-) 8- 16
TC (+) 9+ 17
MBI.A1.A02.G1.N7_TC_09
TC (-) 9- 18
TC (+) 10+ 19
MBI.A1.A02.G1.N7_TC_10
TC (-) 10- 20
TC (+) 11+ 21
MBI.A1.A02.G1.N7_TC_11
TC (-) 11- 22
TC (+) 12+ 23
MBI.A1.A02.G1.N7_TC_12
TC (-) 12- 24
TC (+) 13+ 25
MBI.A1.A02.G1.N7_TC_13
TC (-) 13- 26
TC (+) 14+ 27
MBI.A1.A02.G1.N7_TC_14
TC (-) 14- 28
CJC
+24V
+24V
+24V To +24VDC
+24V
24V (+) +24V
+24V
+24V
+24V
0V
0V
0V To 24COM
0V
24V (-) 0V
0V
0V
0V
154 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
According to Automation Direct, the T1F-14THM module uses the same memory
map as the T1F-16AD-1 module. Based on this memory map, there are 64 byte
(32 words) addresses and no write byte addresses. See Figure 6-134 for
memory map of Automation Direct T1F-14THM Thermocouple module.
The T1F-14THM Thermocouple module has a set of jumpers located under the
top cover of the module for configuring certain parameters. See Figure 6-135 for
T1F-14THM Jumper configuration Tables. In this example, the jumpers were
configured for 14 channels of Type K thermocouples with output in °F and
calibration disabled. See Figure 6-136 for T1F-14THM jumper locations.
Woodward 155
AtlasPC Digital Control, Vol. II (Distributed I/O) Manual 85586V2
It has been found that the thermocouple value must be scaled to one tenth the
value output by the T1K-MODBUS interface module. A divide by 10 block is used
to scale the thermocouple inputs. See Figure 6-137 for example of T1F-14THM
GAP DIVIDE Blocks.
156 Woodward
Manual 85586V2 AtlasPC Digital Control, Vol. II (Distributed I/O)
From MODBUS_M
(Address 30033)
From MODBUS_M
(Address 30057)
To GAP Application
(Deg F)
Woodward 157
We appreciate your comments about the content of our publications.
Send comments to: [email protected]
2009/4/Fort Collins