Solid state equipment has operational characteristics differing from those of
electromechanical equipment. Safety Guidelines for the Application,
Installation and Maintenance of Solid State Controls (publication
SGI-1.1
available from your local Rockwell Automation sales office or online at
http://literature.rockwellautomation.com) describes some important
differences between solid state equipment and hard-wired electromechanical
devices. Because of this difference, and also because of the wide variety of
uses for solid state equipment, all persons responsible for applying this
equipment must satisfy themselves that each intended application of this
equipment is acceptable.
In no event will Rockwell Automation, Inc. be responsible or liable for
indirect or consequential damages resulting from the use or application of
this equipment.
The examples and diagrams in this manual are included solely for illustrative
purposes. Because of the many variables and requirements associated with
any particular installation, Rockwell Automation, Inc. cannot assume
responsibility or liability for actual use based on the examples and diagrams.
No patent liability is assumed by Rockwell Automation, Inc. with respect to
use of information, circuits, equipment, or software described in this manual.
Reproduction of the contents of this manual, in whole or in part, without
written permission of Rockwell Automation, Inc., is prohibited.
Throughout this manual, when necessary, we use notes to make you aware
of safety considerations.
S
WARNING
Identifies information about practices or circumstances that can
cause an explosion in a hazardous environment, which may lead to
personal injury or death, property damage, or economic loss.
IMPORTANT
ATTENTION
Identifies information that is critical for successful application and
understanding of the product.
Identifies information about practices or circumstances that can
lead to: personal injury or death, property damage, or economic
loss. Attentions help you identify a hazard, avoid a hazard, and
recognize the consequence.
SHOCK HAZARD
Labels may be on or inside the equipment, such as a drive or motor,
to alert people that dangerous voltage may be present.
BURN HAZARD
Labels may be on or inside the equipment, such as a drive or motor,
to alert people that surfaces may reach dangerous temperatures.
Rockwell Automation, Allen-Bradley, FLEX, RSNetWorx, RSLogix5000, and TechConnect are trademarks of Rockwell Automation,
Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
Using this Manual
Preface
Purpose of this Manual
Audience
Vocabulary
This manual shows you how to use your FLEX I/O Isolated Analog
modules with Allen-Bradley programmable controllers. The manual
helps you install, program and troubleshoot your modules.
Except where noted, information that applies to 1794-IF4I, 1794-OF4I,
and IF2XOF2I also applies to 1794-IF4IXT, 1794-IF4ICFXT,
1794-OF4IXT, and IF2XOF2IXT.
You must be able to program and operate an Allen-Bradley
programmable controller to make efficient use of your FLEX I/O
modules. In particular, you must know how to program block
transfers.
We assume that you know how to do this in this manual. If you do
not, refer to the appropriate programming and operations manual
before you attempt to program your modules.
In this manual, we refer to:
• the isolated analog input or isolated analog output module as
the “input module” or ‘‘output module”
• the Programmable Controller as the “controller”
Manual Organization
3Publication 1794-6.5.8 - January 2010
This manual is divided into five chapters. The following chart lists
each chapter with its corresponding title and a brief overview of the
topics covered in that chapter.
SectionTitleContents
Chapter 1Overview of FLEX I/O and
your Analog Modules
Chapter 2How to Install Your Analog
Module
Chapter 3Module ProgrammingExplains block transfer
Describes FLEX I/O Isolated
Analog modules, features,
and how they function
How to install and wire the
modules
programming, sample
programs
Preface 4
SectionTitleContents
Chapter 4Writing Configuration to and
Reading Status from Your
Module with a Remote I/O
Adapter
Chapter 5Communication and I/O
Image Table Mapping with
the DeviceNet/ControlNet
Adapter
Chapter 6Input, Output, Status and
Configuration Files for
Analog Modules when used
with ControlNet
Chapter 7Calibrating Your ModuleExplains how to calibrate
Appendix ASpecificationsSpecifications for the
Appendix BClass I, Division 2, Group A,
B, C, D Hazardous Locations
Statement
Explains how to configure
your modules and read
status information from your
modules when using a
remote I/O adapter
Explains how you
communicate with your
modules, and how the I/O
image is mapped when
using a DeviceNet adapter
Explains how you
communicate with your
modules over ControlNet.
your module.
isolated analog modules
Hazardous location approval
1794-TB3
1794-TBNTerminal Base Unit1794-5.16
1794-TBNFFused Terminal Base Unit1794-5.17
1794-TB3TTemperature Terminal Base Unit1794-5.41
1794-TB3SSpring Clamp Terminal Base Unit1794-5.42
1794-TB3TSSpring Clamp Temperature Terminal Base
Class I, Division 2, Group A, B, C, D
Hazardous Locations Statement
Index
Appendix
Filter Response for 150Hz, 300Hz and 600Hz Conversion 134
Appendix
Publication 1794-6.5.8 - January 2010
Table of Contents 10
Publication 1794-6.5.8 - January 2010
Chapter
Overview of FLEX I/O and your Analog
Modules
1
Chapter Objectives
The FLEX I/O System
AdapterTerminal BaseI/O Module
In this chapter, we tell you about:
• what the FLEX I/O system is and what it contains
• types of FLEX I/O analog modules
• how FLEX I/O analog modules communicate with
programmable controllers
• the features of your analog modules
FLEX I/O is a small, modular I/O system for distributed applications
that performs all of the functions of rack-based I/O. The FLEX I/O
system contains the following components shown in
Figure 1.1
Figure 1.1:
I
V
I
V
I
V
I
V
I
V
5
I
V
20125
• adapter/power supply – powers the internal logic for as many as
eight I/O modules
• terminal base – contains a terminal strip to terminate wiring for
two- or three-wire devices
• I/O module – contains the bus interface and circuitry needed to
perform specific functions related to your application
11Publication 1794-6.5.8 - January 2010
12 Overview of FLEX I/O and your Analog Modules
Types of FLEX I/O Modules
Catalog NumberVoltageInputsOutputsDescription
1794-IF4I24V dc4–analog – 4 input, isolated
1794-OF4I24V dc–4analog – 4 output, isolated
1794-IF2XOF2I24V dc22analog – 2 input, isolated and 2 output, isolated
We describe the following FLEX I/O Analog modules in this user manual:
FLEX I/O analog input, output and combination modules are block
transfer modules that interface analog signals with any Allen-Bradley
programmable controllers that have block transfer capability. Block
transfer programming moves input from the module’s memory to a
designated area in the processor data table, and output data words
from a designated area in the processor data table to the module’s
memory. Block transfer programming also moves configuration words
from the processor data table to module memory.
The analog modules have selectable ranges as shown in the table
below:
How FLEX I/O Analog
Modules Communicate
with Programmable
Controllers
The adapter transfers your configuration data
to the module using a BTW.
Allen-Bradley
ADAPTER
ACTIVE FAULT
LOCAL
FAULT
POWER SUPPLY
RIO ADAPTER
1794-ASB
24VDC
The adapter/power supply transfers data to the module (block transfer
write) and from the module (block transfer read) using BTW and BTR
instructions in your ladder diagram program. These instructions let the
adapter obtain input values and status from the module, and let you
send output values and establish the module’s mode of operation.
Figure 1.2 describes the communication process.
Figure 1.2
An Example of Communication Between an Adapter and an Analog Input Module
1
Flexbus
4
Your ladder program instructs the
adapter to perform a BTR of the values
and stores them in a data table.
5
The adapter and module determine
that the transfer was made without error
and input values are within specified
range.
External devices transmit
analog signals to the module.
1794±IE8
The module converts analog signals
into integer format and stores these
values until the adapter requests their
transfer.
2
2
3
6
Your ladder program can use and/or move the data (if valid)
before it is written over by the transfer of new data in a
subsequent transfer.
7
Your ladder program performs BTWs to the module when you power
it up, and any time you wish to reconfigure the module.
Publication 1794-6.5.8 - January 2010
14 Overview of FLEX I/O and your Analog Modules
Features of Your Analog
Modules
Each module has a unique label identifying its keyswitch position,
wiring and module type. A removable label provides space for writing
individual designations per your application.
1794-IF4I
Module Type
Removable
Label
Keyswitch
Position
Indicator (#3)
Input Designators
1794-OF4I
Output Designators
Green Power/Status
Indicator
Module Type
Removable
Label
Keyswitch
Position
Indicator (#4)
Green Power/Status
Indicator
Summary
1794-IF2XOF2I
Module Type
Removable
Label
Keyswitch
Position
Indicator (#5)
Input and Output Designators
Green Power/Status
Indicator
In this chapter you learned about the FLEX I/O system and the types
of analog modules and how they communicate with programmable
controllers.
Publication 1794-6.5.8 - January 2010
How to Install Your Analog Module
Chapter
2
Chapter Objectives
Before You Install Your
Analog Module
Compliance to European
Union Directives
In this chapter, we tell you about:
• how to install your module
• how to set the module keyswitch
• how to wire the terminal base
• the indicators
Before installing your analog module in the I/O chassis:
You need to:As described under:
Calculate the power requirements of all
modules in each chassis.
Position the keyswitch on the terminal base Mounting the Analog Module on the
If this product has the CE mark it is approved for installation within
the European Union and EEA regions. It has been designed and tested
to meet the following directives.
Power Requirements, page 2-16
Terminal Base Unit, page 2-22
EMC Directive
This product is tested to meet Council Directive 2004/10/EC
Electromagnetic Compatibility (EMC) and the following standards, in
whole or in part, documented in a technical construction file:
• European Union 2004/108/EC EMC Directive, compliant with:
EN 61326-1; Meas./Control/Lab., Industrial Requirements
EN 61000-6-2; Industrial Immunity
EN 61000-6-4; Industrial Emissions
EN 61131-2; Programmable Controllers (Clause 8, Zone A & B)
• European Union 2006/95/EC LVD, compliant with:
EN 61131-2; Programmable Controllers (Clause 11)
This product is intended for use in an industrial environment.
15Publication 1794-6.5.8 - January 2010
16 How to Install Your Analog Module
Low Voltage Directive
This product is tested to meet Council Directive 2006/95/EC Low
Voltage, by applying the safety requirements of EN 61131–2
Programmable Controllers, Part 2 – Equipment Requirements and
Tests.
For specific information required by EN 61131-2, see the appropriate
sections in this publication, as well as the following Allen-Bradley
publications:
• Industrial Automation Wiring and Grounding Guidelines For
Noise Immunity, publication 1770-4.1
• Guidelines for Handling Lithium Batteries, publication AG-5.4
• Automation Systems Catalog, publication B111
Open style devices must be provided with environmental and safety
protection by proper mounting in enclosures designed for specific
application conditions. See NEMA Standards publication 250 and IEC
publication 529, as applicable, for explanations of the degrees of
protection provided by different types of enclosure.
Power Requirements
The wiring of the terminal base unit is determined by the current draw
through the terminal base. Make certain that the current draw does
not exceed 10A.
ATTENTION
Total current draw through the terminal base unit is
limited to 10A. Separate power connections may be
necessary.
Publication 1794-6.5.8 - January 2010
How to Install Your Analog Module 17
Methods of wiring the terminal base units are shown in the illustration
below.
Daisy-chaining
Individual
ATTENTION
24V dc
Do not daisy chain power or ground from an analog
terminal base unit to any ac or dc discrete module
terminal base unit.
Note: All modules must be analog modules for this configuration.
Wiring
when total current draw is less than 10A
Combination
24V dc
24V dc or
120V ac
24V dc
24V dc
24V dc
Analog module wiring separate from discrete wiring.
W
iring when total current draw is greater than 10A
Note: All modules powered by the same power supply
must be analog modules for this configuration.
T
otal current draw through any base unit must not be greater than 10A
Note: Use this configuration if using any
ªnoisyº dc discrete I/O modules in your system.
Publication 1794-6.5.8 - January 2010
18 How to Install Your Analog Module
Installing the Module
Installation of the analog module consists of:
• mounting the terminal base unit
• installing the analog module into the terminal base unit
• installing the connecting wiring to the terminal base unit
If you are installing your module into a terminal base unit that is
already installed, proceed to
Mounting the Analog Module on the
Terminal Base Unit on page 2-22.
Mounting the Terminal Base Unit on a DIN Rail
ATTENTION
1. Remove the cover plug (if used) in the male connector of the
unit to which you are connecting this terminal base unit.
Do not remove or replace a terminal base unit when
power is applied. Interruption of the flexbus can
result in unintended operation or machine motion.
2. Check to make sure that the 16 pins in the male connector on
the adjacent device are straight and in line so that the mating
female connector on this terminal base unit will mate correctly.
3. Position the terminal base on the 35 x 7.5mm DIN rail A (A-B pt.
no. 199-DR1; 46277-3; EN 50022) at a slight angle with hook B
on the left side of the terminal base hooked into the right side of
the unit on the left. Proceed as follows:
Figure 2.1
Position terminal base at a slight angle and hooked over the
top of the DIN rail.
Publication 1794-6.5.8 - January 2010
Figure 2.2
How to Install Your Analog Module 19
Slide the terminal base unit over tight against the adapter.
Make sure the hook on the terminal base slides under the edge of
the adapter and the flexbus connector is fully retracted.
Press down on the terminal base unit to lock the terminal base
on the DIN rail. If the terminal base does not lock into place,
use a screwdriver or similar device to open the locking tab,
press down on the terminal base until flush with the DIN rail
and release the locking tab to lock the base in place.
Gently push the flexbus connector into the side
of the adapter to complete the backplane connection.
4. Repeat steps 1 - 3 to install the next terminal base.
Publication 1794-6.5.8 - January 2010
30077-M
20 How to Install Your Analog Module
Panel/Wall Mounting
Installation on a wall or panel consists of:
• laying out the drilling points on the wall or panel
• drilling the pilot holes for the mounting screws
• mounting the adapter mounting plate
• installing the terminal base units and securing them to the wall
or panel
If you are installing your module into a terminal base unit that is
already installed, proceed to “Mounting the Analog Module on the
Terminal Base” on .
Use the mounting kit Cat. No. 1794-NM1 for panel/wall mounting.
(2 for the adapter, and 2
each for up to 8 modules)
Mounting Kit
Contents:
Adapter Module
(not included)
Terminal Base Unit
(not included)
Publication 1794-6.5.8 - January 2010
How to Install Your Analog Module 21
To install the mounting plate on a wall or panel:
1. Lay out the required points on the wall/panel as shown in the
drilling dimension drawing.
Figure 2.3 Drilling Dimensions for Panel/Wall Mounting of FLEX I/O
Inches
(Millimeters)
.83 (21)
More
1.4
(35.5)
2.3
(58.5)
1.4
(35.5)
2.3
(58.5)
1.4
(35.5)
2. Drill the necessary holes for the #6 self-tapping mounting
screws.
3. Mount the mounting plate (1) for the adapter module using two
#6 self-tapping screws (18 included for mounting up to 8
modules and the adapter).
IMPORTANT
Make certain that the mounting plate is properly
grounded to the panel. Refer to “Industrial
Automation Wiring and Grounding Guidelines,”
publication 1770-4.1.
4. Hold the adapter (2) at a slight angle and engage the top of the
mounting plate in the indention on the rear of the adapter
module.
5. Press the adapter down flush with the panel until the locking
lever locks.
6. Position the terminal base unit up against the adapter and push
the female bus connector into the adapter.
7. Secure to the wall with two #6 self-tapping screws.
8. Repeat for each remaining terminal base unit.
The adapter is capable of addressing eight modules. Do not
exceed a maximum of eight terminal base units in your system.
Publication 1794-6.5.8 - January 2010
22 How to Install Your Analog Module
Mounting the Analog Module on the Terminal Base Unit
1. Rotate the keyswitch (1) on the terminal base unit (2) clockwise
to the position required for the specific type of analog module.
Figure 2.4
7
3
1
2
6
4
Analog Module Catalog NumberKeyswitch Position
1794-IF4I, 1794-IF4IXT, 1794-IF4ICFXT3
1794-OF4I, 1794-OF4IXT4
1794-IF2XOF2I, 1794-IF2XOF2IXT5
5
2. Make certain the flexbus connector (3) is pushed all the way to
the left to connect with the neighboring terminal base/adapter.
You cannot install the module unless the connector is fully
extended.
3. Make sure that the pins on the bottom of the module are straight
so they will align properly with the connector in the terminal
base unit.
4. Position the module (4) with its alignment bar (5) aligned with
the groove (6) on the terminal base.
Publication 1794-6.5.8 - January 2010
5. Press firmly and evenly to seat the module in the terminal base
unit. The module is seated when the latching mechanism (7) is
locked into the module.
How to Install Your Analog Module 23
6. Repeat the above steps to install the next module in its terminal
base unit.
Connecting Wiring for the
Analog Modules
ATTENTION
Remove field-side power before removing or
inserting the module. This module is designed so
you can remove and insert it under backplane
power. When you remove or insert a module with
field-side power applied, an electrical arc may occur.
An electrical arc can cause personal injury or
property damage by:
• sending an erroneous signal to your system’s field
devices causing unintended machine motion
• causing an explosion in a hazardous environment
Repeated electrical arcing causes excessive wear to
contacts on both the module and its mating
connector. Worn contacts may create electrical
resistance.
Wiring to the analog modules is made through the terminal base unit
on which the module mounts.
Refer to the following table for recommended terminal base units that
you can use for each module.
Connecting wiring for the individual analog modules is shown on:
ModuleConnecting Wiring
1794-IF4I, 1794-IF4IXT, 1794-IF4ICFXTpage 2-26
1794-OF4I, 1794-OF4IXT
1794-IF2XOF2I, 1794-IF2XOF2IXTpage 2-27
Connecting Wiring using a 1794-TB3, -TB3T, -TB3S or -TB3TS
Terminal Base Unit
1. Connect the individual signal wiring to numbered terminals on
the 0–15 row (A) on the terminal base unit. (Use Belden 8761
cable for signal wiring.)
ATTENTION
Connect only one current or one voltage signal per
channel. Do not connect both current and voltage on
one channel.
2. Connect each channel signal return to:
1794-IF4I – the associated terminal on row A.
1794-OF4I – the corresponding terminal on the same row (A)
1794-IF4XOF2I – inputs – the associated terminal on row A;
outputs – the corresponding terminal on the same row (A).
3. Refer to Table 2.1 or Table 2.2. Connect +24V dc to designated
terminals on the 34-51 row (C), and 24V common todesignated
terminals on the 16–33 row (B).
ATTENTION
To reduce susceptibility to noise, power analog
modules and discrete modules from separate power
supplies. Do not exceed a length of 33 ft (10m) for
dc power cabling.
Publication 1794-6.5.8 - January 2010
How to Install Your Analog Module 25
ATTENTION
Remove field-side power before removing or
inserting the module. This module is designed so
you can remove and insert it under backplane
power. When you remove or insert a module with
field-side power applied, an electrical arc may occur.
An electrical arc can cause personal injury or
property damage by:
• sending an erroneous signal to your system’s field
devices causing unintended machine motion
• causing an explosion in a hazardous environment
Repeated electrical arcing causes excessive wear to
contacts on both the module and its mating
connector. Worn contacts may create electrical
resistance.
±15
A
B
C
0
16±33
34±51
1794-TB3, -TB3T
Row A
Row B
Row C
Row A
Row B
Row C
1794-TB3S, -TB3TS
4. If daisy chaining the +24V dc power to the next base unit,
connect a jumper from terminal 51 on this base unit to terminal
34 on the next base unit. Connect the 24V dc common/return
from terminal 33 on this base unit to terminal 16 on the next
base unit.
Publication 1794-6.5.8 - January 2010
26 How to Install Your Analog Module
Wiring to a 1794-TBN or 1794-TBNF Terminal Base Unit
1. Connect individual input or output wiring to the even numbered
terminals on row (B) as indicated in the table below.
2. Connect the associated return wiring to the corresponding odd
numbered terminal on row (C) for each input or output as
indicated in the table below.
3. Connect 24V dc to terminal 34 on row (C).
4. Connect 24V dc common to terminal 16 on row (B).
5. If continuing power to the next terminal base unit, connect a
jumper from terminal 51 (24V dc) on this base unit to terminal
34 on the next base unit.
1633Even
0246810121433
16
13 57 9 11131551
34
3451
Numbered T
Odd Numbered Terminals 1 thru 15
erminals 0 thru 14
1794-TBN, 1794-TBNF
16,
0, 2, 4, 6,
8, 10, 12, 14, 33
34, 1, 3, 5, 7,
9, 11, 13, 15, 51
B
C
If continuing common to the next terminal base unit, connect a
jumper from terminal 33 (24V dc common) on this base unit to termi
nal 16 on the next base unit.
Table 2.1
Wiring connections for 1794-TB3, -TB3T, -TB3S, -TB3TS, -TBN and -TBNF Terminal Base
Units when using the 1794-IF4I or 1794-OF4I Isolated Analog Module
Terminals 16 thru 33 are internally connected in the terminal base unit.
(2)
Terminal 39 through 46 are chassis ground. Terminals 36, 37, 38 and 47, 48, 49 are used or cold junction compensation.
(2)
Table 2.2
Wiring connections for the 1794-IF2XOF2I Isolated Analog Module when using 1794-TB3,
-TB3T, -TB3S, -TB3TS, -TBN and -TBNF Terminal Base Units
ChannelSignal TypeLabel Markings
1794-TB3, -TB3T
(2)
-TB3TS
Signal
(2)
, -TB3S,
-TBN, -TBNF
Signal Return
Term in al
Input 0CurrentI00
CurrentI0 Ret1
VoltageV02
VoltageV0 Ret3
Input 1CurrentI14
CurrentI1 Ret5
VoltageV16
VoltageV1 Ret7
Publication 1794-6.5.8 - January 2010
28 How to Install Your Analog Module
Table 2.2
Wiring connections for the 1794-IF2XOF2I Isolated Analog Module when using 1794-TB3,
-TB3T, -TB3S, -TB3TS, -TBN and -TBNF Terminal Base Units
ChannelSignal TypeLabel Markings
Output 0CurrentI28
CurrentI2 Ret9
VoltageV210
VoltageV2 Ret11
Output 1CurrentI312
CurrentI3 Ret13
VoltageV314
VoltageV3 Ret15
24V dc Common
1794-TB3 – 16 thru 33
1794-TB3T, -TB3TS – 17, 18, 33
1794-TBN, -TBNF – 16 and 33
+24V dc power1794-TB3 – 34 thru 51
1794-TB3T, -TB3TS – 34, 35, 50, 51
1794-TBN, -TBNF – 34 and 51
1794-TB3, -TB3T
(2)
-TB3TS
-TBN, -TBNF
Signal
Term in al
(2)
, -TB3S,
Signal Return
(1)
(1)
Terminals 16 thru 33 are internally connected in the terminal base unit.
(2)
Terminal 39 through 46 are chassis ground. Terminals 36, 37, 38 and 47, 48, 49 are used or cold junction compensation.
ATTENTION
Total current draw through the terminal base unit is
limited to 10A. Separate power connections to the
terminal base unit may be necessary.
Publication 1794-6.5.8 - January 2010
1794-IF4I
Figure 2.6
Connections ± 1794-TB3 terminal base shown
How to Install Your Analog Module 29
A
0 ±15
B
16±33
34±51
C
1794-OF4I
IIII
+±
Current
Input
+±
ac or dc
4-Wire Current
Transmitter
+
Current
Input
+
dc only
3-Wire Current
Transmitter
Connections ± 1794-TB3 terminal base shown
I
+±
Current
Output
Device
+±
II
+
Current
Output
Device
+
±
±±
Current
Input
+
Current only
2-Wire Current
Transmitter and External
Power Supply
I
+
Current
±±
Output
Device
±
±
24V
dc
Power Supply
+
+
Voltage
Input
+
dc only
3-Wire
Transmitter
+
Voltage
Output
Device
+
±±
A
0 ±15
B
16±33
34±51
C
±
1794-IF2XOF2I
ac or dc
4-Wire Output
Device
dc only
3-Wire Output
Device
Connections ± 1794-TB3 terminal base shown
II
+±
Current
Input
+±
ac or dc
4-Wire Current
Transmitter
+
Current
Input
+
dc only
3-Wire Current
Transmitter
±±
Current only
2-Wire Output
Device
I
+
Current
Output
Device
±
Current only
2-Wire Output
Device
dc only
3-Wire Output
Device
I
+
Voltage
Output
Device
±
+
dc only
3-Wire Output
Device
Publication 1794-6.5.8 - January 2010
A
0 ±15
B
16±33
34±51
C
30 How to Install Your Analog Module
Module Indicators
The analog modules have one status indicator that is on when power
is applied to the module.
1794-IF4I
1794-OF4I
OK Status Indicator ±
Indicates power applied
to module and status.
When flashing, examine
module status word.
1794-IF2XOF2I
Chapter Summary
Publication 1794-6.5.8 - January 2010
In this chapter you learned how to install your input module in an
existing programmable controller system and how to wire to the
terminal base units.
Module Programming
Chapter
1
Chapter Objectives
Block Transfer
Programming
In this chapter, we tell you about:
• analog data format
• block transfer programming
• configuration rungs
• sample programs for the PLC-3 and PLC-5 processors
Your module communicates with the processor through bidirectional
block transfers. This is the sequential operation of both read and write
block transfer instructions.
A configuration block transfer write (BTW) is initiated when the
analog module is first powered up, and subsequently only when the
programmer wants to enable or disable features of the module. The
configuration BTW sets the bits which enable the programmable
features of the module, such as filters and signal ranges, etc. Block
transfer reads are performed to retrieve information from the module.
Block transfer read (BTR) programming moves status and data from
the module to the processor’s data table. The processor user program
initiates the request to transfer data from the module to the processor.
The transferred words contain module status, channel status and input
data from the module.
The following sample programs are minimum programs; all rungs and
conditioning must be included in your application program. You can
disable BTRs, or add interlocks to prevent writes if desired. Do not
eliminate any storage bits or interlocks included in the sample
programs. If interlocks are removed, the program may not work
properly.
Your program should monitor status bits, block transfer read and
block transfer write activity.
31Publication 1794-6.5.8 - January 2010
32 Module Programming
Configuration Rungs
Example Configuration Rungs
It is necessary to toggle the IC bit
isolated analog modules to accept configuration data. Once the
configuration data has been properly set up, the following rung will
reconfigure the module (this example represents sizes for the
1794-IF4I module).
Power-up Bit
B12:15
2
15
FP Bit
B12:15B12:15B12:54
14
If there are rungs which already perform reads and writes to the
module, no additional rungs are necessary. A simplified example of a
BTR and BTW rung for an 1794-IF4I follow (the 1794-OF4I is read
length 6, write length 7; the 1794-IF2XOF2I is read length 7, write
length 7):
(1)
(initiate configuration) for the
CF Bit
13
IC Bit
15
B12:54
L
14
1
3
BTR Enable Bit
N13:10
15
BTW Enable Bit
N3:0
15
PU Bit
N12:15
15
Optional
BTR
BLOCK
TRANSFER READ
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
CONTINUOUS:N
BTW
BLOCK
TRANSFER WRITE
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
CONTINUOUS:N
N13:10
N12:10
N13:0
N12:50
EN
01
0
DN
0
ER
7
EN
01
0
DN
0
ER
5
An XIC ( ––] [–– ) instruction of the Power Up bit (PU) can be inserted
to allow BTWs only when the module requires configuration (PU = 1).
Publication 1794-6.5.8 - January 2010
(1)
For systems that do not require ladder program control of configuration, set the TR bit (bit 13) to 1. Refer to
Chapter 1.
Module Programming 33
Sample Programs for FLEX
I/O Analog Modules
The following sample programs show you how to use your analog
module efficiently when operating with a programmable controller.
These programs show you how to:
• configure the module
• read data from the module
• update the module’s output channels (if used)
With RSLogix5000, just read or write the tags provided. RSLogix will
perform the transfer so an explicit block transfer is not required.
These programs illustrate the minimum programming required for
communication to take place.
PLC-3 Programming
Block transfer instructions with the PLC-3 processor use one binary
file in a data table section for module location and other related data.
This is the block transfer control file. The block transfer data file stores
data that you want transferred to your module (when programming a
block transfer write) or from your module (when programming a
block transfer read). The address of the block transfer data files are
stored in the block transfer control file.
The same block transfer control file is used for both the read
and write instructions for your module. A different block transfer
control file is required for every module.
A sample program segment with block transfer instructions is shown
Figure 1.1, and described below.
in
Publication 1794-6.5.8 - January 2010
34 Module Programming
Figure 1.1
PLC-3 Family Sample Program Structure for a 1794-IF4I Module
Program
Action
At power-up in RUN mode, or when the
processor is switched from PROG to RUN,
the user program enables a block transfer
read.
This rung toggles the Initate Configuration
bit from 0 to 1 to 0
Then it initiates a block transfer write to
configure the module if the power--up bit
is set.
Thereafter, the program continuously
performs read block transfers.
Note: You must create the data file
for the block transfers before you
enter the block transfer instructions.
Program
Action
At power-up in RUN mode, or when the
processor is switched from PROG to RUN,
the user program enables a block transfer
read.
This rung toggles the Initate Configuration
bit from 0 to 1 to 0
Then it initiates a block transfer write to
configure the module and send data
values.
Thereafter, the program continuously
performs read block transfers and write
block transfers.
Note: You must create the data file
for the block transfers before you
enter the block transfer instructions.
BTR
BLOCK XFER READ
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
CF Bit
B4:5
13
BTW
BLOCK XFER WRITE
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
1
2
3
Power-up Bit
B4:5
15
Power-up Bit
B4:5
15
Block Transfer
Read Done Bit
B3:0
15
FP Bit
B4:5
14
Block Transfer
W
rite Done Bit
B3:0
05
Figure 1.2
PLC-3 Family Sample Program Structure for a 1794-OF4I Module
BTR
BLOCK XFER READ
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
CF Bit
B7:4
13
BTW
BLOCK XFER WRITE
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
1
2
3
Power-up Bit
B7:4
15
Block Transfer
Read Done Bit
B6:0
15
FP Bit
B7:4
14
Block Transfer
rite Done Bit
W
B6:0
05
#B3:0
#B4:0
#B3:0
#B5:0
#B6:0
#B7:0
#B6:0
#B8:0
Enable
EN
12
02
1
Done
0
DN
15
Error
ER
7
13
IC Bit
B5:4
15
B5:4
L
14
Enable
EN
02
02
1
Done
0
DN
05
Error
5
ER
03
Enable
EN
12
02
0
Done
0
DN
15
Error
ER
6
13
IC Bit
B8:6
15
B8:6
L
14
Enable
EN
02
02
0
Done
0
DN
05
Error
7
ER
03
Publication 1794-6.5.8 - January 2010
Module Programming 35
Figure 1.3
PLC-3 Family Sample Program Structure for a 1794-IF2XOF2I Module
Program
Action
At power-up in RUN mode, or when the
processor is switched from PROG to RUN,
the user program enables a block transfer
read.
This rung toggles the Initate Configuration
bit from 0 to 1 to 0
Then it initiates a block transfer write to
configure the module and send data values
Thereafter, the program continuously
performs read block transfers and write
block transfers.
Note: You must create the data file
for the block transfers before you
enter the block transfer instructions.
1
2
3
Power-up Bit
B10:5
15
Block Transfer
Read Done Bit
B9:0
15
FP Bit
B10:5B10:5
14
Block Transfer
W
rite Done Bit
B9:0
05
BTR
BLOCK XFER READ
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
CF Bit
13
BTW
BLOCK XFER WRITE
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
#B9:0
#B10:0
#B9:0
#B11:0
Enable
EN
12
02
02
Done
0
DN
15
Error
ER
7
13
IC Bit
B11:6
15
B11:6
L
14
Enable
EN
02
02
02
Done
0
DN
05
Error
7
ER
03
PLC-5 Programming
The PLC-5 program is very similar to the PLC-3 program with the
following exceptions:
• block transfer enable bits are used instead of done bits as the
conditions on each rung.
• separate block transfer control files are used for the block
transfer instructions.
Publication 1794-6.5.8 - January 2010
36 Module Programming
Figure 1.4
PLC-5 Family Sample Program Structure for the 1794-IF4I
Program
Action
At power-up in RUN mode, or when the
processor is switched from PROG to RUN,
the user program enables a block transfer
read.
This rung toggles the Initate Configuration
bit from 0 to 1 to 0
Then it initiates a block transfer write to
configure the module if the power-up bit is
set.
Thereafter, the program continuously
performs read block transfers to configure
the module.
The pushbutton allows the user to
manually request a block transfer write.
1
2
3
BTR Enable Bit
N13:10
Power-up Bit
N12:55
15
BTR
BLOCK
TRANSFER READ
15
FP Bit
N12:55N12:55N12:64
14
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
CONTINUOUS:N
CF Bit
13
Power-up
Bit
N12:55
15
BTW Enable Bit
N13:0
15
BTW
BLOCK
TRANSFER WRITE
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
CONTINUOUS:N
02
N13:10
N12:50
THIS BIT
02
N13:0
N12:60
1
0
7
1
0
5
IC Bit
15
N12:64
L
MUST
14
EN
DN
ER
BE 1
EN
DN
ER
Publication 1794-6.5.8 - January 2010
Figure 1.5
PLC-5 Family Sample Program Structure for the 1794-OF4I
Module Programming 37
Program
Action
At power-up in RUN mode, or when the
processor is switched from PROG to RUN,
the user program enables a block transfer
read.
This rung toggles the Initate Configuration
bit from 0 to 1 to 0
Then it initiates a block transfer write to
configure the module and send data
values.
Thereafter, the program continuously
performs read block transfers and write block
transfers.
1
2
3
BTR Enable Bit
N15:10
15
Power-up Bit
N14:14
15
BTW Enable Bit
N15:0
15
BTR
BLOCK
TRANSFER READ
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
CONTINUOUS:N
FP Bit
N14:14N14:14N14:56
14
CF Bit
13
BTW
BLOCK
TRANSFER WRITE
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
CONTINUOUS:N
N15:10
N14:10
N15:0
N14:50
2
0
0
6
THIS BIT
2
0
0
7
EN
DN
ER
IC Bit
N14:56
MUST
EN
DN
ER
15
L
14
BE 1
Publication 1794-6.5.8 - January 2010
38 Module Programming
Figure 1.6
PLC-5 Family Sample Program Structure for the 1794-IF2XOF2I
Program
Action
At power-up in RUN mode, or when the
processor is switched from PROG to RUN,
the user program enables a block transfer
read.
This rung toggles the Initate Configuration
bit from 0 to 1 to 0
Then it initiates a block transfer write to
configure the module and send data
values.
Thereafter, the program continuously
performs read block transfers and write block
transfers.
1
2
3
BTR Enable Bit
N17:10
Power-up Bit
N16:15
15
BTW Enable Bit
N17:0
BTR
BLOCK
TRANSFER READ
15
FP Bit
14
15
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
CONTINUOUS:N
CF Bit
13
BTW
BLOCK
TRANSFER WRITE
RACK:
GROUP:
MODULE:
CONTROL:
DATA FILE:
LENGTH:
CONTINUOUS:N
N17:10
N16:10
N17:0
N16:50
2
3
0
7
THIS BIT
2
3
0
7
EN
DN
ER
IC Bit
N16:56N16:15N16:15
N16:56
MUST
EN
DN
ER
15
L
14
BE 1
SLC-5 Programming
More
PLC-2 Programming
The 1794 analog I/O modules are not recommended for use with
PLC-2 family programmable controllers due to the number of digits
needed for high resolution.
The SLC-5 programs (using the 1747-SN scanner) follow the same
logic as the PLC-5 family programs in the previous examples.
Differences occur in the implementation of block transfers due to the
use of “M” files in the SLC system.
Configuration data for the FLEX I/O isolated analog modules and the
1747-SN scanner must be in place before executing the following
programs. Chapter 4 contains information on the isolated analog
module configurations.
For more information on using the 1747-SN scanner module and
block transfer programming, refer to publication 1747-6.6, “Remote
I/O Scanner User Manual.”
Publication 1794-6.5.8 - January 2010
Module Programming 39
Figure 1.7
SLC Programming for the 1794-OF4I Isolated Analog Output Module
Program
rung configures the block transfer operation
This
type, length, and RIO address at power-up. Bit
B3:100/7 must be set to 1 to indicate a BTR and
bit B3:1
BTR status is copied to the B3:0 area when a BTR
is in progress.
Unlatch the bit that continues to check the BTR status.
Action
10/7 must be 0 to indicate a BTW
0000
.
0001
0002
PowerUp Bit
S2:1
15
BTR PENDING
B3:5
0
CHECK BTR ST
B3:5
1
BTR DONE BIT
B3:0
13
ATUS
BTR_CONTROL
COP
COPY FILE
SOURCE
DEST
LENGTH
BTW_CONTROL
COP
COPY FILE
SOURCE
DEST
LENGTH
COP
COPY FILE
SOURCE
DEST
LENGTH
#B3:100
#M0:1.100
#B3:110
#M0:1.200
#M1:1.100
#B3:0
CHECK BTR ST
3
3
4
ATUS
B3:5
U
1
0003
BTW status is copied to the B3:100 area when a
BTW is in progress.
0004
Unlatch the bit that continues to check the BTW status.
T
o next page.
BTR ERROR BIT
B3:0
12
BTW PENDING
B3:15
0
CHECK BTW ST
B3:15
1
BTW DONE BIT
B3:10
13
BTW ERROR BIT
B3:10
12
ATUS
COP
COPY FILE
SOURCE
DEST
LENGTH
#M1:1.200
#B3:10
4
CHECK BTW ST
ATUS
B3:15
U
1
Publication 1794-6.5.8 - January 2010
40 Module Programming
Program
rung buf
This
is successfully completed.
This rung buf
not successful.
Action
fers the BTR data when a transfer
fers the error code if a BTR is
0005
0006
BTR DONE BIT
B3:0
13
BTR DONE BIT
B3:0
12
COP
COPY FILE
SOURCE
DEST
LENGTH
MOV
MOVE
SOURCE
DEST
#M1:1.110
#N7:0
BTR PENDING
B3:5
U
BTR ENABLE BIT
B3:100
U
CHECK BTR ST
B3:5
L
#M1:1.103
#N7:6
0<
6
0
15
ATUS
1
6
This rung manipulates the flags for the BTW
0007
.
T
o next page.
BTW DONE BIT
B3:10
13
BTR PENDING
B3:5
U
BTR ENABLE BIT
B3:100
U
CHECK BTR ST
B3:5
L
BTW PENDING
B3:15
BTW ENABLE BIT
B3:110
CHECK BTW ST
B3:15
0
15
ATUS
1
U
0
U
15
ATUS
L
1
Publication 1794-6.5.8 - January 2010
Module Programming 41
Program
This rung buf
not successful.
rung executes BTRs continuously
This
Action
fers the error code if a BTW is
BTW ERROR BIT
0008
0009
.
B3:10
12
BTR ENABLE BITBTR DONE BIT
B3:100
15
B3:0
13
MOV
MOVE
SOURCE
DEST
BTR ERROR BIT
B3:0
#M1:1.203
6
#N7:17
0<
BTW PENDING
B3:15
U
BTW ENABLE BIT
CHECK BTW ST
12
0
B3:110
U
15
ATUS
B3:15
L
1
BTR PENDING
B3:5
L
0
BTR ENABLE BIT
B3:100
L
15
This rung copies the wirte data to the M0 file and
executes BTWs continuously
data for the FLEX module should be placed in
the wirte data.
. The configuration
0010
BTW ENABLE BIT
B3:110
15
T
o next page.
BTW DONE BIT
B3:10
13
BTW ERROR BIT
B3:10
12
COP
COPY FILE
SOURCE
DEST
LENGTH
BTW ENABLE BIT
#N7:10
#M1:1.210
B3:110
L
15
BTW PENDING
B3:15
L
0
Publication 1794-6.5.8 - January 2010
7
42 Module Programming
Program
This BTR control word is moved to the M0 file
for the scanner module.
This
BTW control word is moved to the M0 file
for the scanner module.
Action
0011
0012
BTR ENABLE BIT
B3:100
15
BTR DONE BIT
B3:0
13
BTR ERROR BIT
B3:0
12
BTW ENABLE BIT
B3:110
15
BTW DONE BIT
B3:10
13
BTW ERROR BIT
B3:10
BTR CONTROL
MOV
MOVE
SOURCE
DEST
BTW CONTROL
MOV
MOVE
SOURCE
DEST
00000001000000<
B3:100
M0:1.100
B3:110
00000001000000<
M0:1.200
?<
?<
This rung toggles the initiate configuration bit
from 0 to 1 to 0.
0013
0014
POWERUP BIT
N7:4
12
FP BIT
N7:4
15
14
CF BIT
N7:4
IC BIT
N7:16
13
THIS BIT
MUST
N7:16
L
END
15
BE 1
14
Publication 1794-6.5.8 - January 2010
Module Programming 43
Figure 1.8
SLC Programming for the 1794-IF4I Isolated Analog Input Module
Program
rung configures the block transfer operation
This
type, length, and RIO address at power-up. Bit
B3:100/7 must be set to 1 to indicate a BTR and
bit B3:1
BTR status is copied to the B3:0 area when a BTR
is in progress.
Action
10/7 must be 0 to indicate a BTW
.
0000
0001
PowerUp Bit
S2:1
15
BTR PENDING
B3:5
0
CHECK BTR ST
B3:5
1
ATUS
BTR_CONTROL
COP
COPY FILE
SOURCE
DEST
LENGTH
BTW_CONTROL
COP
COPY FILE
SOURCE
DEST
LENGTH
COP
COPY FILE
SOURCE
DEST
LENGTH
#B3:100
#M0:1.100
3
#B3:110
#M0:1.200
3
#M1:1.100
#B3:0
4
0002
Unlatch the bit that continues to check the BTR status.
0003
BTW status is copied to the B3:100 area when a
BTW is in progress.
BTR DONE BIT
B3:0
1
BTR ERROR BIT
B3:0
12
BTW PENDING
B3:15
0
CHECK BTW ST
B3:15
1
o next page.
T
ATUS
COP
COPY FILE
SOURCE
DEST
LENGTH
CHECK BTR ST
#M1:1.200
#B3:10
ATUS
B3:5
U
1
4
Publication 1794-6.5.8 - January 2010
44 Module Programming
Program
Unlatch
This rung buf
is successfully completed.
Action
the bit that continues to check the BTW status.
fers the BTR data when a transfer
0004
0005
BTW DONE BIT
B3:10
13
BTW ERROR BIT
B3:10
12
BTR DONE BIT
B3:0
13
COP
COPY FILE
SOURCE
DEST
LENGTH
CHECK BTW ST
#M1:1.110
#N7:0
BTR PENDING
B3:5
U
BTR ENABLE BIT
B3:100
U
15
CHECK BTR ST
B3:5
L
ATUS
B3:15
U
1
7
0
ATUS
1
This rung buf
not successful.
fers the error code if a BTR is
0006
BTR ERROR BIT
T
o next page.
B3:0
MOV
MOVE
12
SOURCE
DEST
M1:1.103
N7:7
BTR PENDING
B3:5
U
BTR ENABLE BIT
B3:100
U
CHECK BTR ST
B3:5
L
0<
0
15
ATUS
1
Publication 1794-6.5.8 - January 2010
Module Programming 45
Program
This rung manipulates the flags for the BTW
This rung buf
not successful.
Action
fers the error code if a BTW is
BTW DONE BIT
0007
.
0008
B3:10
13
BTW ERROR BIT
B3:10
12
MOV
MOVE
SOURCE
DEST
BTW ENABLE BIT
CHECK BTW ST
BTW PENDING
BTW ENABLE BIT
CHECK BTW ST
M1:1.203
6
N7:15
0<
BTW PENDING
B3:15
U
0
B3:110
U
15
B3:15
L
1
B3:15
B3:110
B3:15
ATUS
U
0
U
15
ATUS
U
1
This
rung executes BTRs continuously
BTR ENABLE BITBTR DONE BIT
0009
.
B3:100
T
o next page.
15
B3:0
13
BTR ERROR BIT
B3:0
12
BTR PENDING
B3:5
L
0
BTR ENABLE BIT
B3:100
L
15
Publication 1794-6.5.8 - January 2010
46 Module Programming
Program
This rung executes a BTW to configure the
module when the power-up bit (PU) is set.
This BTR control word is moved to the M0 file
for the scanner module.
Action
0010
0011
PU BIT
N7:5
BTR ENABLE BIT
BTR ERROR BIT
BTW ENABLE
15
B3:100
15
BTR DONE BIT
B3:0
13
B3:0
BIT
B3:110
15
BTW DONE
B3:10
13
BTW ERROR
BITBIT
B3:10
12
BTR CONTROL
MOV
MOVE
SOURCE
DEST
COP
COPY FILE
SOURCE
DEST
LENGTH
00000001000000<
BTW ENABLE BIT
BTW PENDING
B3:100
M0:1.100
?<
#N7:10
#M0:1.210
5
B3:110
L
15
B3:15
L
0
This
BTW control word is moved to the M0 file
for the scanner module.
This rung toggles the initiate configuration bit
from 0 to 1 to 0.
0012
0013
BTW ENABLE BIT
B3:110
15
BTW DONE BIT
B3:10
BTW ERROR BIT
B3:10
POWERUP BIT
N7:5
15
12
BTR CONTROL
MOV
MOVE
SOURCE
DEST
13
12
FP BIT
N7:5
14
CF BIT
N7:5
13
00000001000000<
B3:110
M0:1.200
THIS BIT
?<
IC BIT
N7:14
15
MUST
BE 1
N7:14
L
14
Publication 1794-6.5.8 - January 2010
0014
END
Program
rung configures the block transfer operation
This
type, length, and RIO address at power-up. Bit
B3:100/7 must be set to 1 to indicate a BTR and
bit B3:1
Action
10/7 must be 0 to indicate a BTW
.
Module Programming 47
Figure 1.9
SLC Programming for the 1794-IF2XOF2I Isolated Analog Input/Output Module
PowerUp Bit
S2:1
0000
15
BTR_CONTROL
COP
COPY FILE
SOURCE
DEST
LENGTH
BTW_CONTROL
COP
COPY FILE
SOURCE
DEST
LENGTH
#B3:100
#M0:1.100
3
#B3:110
#M0:1.200
3
0001
BTR status is copied to the B3:0 area when a BTR
is in progress.
0002
Unlatch the bit that continues to check the BTR status.
0003
BTW status is copied to the B3:100 area when a
BTW is in progress.
BTR PENDING
B3:5
0
CHK BTR ST
BTR DONE BIT
BTR ERROR BIT
BTW PENDING
CHK BTW STATUS
ATUS
B3:5
1
B3:0
13
B3:0
12
B3:5
0
B3:5
COP
COPY FILE
SOURCE
DEST
LENGTH
COP
COPY FILE
SOURCE
DEST
LENGTH
#M1:1.100
#B3:0
#M1:1.100
#B3:0
4
CHK BTR ST
B3:5
4
ATUS
U
1
0004
1
BTW PENDING
B3:15
0
CHK BTW STATUS
B3:15
1
T
o next page.
COP
COPY FILE
SOURCE
DEST
LENGTH
#M1:1.200
#B3:10
4
Publication 1794-6.5.8 - January 2010
48 Module Programming
Program
Unlatch
This rung buf
is successfully completed.
Action
the bit that continues to check the BTW status.
fers the BTR data when a transfer
0005
0006
BTW DONE BIT
B3:10
13
BTW ERROR BIT
B3:10
12
BTR DONE BIT
B3:0
13
COP
COPY FILE
SOURCE
DEST
LENGTH
CHK BTW STATUS
#M1:1.110
#N7:0
7
BTR PENDING
B3:5
U
B3:100
U
B3:5
L
0
15
ATUS
1
BTR ENABLE BIT
CHK BTR ST
B3:15
U
1
This rung buf
not successful.
fers the error code if a BTR is
0007
BTR DONE BIT
T
o next page.
B3:0
MOV
MOVE
12
SOURCE
DEST
M1:1.103
N7:7
BTR PENDING
B3:5
U
BTR ENABLE BIT
B3:100
U
CHECK BTR ST
B3:5
L
6
0<
0
15
ATUS
1
Publication 1794-6.5.8 - January 2010
Module Programming 49
Program
This rung manipulates the flags for the BTW
This rung buf
not successful.
Action
fers the error code if a BTW is
BTW DONE BIT
0008
.
0009
B3:10
13
BTW ERROR BIT
B3:10
12
MOV
MOVE
SOURCE
DEST
BTW ENABLE BIT
CHK BTW STATUS
BTW PENDING
BTW ENABLE BIT
CHECK BTW ST
M1:1.203
N7:17
0<
BTW PENDING
B3:15
U
0
B3:110
U
15
B3:15
L
1
B3:15
U
B3:110
U
B3:15
L
0
15
ATUS
1
rung executes BTRs continuously
This
BTR ENABLE BITBTR DONE BIT
0010
.
B3:100
T
o next page.
15
B3:0
13
BTR ERROR BIT
B3:0
12
BTR PENDING
B3:5
L
0
BTR ENABLE BIT
B3:100
L
15
Publication 1794-6.5.8 - January 2010
50 Module Programming
Program
This rung executes a BTW to configure the module
when the power-up bit is set. The configuration
data for the FLEX module should be placed in the
wirte data.
This BTR control word is moved to the M0 file
for the scanner module.
This
for the scanner module.
Action
BTW control word is moved to the M0 file
0011
0012
0013
BTR ENABLE BIT
B3:100
15
BTR DONE BIT
B3:0
13
BTR ERROR BIT
B3:0
12
BTW ENABLE BIT
B3:110
15
BTW DONE BIT
B3:10
BTW ENABLE
BIT
B3:110
15
BTW DONE BIT
B3:10
13
BTW ERROR BIT
B3:10
BTR CONTROL
MOV
MOVE
SOURCE
DEST
BTR CONTROL
MOV
MOVE
SOURCE
DEST
12
00000001000000<
00000000000000<
COP
COPY FILE
SOURCE
DEST
LENGTH
BTW ENABLE BIT
BTW PENDING
B3:100
M0:1.100
?<
B3:110
M0:1.200
?<
#N7:10
#M0:1.210
B3:110
L
15
B3:15
L
0
7
This rung toggles the initiate configuration bit
from 0 to 1 to 0.
Publication 1794-6.5.8 - January 2010
0014
0015
0016
BTW ERROR BIT
B3:10
POWERUP BIT
N7:5
13
12
FP BIT
N7:5
15
14
Thereafter
, the program continuously performs read block transfers.
CF BIT
N7:5
13
MOV
MOVE
SOURCE
DEST
THIS BIT
N7:0
<
N7:11
<
IC BIT
N7:16
MUST
N7:16
L
END
15
BE 1
14
Module Programming 51
Chapter Summary
In this chapter, you learned how to program your programmable
controller. You were given sample programs for your PLC-3 and PLC-5
family processors.
Publication 1794-6.5.8 - January 2010
52 Module Programming
Publication 1794-6.5.8 - January 2010
Chapter
4
Writing Configuration to and Reading Status
from Your Module with a Remote I/O Adapter
Chapter Objectives
Configuring Your Analog
Module
In this chapter, we tell you about:
• configuring your module’s features
• entering your data
• reading data from your module
• read block format
Because of the many analog devices available and the wide variety of
possible configurations, you must configure your module to conform
to the analog device and specific application that you have chosen.
The module is configured using a group of data table words that are
transferred to the module using a block transfer write instruction.
The software configurable features available are:
• input/output range selection
• data type (two’s complement, two’s complement percent, binary
and offset binary)
PLC-5 family programmable controllers that use 6200 software
programming tools can take advantage of the IOCONFIG utility to
configure these modules. IOCONFIG uses menu-based screens for
configuration without having to set individual bits in particular
locations. Refer to your 6200 software literature for details.
TIP
53Publication 1794-6.5.8 - January 2010
RSLogix family programmable controllers that use
RSLogix software programming tools can take
advantage of the configuration GUI to configure
these modules.
54 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter
Range Selection
Individual input channels are configurable to operate with the
following voltage or current ranges:
Channel not configured
4–20mAsigned 2’s complement4% Under; 4% Over
±10Vsigned 2’s complement2% Under, 2% Over
±5Vsigned 2’s complement4% Under, 4% Over
0–20mAsigned 2’s complement %0% Under, 4% Over
4-20mAsigned 2’s complement %4% Under, 4% Over
0–10Vsigned 2’s complement %0% Under, 2% Over
±10Vsigned 2’s complement %2% Under, 2% Over
0–20mAbinary0% Under, 4% Over
0–10Vbinary0% Under, 2% Over
0–5Vbinary0% Under, 4% Over
Safe State Selection
±20mAoffset binary, 8000H = 0mA 4% Under, 4% Over
4–20mAoffset binary, 8000H = 4mA 4% Under, 4% Over
±10Voffset binary, 8000H = 0V2% Under, 2% Over
±5Voffset binary, 8000H = 0V4% Under, 4% Over
You can select individual channel ranges using the designated words
of the write block transfer instruction. Refer to the Bit/Word
description for your particular module for word and bit numbers.
You can select the analog values that your output module will
maintain in the event of a network communication error. When the
enable bit is cleared by a communication error, the analog outputs
will automatically switch to the values set in the safe state analog
words as defined by the safe state source bits. This allows you to
select a reset to 0V/0mA, or hold the outputs at their last state when
using the remote I/O adapter on remote I/O. Additionally, safe state
values can be setup using ControlNet, DeviceNet or other network
adapter.
Data Format
Publication 1794-6.5.8 - January 2010
The input/output data exchanged between the module and the
adapter is available in two’s complement, two’s complement percent,
binary and offset binary (refer to the range selection table above).
Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter 55
Real Time Sampling
Real time sampling (RTS) provides data gathered at precise intervals
for use by the processor. You set a word in the block transfer write
data file to enable RTS.
The real time sample programmed interval is the time at which
updated information will be supplied to the processor. When set to
“0” the module will default to each channel’s fastest update rate,
which is dependent on the nominal range of the input and the filter
setting set to “no low pass.”
When the IT interrupt toggle bit is set (1), interleaving of module
interrupts occurs, ensuring exchange of critical data when channels
are configured for their fastest update times. RTSI and “no low pass
filter” must be 0 in order for the module to recognize this feature. This
groups data update rates for all channels to the slowest configuration
setting of any of the channels. In addition, channel update rates for all
channels with a 7.5ms update rate are reduced to 5.0ms. When reset
(0), real time sampling and filter features are enabled.
56 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter
The real time sample interval can be set from 0 to 30s, in increments
of 5ms. Set the real time sample interval in binary using 15 bits in the
block transfer write word.
The individual channel update times determines how fast you can get
new information collectively from the module. The module gathers
the data from each input and makes it available to the processor. For
example, if channel 0 is 2.5ms, channel 1 is 5.0ms, and channel 2 is
7.5ms, and RTS = 0, each channel will be updated at its stated rate. If
RTS is set to 5ms, only channels 0 and 1 are fast enough to be
included in the real time sample. In order to include channel 2 in your
synchronous sample, you must set the RTS to 10ms minimum. Your
updated information will be accurate for all inputs/outputs as viewed
at the last update before the time of your request.
Slowest
Channel Update T
Internal R
TS Timer = 10ms
ime= 7.5ms
ATTENTION
0
0
Do not set your real time sample interval less than
the slowest channel’s update time.
TS updated
4 inputs and R
10203040
5101520307.527.537.5352540
TS updated
4 inputs and R
17.5
TS updated
4 inputs and R
TS updated
4 inputs and R
Input Filtering
Publication 1794-6.5.8 - January 2010
The input modules have selectable input filtering built into the A/D
converter. The filter attenuates the input signal beginning at the speci
fied frequency. You can select from 150, 300, 600, and 1200Hz with
low pass filters of none, 100ms, 500ms or 1000ms. Each channel filter
-
Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter 57
can be set individually. Select the filter based on your system requirements.
Read programming moves status and data from the module to the
processor’s data table. The processor’s user program initiates the
request to transfer data from the input module (or combination
module) to the processor.
The following read and write words and bit/word descriptions
describe the information written to and read from the analog modules.
Each word is composed of 16 bits.
Publication 1794-6.5.8 - January 2010
58 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter
Input Data Channel 0
Input Data Channel 1
Input Data Channel 2
Input Data Channel 3
Real Time Sample
PU FP CFBD DN
UnderrangeOverrange
Set to 0EN
Channel
Filters
Channel Configuration
Real Time Sample Programmed Interval
IC
1
IT
TR
RV QK CK GO
Channel #
Read Word 0Analog Value Channel 0
Word 1Analog Value Channel 1
Word 2Analog Value Channel 2
Word 3Analog Value Channel 3
Word 4Real Time Sample
Word 5PUFPCF0Reserved00000BDDN0
Word 600000000V3V2V1V0U3U2U1U0
Where:
PU = Power up unconfigured state
FP = Field power off
CF = In configuration mode
BD = Calibration bad
DN = Calibration accepted
U = Under range for specified channel
V = Overrange for specified channel
Publication 1794-6.5.8 - January 2010
Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter 59
Table 4.4
Word/Bit Descriptions for the 1794-IF4I Analog Input Module
Read WordDecimal Bit
Definition
(Octal Bit)
Word 0Bits 00-15
(00-17)
Word 1Bits 00-15
(00-17)
Word 2Bits 00-15
(00-17)
Word 3Bits 00-15
(00-17)
Word 4Bits 00-15
(00-17)
Channel 0 analog data – Real time input data per your
configuration
Channel 1 analog data – Real time input data per your
configuration
Channel 2 analog data – Real time input data per your
configuration
Channel 3 analog data – Real time input data per your
configuration
Real Time Sample. The elapsed time in increments
programmed by the real time sample interval.
Word 5Bits 00Reserved
Bits 01Calibration Done bit (DN). – This bit is set to 1 after a
calibration cycle is
Bits 02Calibration Bad bit (BD). – This bit is set to 1 if the channel
calibration
Bits 03–07Set to 0.
Bits 08–11
Reserved
(10-12)
Bit 12 (14)Set to 0
Bit 13 (15)Configuration mode bit (CF) – This bit is set (1) when the
calibration mode is selected (bit 15, word 5 in the block
transfer write set to 1). When this bit is set (1), the module
status indicator flashes.
Bit 14 (16)Field Power Off bit (FP) – This bit is set (1) when the 24V
field power fails. When this bit is set (1), the module status
indicator flashes.
Bit 15 (17)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.
Word 6Bits 00-03Underrange 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. Refer to Table 4.B.
Bits 04-07Overrange bits (V). – These bits are set (1) when the input
channel is above a preset limit as defined by the configuration
selected. Bit 04 corresponds to input channel 0 and bit 05
Bits 08–15
corresponds to input channel 1, etc. Refer to
Not used. Set to 0.
Table 4.8.
(10-17)
Publication 1794-6.5.8 - January 2010
60 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter
Table 4.5
Analog Input Module (1794-IF4I) Write Configuration Block
Word 0EN000000000000000
Word 1Chnl 3 FilterChnl 2 FilterChnl 1 FilterChnl 0 Filter
Word 2Chnl 3 ConfigurationChnl 2 ConfigurationChnl 1 ConfigurationChnl 0 Configuration
Word 30Real Time Sample Programmed Interval
Word 4IC1TRIT0000RVQKCKGOChannel Number
Where:
EN = Not used on the 1794-IF4I.
IC = Initiate configuration bit
TR = Transparent bit
IT = Interrupt Toggle bit
RV = Revert to defaults bit
QK = Quick calibration
CK = Calibration clock
GO = Gain offset select
Table 4.6
Word/Bit Descriptions for the 1794-IF4I Analog Input ModuleWrite
Write WordDecimal Bit (Octal
Definition
Bit)
Word 0Bits 00–14 (00–16)Not used. Set to 0.
Bit 15 (17)Output enable bit (EN). – Not used in the 1794-IF4I module.
Word 1Channels 0 through 3 Filter Selections (refer to Table 4.7 )
Word 3Bits 00–14 (00–16)Real Time Sample Interval – Programs the interval of the real time sample. Can be varied
from 0 to 30 seconds (30000 decimal). Resolution is in ms with granularity in 5ms steps.
Bit 15 (17)Not used. Set to 0.
Publication 1794-6.5.8 - January 2010
Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter 61
Table 4.6
Word/Bit Descriptions for the 1794-IF4I Analog Input ModuleWrite
Write WordDecimal Bit (Octal
Definition
Bit)
Word 4Bit 00–03Channel calibration selection bit. When this bit is set (1), the channel can be calibrated
using the calibration clock bit (CK). Bit 00 corresponds to input channel 0, bit 01 corresponds to
input channel 1, it 02 corresponds to input channel 2, bit 03 corresponds to input channel 3
Bit 04Gain/Offset selection bit (GO). – When this bit is cleared, a 0 to 1 to 0 transition of the CK
bit performs on offset calibration. When this bit is 1, the module is directed to do a gain
calibration.
Bit 05Calibration clock bit (CK). – When this bit is set to 1 (calibration mode), the calibration
coeffiicient for the selected channels is accepted. When this bit is reset (0), the accepted
calibration coefficients for the selected channels are stored, applied, and the calibration mode
exited. Monitor status bits DN and BD for succesful calibration.
Bit 06Quick Calibration bit (QK). – Normally reset (0). When this bit is set (1) during a calibration
sequence, the calibration coefficient is stored to all related configurations for the selected
channels. NOTE: This method of calibration quickly calibrates the selected channels, however
you will not be within the rated accuracy of the module.
Bit 07Revert to defaults bit (RV). – Normally reset (0). When set (1) during a calibration procedure,
default values for selected channels are used for the calibration coefficient.NOTE: You will not
be within the rated accuracy of the module.
Bits 08-11 (10-13)Not used. Set to 0.
For IF4ICFXT only:
Bit 8 — FastStepResponse (FR) forces the A/D to skip the FIR stage if an input step occurs.
An averaging algorithm is temporarily used instead of the FIR filter in the A/D to provide a
quicker response.
Bit 9 — FIRFilterDisable (SK) bypasses the FIR filter stage in the A/D.
Bit 10 — ChopModeDisable (CH) disables the chop mode in the A/D. Chop mode is used to
reduce offsets between input and output of the analog section of the A/D.
(1)
Note: Module level settings that only affect 150 Hz, 300 Hz, and 600 Hz conversion rate
settings.
Bit 12 (14)Interrupt Toggle bit (IT) – This bit, when set (1), permits interleaving of module interrupts
ensuring exchange of critical data when channels are configured for their fastest update times.
RTSI and “no low pass filter” must be 0 in order for the module to recognize this feature. This
groups data update rates for all channels to the slowest configuration setting of any of the
channels. In addition, channel update rates for all channels with a 7.5ms update rate are
reduced to 5.0ms. When reset (0), real time sampling and filter features are enabled.
Bit 13 (15)Transparent bit (TR). – This bit, when set to 1, permits configuration to be changed without
using the IC bit. Default setting for this bit is True (1)
Bit 14 (16)Always set to 1.
Bit 15 (17)Initiate Configuration bit (IC). – When set (1), instructs the module to enter configuration
mode. Present configuration data prior to or coincident with IC being set. Once IC returns to 0,
the configuration is applied and any subquent configuration information is ignored until IC is
toggled.
(1)
For changes in tag values like the CH bit in the IF4ICFXT to take effect, the tag either must be included in a ladder rung or or a configuration download forced using the
configuration tab in the RSLogix GUI.
Publication 1794-6.5.8 - January 2010
62 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter
03 02 0100 Set these bits for Channel 0
07 06 0504 Set these bits for Channel 1
11 10 0908 Set these bits for Channel 2
15 14 1312 Set these bits for Channel 3
Read Word 0Read Back Channel 0
Word 1Read Back Channel 1
Word 2Read Back Channel 2
Word 3Read Back Channel 3
Word 4PUFPCF0Reserved00000BDDN0
Word 50000P3P2P1P00000W3W2W1W0
Where:
PU = Power up unconfigured state
FP = Field power off
CF = In configuration mode
BD = Calibration bad
DN = Calibration accepted
P0 thru P3 = Output holding in response to Q0 thru Q3
W0 thru W3 = Wire off current loop status for channels 0 thru 3 respectively. (Not used on voltage outputs.)
Publication 1794-6.5.8 - January 2010
Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter 65
Table 4.10
Bit/Word Descriptions for the 1794-OF4I Analog Output Module Read
Read WordDecimal Bit
Definition
(Octal Bit)
Word 0Bits 00-15 (00-17) Read Back Channel 0 – During normal operation, it is a copy of the output of channel
0. During an EN transition, it is the condition of the output as determined by S1 and S0.
Read back is an image of what the user has sent as output to the module; no checks are
performed on the data.
Word 1Bits 00-15 (00-17) Read Back Channel 1 – During normal operation, it is a copy of the output of channel
1. During an EN transition, it is the condition of the output as determined by S1 and S0.
Read back is an image of what the user has sent as output to the module; no checks are
performed on the data.
Word 2Bits 00-15 (00-17) Read Back Channel 2 – During normal operation, it is a copy of the output of channel
2. During an EN transition, it is the condition of the output as determined by S1 and S0.
Read back is an image of what the user has sent as output to the module; no checks are
performed on the data.
Word 3Bits 00-15 (00-17) Read Back Channel 3 – During normal operation, it is a copy of the output of channel
3. During an EN transition, it is the condition of the output as determined by S1 and S0.
Read back is an image of what the user has sent as output to the module; no checks are
performed on the data.
Word 4Bits 00Reserved
Bits 01Calibration Done bit (DN). – This bit is set to 1 after a calibration cycle is completed.
Bit 02Calibration Bad bit (BD). – This bit is set to 1 if the channel calibration coefficients
cannot be saved or read properly.
Bits 03–07Set to 0.
Bits 08–11
Reserved
(10-12)
Bit 12 (14)Set to 0
Bit 13 (15)Configuration mode bit (CF) – This bit is set (1) when the configuration mode is
selected (bit 15, word 5 in the block transfer write set to 1). When this bit is set, the
module status indicator flashes.
Bit 14 (16)Field Power Off bit (FP) – This bit is set (1) when the 24V field power fails. When this
bit is set (1), the module status indicator flashes.
Bit 15 (17)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, the module status indicator flashes.
Word 5Bits 00–03Wire-Off status bits. (W). – These bits, when set (1), indicate the corresponding
current output channel is open. W0 corresponds to channel 0, W1 corresponds to
channel 2, etc.
Bits 04–07Set to 0.
Bits 10–11
(12-13)
Hold output bits (P). – These bits are set (1) in response to Q0 or Q1 and a transition of
the EN bit. When P0 or P1 is set (1), they indicate that the output is holding at the level in
the readback data for the respective channel. These bits return to 0 when the output data
matches the readback output data.
Bits 12–15
Set to 0.
(14-17)
Publication 1794-6.5.8 - January 2010
66 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter
Table 4.11
Analog Output Module (1794-OF4I) Write Configuration Block
Write Word 0ENS1S00000000000000
Word 1Output Data – Channel 0
Word 2Output Data – Channel 1
Word 3Output Data – Channel 2
Word 4Output Data – Channel 3
Word 5Output Chnl 3
Configuration
Output Chnl 2
Configuration
Output Chnl 1
Configuration
Word 6IC1TRITQ3Q2Q1Q0RVQKCKGOChannel Number
Where:
EN = Enable outputs; 0 = output follows S1/S0, 1 = output enabled
IC = Initiate configuration bit
TR = Transparent bit
IT = Interrupt Toggle bit
Q0–3 = Request for outputs to hold
RV = Revert to defaults bit
QK = Quick calibration
CK = Calibration clock
GO = Gain offset select
Output Chnl 0
Configuration
Table 4.12
Range Selection Bits and Real Time Output Update Rate for the 1794-OF4I Isolated Output Module
Table 4.13
Word/Bit Descriptions for the 1794-OF4I Analog Output Module
Write WordDecimal Bit
Definition
(Octal Bit)
Word 0Bits 00–14
Not used
(00–16)
Bits 13–14
(15-16)
Safe State Source bits (S1/S0). – When EN is 0, these bits designate the source of
the safe state data.
Bit 13 = 0, bit 14 = 1 – reset outputs to 0V/0mA (used with 1794-ASB/C)
Bit 13 = 1, bit 14 = 1 – hold output at its current level (used with 1794-ASB/C)
Bit 13 = 0; bit 14 = 0 – Safe state data is in output data words
Bit 15 (17)Output enable bit (EN). – When set (1), the outputs are enabled. This bit must be set
in order for the real time data to appear at the outputs. If this bit is not set (0), the
outputs will be determined by S1/S0.
Word 1Bits 00–15
(00–17)
Word 2Bits 00–15
(00-17)
Word 3Bits 00–15
(00-17)
Word 4Bits 00–15
(00-17)
Channel 0 output data. – The output data is real time data formatted to the selected
configuration. (This data is also safe state data when directed by S1 and S0.)
Channel 1 output data. – The output data is real time data formatted to the selected
configuration. (This data is also safe state data when directed by S1 and S0.)
Channel 2 output data. – The output data is real time data formatted to the selected
configuration. (This data is also safe state data when directed by S1 and S0.)
Channel 3 output data. – The output data is real time data formatted to the selected
configuration. (This data is also safe state data when directed by S1 and S0.)
68 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter
Table 4.13
Word/Bit Descriptions for the 1794-OF4I Analog Output Module
Write WordDecimal Bit
Definition
(Octal Bit)
Word 6Bit 00–03Channel calibration selection bit. When this bit is set (1), the channel can be
calibrated using the calibration clock bit (CK). Bit 00 corresponds to output channel 0, bit
01 corresponds to output channel 1, it 02 corresponds to output channel 3, bit 03
corresponds to output channel 4
Bit 04Gain/Offset selection bit (GO). – When this bit is cleared, a 0 to 1 to 0 transition of
the CK bit performs on offset calibration. When this bit is 1, the module is directed to do
a gain calibration.
Bit 05Calibration clock bit (CK). – When this bit is set to 1 (calibration mode), the
calibration coeffiicient for the selected channels is accepted. When this bit is reset (0),
the accepted calibration coefficients for the selected channels are stored, applied, and
the calibration mode exited. Monitor status bits DN and BD for succesful calibration.
Bit 06Quick Calibration bit (QK). – Normally reset (0). When this bit is set (1) during a
calibration sequence, the calibration coefficient is stored to all related configurations
for the selected channels. NOTE: Although this method of calibration quickly calibrates
the selected channels, they will not be within the rated accuracy of the module.
Bit 07Revert to defaults bit (RV). – Normally reset (0). When set (1) during a calibration
procedure, default values for selected channels are used for the calibration coefficient.
NOTE: They will not be within the rated accuracy of the module.
Bits 08–11
(10–13)
Request for hold outputs (Q). – Channel request bits that instruct an output to hold its
output level when EN transitions from 1 to 0 to 1. When EN is 0, outputs go to a safe
state dictated by S1/S0. When EN returns to 1, the outputs will hold their level until the
output data equals the output level. P0–P3 indicates channels holding. Output read back
data shows what level is being held. Q0 = bit 08 (10) = channel 0; Q1 = bit 09 (11) =
channel 1, etc.
Bit 12 (14)Interrupt Toggle bit (IT) – This bit, when set (1), permits interleaving of module
interrupts ensuring exchange of critical data when channels are configured for their
fastest update times. RTSI and “no low pass filter” must be 0 in order for the module to
recognize this feature. This groups data update rates for all channels to the slowest
configuration setting of any of the channels. In addition, channel update rates for all
channels with a 7.5ms update rate are reduced to 5.0ms. When reset (0), real time
sampling and filter features are enabled.
Bit 13 (15)Transparent bit (TR). – This bit, when set to 1, permits configuration to be changed
Bit 14 (16)Set to 1
Bit 15 (17)Initiate Configuration bit (IC). – When set (1), instructs the module to enter
Publication 1794-6.5.8 - January 2010
without using the IC bit.
configuration mode. Present configuration data prior to or coincident with IC being set.
Once IC returns to 0, the configuration is applied and any subquent configuration
information is ignored until IC is toggled.
Read
Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter 69
2 Input/2 Output Analog Combo Module (Cat. No. 1794-IF2XOF2I)
Module
Image
I/O Image
Input Size
0 to 7 Words
PU FP CFBD DN
Input Data Channel 0
Input Data Channel 1
Read Back Output Data Channel 0
Read Back Output Data Channel 1
Real Time Sample
V1 V0U1 U0W1 W0P1 P0
Write
Table 4.14
Analog Combo Module (1794-IF2XOF2I) Read
Read Word 0Input Data Channel 0
Word 1Input Data Channel 1
Word 2Read Back Output Channel 0
Word 3Read Back Output Channel 1
Word 40Real Time Sample
Output Size
0 to 7 Words
Set to 0EN S1 S0
Output Data Channel 0
Output Data Channel 1
Channel Filters
Channel
Configuration
Real Time Sample Programmed Interval
ICRV QK CK GO
1
Q0Q1TR IT
Channel #
Publication 1794-6.5.8 - January 2010
70 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter
Table 4.14
Analog Combo Module (1794-IF2XOF2I) Read
Word 5PUFPCF0Reserved00000BDDN0
Word 60000P1P00000V1V0W1W0U1U0
Where:
PU = Power up unconfigured state
FP = Field power off
CF = In configuration mode
BD = Calibration bad
DN = Calibration accepted
P0 and P1 = Output holding in response to Q0 thru Q1
W0 and W1 = Wire off current loop status for input channels 0 and 1 respectively. (Not used on voltage outputs.)
U0 and U1 = Underrange for input channels o and 1 respectively.
V0 and V1 = Overrange for input channels o and 1 respectively.
Table 4.15
Configuring Your Input Channels
Input Channel Configuration
03 02 0100 Set these bits for Channel 0
07 06 0504 Set these bits for Channel 1
Bit SettingsInput
Values
Data Format% Underrange
%Overrange
Input Range
HexadecimalDecimal(RTSI = 0)(RTSI =
0000Channel not configured
(2)
Module Update
Rate
0)
IT = 1
00014–20mAsigned 2’s complement4% Under; 4%
Over
0010±10Vsigned 2’s complement2% Under, 2%
Over
0011±5Vsigned 2’s complement4% Under, 4%
Over
01000–20mAsigned 2’s complement %0% Under, 4%
Over
01014-20mAsigned 2’s complement %4% Under, 4%
Over
01100–10Vsigned 2’s complement %0% Under, 2%
Over
0111±10Vsigned 2’s complement %2% Under, 2%
Over
10000–20mAbinary0% Under, 4%
Over
10014–
20mA
Publication 1794-6.5.8 - January 2010
binary4% Under, 4%
(1)
Over
<0000–7878><0000–30840>7.5ms5.0ms
<831F–7CE1><–31969–
2.5ms2.5ms
31969>
<8618–79E8><–31208–
2.5ms2.5ms
31208>
0–2710>0–10000>7.5ms5.0ms
<0–2710><0–10000>7.5ms5.0ms
0–2710>0–10000>5.0ms5.0ms
<–D8F0–2710> <–10000–
5.0ms5.0ms
10000>
0000–F3CF>0000–62415>2.5ms2.5ms
0000–F0F1>0000–61681>7.5ms5.0ms
Table 4.15
Configuring Your Input Channels
Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter 71
10100–10Vbinary0% Under, 2%
Over
10110–5Vbinary0% Under, 4%
Over
1100±20mAoffset binary, 8000H =
0mA
11014–20mAoffset binary, 8000H =
4mA
4% Under, 4%
Over
4% Under, 4%
Over
1110±10Voffset binary, 8000H = 0V2% Under, 2%
Over
1111±5Voffset binary, 8000H = 0V4% Under, 4%
Over
(1)
Underrange for 4-20mA occurs in the blind area below 0 (3.2mA).
(2)
< and > indicate the overrun beyond actual range (about 5%).
72 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter
Table 4.17
Word/Bit Descriptions for the 1794-IF2XOF2I Isolated Analog Combo Module Read
Write WordDecimal Bit
Definition
(Octal Bit)
Word 0Bits 00–15
Input Channel 0 input data – Real time input data per your configuration
(00–17)
Word 1Bits 00–15
Input Channel 1 input data – Real time input data per your configuration
(00–17)
Word 2Bits 00–15
(00–17)
Read Back Output Channel 0 – During normal operation, it is a copy of the output of
channel 0. During an EN transition, it is the condition of the output as determined by S1
and S0. Note: Read back data is an image of what the user has sent as output to the
module; no checks are performed on the data.
Word 3Bits 00–15
(00–17)
Read Back Output Channel 1 – During normal operation, it is a copy of the output of
channel 1. During an EN transition, it is the condition of the output as determined by S1
and S0. Note: Read back data is an image of what the user has sent as output to the
module; no checks are performed on the data.
Word 4Bits 00–15
(00–17)
Real Time Sample. The elapsed time in increments programmed by the real time
sample interval.
Word 5Bits 00Reserved
Bits 01Calibration Done bit (DN). – This bit is set to 1 after a calibration cycle is completed.
Bits 02Calibration Bad bit (BD). – This bit is set to 1 if the channel calibration coefficients
cannot be saved or read properly.
Bits 03-07Set to 0.
Bits 08-11
Reserved
(10-12)
Bit 12 (14)Set to 0
Bit 13 (15)Configuration mode bit (CF) – This bit is set (1) when the configuration mode is
selected (bit 15, word 6 in the block transfer write set to 1). When this bit is set (1), the
module status indicator flashes.
Bit 14 (16)Field Power Off bit (FP) – This bit is set (1) when the 24V field power fails. When this
bit is set (1), the module status indicator flashes.
Bit 15 (17)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.
Publication 1794-6.5.8 - January 2010
Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter 73
Table 4.17
Word/Bit Descriptions for the 1794-IF2XOF2I Isolated Analog Combo Module Read
Write WordDecimal Bit
(Octal Bit)
Word 6Bits 00-01Underrange bits (U). – These bits are set (1) when the input channel is below a preset
Bits 02-03Wire-Off status bits. (W). – These bits, when set (1), indicate the corresponding
Bits 04-05Overrange bits (V). – These bits are set (1) when the input channel is above a preset
Bits 06-09
(06-11)
Bits 10-11
(12-13)
Bits 12-15
(14-17)
Table 4.18
Analog Combo Module (1794-IF2XOF2I) Read
Definition
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. Refer to
Table 4.15.
current output channel is open. W0 (bit 02) corresponds to channel 0, and W1 (bit 03)
corresponds to channel 1.
limit as defined by the configuration selected. Bit 04 corresponds to input channel 0 and
bit 05 corresponds to input channel 1. Refer to
Table 4.15.
Not used. Set to 0.
Hold output bits (P). – These bits are set (1) in response to Q0 or Q1 and transition of
the EN bit. When P0 or P1 is set (1), they indicate that the output is holding at the level
in the readback data for the respective channel. These bits return to 0 when the output
Write Word 0ENS1S00000000000000
Word 1Output Data Channel 0
Word 2Output Data Channel 1
Word 300000000Input Channel 1 FilterInput Channel 0 Filter
Word 4Output Channel 1
Configuration
Output Channel 0
Configuration
Input Channel 1
Configuration
Input Channel 0
Configuration
Word 50Real Time Sample Programed Interval
Word 6IC1TRITQ1Q200RVQKCKGOInput Channel 0
Configuration
Where:
EN = Enable outputs; 0 = output follows S1/S0, 1 = output enabled
IC = Initiate configuration bit
IT = Interrupt Toggle bit
TR = Transparent bit
Q0 and Q1 = Request for outputs to hold
RV = Revert to defaults bit
QK = Quick calibration
CK = Calibration clock
GO = Gain offset select
Publication 1794-6.5.8 - January 2010
74 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter
Table 4.19
Configuring Your Outputs for the 1794-IF2XOF2I Analog Combo Module
< and > indicate the overrun beyond actual range (about 5%).
Table 4.20
Word/Bit Descriptions for the 1794-IF2XOF2I Analog Combo Module Write
Write WordDecimal Bit
(Octal Bit)
Word 0Bits 00–14
(00–16)
Bit 13–14 (15–16) Safe State Source bits (S1/S0). – When EN is 0, these bits designate the source of
Bit 15 (17)Output enable bit (EN). – When set (1), the outputs are enabled. This bit must be set
Word 1Bits 00–15
(00–17)
Publication 1794-6.5.8 - January 2010
Definition
Not used
the safe state data.
Bit 13 = 0, bit 14 = 1 – reset outputs to 0V/0mA (used with 1794-ASB/C)
Bit 13 = 1, bit 14 = 1 – hold output at its current level (used with 1794-ASB/C)
Bit 13 = 0; bit 14 = 0 – Safe state data is in output data words
in order for the real time data to appear at the outputs. If this bit is not set (0), the
outputs will be determined by S1/S0.
Output Channel 0 data. Refer to Table 4.19.
Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter 75
Table 4.20
Word/Bit Descriptions for the 1794-IF2XOF2I Analog Combo
Module Write
Write WordDecimal Bit
Definition
(Octal Bit)
Word 2Bits 00–15
Output Channel 1 data. Refer to Table 4.19.
(00–17)
Word 3Input Channels 0 and 1 Filter Selections (refer to Table 4.16)
Output Channel 0 Configuration – Refer to Table 4.19.
(10–13)
Bits 12–15
Output Channel 1 Configuration – Refer to Table 4.19.
(14–17)
Word 5Bits 00–14
(00–16)
Real Time Sample Interval – Programs the interval of the real time sample. Can be
varied from 0 to 30 seconds (30000 decimal). Resolution is in ms with granularity in 5ms
steps. (see
page 4-55)
Publication 1794-6.5.8 - January 2010
76 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter
Table 4.20
Word/Bit Descriptions for the 1794-IF2XOF2I Analog Combo
Module Write
Write WordDecimal Bit
(Octal Bit)
Word 6Bit 00–03 Channel calibration selection bit. When this bit is set (1), the channel can be
Bit 04 Gain/Offset selection bit (GO). – When this bit is cleared, a 0 to 1 to 0 transition of
Bit 05Calibration clock bit (CK). – When this bit is set to 1 (calibration mode), the
Bit 06Quick Calibration bit (QK). – Normally reset (0). When this bit is set (1) during a
Bit 07Revert to defaults bit (RV). – Normally reset (0). When set (1) during a calibration
Bits 08–09
(10–11)
Bits 10–11
(12–13)
Bit 12 (14)Interrupt Toggle bit (IT) – This bit, when set (1), permits interleaving of module
Definition
calibrated using the calibration clock bit (CK). Bit 00 corresponds to input channel 0, bit
01 corresponds to input channel 1, it 02 corresponds to output channel 0, bit 03
corresponds to output channel 1.
the CK bit performs on offset calibration. When this bit is 1, the module is directed to do
a gain calibration.
calibration coeffiicient for the selected channels is accepted. When this bit is reset (0),
the accepted calibration coefficients for the selected channels are stored, applied, and
the calibration mode exited. Monitor status bits DN and BD for succesful calibration.
calibration sequence, the calibration coefficient is stored to all related configurations
for the selected channels. NOTE: This method of calibration quickly calibrates the
selected channels, however you will not be within the rated accuracy of the module.
procedure, default values for selected channels are used for the calibration coefficient.
NOTE: You will not be within the rated accuracy of the module.
Not used. Set to 0.
Request for hold outputs (Q). – Channel request bits that instruct an output to hold its
output level when EN transitions from 1 to 0 to 1. When EN is 0, outputs go to a safe
state dictated by S1/S0. When EN returns to 1, the outputs will hold their level until the
output data equals the output level. P0–P3 indicates channels holding. Output read back
data shows what level is being held. Q0 = bit 08 (10) = channel 0; Q1 = bit 08 (10) =
channel 1, etc.
interrupts ensuring exchange of critical data when channels are configured for their
fastest update times. RTSI and “no low pass filter” must be 0 in order for the module to
recognize this feature. This groups data update rates for all channels to the slowest
configuration setting of any of the channels. In addition, channel update rates for all
channels with a 7.5ms update rate are reduced to 5.0ms. When reset (0), real time
sampling and filter features are enabled.
Bit 13 (15) Transparent bit (TR). – This bit, when set to 1, permits configuration to be changed
Bit 15 (17)Initiate Configuration bit (IC). – When set (1), instructs the module to enter
Chapter Summary
Publication 1794-6.5.8 - January 2010
without using the IC bit.
configuration mode. Present configuration data prior to or coincident with IC being set.
Once IC returns to 0, the configuration is applied and any subquent configuration
information is ignored until IC is toggled.
In this chapter, you read how to configure your module’s features and
enter your data.
Chapter
5
Communication and I/O Image Table Mapping
with the DeviceNet/ControlNet Adapter
Chapter Objectives
About RSNetWorx and
RSLogix
Polled I/O Structure
In this chapter, you will read about:
• RSNetWorx and RSLogix software
• I/O structure
• image table mapping
• factory defaults
RSNetWorx is a software tool used in conjunction with RSLogix to
configure your FLEX I/O DeviceNet or ControlNetadapter and its
related modules. This software tool can be connected to the adapter
via the DeviceNet network. The Ethernet IP adapter only requires
RSLogix to configure the modules.
Output data is received by the adapter in the order of the installed I/O
modules. The Output data for Slot 0 is received first, followed by the
Output data for Slot 1, and so on up to slot 7.
The first word of input data sent by the adapter is the Adapter Status
Word. This is followed by the input data from each slot, in the order
of installed I/O modules. The Input data from Slot 0 is first after the
status word, followed by Input data from Slot 2, and so on to slot 7.
DeviceNet Adapter
Read Data
Adapter
Status
Slot 0 Input Data
Network
READ
Network WRITE
77Publication 1794-6.5.8 - January 2010
Slot 1 Input Data
...
Slot 7 Input Data
Write Data
Slot 0 Output Data
Slot 1 Output Data
...
Slot 7 Output Data
...
...
Read
Write
I/O Module
Slot 0
I/O Module
Slot 1
...
I/O Module
Slot 7
78 Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter
Adapter Input Status Word
The input status word consists of:
• I/O module fault bits – 1 status bit for each slot
• node address changed – 1 bit
• I/O status – 1 bit
15Bit:01234567810 through 15
9
I/O Module Fault Bits
Not Used
I/O State Bit
Node Address Changed Bit
Slot 7
Slot 6
Slot 5
Slot 4
Slot 3
Slot 2
Slot 1
Slot 0
The adapter input status word bit descriptions are shown in the following table.
Bit DescriptionBitExplanation
I/O Module Faults0This bit is set (1) when an error is detected in slot position 0.
1This bit is set (1) when an error is detected in slot position 1.
2This bit is set (1) when an error is detected in slot position 2.
3This bit is set (1) when an error is detected in slot position 3.
4This bit is set (1) when an error is detected in slot position 4.
5This bit is set (1) when an error is detected in slot position 5.
6This bit is set (1) when an error is detected in slot position 6.
7This bit is set (1) when an error is detected in slot position 7.
Node Address Changed8This bit is set (1) when the node address switch setting has been
changed sing power up.
I/O State9Bit = 0 – idle
Bit = 1 – run
10 thru 15Not used – sent as zeroes.
Publication 1794-6.5.8 - January 2010
Possible causes for an I/O Module Fault are:
• transmission errors on the FLEX I/O backplane
• a failed module
• a module removed from its terminal base
• incorrect module inserted in a slot position
• the slot is empty
The node 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.
Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter 79
Mapping Data into the
Image Table
Module DescriptionCatalog
4 Input Isolated Analog Module1794-IF4Ipage 5-79
4 Output Isolated Analog Module1794-OF4Ipage 5-86
2 in/2 out Isolated Analog Combo Module1794-IF2XOF2Ipage 5-91
FLEX I/O analog modules are supported by the DeviceNet adapter.
Read Word 1Analog Value Channel 0
Word 2Analog Value Channel 1
Word 3Analog Value Channel 2
Word 4Analog Value Channel 3
Word 5Real Time Sample
Word 6PUFPCF0Reserved00000BDDN0
Word 700000000V3V2V1V0U3U2U1U0
Where:
PU = Power up unconfigured state
FP = Field power off
CF = In configuration mode
BD = Calibration bad
DN = Calibration accepted
U = Under range for specified channel
V = Overrange for specified channel
Publication 1794-6.5.8 - January 2010
80 Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter
Table 5.2
Analog Input Module (1794-IF4ICFXT) Write
Word 0EN000000000000000
Word 1Channel 3 FilterChannel 2 FilterChannel 1 FilterChannel 0 Filter
Word 2Ch 3 ConfigurationCh 2 ConfigurationCh 1 ConfigurationCh 0 Configuration
Word 30Real Time Sample Interval
Word 4IC1TRIT0CHSKFSRVQKCKGOChannel Number
Word 5Reserved
Where :
EN = Enable bit (not used on input module)
IC = Initiate Configuration bit
TR = Transparent bit
IT = Interrupt toggle bit
CH - Chop Mode Disable — use to disable the chop mode. Chop mode used by the module to reduce offset and drift errors. The
default is chop mode enabled (0).
SK = FIR Filter Disable — use to disable the FIR filter. The Finite Impulse Response filter is used by the module to improve signal
stability. The default is FIR filter enabled (0).
FS = Fast Step Response — use to enable a fast step response algorithm. The fast step response algorithm, upon sensing a step
input, uses an averaging method rather than the FIR filter. The FIR goes back into operation once the input has settled. The
default is fast step response disabled (0).
RV = Revert to default bit
QK = Quick calibration
CK = Calibration clock
GO = Gain Offset select
Table 5.3
Analog Input Module (1794-IF4I) Write Configuration Block
Word 1EN000000000000000
Word 2Chnl 3 FilterChnl 2 FilterChnl 1 FilterChnl 0 Filter
Word 3Chnl 3 ConfigurationChnl 2 ConfigurationChnl 1 ConfigurationChnl 0 Configuration
Word 40Real Time Sample Programmed Interval
Word 5IC1TRIT0000RVQKCKGOChannel Number
Word 6Not used
Word 7Not used
Word 7Not used
Where:
EN = Not used on the 1794-IF4I.
IC = Initiate configuration bit
TR = Transparent bit
IT = Interrupt Toggle bit
RV = Revert to defaults bit
QK = Quick calibration
CK = Calibration clock
GO = Gain offset select
Publication 1794-6.5.8 - January 2010
Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter 81
03020100Set these bits for Channel 0
07060504Set these bits for Channel 1
11100908Set these bits for Channel 2
15141312Set these bits for Channel 3
Bit SettingsInput
Real Time Sample Interval – Programs the interval of the real time sample.
Can be varied from 0 to 30 seconds (30000 decimal). Resolution is in ms with
granularity in 5ms steps.
Bit 15 (17)Not used. Set to 0.
Word 5Bit 00-03Channel calibration selection bit. When this bit is set (1), the channel can
be calibrated using the calibration clock bit (CK). Bit 00 corresponds to input
channel 0, bit 01 corresponds to input channel 1, it 02 corresponds to input
channel 2, bit 03 corresponds to input channel 3
Bit 04Gain/Offset selection bit (GO). – When this bit is cleared, a 0 to 1 to 0
transition of the CK bit performs on offset calibration. When this bit is 1, the
module is directed to do a gain calibration.
Bit 05Calibration clock bit (CK). – When this bit is set to 1 (calibration mode), the
calibration coeffiicient for the selected channels is accepted. When this bit is
reset (0), the accepted calibration coefficients for the selected channels are
stored, applied, and the calibration mode exited. Monitor status bits DN and
BD for succesful calibration.
Bit 06Quick Calibration bit (QK). – Normally reset (0). When this bit is set (1)
during a calibration sequence, the calibration coefficient is stored to all
related configurations for the selected channels. NOTE: This method of
calibration quickly calibrates the selected channels, however you will not be
within the rated accuracy of the module.
Bit 07Revert to defaults bit (RV). – Normally reset (0). When set (1) during a
calibration procedure, default values for selected channels are used for the
calibration coefficient.NOTE: You will not be within the rated accuracy of the
module.
Bits 08-11
(10-14)
Not used. Set to 0.
For IF4ICFXT only:
Bit 8 — FastStepResponse (FR) forces the A/D to skip the FIR stage if an
input step occurs. An averaging algorithm is temporarily used instead of the
FIR filter in the A/D to provide a quicker response.
Bit 9 — FIRFilterDisable (SK) bypasses the FIR filter stage in the A/D.
Bit 10 — ChopModeDisable (CH) disables the chop mode in the A/D. Chop
mode is used to reduce offsets between input and output of the analog
section of the A/D.
(1)
Note: Module level settings that only affect 150 Hz, 300 Hz, and 600 Hz
conversion rate settings.
Publication 1794-6.5.8 - January 2010
Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter 85
Table 5.6
Word/Bit Descriptions for the 1794-IF4I Isolated Analog Input Module
WordDecimal Bit
Definition
(Octal Bit)
Word 5Bit 12 (14)Interrupt Toggle bit (IT) – This bit, when set (1), permits interleaving of
module interrupts ensuring exchange of critical data when channels are
configured for their fastest update times. RTSI and “no low pass filter” must
be 0 in order for the module to recognize this feature. This groups data update
rates for all channels to the slowest configuration setting of any of the
channels. In addition, channel update rates for all channels with a 7.5ms
update rate are reduced to 5.0ms. When reset (0), real time sampling and
filter features are enabled.
Bit 13 (15)Transparent bit (TR). – This bit, when set to 1, permits configuration to be
changed without using the IC bit.
Bit 14 (16)Set to 1.
Bit 15 (17)Initiate Configuration bit (IC). – When set (1), instructs the module to enter
configuration mode. Present configuration data prior to or coincident with IC
being set. Once IC returns to 0, the configuration is applied and any subquent
configuration information is ignored until IC is toggled.
Words 6, 7 and 8Bits 00-15
Not used.
(00-17)
(1)
For changes in tag values like the CH bit in the IF4ICFXT to take effect, the tag either must be included in a ladder rung or or a configuration download
forced using the configuration tab in the RSLogix GUI.
Publication 1794-6.5.8 - January 2010
86 Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter
Word 2Read Back Channel 1
Word 3Read Back Channel 2
Word 4Read Back Channel 3
Word 5PUFPCF0Reserved00000BDDN0
Word 60000P3P2P1P00000W3W2W1W0
Where:
PU = Power up unconfigured state
FP = Field power off
CF = In configuration mode
BD = Calibration bad
DN = Calibration accepted
P0 thru P3 = Output holding in response to Q0 thru Q3
W0 thru W3 = Wire off current loop status for channels 0 thru 3 respectively. (Not used on voltage outputs.)
Publication 1794-6.5.8 - January 2010
Table 5.7
Analog Output Module (1794-OF4I) Read
Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter 87
Table 5.8
Analog Output Module (1794-OF4I) Write Configuration Block
Write Word 1ENS1S00000000000000
Word 2Output Data – Channel 0
Word 3Output Data – Channel 1
Word 4Output Data – Channel 2
Word 5Output Data – Channel 3
Word 6Output Chnl 3
Configuration
Output Chnl 2
Configuration
Output Chnl 1
Configuration
Output Chnl 0
Configuration
Word 7IC1TRITQ3Q2Q1Q0RVQKCKGOChannel Number
Words 8 and 9Not used
Where:
EN = Enable outputs; 0 = output follows S1/S0, 1 = output enabled
IC = Initiate configuration bit
TR = Transparent bit
IT = Interrupt Toggle bit
Q0–3 = Request for outputs to hold
RV = Revert to defaults bit
QK = Quick calibration
CK = Calibration clock
GO = Gain offset select
Table 5.9
Configuring Your Outputs for the 1794-OF4I Isolated Output Module
Table 5.10
Word/Bit Descriptions for the 1794-OF4I Isolated Analog Output Module
WordDecimal Bit
Definition
(Octal Bit)
Word 1Bits 00-15
(00-17)
Read Back Channel 0 – During normal operation, it is a copy of the output
of channel 0. During an EN transition, it is the condition of the output as
determined by S1 and S0. Read back is an image of what the user has sent as
output to the module; no checks are performed on the data.
Word 2Bits 00-15
(00-17)
Read Back Channel 1 – During normal operation, it is a copy of the output
of channel 1. During an EN transition, it is the condition of the output as
determined by S1 and S0. Read back is an image of what the user has sent as
output to the module; no checks are performed on the data.
Word 3Bits 00-15
(00-17)
Read Back Channel 2 – During normal operation, it is a copy of the output
of channel 2. During an EN transition, it is the condition of the output as
determined by S1 and S0. Read back is an image of what the user has sent as
output to the module; no checks are performed on the data.
Word 4Bits 00-15
(00-17)
Read Back Channel 3 – During normal operation, it is a copy of the output
of channel 3. During an EN transition, it is the condition of the output as
determined by S1 and S0. Read back is an image of what the user has sent as
output to the module; no checks are performed on the data.
Word 5Bit 00Reserved
Bit 01Calibration Done bit (DN). – This bit is set to 1 after a calibration cycle is
completed.
Bit 02Calibration Bad bit (BD). – This bit is set to 1 if the channel calibration
coefficients cannot be saved or be read properly.
Bits 03-07Set to 0.
Bits 08-11
Reserved
(10-12)
Bit 12 (14)Set to 0.
Bit 13 (15)Configuration mode bit (CF) – This bit is set (1) when the calibration mode
is selected (bit 15, word 5 in the block transfer write set to 1). When this bit is
set (1), the module status indicator flashes.
Bit 14 (16)Field Power Off bit (FP) – This bit is set (1) when the 24V field power fails.
When this bit is set (1), the module status indicator flashes.
Bit 15 (17)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.
Publication 1794-6.5.8 - January 2010
Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter 89
Table 5.10
Word/Bit Descriptions for the 1794-OF4I Isolated Analog Output Module
WordDecimal Bit
Definition
(Octal Bit)
Word 6Bits 00-03Wire-Off status bits. (W). – These bits, when set (1), indicate the
corresponding current output channel is open. W0 corresponds to channel 0,
W1 corresponds to channel 2, etc.
Bits 04-07Set to 0.
Bits 10-11
(12-13)
Hold output bits (P). – These bits are set (1) in response to Q0 or Q1 and a
transition of the EN bit. When P0 or P1 is set (1), they indicate that the output
is holding at the level in the readback data for the respective channel. These
bits return to 0 when the output data matches the readback output data.
Bits 12-15
Set to 0.
(14-17)
Write Word 1Bits 00-12
Not used.
(00-14)
Bits 13-14
(15-16)
Safe State Source bits (S1/S0). – When EN is 0, these bits designate the
source of the safe state data. Bit 13 = 0, bit 14 = 1 – reset outputs to 0V/0mA
(used with 1794-ASB/C) Bit 13 = 1, bit 14 = 1 – hold output at its current level
(used with 1794-ASB/C Bit 13 = 0; bit 14 = 0 – Safe state data is in output
data words
Bit 15 (17)Output enable bit (EN). – When set (1), the outputs are enabled. This bit
must be set in order for the real time data to appear at the outputs. If this bit
is not set (0), the outputs will be determined by S1/S0.
Word 2Bits 00-15
(00-17)
Channel 0 output data. – The output data is real time data formatted to the
selected configuration. (This data is also safe state data when directed by S!
and S0.)
Word 3Bits 00-15
(00-17)
Channel 1 output data. – The output data is real time data formatted to the
selected configuration. (This data is also safe state data when directed by S!
and S0.)
Word 4Bits 00-15
(00-17)
Channel 2 output data. – The output data is real time data formatted to the
selected configuration. (This data is also safe state data when directed by S!
and S0.)
Word 5Bits 00-15
(00-17)
Channel 3 output data. – The output data is real time data formatted to the
selected configuration. (This data is also safe state data when directed by S!
Read Word 0Input Data Channel 0
Word 1Input Data Channel 1
Word 2Read Back Output Channel 0
Word 3Read Back Output Channel 1
Word 40Real Time Sample
Word 5PUFPCF0Reserved00000BDDN0
Word 60000P1P00000V1V0W1W0U1U0
Where:
PU = Power up unconfigured state
FP = Field power off
CF = In configuration mode
BD = Calibration bad
DN = Calibration accepted
P0 and P1 = Output holding in response to Q0 thru Q1
W0 and W1 = Wire off current loop status for input channels 0 and 1
respectively. (Not used on voltage outputs.)
U0 and U1 = Underrange for input channels o and 1 respectively.
V0 and V1 = Overrange for input channels o and 1 respectively.
Publication 1794-6.5.8 - January 2010
92 Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter
Table 5.12
Configuring Your Input Channels
Input Channel Configuration
03020100Set these bits for Channel 0
07060504Set these bits for Channel 1
Bit SettingsInput
< and > indicate the overrun beyond actual range (about 5%).
Publication 1794-6.5.8 - January 2010
94 Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter
Table 5.15
Word/Bit Descriptions for the 1794-IF2XOF2I Isolated Analog Combo Module
Write WordDecimal Bit
Definition
(Octal Bit)
Word 0Bits 00–15
Input Channel 0 input data – 16-bit unipolar; 15-bit plus sign bipolar
(00–17)
Word 1Bits 00–15
Input Channel 1 input data – 16-bit unipolar; 15-bit plus sign bipolar
(00–17)
Word 2Bits 00–15
(00–17)
Read Back Output Channel 0 – During normal operation, it is a copy of the output of
channel 0. During an EN transition, it is the condition of the output as determined by S1
and S0.
Word 3Bits 00–15
(00–17)
Read Back Output Channel 1 – During normal operation, it is a copy of the output of
channel 1. During an EN transition, it is the condition of the output as determined by S1
and S0.
Word 4Bits 00–15
(00–17)
Real Time Sample. The fixed time period you set telling the module when to provide
data to the processor.
Word 5Bits 00Reserved
Bits 01Calibration Done bit (DN). – This bit is set to 1 after a calibration cycle is completed.
Bits 02Calibration Bad bit (BD). – This bit is set to 1 if the channel calibration coefficients
cannot be saved or read properly.
Bits 03-07Set to 0.
Bits 08-11
Reserved
(10-12)
Bit 12 (14)Set to 0
Bit 13 (15)Configuration mode bit (CF) – This bit is set (1) when the configuration mode is
selected (bit 15, word 6 in the block transfer write set to 1). When this bit is set (1), the
module status indicator flashes.
Bit 14 (16)Field Power Off bit (FP) – This bit is set (1) when the 24V field power fails. When this
bit is set (1), the module status indicator flashes.
Bit 15 (17)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.
Publication 1794-6.5.8 - January 2010
Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter 95
Table 5.15
Word/Bit Descriptions for the 1794-IF2XOF2I Isolated Analog Combo Module
Write WordDecimal Bit
Definition
(Octal Bit)
Word 6Bits 00-01Underrange 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
Bits 02-03Wire-Off status bits. (W). – These bits, when set (1), indicate the corresponding
current output channel is open. W0 (bit 02) corresponds to channel 0, and W1 (bit 03)
corresponds to channel 1.
Bits 04-05Overrange bits (V). – These bits are set (1) when the input channel is above
a preset limit as defined by the configuration selected. Bit 04 corresponds to input
channel 0 and bit 05 corresponds to input channel 1
Bits 06-09
Not used. Set to 0.
(06-11)
Bits 10-11
(12-13)
Hold output bits (P). – These bits are set (1) in response to Q0 or Q1 and a transition of
the EN bit. When P0 or P1 is set (1), they indicate that the output is holding at the level
in the readback data for the respective channel. These bits return to 0 when the output
data matches the readback output data.
Bits 12-15
Not used. Set to 0.
(14-17)
Write Word 1Bits 00-12
Not used.
(00-14)
Bits 13-14
(15-16)
Safe State Source bits (S1/S0). – When EN is 0, these bits designate the source of
the safe state data.
Bit 13 = 0, bit 14 = 1 – reset outputs to 0V/0mA
Bit 13 = 1, bit 14 = 1 – hold output at its current level
Bit 15 (17)Output enable bit (EN). – When set (1), the outputs are enabled. This bit must be set
in order for the real time data to appear at the outputs. If this bit is not set (0), the
outputs will be determined by S1/S0.
Word 2Bits 00-15
Output Channel 0 data. Refer to Table 5.14.
(00-17)
Word 3Bits 00-15
Output Channel 1 data. Refer to Table 5.14.
(00-17)
Word 4Input Channels 0 and 1 Filter Selections Refer to Table 5.13
Bits 00-03Input Channel 0 Configuration Refer to Table 5.12
Bits 04-07Input Channel 1 Configuration Refer to Table 5.12
Bits 08-11
Output Channel 0 Configuration Refer to Table 5.14.
(10-13)
Bits 12-15
Output Channel 1 Configuration Refer to Table 5.14.
(14-17)
Publication 1794-6.5.8 - January 2010
96 Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter
Table 5.15
Word/Bit Descriptions for the 1794-IF2XOF2I Isolated Analog Combo Module
Write WordDecimal Bit
Definition
(Octal Bit)
Word 6Bits 00-14
(00-16)
Real Time Sample Interval – Programs the interval of the real time sample. Can be
varied from 0 to 30 seconds (30000 decimal). Resolution is in ms with granularity in 5ms
steps.
Bit 15 (17)Set to 0.
Word 7Bits 00-03Channel calibration selection bit. When this bit is set (1), the channel can be
calibrated using the initiate calibration bit (IC). Bit 00 corresponds to input channel 0, bit
01 corresponds to input channel 1, it 02 corresponds to output channel 0, bit 03
corresponds to output channel 1
Bit 04Gain/Offset selection bit (GO). – When this bit is set (1), a reset (0), set (1), reset (0)
pattern of the calibration clock bit (CK) causes a gain calibration to occur. When this bit
is set to 0, a reset (0), set (1), reset (0) pattern of the calibration clock bit (CK) causes an
offset calibration to occur.
Bit 05Calibration clock bit (CK). – When this bit is set to 1 (calibration mode), the
calibration coeffiicient for the selected channels is accepted. When this bit is reset (0),
the accepted calibration coefficients are stored in the selected channels, applied, and
the calibration mode exited. Monitor status bits DN and BD for succesful calibration.
Bit 06Quick Calibration bit (QK). – Normally reset (0). When this bit is set (1) during a
calibration sequence, the calibration coefficient is stored to all related configurations
for the selected channels. NOTE: This method of calibration quickly calibrates the
selected channels, you will not be within the rated accuracy of the module.
Bit 07Revert to defaults bit (RV). – Normally reset (0). When set (1) during a calibration
procedure, default values for selected channels are used for the calibration coefficient.
Bits 08-09
Not used. Set to 0.
(10-11)
Bits 10-11
(12-13)
Request for hold outputs (Q). – Channel request bits that instruct an output to hold its
output level when EN transitions from 0 to 1 to 0. When EN is 0, outputs go to a safe
state dictated by S1/S0. When EN returns to 1, the outputs will hold their level until the
output data equals the output level. P0–P3 indicates channels holding. Output read back
data shows what level is being held. Q0 = bit 08 (10) = channel 0; Q1 = bit 08 (10) =
channel 1, etc.
Bit 12 (14)Interrupt Toggle bit (IT) – This bit, when set (1), permits interleaving of module
interrupts ensuring exchange of critical data when channels are configured for their
fastest update times. RTSI and “no low pass filter” must be 0 in order for the module to
recognize this feature. This groups data update rates for all channels to the slowest
configuration setting of any of the channels. In addition, channel update rates for all
channels with a 7.5ms update rate are reduced to 5.0ms. When reset (0), real time
sampling and filter features are enabled.
Bit 13 (15)Transparent bit (TR). – This bit, when set to 1, permits configuration to be changed
Bit 14 (16)Set to 1.
Bit 15 (17)Initiate Configuration bit (IC). – When set (1), instructs the module to enter
Word 8Bits 00-15
(00-17)
Publication 1794-6.5.8 - January 2010
without using the IC bit.
configuration mode. Present configuration data prior to or coincident with IC being set.
Once IC returns to 0, additional configuration information is ignored.
Not used.
Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter 97
Defaults
Each I/O module has default values associated with it. At default, each
module will generate inputs/status and expect outputs/configuration.
Module Defaults for:Actual Defaults
Catalog
Number
1794-IF4I4-pt Isolated Analog Input8740
1794-OF4I4-pt Isolated Analog Output6945
1794-IF2XOF2I2 in/2 out Isolated Analog
DescriptionInput
Default
Combo
Output
Defaults
7842
Input
Defaults
Output
Defaults
Factory defaults are the values available by the adapter.
You can change the I/O data size for a module by reducing the
number of words mapped into the adapter module, as shown in real
time sizes.”
Real time sizes are the settings that provide optimal real time data to
the adapter module. These values appear when you:
• first power up the system, and
• no previous stored settings have been applied.
Analog modules have 15 words assigned to them. This is divided into
input words/output words. You can reduce the I/O data size to fewer
words to increase data transfer over the backplane. For example, a 4
input analog module has 7 words input/8 words output. You can
reduce the input words to 4 by not using the real time sample,
module status or channel status. Likewise, you can reduce the write
words to 0, thus eliminating the conversion rate/filter settings, channel
range/data format, real time sample interval and
configuration/calibration and unused words.
Publication 1794-6.5.8 - January 2010
98 Communication and I/O Image Table Mapping with the DeviceNet/ControlNet Adapter
Publication 1794-6.5.8 - January 2010
Chapter
6
Input, Output, Status and Configuration Files
for Analog Modules when used with
ControlNet
Chapter Objectives
About the ControlNet
Adapter
Commun ication Over the
FLEX I/O Backplane
In this chapter, you will read about:
• ControlNet Adapter
• I/O structure
• safe state data
• communication fault data
• idle state behavior
• input data behavior upon module removal
The FLEX I/O ControlNet adapters (cat. no. 1794–ACN15 and –
ACNR15) is the interface between up to 8 FLEX I/O modules and a
ControlNet processor or scanner. The adapter can support ControlNet
real–time data connections to individual modules or module groups.
Each connection is independent of the others and can be from
different processors or scanners.
One 1794-ACN15 and -ACNR15 ControlNet adapter can interface with
up to eight terminal base units with installed Flex I/O modules,
forming a Flex I/O system of up to eight slots. The adapter
communicates to other network system components (typically one or
more controllers or scanners, and/or programming terminals) over the
DeviceNet network. The adapter communicates with its I/O modules
over the backplane.
I/O Module
Inputs
ControlNet
Network
99Publication 1794-6.5.8 - January 2010
Adapter
Read
Write
Status
Outputs
Configuration
Slot
0
Read
Words
Write
Words
15
0
I/O Module
Inputs
Status
Outputs
Configuration
Slot 1
I/O Module
Inputs
Status
Outputs
Configuration
Slot 7
100 Input, Output, Status and Configuration Files for Analog Modules when used with ControlNet
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. The length of each I/O module’s
read words and write words vary in size depending on module
complexity. Each I/O module will support at least 1 input word or 1
output word. Status and configuration are optional, depending on the
module.
For example, a 16 point discrete input module will have up to 2 read
words and 1 write word.
16-point
Polled I/O Structure
Discrete Input Module
Output data is received by the adapter in the order of the installed I/O
modules. The Output data for Slot 0 is received first, followed by the
Output data for Slot 1, and so on up to slot 7.
The first word of input data sent by the adapter is the Adapter Status
Word. This is followed by the input data from each slot, in the order
of the installed I/O modules. The Input data from Slot 0 is first after
the status word, followed by Input data from Slot 2, and so on up to
slot 7.
Network
READ
I/O Image
Input Size
1 or 2 W
Output Size
0 or 1 W
DeviceNet Adapter
Read Data
Adapter
Status
Slot 0 Input Data
Slot 1 Input Data
...
...
ords
ord
Not used
Module Image
Inputs
Not used
Delay
Time
Delay
Time
Publication 1794-6.5.8 - January 2010
Network WRITE
Slot 7 Input Data
Write Data
Slot 0 Output Data
Slot 1 Output Data
...
Slot 7 Output Data
...
Read
Write
I/O Module
Slot 0
I/O Module
Slot 1
...
I/O Module
Slot 7
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.