20D-UM002 - DriveLogix System 5720 User Manual - InGLES
20D-UM002 - DriveLogix System 5720 User Manual - InGLES
5720
User Manual
Important User Information
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.
!
IMPORTANT Identifies information that is critical for successful
application and understanding of the product.
Rockwell Automation Before you contact Rockwell Automation for technical assistance, we suggest
you please review the troubleshooting information contained in this
Support publication first.
Email ⇒ [email protected]
If you find a problem with this manual, please notify us of it on the enclosed
How Are We Doing form.
Table of Contents
Rockwell Automation Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Summary of Changes
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Preface
Purpose of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Who Should Use This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
When to Use This Manual. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
How to Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Controller Firmware Revision. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Index
Summary of Changes
Introduction This version of the DriveLogix System User Manual corresponds to version 11
and later of the controller firmware. Changes made to this manual include:
Notes:
Purpose of this Manual This manual guides the development of projects for DriveLogix controllers. It
provides procedures on how to establish communications:
This manual works together with the Logix5000 Controllers Common Procedures
Programming Manual, publication 1756-PM001, which covers the following
tasks:
This manual works together with the Logix Controller Motion Instruction Set,
publication 1756-RM007D, which covers the following aspects of Logix
Motion commands:
• Instruction Names
• Operands
• Structured Text
• Motion Instruction Structure
• Fault Conditions
• Execution
• Error Codes
• Status Bits
Who Should Use This manual is intended for those individuals who program applications that
use DriveLogix controllers, such as:
This Manual • software engineers
• control engineers
• application engineers
• instrumentation technicians
How to Use this Manual This manual is divided into the basic tasks that you perform while
programming a DriveLogix controller. Each chapter covers a main task, such
as communicating over a specific network. For each main task, the chapter:
• lists what you need
• describes the steps to follow to accomplish that task
• provides details for each step, as necessary
• includes example system configurations
Controller Firmware This revision of the DriveLogix User Manual corresponds to the following:
Revision • version 12 and later of the controller firmware
• version 12 of RSLogix 5000 programming software
• version 2.02 of DriveExecutive programming software
Getting Started
Introduction This chapter introduces the DriveLogix controller and provides a quick
overview on creating and downloading a project. The steps in this chapter
introduce the basic aspects of the DriveLogix controller.
Connecting Battery Allen-Bradley ships the DriveLogix controller with the battery installed, but
disconnected. You must connect the battary while installing the drive. Refer
to Installing and Maintaining the Battery on page B-1 and Access Procedures
on page C-1.
Creating and Downloading The following diagram illustrates the steps you follow to create and download
a project. The remainder of this chapter provides examples of each step.
a Project
System setup for this quick start:
Local
1 Create a project
go to page 1-4
slot 0 1794-IB16
2
Configure
PowerFlex 700S Drive
You need:
3
Configure
I/O modules • RSLogix 5000 programming software
• RSLinx communication software
• DF1 point-to-point, serial connection from the workstation
to the controller (using 1756-CP3 or 1747-CP3 cable)
If you don’t have this hardware, you can still follow these steps.
Substitute the I/O modules you have for the ones listed here and
make the appropriate changes.
4 Create tags
5 Enter logic
6
Download
a project
7 View status
Creating a project
1. Select File →New.
1 Create a project
2. Define the project. The software uses the project name you enter with an .ACD extension to store your project.
Click OK.
controller organizer
1 Create a project
Click OK.
2 Configure
Refer to Chater 3, "Placing and Configuring the
Drive" for more detailed information.
2 Configure
Click Next
4. Use the Create wizard to configure the drive module. Use default values for this example.
If you do not want to go through each screen in the Create wizard, click Finish
Click Next
Click Next
TIP If no drive ratings appear, download and install DriveExecutive™ Database files from:
http://www.ab.com/drives/data.html
A. Place the cursor over the local DIN rail (FlexBus Local).
Click OK.
continued
3 Configure
Click Next
4. Use the Create wizard to configure the input module. Use default values for this example.
If you do not want to go through each screen in the Create wizard, click Finish
Click Next.
Click Finish.
3 Configure
A. Place the cursor over the local DIN rail (FlexBus Local)
Click OK.
continued
3 Configure
Click Next.
4. Use the Create wizard to configure the output module. Use default values for this example.
If you do not want to go through each screen in the Create wizard, click
Click Next.
Click Finish.
3 Configure
A. Place the cursor over the local DIN rail (FlexBus Local)
Click OK.
continued
3 Configure
Click Next.
4. Use the Create wizard to configure the output module. Use default values for this example.
If you do not want to go through each screen in the Create wizard, click
Click Next.
Click Finish.
3 Configure
Click OK.
Important: If you want to change the communication format of a module, you must
3 Configure
The software displays the module-defined tags for the I/O modules you created.
4 Create tags
Enter the name of the new tag. Tab to this column and select the data type.
Select TIMER.
Click OK.
The software displays the tag.
You might have to resize the column to see the tag extensions.
continued
4 Create tags
Enter the name of the tag. Tab here or click in the box.
3. Repeat steps 1 and 2 above to create an alias tag output_1 for Local:1:O.Data.1
Entering logic
1. Use default task, program, and routine.
5 Enter logic
When you created the project, the software
automatically created a MainTask, MainProgram, and
MainRoutine. Use these defaults for this example.
Double-click MainRoutine.
Downloading a project
1. Make a serial connection from the workstation to the controller.
6 Download
a project
B. From the Available Driver Types list, select “RS-232 DF1 Devices”
and click Add New.
7 View
status
7 View
status
What To Do Next Once your controller is installed and operating, you can use RSLogix™ 5000
programming software to develop and test your control application.
Use the remaining chapters in this manual as reference material for how the
DriveLogix controller operates in the Logix environment.
What Is DriveLogix?
Using This Chapter The DriveLogix controller is part of the Logix environment. The DriveLogix
controller provides a distributed control system built on these components:
Developing programs The controller operating system is a preemptive multitasking system that is
IEC 1131-3 compliant. This environment provides:
task 8
task 1
configuration
status
watchdog
program 32
program 1
program (local)
main routine tags
fault routine
other routines
Defining tasks
A task provides scheduling and priority information for a set of one or more
programs. You can configure tasks as either continuous or periodic. The
DriveLogix controller supports as many as 8 tasks, only one of which can
be continuous.
A task can have as many as 32 separate programs, each with its own executable
routines and program-scoped tags. Once a task is triggered (activated), all the
programs assigned to the task execute in the order in which they are grouped.
Programs can only appear once in the Controller Organizer and cannot be
shared by multiple tasks.
Each task in the controller has a priority level. The operating system uses the
priority level to determine which task to execute when multiple tasks are
triggered. There are 15 configurable priority levels for periodic tasks that range
from 1-15, with 1 being the highest priority and 15 being the lowest priority. A
higher priority task will interrupt any lower priority task. The continuous task
has the lowest priority and is always interrupted by a periodic task.
How you configure your tasks affects how the controller receives I/O data.
Tasks at priorities 1-6 can starve the dedicated I/O task; tasks at priority 8-15
can be starved by the dedicated I/O task.
The following example shows the task execution order for an application with
periodic tasks and a continuous task.
Task 1
Task 2
Task 3
Task 4
0 5 10 15 20 25 30 35 40 45 50 55 60 65
Notes:
B. The dedicated I/O task can be interrupted by tasks with priority levels
1-6. The dedicated I/O task interrupts tasks with priority levels 8-15.
This task runs at the fastest RPI rate scheduled for the DriveLogix
system (5ms in this example).
C. The continuous task runs at the lowest priority and is interrupted by all
other tasks.
Defining programs
The scheduled programs within a task execute to completion from first to last.
Programs that aren’t attached to any task show up as unscheduled programs.
You must specify (schedule) a program within a task before the controller can
scan the program.
Defining routines
Each program has a main routine. This is the first routine to execute when the
controller triggers the associated task and calls the associated program. Use
logic, such as the JSR instruction, to call other routines.
You can also specify an optional program fault routine. The controller
executes this routine if it encounters an instruction-execution fault within any
of the routines in the associated program.
Using the Event Task The event task is available with DriveLogix controllers using firmware version
12.x or greater. Previously, the only tasks available were the continuous task
and periodic task. However, the event task offers DriveLogix controller users a
task that executes a section of logic immediately when an event occurs.
An event task performs a function only when a specific event (trigger) occurs.
Whenever the trigger for the event task occurs, the event task:
For DriveLogix controller, the event task trigger can only be the EVENT
instruction.
The DriveLogix controller has 15 priority levels for its tasks. To assign a
priority to a task, use the guidelines described in Table 2.1.
Table 2.1
To trigger an event task based on conditions in your logic, use the EVENT
Instruction trigger.
No tag is required.
The EVENT Instruction Only trigger requires that you use a Trigger Event Task
(EVENT) instruction to trigger the task. You can use an EVENT instruction
from multiple points in your project. Each time the instruction executes, it
triggers the specified event task.
event task
1 2
Description:
The controller does not clear the bits of the Status attribute once they are set.
• To use a bit for new status information, you must manually clear the bit.
• Use a Set System Value (SSV) instruction to set the attribute to a
different value.
For more information on using the event task, see Logix5000 Controllers
Common Procedures programming manual, publication 1756-PM001.
How the DriveLogix System The DriveLogix system uses a connection to establish a communication link
between two devices. The DriveLogix system has enough internal resources to
Uses Connections support a connection to every local I/O module and 32 connections through
the daughtercard (e.g. the 1788-ENBT card). However, the daughtercard’s
connection limit is the limiting factor when sizing a system.
• communication devices
• produced/consumed tags
On a ControlNet network, you must use RSNetWorx for ControlNet to enable all scheduled
connections and establish a network update time (NUT).
unscheduled connection An unscheduled connection is a message transfer between controllers that is triggered by
the requested packet interval (RPI) or the program (such as a MSG instruction).
• deterministic Unscheduled messaging lets you send and receive data when needed.
• used by both ControlNet and
EtherNet/IP All EtherNet/IP connections are unscheduled.
unconnected message An unconnected message is a message that does not require connection resources . An
unconnected message is sent as a single request/response.
• least deterministic
Determining Connections The DriveLogix controller supports the ability to produce (broadcast) and
consume (receive) system-shared tags. Produced and consumed tags each
for Produced and require connections. Over ControlNet, produced and consumed tags are
Consumed Tags scheduled connections.
As you increase the number of controllers that can consume a produced tag, you also
reduce the number of connections the controller has available for other operations, like
communications and I/O.
consumed Each consumed tag requires one connection for the controller that is consuming the tag.
The total number of tags that can be produced or consumed is limited by the
number of available connections and memory. If the controller uses all of its
connections for I/O and communication devices, no connections are left for
produced and consumed tags.
Determining Connections Messages transfer data to other devices, such as other controllers or operator
interfaces. Connected messages can leave the connection open (cache) or close
for Messages the connection when the message is done transmitting. The following table
shows which messages use a connection:
If a MSG instruction uses a connection, you have the option to leave the
connection open (cache) or close the connection when the message is done
transmitting.
If you: Then:
Cache the connection The connection stays open after the MSG instruction is done.
This optimizes execution time. Opening a connection each time
the message executes increases execution time.
Do not cache the The connection closes after the MSG instruction is done. This
connection frees up that connection for other uses.
The controller has the following limits on the number of connections that you
can cache:
Determining Connections The DriveLogix system uses connections to transmit I/O data. These
connections can either be direct connections or rack-optimized connection.
for I/O Modules Over ControlNet, I/O connections are scheduled connections:
Connection: Description:
direct A direct connection is a real-time, data transfer link between the controller and an I/O
module. The controller maintains and monitors the connection between the controller and
the I/O module. Any break in the connection, such as a module fault or the removal of a
module while under power, causes the controller to set fault status bits in the data area
associated with the module.
rack-optimized For digital I/O modules, you can select rack optimized communication. A rack optimized
connection consolidates connection usage between the controller and all the digital I/O
modules on a rack (or DIN rail). Rather than having individual, direct connections for each
I/O module, there is one connection for the entire rack (or DIN rail).
The rack-optimized connection lets you organize all the digital I/O modules
on the DIN rail into one connection to the controller. Or you can choose to
configure each I/O module to have a direct connection to the controller.
Analog I/O modules must have a direct connection to the controller.
In this example, assume that each I/O module is configured for a direct
EtherNet/IP
!
EtherNet/IP
In this example, assume that each I/O module is configured for a
rack-optimized connection to the controller.
A DIN rail can have both a rack-optimized connection and direct connections.
EtherNet/IP
!
Assume that the I/O modules in slot 0 and slot 1 on the local rail are
configured for a rack-optimized connection and that the I/O module in slot 2
is configured for a direct connection.
EtherNet/IP
!
A remote device over ControlNet and EtherNet/IP can be configured as
either a rack-optimized connection and direct connection. In this example, the
DriveLogix controller uses one rack-optimized connection to communicate
with the communication adapter to receive data from the digital I/O modules
(two in this example) and uses one direct connection to communicate with the
analog module.
In this example the controller uses two connections (one for status and one for
I/O) to communicate with the DeviceNet devices through the 1788-DNBO
module. The 1788-DNBO module uses a rack-optimized connection to the
DeviceNet devices.
DriveLogix controller
DeviceNet
network
PanelView 300
DeviceNet devices
The 1788-DNBO card does not establish connections to its devices; and
therefore, the controller does not establish connections with DeviceNet
devices. The 1788-DNBO module acts as a scanner that gathers all the data
from its devices and packs that data together into one image that is passed to
the controller. However, the controller can use a MSG instruction to get
information directly to or from a DeviceNet device.
Determining Total To calculate the total connection requirements for a DriveLogix controller,
consider the connections to local I/O modules, the host PowerFlex 700S drive
Connection Requirements and the connections to remote modules.
After calculating the number of remote connections, make sure they do not
exceed the limitations of the communication card:
Even if the total number of connections is within the card limitations, the total
number of messages per second must also be within the card limitations. You
can estimate the number of messages per second for a connection as (2 * 1000
ms) / RPI.
ControlNet network
8 I/O modules
DeviceNet network
4 DeviceNet devices
• I/O modules on the local rail are digital, so configure each module for a
rack-optimized connection
• I/O modules on the extended-local rail are analog, so configure each
module for a direct connection
• I/O modules on the ControlNet network are 4 digital and 4 analog, so
configure each digital module for a rack-optimized connection and each
analog module for a direct connection
• there are no produced or consumed tags
• the controller sends 2 messages to other devices on the ControlNet
network
• the controller uses 2 connections to the 1788-DNBO module to collect
data from the DeviceNet devices
Local connections
Connection Type: Device Connections Total
Quantity: per Device: Connections:
rack-optimized connection to DIN rail 2 1 2
connection to host PowerFlex 700S drive 1 1 1
1788-DNBO communication card (rack-optimized connection) 1 2 2
total 5
Remote connections
Connection Type: Device Connections Total
Quantity: per Device: Connections:
remote ControlNet communication device 1 1 1
Downloading Projects In general, you use the programming software to download a project from
your programming computer to the controller. The DriveLogix controller,
with expanded memory, supports nonvolatile memory for project storage.
2. View properties for the controller and select the Nonvolatile Memory tab.
3. Click the Load/Store button and specify when you want the controller to load the project from nonvolatile memory.
4. Click the Load button to load the project from nonvolatile memory into the controller.
After you load or store to or from nonvolatile memory, RSLogix 5000 software
goes offline from the controller.
Selecting a System The Controller Properties lets you specify a percentage for system overhead.
This percentage specifies the percentage of controller time (excluding the time
Overhead Percentage for periodic tasks) that is devoted to communication and background
functions
1. View properties for the controller and select the Advanced tab.
The following table shows the ratio between the continuous task and the
system overhead functions:
At this time slice: The continuous tasks runs for: And then overhead occurs for up
to:
10% 9 ms 1 ms
20% 4 ms 1 ms
33% 2 ms 1 ms
50% 1 ms 1 ms
At the default time slice of 10%, system overhead interrupts the continuous
task every 9ms (of continuous task time).
Legend:
Task executes.
1 ms 1 ms
system overhead
9 ms 9 ms
continuous task
5 10 15 20 25
elapsed time (ms)
The interruption of a periodic task increases the elapsed time (clock time)
between the execution of system overhead.
1 ms 1 ms 1 ms 1 ms
periodic task
1 ms 1 ms
system overhead
9 ms of continuous task time 9 ms of continuous task time
continuous task
5 10 15 20 25
elapsed time (ms)
If you increase the time slice to 20%, the system overhead interrupts the
continuous task every 4ms (of continuous task time).
1 ms 1 ms 1 ms 1 ms 1 ms
system overhead
4 ms 4 ms 4 ms 4 ms 4 ms
continuous task
5 10 15 20 25
elapsed time (ms)
If you increase the time slice to 50%, the system overhead interrupts the
continuous task every 1ms (of continuous task time).
1 ms
system overhead
1 ms
continuous task
5 10 15 20 25
elapsed time (ms)
If the controller only contains a periodic task (s), the system overhead timeslice
value has no effect. System overhead runs whenever a periodic task is not
running.
periodic task
system overhead
5 10 15 20 25
elapsed time (ms)
Understanding the The DriveLogix controller supports a direct connection to the drive consisting
of 16 inputs and 16 outputs. The tag names and data types associated with the
Interface to the Drive inputs and outputs are determined by the communication format selection.
Currently, the following three communications formats are available:
The pre-defined tag names and data types correspond to the associated
parameters within the drive necessary to support the selected communications
format. Links must be established in the drive to support the pre-defined tags
and are configured using DriveExecutive software. Linking is a mechanism
within the drive that configures data flow within the drive. The links within the
drive to support the pre-defined tags are protected and must be present. If the
associated links are not present, or are deleted, the communication connection
between the controller and drive will be broken.
The user-defined tags are made up of a fixed number of REAL (floating point)
and DINT (double integer) data types. No links are required within the drive
to support these tags. Therefore, links may be created and deleted as required
with no affect on the communication connection between the controller and
the drive. The user-defined tags may be used to address application specific
data needs not covered by the pre-defined tags.
For each of the 16 inputs or 16 outputs, there are two dedicated parameters
within the drive for a total of 64 parameters. One parameter is a DINT type
and the other is a REAL type. Selecting a communication format defines the
data types for each input and selects the correct parameter for each input and
output in the communication link. The remaining parameter is not utilized.
Determining When the The DriveLogix controller follows a producer/consumer model for the drive
connection, similar to the interface to an I/O module. The drive acts as both
Controller Updates the an input module, producing data for the controller; and an output module,
Drive consuming data from the controller. Although the producer/consumer model
multi casts data, all data in the drive connection is exclusive to the DriveLogix
controller.
The controller updates the input and output data in the drive connection
asynchronously to the logic scan, consistent with the way it handles other I/O
data. All input data from the drive is read in a single block and all output data is
written to the drive in a single block.
You must configure the Requested Packet Interval (RPI) rate for the drive.
This setting affects how fast the controller reads and writes the data in the
drive interface.
The Drive consumes data from the DriveLogix controller every 2 milliseconds,
and produces data to the controller every 2 milliseconds. The drive updates the
inputs and outputs to the controller asynchronous to both the program scan
and I/O scan of the controller.
Placing and Configuring the When you create a project for the DriveLogix controller in RSLogix 5000, the
Controller Organizer automatically displays the local DIN rail for Flex I/O.
Drive You must add the PowerFlex 700S drive to the configuration, in a manner
similar to adding an I/O module. The Controller Organizer automatically
places the drive in slot two.
1. In the Controller Organizer, select the I/O Configuration folder. Right-click the selected
folder and select New Module..
IMPORTANT You must select the correct voltage rating for the drive,
when adding the drive. You can find this on the drive data
nameplate.
3. Configure the drive. Use the module properties wizard to specify characteristics for the module. Click Next
4. Click finish when you are done. The completed module appears in the Controller Organizer.
Electronic Keying
Electronic keying has no effect on drive module. However, the default setting
(Compatible Module) is recommended.
Selecting “Compatible Module” allows you to enter the drive firmware minor
revision.
Revision
You must enter the correct drive VPL firmware revision, in order to launch
DriveExecutive Lite and create the appropriate links for the selected
communication format. Determine the firmware revision by viewing
parameter 314 [VPL Firmware Rev] in the drive.
Communication Formats
The communication format determines the data structure, tag names, and
required links for communication to the drive. Each communication format
has been structured to meet the requirements of a specific type of application
(Speed Control, Position Control, or general purpose), and supports a
different data structure. The links within the PowerFlex 700S required to
support the selected format are also different. Any of the available
communication formats create one direct connection to the drive.
You select the communication format when you configure the drive module.
The default communication format for the drive is Velocity Control. The tags
are created as controller-scoped tags. The following tag structure shows the
Velocity Control format. The tag structure for this example’s drive connection
has the tag name of “drive_module”.
The following tables show the tag names and their relation ship to parameters
in the drive. These examples use a module name of “drive_module”.
Table 3.5 Mapping for the Custom User-Defined Control Communication Format
DriveLogix Controller Outputs PowerFlex 700S Inputs
Data Parameter Linked Parameter
Tag Name Type Number Name Name Number
drive_module:O.LogicCommand DINT 600 Integer In00 Logic Command 151
drive_module:O.UserDefinedRealData[0] REAL 603 Real In01
drive_module:O.UserDefinedRealData[1] REAL 605 Real In02
drive_module:O.UserDefinedRealData[2] REAL 607 Real In03
drive_module:O.UserDefinedRealData[3] REAL 609 Real In04
drive_module:O.UserDefinedRealData[4] REAL 611 Real In05
drive_module:O.UserDefinedRealData[5] REAL 613 Real In06
drive_module:O.UserDefinedRealData[6] REAL 615 Real In07
drive_module:O.UserDefinedRealData[7] REAL 617 Real In08
drive_module:O.UserDefinedIntegerData[0] DINT 618 Integer In09
drive_module:O.UserDefinedIntegerData[1] DINT 620 Integer In10
drive_module:O.UserDefinedIntegerData[2] DINT 622 Integer In11
drive_module:O.UserDefinedIntegerData[3] DINT 624 Integer In12
drive_module:O.UserDefinedIntegerData[4] DINT 626 Integer In13
drive_module:O.UserDefinedIntegerData[5] DINT 628 Integer In14
drive_module:O.UserDefinedIntegerData[6] DINT 630 Integer In15
Not all 32-bits within parameter 151 [Logic Command], are directly visible in
the PowerFlex 700S. To view all 32-bits, refer to parameter 152 [Applied
LogicCmd].
Inhibiting the Drive RSLogix 5000 programming software allows you to inhibit the controller’s
connection to the drive, in the same way you inhibit its connection to an I/O
Connection module. Inhibiting the drive module shuts down the connection from the
controller to the drive. When you create the module you can choose to inhibit
it. After you have created the module you can inhibit or un-inhibit it by
manipulating its properties window.
When you inhibit the drive module, the Controller Organizer displays
a yellow attention symbol ! over the module.
The inhibit status is stored in the project. When you download the project, the module is still inhibited.
online stop communication to the drive.
If you inhibit the drive while you are connected to the module, the connection to the module is closed. By default, the
PowerFlex 700S drive will fault. The data inputs to the drive will either hold last state, or reset to zero data based on the
setting of parameter 385 [Lgx Comm Loss Data].
If you inhibit the drive but a connection to the module was not established (perhaps due to an error condition or fault), the
module is inhibited. The module status information changes to indicate that the module is inhibited and not faulted.
If you uninhibit the drive (clear the check box), and no fault condition occurs, a connection is made to the drive.
To inhibit a module from logic, you must first read the Mode attribute for the
module using a GSV instruction. Set bit 2 to the inhibit status (1 to inhibit or 0
to uninhibit). Use a SSV instruction to write the Mode attribute back to the
module. For example:
Using DriveExecutive Lite In order to launch DriveExecutive Lite from within RSLogix 5000, the drives
power rating must be selected. The drive firmware revision must be applied
prior to selecting the power rating.
1. If not already done, enter the drive firmware revision. Click the Finish button to apply the
revision data
2. In the Controller Organizer, select the PowerFlex 700S drive. Right-click the drive module and select Properties
4. Select the correct Drive Rating. This data can be found on the PowerFlex 700S data nameplate.
5. Once the power rating is selected, apply your changes by selecting the Apply button.
7. Enter the file name for your DriveExecutive Lite parameter file, then click the Apply button.
1. To view the setup screen select Peer Communication from the Drive drop-down menu. Then select the From Controller
2. To send additional data from the drive to the controller go to the To Controller tab. Click the To Controller tab.Select the
desired source for the user-defined tag (Output Voltage in this example).
The drive contains several parameters that allow you to configure the drive’s
response to communication loss to the controller. From the drive’s
perspective, a communication loss can come in the following two forms.
Parameter 385 [Lgx CommLossData] determines what the drive does with
data from the controller when communication is lost. It determines if the drive
resets the data to zero or holds the data in its last state.
Before using an existing DriveExecutive Lite file, verify the firmware revision,
communication format, and power rating in the drive file match the data
entered in drive module properties in your DriveLogix application.
2. View revision and ratings on the General tab of the Properties window.
3. Refer to Viewing the Communication Interface to the Controller on page 3-18, to view the communication format.
4. TIn RSLogix 5000, go to the Setup tab of the Properties window. Click the Browse button. Select the existing DriveExecutive file
(Existing Drive.dno in this example). Click the Open button.
Accessing Drive Data Drive data is displayed as structures of multiple tags. The names and data
structures are based on the selected communication format. The programming
software automatically creates the necessary structures and tags when you
configure the drive module. Each tag name follows this format:
ModuleName:Type.MemberName.SubMemberName.Bit
where:
I = input
O = output
MemberName Specific data from the drive; depends on the selected
communication format.
For tags associated with pre-defined data links, this name will
be the same as the corresponding parameter name in the drive.
SubMemberName Specific data related to a MemberName
Bit (optional) Specific bit of a DINT data value
Monitoring Drive Data The DriveLogix controller offers different levels at which you can monitor the
drive module. You can:
• configure the drive module so that the controller faults if the drive loses
its connection to the controller.
• use the programming software to display fault data
• program logic to monitor fault data so you can take appropriate action
You can configure the drive module to generate a major fault in the controller
if the drive loses its connection to the controller.
If you do not configure the major fault to occur, you should monitor the drive
module status. If the drive loses its connection to the controller:
Configure the drive to generate a controller major fault when the drive loses its
connection to the controller. Or, monitor the status of the drive module.
Each communication format provides a drive status word that will indicate
when a drive fault or alarm occurs. To view this data through the programming
software:
1. In the Controller Organizer, select Controller Tags. Right-click the selected icon and select Monitor Tags.
You can write logic to monitor these bits and take appropriate action if a fault
or alarm occurs. For example, you may want a drive alarm to turn on a warning
lamp and a drive fault to sound an alarm and set the motor brake.
Notes:
Placing Local I/O Modules When you create a project for a DriveLogix controller, the Controller
Organizer for that project automatically displays the local DIN rail.
You must configure an RPI rate for the DIN rail. This rate applies to all the
I/O modules you install on the DIN rail.
.
If you have: The fastest possible RPI is:
one rail of digital I/O modules 30 ms
one rail of analog I/O modules 30 ms
one rail of digital and analog I/O modules mixed 30 ms
The DriveLogix controller uses to two services to scan I/O: the FlexBus and
the controller itself.
Controller scan
FlexBus scan
The FlexBus continually scans all the slots (0-7) on the DIN rail. The FlexBus
scans the DIN rail, starting with slot 0, then scanning slot 1, and continuing
with all the slots, and then repeating the cycle. Even if a module is inhibited or
a slot is empty, the FlexBus scans that slot. The FlexBus scan identifies where
modules reside and collects module data for the controller scan.
The controller scans only those modules that are configured in the Control
Organizer. This scan updates the module tags with current data. The RPI for
the DIN rail affects how fast the controller gets data from the FlexBus.
Determining When the The DriveLogix system follows a producer/consumer model. Input modules
produce data for the system. Controllers, output modules, and intelligent
Controller Updates I/O modules produce and consume data. The producer/consumer model
multicasts data. This means that multiple nodes can consume the same data at
the same time from a single device.
The controller continually scans the control logic. One scan is the time it takes
the controller to execute the logic once. Input data transfers to the controller
and output data transfers to output modules asynchronous to the logic scan.
digital
analog or digital?
remote or local?
analog
remote
No
RTS ≤RPI?
Yes
local
Configuring a DIN Rail When you create a DriveLogix project, the programming software
automatically creates the DIN rail for the project. You must configure the
DIN rail.
1. In the Controller Organizer, select the local (Local) rail of the controller.
Right-click and select Properties.
IMPORTANT Set the RPI of the DIN rail to a minimum of 30 ms. I/O
function will be intermittent if the value is set lower,
The communication format for the DIN rail is automatically set for
rack-optimized. You cannot change this setting because the controller uses one
rack-optimized connection for each DIN rail, whether you configure any I/O
modules for rack-optimized or not.
Configuring Local Use the programming software to configure the I/O modules for the
controller. You can configure I/O modules for the local rail. Before you
I/O Modules configure I/O modules, specify the RPI rate for the DIN rail. All the I/O
modules on the DIN rail operate at this RPI. The DIN rail always operates as
rack optimized.
1. In the Controller Organizer, select either the local or the extended-local rail of the controller.
Right-click the selected rail and select New Module.
3. Configure the module. Use the module wizard to specify characteristics for the module. Click Next to continue
through the wizard.
IMPORTANT The DriveLogix controller supports FLEX and FLEX Ex I/O modules, but
these I/O modules do not behave the same. If you have a communication
or program fault with a FLEX I/O module that is configured for “Reset
Outputs,” the outputs of the module go to zero (as expected). If the same
fault occurs with a FLEX Ex module that is configured for “Reset
Outputs,” the adapter goes to its safe state. If the module itself is defined as
“ON,” the outputs actually turn on (don’t reset as expected).
Electronic keying
Keying: Description:
compatible module The module must be compatible with the software
configuration. These characteristics must match:
• module type
• catalog number
disable keying No attributes of the software or hardware are
required to match.
! loss of data.
Be cautious when using the disable keying option. If used
incorrectly, this option can lead to personal injury, death,
property damage, or economic loss.
Communication formats
The communication format determines the data structure the I/O module
uses, as well as the type of connection made to the module and the controller
ownership of the module. Many I/O modules support different formats. Each
format supports a different data structure.
You select the communications format when you configure the I/O module.
Use the documentation for the I/O module to determine what data format to
use.
The listen-only communication format works for remote I/O only. Because of
the distributed nature of a DriveLogix system, the DriveLogix controller must
own its local I/O modules. No other Logix-based controller can listen to or
own the local DriveLogix I/O. The DriveLogix controller must produce its
local I/O data for other controller to consume. If you select listen-only for a
local I/O module, the connection to that module will fault.
The following tag structures are possible for a 1794-IA16 module. The
communication format determines the structure that is created for the
module. Assume that the module is in slot 0. The software creates the
appropriate tags using the slot number to differentiate the tags for this
example module from any other module.
communication format: input data (which corresponds to a direct connection for the I/O module)
communication format: rack optimization (which corresponds to a rack-optimized connection for the I/O module)
The rack-optimized tags are created as aliases into the array tag Local:I, which
is the array for input modules on the local rail. This array contains one element
for each slot on the rail (based on the chassis size you specify when you
configure the rail). You can either address the rack-optimized module by the
alias tag (which uses the slot number) or the array element in the rail tag. If you
enter the alias tag in your logic, the programming software displays the base
tag.
Local:I contains an element for each possible slot on the rail, whether you
actually install an input module there or not. Local:O also contains an element
for each possible slot. If you configure a module on the local rail as a direct
connection, do not use the associated array element in Local:I or Local:O. Use
the tag the software creates for the module (which uses the slot number).
Inhibiting I/O Module In some situations, such as when initially commissioning a system, it is useful
to disable portions of a control system and enable them as you wire up the
Operation control system. The controller lets you inhibit individual modules or groups of
modules, which prevents the controller from trying to communicate with the
modules. Inhibiting a module shuts down the connection from the controller
to that module.
When you configure an I/O module, it defaults to being not inhibited. You
can change an individual module’s properties to inhibit a module.
Even if you inhibit an I/O module, the FlexBus still scans the module each
scan sequence.
You can only inhibit an I/O module if you configured the module to operate
with a direct connection. On the Connection tab of the module properties in
the programming software, you can select to inhibit that specific module.
To inhibit a rack-optimized connection, you must inhibit the DIN rail, which
in turns inhibits all the modules on that rail, whether configured for
rack-optimized or direct connections.
When you select to inhibit a module, the controller organizer displays a yellow
attention symbol ! over the module.
The inhibit status is stored in the project. When you download the project, the module is
still inhibited.
online stop communication to a module
If you inhibit a module while you are connected to the module, the connection to the
module is closed. The modules’ outputs go to the last configured program mode.
If you inhibit a module but a connection to the module was not established (perhaps due to
an error condition or fault), the module is inhibited. The module status information changes
to indicate that the module is inhibited and not faulted.
If you uninhibit a module (clear the check box), and no fault condition occurs, a connection
is made to the module and the module is dynamically reconfigured (if the controller is the
owner controller) with the configuration you created for that module.
If you uninhibit the module and a fault condition occurs, a connection is not made to the
module. The module status information changes to indicate the fault condition.
To inhibit a module from logic, you must first read the Mode attribute for the
module using a GSV instruction. Set bit 2 to the inhibit status (1 to inhibit or
0 to uninhibit). Use a SSV instruction to write the Mode attribute back to the
module. For example:
Accessing I/O Data The programming software displays I/O data as structures of multiple tags
that depend on the specific features of the I/O module. The names of the data
structures are based on the location of the I/O module. The programming
software automatically creates the necessary structures and tags when you
configure the module. Each tag name follows this format:
Location:SlotNumber:Type.MemberName.SubMemberName.Bit
where:
I = input
O = output
C = configuration
S = status
MemberName Specific data from the I/O module; depends on the type of
data the module can store
For example, Data and Fault are possible fields of data for an
I/O module. Data is the common name for values the are sent
to or received from I/O points.
SubMemberName Specific data related to a MemberName.
Bit (optional) Specific point on the I/O module; depends on the size of the
I/O module (0-31 for a 32-point module)
7 6 5 4 3 2 1 0
Local:0:I.Fault
output module in slot 1 of LOCAL Local:1:C.SSData
Local:1:I.Fault
Local:1:O.Data
data for the LOCAL DIN rail Local:I.Data
Local:I.Fault
Local:O.Data
Local:O.Fault
An alias lets you create a tag that represents another tag. This is useful for
defining descriptive tag names for I/O values. For example:
Example: Description:
I/O structure Local:0:O.Data.0 The aliases describe the specific I/O points.
Local:0:I.Fault.0
alias light_on = Local:0:O.Data.0
light_off = Local:0:I.Fault.0
Monitoring I/O Modules The DriveLogix controller offers different levels at which you can monitor
I/O modules. You can:
You can configure modules to generate a major fault in the controller if they
lose their connection with the controller.
If you do not configure the major fault to occur, you should monitor the
module status. If a module loses its connection to the controller:
Configure critical I/O modules to generate a controller major fault when they
lose their connections to the controller. Or, monitor the status of I/O
modules.
Most I/O modules have fault bits that indicate when a fault occurs at a specific
point of a module. To view this data through the programming software:
1. In the Controller Organizer, select Controller Tags. Right-click to select Monitor Tags.
You can write logic to monitor these bits and take appropriate action if a fault
occurs. For example, you may want to shut down the system if a specific point
experiences a fault. This example assumes a direct connection for the I/O
module.
EXAMPLE Given this I/O configuration, the following logic tests bits
of I/O modules to determine status.
The controller views the DIN rail as another module in the system. Each DIN
rail has its own data. To view this data through the programming software:
1. In the Controller Organizer, select Controller Tags. Right-click to display the Data Monitor.
You can write logic to monitor the rack bits and take appropriate action if a
fault occurs. For example, the following logic determines whether an error
occurs on the Local rail. Then, the logic determines whether the error
occurred at the module in slot 0. You can continue this logic to check each
module on the rail.
Notes:
This chapter introduces DriveLogix motion. The steps in this chapter provide
the minimum settings required to begin testing of DriveLogix motion.
System Requirements
Configuring the Drive In DriveExecutive software, connect to the drive and access the Peer
Communications dialog as shown below:
Next link the appropriate parameters to the words being produced and
consumed by the controller.
or
Parameter 155 [Logic Status] is the source parameter and parameter 632
[Integer Out00] is the destination. The source will produce data and
destination will consume it.
Next set up the parameters in the drive. Double click on the parameter to
change and set the values to those listed in Table 5.2.
Click OK
3. Add the drive.
Click OK
Click Next
Click Next
Click Next
Click Next
Click Finish
4. Adding a Motion Group.
Enter a name
Click Configure
Click Finish
Select
AXIS_GENERIC
Enter a name
Click Configure
Click Next
IMPORTANT Only Channel 0 will function for a Servo axis. Channel 1
may be used for a Feedback Only axis.
Click Next
Click Next
Click Next
Click Next
Homing Active - the desired homing sequence is selected by specifying whether a home limit switch and/or the encoder marker are used for this axis. Active
A Mode homing sequences always use the trapezoidal velocity profile.
Passive - homing redefines the absolute position of the axis on the occurrence of a home switch or encoder marker event. Passive homing is most
commonly used to calibrate uncontrolled axes, although it can also be used with controlled axes to create a custom homing sequence. Passive
homing, for a given home sequence, works similar to the corresponding active homing sequence, except that no motion is commanded; the controller
just waits for the switch and marker events to occur.
Homing Type the desired absolute position, in position units, for the axis after the specified homing sequence has been completed. In most cases, this
B Position position will be set to zero, although any value within the software travel limits can be used. After the homing sequence is complete, the axis is left
in this position.
If the Positioning Mode (set in the Conversion tab) of the axis is Linear, then the home position should be within the travel limits, if enabled. If the
Positioning Mode is Rotary, then the home position should be less than the unwind distance in position units.
Offset Type the desired offset (if any) in position units the axis is to move, upon completion of the homing sequence, to reach the home position. In most
C cases, this value will be zero.
Homing Select the event that will cause the Home Position to be set:
D Sequence
Sequence Type Description
Immediate Sets the Home Position to the present actual position, without motion.
Switch Sets the Home Position when axis motion encounters a home limit switch.
Marker Sets the Home Position when axis encounters an encoder marker.
Switch-Marker Sets the Home Position when axis first encounters a home limit switch, then encounters
an encoder marker.
Limit Switch If a limit switch is used, indicate the normal state of that switch (i.e., before being engaged by the axis during the homing sequence):
Normally Open
Normally Closed
Direction For active homing sequences, except for the Immediate Sequence type, select the desired homing direction:
Forward Uni-directional The axis jogs in the positive axial direction until a homing event (switch or marker) is encountered, then continues in the
same direction until axis motion stops (after decelerating or moving the Offset distance).
Forward Bi-directional The axis jogs in the positive axial direction until a homing event (switch or marker) is encountered, then reverses
direction until motion stops (after decelerating or moving the Offset distance).
Reverse Uni-directional The axis jogs in the negative axial direction until a homing event (switch or marker) is encountered, then continues in the
same direction until axis motion stops (after decelerating or moving the Offset distance).
Reverse Bi-directional The axis jogs in the negative axial direction until a homing event (switch or marker) is encountered, then reverses
direction until motion stops (after decelerating or moving the Offset distance).
Click Finish
Supported Motion The following Logix Motion Instructions are supported by the DriveLogix
controller:
Commands
Motion State
Motion Move
Motion Event
Motion Group
Configuring Your System for For the DriveLogix controller to operate on an Ethernet network, you need:
a EtherNet/IP Link • a workstation with an appropriate EtherNet/IP
communication daughtercard
• a 1788-ENBT communication daughtercard installed in the DriveLogix
communication slot
• RSLinx software to configure the EtherNet/IP communication driver
• RSLogix 5000 programming software (Version 11 or later) to configure
the 1788-ENBT communication daughtercard as part of the DriveLogix
system
Before you can connect the DriveLogix system to the Ethernet network, you
must configure the 1788-ENBT communication daughtercard and make sure
it’s properly installed in the DriveLogix controller. Refer to Access Procedures
on page C-1 to understand how to gain access to the NetLinx daughtercard
slot on the DriveLogix controller.
EtherNet/IP
!
1. Start RSLinx.
3. Click on the arrow to the right of the Available Driver Types box. The
Available Driver Types list will appear.
5. Select the default driver name (e.g., AB_ETH-1) or type in your own name
and click on OK.
The Configure driver window will appear with the Station Mapping page
open.
8. Repeat step 6 for each additional Ethernet module you need to access.
The new driver will appear in the list of configured drivers. (Your list will
display the drivers you have configured on your workstation.)
Complete your system configuration and develop your program logic. Then
download the project to the DriveLogix controller.
Configuring Remote I/O The DriveLogix controller supports remote I/O over a EtherNet/IP link.
Configuring I/O in a remote chassis is similar to configuring local I/O. The
difference is that you must also configure the communication daughtercard
(1788-ENBT) in the local chassis and the communication module in the
remote chassis.
4. Specify (while offline) the IP address of the adapter that you installed. Use of the IP
address on this screen informs the controller of the adapter’s IP address for processes
such ladder logic and I/O data exchange.
IMPORTANT: When the project is online, you can also specify the IP address on the Port
Configuration screen, if you did not already use the Bootp tool to specify an IP address.
When you specify an IP address on the Port Configuration screen, you assign the IP
address to the device. If you specify an IP address on the Port Configuration screen, make
2 Right-click to select New Module and add the appropriate FLEX I/O module.
After you select the appropriate FLEX I/O module, the Module Properties
window opens.
4. Configure the module.
5. Add additional modules as needed.
The local daughtercard becomes the “parent module” to the remote module.
The controller organizer shows this parent/child relationship between local
and remote communication devices.
Location:SlotNumber:Type.MemberName.SubMemberName.Bit
where:
I = input
O = output
C = configuration
S = status
MemberName Specific data from the I/O module; depends on the type of data the module can store
For example, Data and Fault are possible fields of data for an I/O module. Data is the common name for
values the are sent to or received from I/O points.
SubMemberName Specific data related to a MemberName.
Bit (optional) Specific point on the I/O module; depends on the size of the I/O module (0-31 for a 32-point module)
EXAMPLE
FLEX_adapter:I.SlotStatusBits
FLEX_adapter:I.Data
FLEX_adapter:O
FLEX_adapter:O.Data
remote “input1” in slot 0 FLEX_adapter:0:C
FLEX_adapter:0:C.Filter0_00_11
FLEX_adapter:0:C.Filter1_00_11
FLEX_adapter:0:C.Filter2_00_11
FLEX_adapter:0:C.Filter3_12_15
FLEX_adapter:0:C.Filter4_12_15
FLEX_adapter:0:C.Filter5_12_15
FLEX_adapter:0:C.ResetCounter
FLEX_adapter:0:C.DisableFilter
FLEX_adapter:0:I
FLEX_adapter:0:I.Fault
FLEX_adapter:0:I.Data
FLEX_adapter:0:I.Counter
FLEX_adapter:1:I
FLEX_adapter:1:I.Fault
FLEX_adapter:1:O
FLEX_adapter:1:O.Data
remote “input2” in slot 2 FLEX_adapter:2:C
FLEX_adapter:2:C.Filter0_00_11
FLEX_adapter:2:C.Filter3_12_15
FLEX_adapter:2:C.Filter4_12_15
FLEX_adapter:2:C.Filter5_12_15
FLEX_adapter:2:C.ResetCounter
FLEX_adapter:2:C.DisableFilter
FLEX_adapter:2:I
remote “output2” in slot 3 FLEX_adapter:3:C
FLEX_adapter:3:O
For examples of local I/O tags, see Chapter 4, Placing and Configuring Local
I/O.
Sending Messages The DriveLogix controller can send MSG instructions to other controllers
over an EtherNet/IP link. Each MSG instruction requires you to specify a
target and an address within the target. The number of messages that a device
can support depends on the type of message and the type of device:
If a MSG instruction uses a connection, you have the option to leave the
connection open (cache) or close the connection when the message is done
transmitting.
If you: Then:
Cache the connection The connection stays open after the MSG instruction is done.
This optimizes execution time. Opening a connection each time
the message executes increases execution time.
Do not cache the The connection closes after the MSG instruction is done. This
connection frees up that connection for other uses.
The controller has the following limits on the number of connections that you
can cache:
Type of MSG Supported Source File Types: Supported Destination File Types:
Instruction:
DriveLogix writes In the DriveLogix controller, specify the source data type Specify the destination file type based on the
to PLC-5 or SLC based on the destination device: destination device:
SLC: B, N or F
Type of MSG Supported Source File Types: Supported Destination File Types:
Instruction:
DriveLogix writes In the DriveLogix controller, select one of these data Use the PLC-2 compatibility file.
to PLC-2 types:
SLC: B, N or F
1 1 1 2 1
2 2 2 4 3
3 3 3
4 4 4
The typed commands maintain data structure and value. The word-range commands fill the destination tag contiguously. Data
structure and value change depending on the destination data type.
The DriveLogix controller can process messages initiated from PLC or SLC
controllers. These messages use data table addresses. In order for these
controllers to access tags within the DriveLogix controller, you map tags to
data table addresses.
Mapping addresses
To map addresses:
TIP You can map as many tags as you want to a PLC-3, PLC-5,
or SLC controller. You can map only one tag to a PLC-2
controller.
The following table shows example source and destination tags and elements
for different controller combinations.
SLC 5/03 OS303 and above You could optionally map a compatibility file. For example, if you enter 10 for the
compatibility file, you enter N10:0 for the source tag.
PLC-2 reads from DriveLogix source tag 200
destination element 010
The source tag is the three-digit PLC-2 address you specified for PLC-2 mapping.
SLC 5/05 controllers, SLC 5/04 controllers (OS402 and above), and
SLC 5/03 controllers (OS303 and above) support logical ASCII addressing
and support PLC/SLC mapping (see the examples above). For all other SLC
or MicroLogix1000 controllers, you must map a PLC-2 compatibility file (see
the PLC-2 examples above).
Producing and The DriveLogix controller supports the ability to produce (broadcast) and
consume (receive) system-shared tags over an EtherNet/IP link. Produced and
Consuming Data consumed data is accessible by multiple controllers over an Ethernet network.
The controller sends or receives data at a predetermined RPI rate.
The producer and consumer must be configured correctly for the specified
data to be shared. A produced tag in the producer must be specified exactly the
same as a consumed tag in the consumer.
However, one consumer failing to access shared data does not affect other
consumers accessing the same data. For example, if the producing DriveLogix
controller from the previous example also produced tags for other consuming
controllers but did so correctly, those tags are still transferred to the additional
consuming controllers.
Each produced tag uses one connection for the tag and the first configured
consumer of the tag. Each consumer thereafter uses an additional connection.
A produced or consumed tag can be as large as 488 bytes, but it must also fit
within the bandwidth of the EtherNet/IP network.
Producing a tag
Produced data must be of DINT or REAL data type or a structure. You can
use a user-defined structure to group BOOL, SINT, and INT data to be
produced. To create a produced tag:
3. Select the tag that you want to produce, or enter a new tag, and display
the Tag Properties dialog box.
5. Select the “Produce this tag” check box. Specify how many controllers
can consume the tag.
The consumed tag in a receiving controller must have the same data type as the
produced tag in the originating controller. The controller performs type
checking to ensure proper data is being received.
Consuming a tag
3. Select the tag that you want to consume, or enter a new tag, and display
the Tag Properties dialog box.
4. Specify:
Important: The name must match the name in the remote controller exactly, or the
connection faults.
RPI Type the amount of time in msec between updates of the data from the remote controller.
(requested packet interval) The local controller will receive data at least this fast.
Display Style If you are creating a consumed tag that refers to a tag whose data type is BOOL, SINT,
INT, DINT, or REAL, you can select a display style. This display style defines how the tag
value will be displayed in the data monitor and ladder editor. The display style does not
have to match the display style of the tag in the remote controller.
The produced tag in the originating DriveLogix controller must have the same
data type as the consumed tag in the consuming DriveLogix controller. The
DriveLogix controller performs type checking to make sure proper data is
being received.
Example 1: DriveLogix In the following example, one DriveLogix controller controls remote I/O
through a 1794-AENT module.
Controller and Remote I/O
EtherNet/IP
!
DriveLogix controller
(DriveLogix1)
EtherNet/IP
This example has DriveLogix1 controlling the I/O connected to the remote
1794-AENT module. The data the DriveLogix controller receives from the
remote I/O modules depends on how you configure the remote I/O modules.
You can configure each module as a direct connection or as rack optimized.
Connection: Amount:
DriveLogix1 controller to 3 local I/O modules
If you configured the remote I/O modules as rack-optimized, you would only
need a rack-optimized connection to the 1794-AENT, reducing the above
example by 3 connections.
Example 2: DriveLogix In the following example, one DriveLogix controller communicates with
another DriveLogix controller over EtherNet/IP. Each DriveLogix controller
Controller to DriveLogix has its own local I/O
Controller
EtherNet/IP
!
!
workstation
DriveLogix1 DriveLogix2
1,1,2,xxx.xxx.xxx.xxx,1,0 1,1,2,xxx.xxx.xxx.xxx,1,0
where:
The consumed tag must have the same data type as the produced tag in the
originating controller. The controller performs type checking to ensure proper
data is being received.
EtherNet/IP
EtherNet/IP
EtherNet/IP
!
!
workstation
TagA TagB
Each produced tags requires one connection for the producing controller and
an additional connection for each consuming controller. Each consumed tag
requires one connection.
Connection: Amount:
DriveLogix1 controller to 3 local I/O modules
If you configured the local I/O modules as rack-optimized, you would only
need the DIN-rail connection to the I/O modules, reducing the above
example by 3 connections.
Example 3: DriveLogix In the following example, one DriveLogix controller communicates with a
Logix5550 controller and an Ethernet PLC-5 controller over EtherNet/IP.
Controller to Other Devices
Distributed control with a
ControlLogix controller as the ControlLogix controller
coordinating controller (Control1)
EtherNet/IP
EtherNet/IP
EtherNet/IP
!
!
Ethernet PLC-5 controller
(PLC5E1)
The PLC-5 controller supports logical ASCII addressing so you do not have to
map a compatibility file for MSG instructions initiated by a PLC-5 controller.
Place the DriveLogix tag name in double quotes (“).
Connection: Amount:
DriveLogix1 controller to 3 local I/O modules
If you configured the local I/O modules as rack-optimized, you would only
need the DIN-rail connection to the I/O modules, reducing the above
example by 3 connections.
Configuring Your System for For the DriveLogix controller to operate on a ControlNet network, you need:
a ControlNet Link • a workstation with an appropriate ControlNet
communication daughtercard
• a 1788-CNx communication daughtercard installed in the DriveLogix
communication slot
• RSLinx software to configure the ControlNet communication driver
• RSLogix 5000 programming software to configure the 1788-CNx
communication daughtercard as part of the DriveLogix system
• RSNetWorx software to schedule the DriveLogix system on the network
Before you can connect the DriveLogix system to the ControlNet network,
you must configure the 1788-CNx communication daughtercard and make
sure it’s properly installed in the DriveLogix controller.Refer to Access
Procedures on page C-1 to understand how to gain access to the NetLinx
daughtercard slot on the DriveLogix controller.
The installation instructions for the communications daughtercard should identify which
communication driver to install.
I/O base address, which must match the switch setting on the card
Complete your system configuration and develop your program logic. Then
download the project to the DriveLogix controller.
Configuring Remote I/O The DriveLogix controller supports remote I/O over a ControlNet link.
Configuring I/O in a remote chassis is similar to configuring local I/O. The
difference is that you must also configure the communication daughtercard
(1788-CNx) in the local chassis and the communication module in the
remote chassis.
1. In the Controller Organizer, select the I/O Configuration Folder. Add and configure a 1788-CNx communication daughtercard. This is the
local communication daughtercard.
3. In the Controller Organizer, select the local 1788-CNx communication daughtercard you just added. Add and configure the remote
communication module (1794-ACN15 in this example)
5. Add and configure the remote I/O modules on the remote communication module you just added.
The local daughtercard becomes the “parent module” to the remote module.
The controller organizer shows this parent/child relationship between local
and remote communication devices.
Location:SlotNumber:Type.MemberName.SubMemberName.Bit
where:
I = input
O = output
C = configuration
S = status
MemberName Specific data from the I/O module; depends on the type of data the module can store
For example, Data and Fault are possible fields of data for an I/O module. Data is the common name for
values the are sent to or received from I/O points.
SubMemberName Specific data related to a MemberName.
Bit (optional) Specific point on the I/O module; depends on the size of the I/O module (0-31 for a 32-point module)
EXAMPLE
FLEX_adapter:I.SlotStatusBits
FLEX_adapter:I.Data
FLEX_adapter:O
FLEX_adapter:O.Data
remote “input1” in slot 0 FLEX_adapter:0:C
FLEX_adapter:0:C.Filter0_00_11
FLEX_adapter:0:C.Filter1_00_11
FLEX_adapter:0:C.Filter2_00_11
FLEX_adapter:0:C.Filter3_12_15
FLEX_adapter:0:C.Filter4_12_15
FLEX_adapter:0:C.Filter5_12_15
FLEX_adapter:0:C.ResetCounter
FLEX_adapter:0:C.DisableFilter
FLEX_adapter:0:I
FLEX_adapter:0:I.Fault
FLEX_adapter:0:I.Data
FLEX_adapter:0:I.Counter
FLEX_adapter:1:I
FLEX_adapter:1:I.Fault
FLEX_adapter:1:O
FLEX_adapter:1:O.Data
remote “input2” in slot 2 FLEX_adapter:2:C
FLEX_adapter:2:C.Filter0_00_11
FLEX_adapter:2:C.Filter3_12_15
FLEX_adapter:2:C.Filter4_12_15
FLEX_adapter:2:C.Filter5_12_15
FLEX_adapter:2:C.ResetCounter
FLEX_adapter:2:C.DisableFilter
FLEX_adapter:2:I
remote “output2” in slot 3 FLEX_adapter:3:C
FLEX_adapter:3:O
For examples of local I/O tags, see chapter 4 “Placing and Configuring Local
I/O”.
Scheduling the ControlNet Use RSNetWorx software to schedule the ControlNet network. The controller
project must already be downloaded from RSLogix 5000 programming
Network software to the controller and the controller must be in Program or Remote
Program mode.
The NUT you specify must be lower than or equal to the lowest RPI in your ControlNet network. The RPI numbers for the local and extended-local
3. After you specify the NUT, save and re-write the schedule for all connections.
Every device on the network must be in Program or Remote Program mode for the software to re-write all its connections. If a device is not in the
correct mode, the software prompts you to let it change the device’s mode.
Sending Messages The DriveLogix controller can send MSG instructions to other controllers
over a ControlNet link. Each MSG instruction requires you to specify a target
and an address within the target. The number of messages that a device can
support depends on the type of message and the type of device:
If a MSG instruction uses a connection, you have the option to leave the
connection open (cache) or close the connection when the message is done
transmitting.
If you: Then:
Cache the connection The connection stays open after the MSG instruction is done.
This optimizes execution time. Opening a connection each time
the message executes increases execution time.
Do not cache the The connection closes after the MSG instruction is done. This
connection frees up that connection for other uses.
The controller has the following limits on the number of connections that you
can cache:
Type of MSG Supported Source File Types: Supported Destination File Types:
Instruction:
DriveLogix writes In the DriveLogix controller, specify the source data type Specify the destination file type based on the
to PLC-5 or SLC based on the destination device: destination device:
SLC: B or N
Type of MSG Supported Source File Types: Supported Destination File Types:
Instruction:
DriveLogix writes In the DriveLogix controller, select one of these data Use the PLC-2 compatibility file.
to PLC-2 types:
SLC: B or N
1 1 1 2 1
2 2 2 4 3
3 3 3
4 4 4
The typed commands maintain data structure and value. The word-range commands fill the destination tag contiguously. Data
structure and value change depending on the destination data type.
The DriveLogix controller can process messages initiated from PLC or SLC
controllers. These messages use data table addresses. In order for these
controllers to access tags within the DriveLogix controller, you map tags to
data table addresses.
Mapping addresses
To map addresses:
The following table shows example source and destination tags and elements
for different controller combinations.
SLC 5/03 OS303 and above You could optionally map a compatibility file. For example, if you enter 10 for the
compatibility file, you enter N10:0 for the source tag.
PLC-2 reads from DriveLogix source tag 200
destination element 010
The source tag is the three-digit PLC-2 address you specified for PLC-2 mapping.
SLC 5/05 controllers, SLC 5/04 controllers (OS402 and above), and
SLC 5/03 controllers (OS303 and above) support logical ASCII addressing
and support PLC/SLC mapping (see the examples above). For all other SLC
or MicroLogix1000 controllers, you must map a PLC-2 compatibility file (see
the PLC-2 examples above).
Producing and The DriveLogix controller supports the ability to produce (broadcast) and
consume (receive) system-shared tags over a ControlNet link. Produced and
Consuming Data consumed data is accessible by multiple controllers over a ControlNet
network. Produced and consumed data are scheduled connections because the
controller sends or receives data at a predetermined RPI rate.
The producer and consumer must be configured correctly for the specified
data to be shared. A produced tag in the producer must be specified exactly the
same as a consumed tag in the consumer.
Each produced tag uses one connection for the tag and the first configured
consumer of the tag. Each consumer thereafter uses an additional connection.
A produced or consumed tag can be as large as 488 bytes, but it must also fit
within the bandwidth of the ControlNet network:
If a produced or consumed tag is too large for your ControlNet network, make
one or more of the following adjustments:
The Rack Optimization format uses an additional 8 bytes for each slot
in its chassis. Analog modules or modules that are sending or getting
diagnostic, fuse, or timestamp data require direct connections and
cannot take advantage of the rack optimized form. Selecting “None”
frees up the 8 bytes per slot for other uses, such as produced or
consumed tags.
Producing a tag
3. Select the tag that you want to produce, or enter a new tag, and display
the Tag Properties dialog box.
5. Select the “Produce this tag” check box. Specify how many controllers
can consume the tag.
The consumed tag in a receiving controller must have the same data type as the
produced tag in the originating controller. The controller performs type
checking to ensure proper data is being received.
Consuming a tag
3. Select the tag that you want to consume, or enter a new tag, and display
the Tag Properties dialog box.
4. Specify:
Important: The name must match the name in the remote controller exactly, or the
connection faults.
If the remote controller is a ControlNet PLC-5, this field is Remote Instance. Select the
instance number (1-128) of the data on the remote controller.
RPI Type the amount of time in msec between updates of the data from the remote controller.
(requested packet interval) The local controller will receive data at least this fast.
Display Style If you are creating a consumed tag that refers to a tag whose data type is BOOL, SINT,
INT, DINT, or REAL, you can select a display style. This display style defines how the tag
value will be displayed in the data monitor and ladder editor. The display style does not
have to match the display style of the tag in the remote controller.
The produced tag in the originating DriveLogix controller must have the same
data type as the consumed tag in the other DriveLogix controller. The
DriveLogix controller performs type checking to ensure proper data is being
received.
The NUT and RPI also play a part in determining how many connections a
1788-CNx can support in a given application, assuming the RPIs will be the
same for all connections. You must also make sure that you do not exceed the
maximum number of bytes per NUT.
The API (actual packets per interval) is related to the RPI for the connection
and the NUT of the network. Use this table to select the API to enter in the
above worksheet:
Example 1: DriveLogix In the following example, one DriveLogix controller controls remote I/O
through a 1794-ACN15 module.
Controller and Remote I/O
DriveLogix controller
(DriveLogix1)
ControlNet
This example has DriveLogix1 controlling the I/O connected to the remote
1794-ACN15 module. The data the DriveLogix controller receives from the
remote I/O modules depends on how you configure the remote I/O modules.
You can configure each module as a direct connection or as rack optimized.
One chassis can have a combination of some modules configured as a direct
connection and others as rack optimized.
Connection: Amount:
DriveLogix1 controller to 3 local I/O modules
If you configured the remote I/O modules as rack-optimized, you would only
need a rack-optimized connection to the 1794-ACNR15, reducing the above
example by 3 connections.
Example 2: DriveLogix In the following example, one DriveLogix controller communicates with
another DriveLogix controller over ControlNet. Each DriveLogix controller
Controller to DriveLogix has its own local I/O
Controller
Distributed control
ControlNet
workstation
DriveLogix1 DriveLogix2
where:
The consumed tag must have the same data type as the produced tag in the
originating controller. The controller performs type checking to ensure proper
data is being received.
ControlNet
workstation
TagA TagB
Each produced tags requires one connection for the producing controller and
an additional connection for each consuming controller. Each consumed tag
requires one connection.
Connection: Amount:
DriveLogix1 controller to 3 local I/O modules
If you configured the local I/O modules as rack-optimized, you would only
need the DIN-rail connection to the I/O modules, reducing the above
example by 3 connections.
Example 3: DriveLogix In the following example, one DriveLogix controller communicates with a
Logix5550 controller and a ControlNet PLC-5 controller over ControlNet.
Controller to Other Devices
ControlNet
The PLC-5 controller supports logical ASCII addressing so you do not have to
map a compatibility file for MSG instructions initiated by a PLC-5 controller.
Place the DriveLogix tag name in double quotes (“).
You can produce and consume tags with any Logix controller the same as you
do with a DriveLogix controller. All Logix controllers follow the same
requirements for producing and consuming tags. See Example 2 above.
ControlLogix controller
(Control1)
ControlNet
B. Create a produced tag and select the user-defined data type you created.
DINT or REAL Only one DINT or REAL value Create a produced tag and select the DINT or REAL data type, as appropriate.
More than one DINT or REAL A. Create a user-defined data type that contains an array of DINTs or REALs,
as appropriate.
B. Create a produced tag and select the user-defined data type you created.
The ControlNet PLC-5 controller does not perform type checking. Make sure
the PLC-5 data type can correctly receive the DriveLogix produced tag to
ensure proper data is being received.
• The first integer contains the upper (left-most) bits of the value.
• The second integer contains the lower (right-most) bits of the value.
Connection: Amount:
DriveLogix1 controller to 3 local I/O modules
consumed by PLC5C1 1
Consumed TagB from DriveLogix2 1
Consumed INT from PLC5C1 1
total connections used: 12
If you configured the local I/O modules as rack-optimized, you would only
need the DIN-rail connection to the I/O modules, reducing the above
example by 3 connections.
You can configure the 1756-CNB module to use no connection. This is useful
if you configure all direct connections to their associated I/O modules and do
not need a rack-optimized connection.
Notes:
Configuring Your System for For the DriveLogix controller to operate on a DeviceNet network, you need:
a DeviceNet Link • a 1788-DNBO DeviceNet communication daughtercard.
• RSLogix 5000 programming software, version 10 or later, to configure
the 1788-DNBO card as part of the DriveLogix system
• RSNetWorx for DeviceNet software to configure the 1788-DNBO card
on the DeviceNet network
Before you can connect the DriveLogix system to the DeviceNet network, you
must configure the 1788-DNBO communication card and make sure it’s
properly installed in the DriveLogix controller. Refer to Access Procedures on
page C-1 to understand how to gain access to the NetLinx daughtercard slot
on the DriveLogix controller.
For more information about configuring a 1788-DNBO card, see the DeviceNet
Daughtercard Installation Instructions, publication 1788-IN053.
Complete your system configuration and develop your program logic. Then
download the project to the controller.
Placing DeviceNet Devices Use RSNetWorx for DeviceNet to configure a scan list for the 1788-DNBO
card. The scanlist and the associated input/output data tables set up the data
you want the controller to send to and receive from the card.
2. Double-click the 1788-DNBO card and use the Module tab to configure the card. Upload the network information when prompted.
3. Use the ScanList tab to define the scanning order of the DeviceNet devices.
How you configure the DeviceNet devices determines how many words you
use per device. The 1788-DNBO card supports a
maximum of:
• 124 32-bit words of input data
• 123 32-bit words of output data
• 32 32-bit words of status data
Once you define the scanlist, you define how the data for the devices maps
into the input, output, and status data blocks. Use the Input, Output, or Status
tabs to define the associated data block
Use the AutoMap button to simplify defining the data block for each
DeviceNet device. The above screens show how many 32-bit words are
mapped for the devices on this example network. These words map directly
into the array tags that the software creates for the 1788-DNBO card.
Most DeviceNet devices support 16-bit words. Take care how you map these
into the 32-bit words used in RSLogix 5000 programming software.
RSNetWorx for DeviceNet lets you DINT-align the device data. While this
might simplify the organization of the data, it might also limit the data you
have available.
Accessing DeviceNet I/O information is presented as a structure of multiple fields, which depend
on the specific features of the I/O module. The name of the structure is based
Devices on the location of the I/O module in the system. Each I/O tag is
automatically created when you configure the I/O module through the
programming software. Each tag name follows this format:
Location:SlotNumber:Type.MemberName.SubMemberName.Bit
where:
I = input
O = output
C = configuration
S = status
MemberName Specific data from the I/O module; depends on the type of data the module can store
For example, Data and Fault are possible fields of data for an I/O module. Data is the common name for
values the are sent to or received from I/O points.
SubMemberName Specific data related to a MemberName.
Bit (optional) Specific point on the I/O module; depends on the size of the I/O module (0-31 for a 32-point module)
EXAMPLE
The 1788-DNBO card in this example is in
named “DeviceNet_Interface_Card”.
The rack-optimized connection creates a DINT element for mapped data for
each DeviceNet module connected to the card “dnet.” The array dnet:I.Data
contains the possible input elements; the dnet.O.Data contains the possible
output elements.
The index number on the array element refers to the same numbered word
mapped to the device in RSNetWorx for DeviceNet. Depending on the device,
there can be several words mapped to on device. You can create aliases to the
elements you actually use to more identify the data you need.
Placing the Communication To place the 1788-DNBO daughtercard in Run mode, your program logic
needs to set the CommandRegister.Run bit in the output word for the
Card in Run Mode 1788-DNBO card.
For example:
Example 1: DriveLogix In the following example, one DriveLogix controller controls remote
DeviceNet devices through a 1788-DNBO card.
Controller and DeviceNet
Devices
DriveLogix controller
with 1788-DNBO card
DeviceNet
PanelView
ControlLogix terminal
controller with
1756-DNB
1794-ADN with FLEX I/O modules
Example 2: Using a In the following example, one DriveLogix controller controls remote
DeviceNet devices through a 1788-CN2DN linking device.
1788-CN2DN Linking
Device
ControlNet
DriveLogix controller
DeviceNet
PanelView
ControlLogix controller terminal
with 1756-DNB 1794-ADN with FLEX I/O modules
The tag name for the rack-optimized array tag is based on the name of the
linking device. For example, if you name the linking device “cn_2_dnet,” the
software automatically creates cn_2_dnet:I and cn_2_dnet:O data structures.
EXAMPLE
The 1788-CN2DN device in this example is in named
“ControlNet_Interface_Module”.
The rack-optimized connection creates a DINT element for mapped data for
each DeviceNet module connected to the linking device “cnet_2_dnet.” The
array cnet_2_dnet:I.Data contains the possible input elements; the
cnet_2_dnet.O.Data contains the possible output elements.
The index number on the array element refers to the same numbered word
mapped to the device in RSNetWorx for DeviceNet. Depending on the device,
there can be several words mapped to on device. You can create aliases to the
elements you actually use to more identify the data you need.
If you want to use the linking device to connect to DeviceNet, you need:
As a bridge, the linking device routes I/O and messaging data with a 5
ms delay. As a ControlNet device it offers a 2ms network update time.
As a DeviceNet device, it provides full DeviceNet DML Scanner
compatibility.
The linking device supports 124, 32-bit words each of input data, output data,
and status data. How you configure the DeviceNet devices determines how
many words you use per device.
Most DeviceNet devices support 16-bit words. Take care how you map these
into the 32-bit words used in RSLogix 5000 programming software.
RSNetWorx for DeviceNet lets you DINT-align the device data. While this
might simplify the organization of the data, it might also limit the data you
have available.
Notes:
IMPORTANT Limit the length of serial (RS-232) cables to 15.2m (50 ft.).
Configuring Your System for For the DriveLogix controller to operate on a serial network, you need:
a Serial Link • a workstation with a serial port
• RSLinx software to configure the serial communication driver
• RSLogix 5000 programming software to configure the serial port of the
controller
The RS-232 port is an isolated serial port built-in to the front of the controller.
Refer to Access Procedures on page C-1 to understand how to gain access to
the front of the DriveLogix controller.
Serial Port
2 RDX 2 RDX
3 TXD 3 TXD
4 DTR 4 DTR
COMMON COMMON
6 DSR 6 DSR
7 RTS 7 RTS
8 CTS 8 CTS
9 9
If you make your own cable, it must be shielded and the shields must be tied to
the metal shell (that surrounds the pins) on both ends of the cable.
You can also use a 1747-CP3 cable (from the SLC product family). This cable
has a taller right-angle connector housing than the 1756-CP3 cable.
1. In RSLogix 5000 programming software, select the Controller folder. Right-click to select Properties.
3. On the System Protocol tab, select the appropriate DF1 communication mode for point-to-point or master/slave
communications. Or on the User Protocol tab, select ASCII to communicate with an ASCII device.
Specify these characteristics on the Serial Port tab (default values are shown in
bold):
Select 110, 300 600, 1200, 2400, 4800, 9600, 19200, or 38400 Kbps.
Parity Specifies the parity setting for the serial port. Parity provides additional message-packet
error detection.
Select 8.
Stop bits Specifies the number of stop bits to the device with which the controller is communicating.
Select 1 or 2.
Control line Specifies the mode in which the serial driver operates.
If both modems in a point-to-point link are full-duplex, select Full-Duplex for both
controllers.
This mode is typically used to program the controller through its serial port.
The master/slave network includes one controller configured as the master node and as
many as 254 slave nodes. Link slave nodes using modems or line drivers.
A master/slave network can have node numbers from 0-254. Each node must have a
unique node address. Also, at least 2 nodes must exist to define your link as a network
(1 master and 1 slave station are the two nodes).
DF1 slave mode using a controller as a slave station in a master/slave serial communication network. 9-11
When there are multiple slave stations on the network, link slave stations using
modems or line drivers. When you have a single slave station on the network, you do
not need a modem to connect the slave station to the master; you can configure the
control parameters for no handshaking. You can connect 2-255 nodes to a single link. In
DF1 slave mode, a controller uses DF1 half-duplex protocol.
One node is designated as the master and it controls who has access to the link. All the
other nodes are slave stations and must wait for permission from the master before
transmitting.
User mode communicating with ASCII devices 9-15
This requires your program logic to use the ASCII instructions to read and write data
from and to an ASCII device.
Use RSLinx software to configure the serial communication driver. Select the
“DF1” driver.
1. In RSLinx software, select Communication →Configure Driver. From the Available Driver Types list, select”RS-232 DF1 Devices“.
Click OK.
Click OK.
serial
Enter a value 0-32767. Limits are defined in 20ms intervals. The default is 50 (1000ms).
Select Autodetect (enabled only after receiving one embedded response) or Enabled. The
default is Autodetect.
Error detection Select BCC or CRC error detection.
BCC: the controller sends and accepts messages that end with a BCC byte for error
checking. BCC is quicker and easier to implement in a computer driver. This is the default.
CRC: the controller sends and accepts messages with a 2-byte CRC for error checking. CRC
is a more complete method.
Enable duplicate Select whether or not the controller should detect duplicate messages. The default is
detection duplicate detection enabled.
Preface
modem
modem
If you use a modem to remotely connect the controller to one workstation, use
RSLogix 5000 programming software to configure the serial port of the
controller for the DF1 point-to-point (full-duplex) protocol, as in the previous
example. If the controller is part of a master/slave serial network, configure
the serial port of the controller for either the DF1 master or DF1 slave
protocol (both half-duplex).
Enter a valid DF1 address (0-254). Address 255 is reserved for broadcast messages. The default is 0.
Transmit retries The number of times the remote station retries a message after the first attempt before the station declares
the message undeliverable.
Enter a value 0-32767. Limits are defined in 20ms intervals. The default is 3000 (60,000ms).
EOT suppression Select whether or not to suppress sending EOT packets in response to a poll. The default is not to suppress
sending EOT packets.
Error detection Select BCC or CRC error detection.
BCC: the controller sends and accepts messages that end with a BCC byte for error checking. BCC is quicker
and easier to implement in a computer driver. This is the default.
CRC: the controller sends and accepts messages with a 2-byte CRC for error checking. CRC is a more
complete method.
Enable duplicate Select whether or not the controller should detect duplicate messages. The default is duplicate
detection detection enabled.
Enter a valid DF1 address (0-254). Address 255 is reserved for broadcast messages. The default is 0.
Transmit retries Specifies the number of times a message is retried after the first attempt before being declared
undeliverable.
Enter a value 0-32767. Limits are defined in 20ms intervals. The default is 50 (1000ms).
Reply message wait Message-based polling mode only
Specifies the amount of time the master station waits after receiving an ACK to a master-initiated message
before polling the slave station for a reply.
Enter a value 0-65535. Limits are defined in 20ms intervals. The default is 5 (100ms).
An integer tag array that contains the station addresses of the slave stations.
Create a single-dimension array of data type INT that is large enough to hold all the normal station
addresses. The minimum size is three elements.
The number of stations the master station polls after polling all the stations in the priority poll array. Enter 0
(default) to poll the entire array.
Priority poll node tag Standard polling modes only
An integer tag array that contains the station addresses of the slave stations you need to poll more
frequently.
Create a single-dimension array of data type INT that is large enough to hold all the priority station
addresses. The minimum size is three elements.
An array that stores a flag for each of the active stations on the DF1 link.
Both the normal poll array and the priority poll array can have active and inactive stations. A station
becomes inactive when it does not respond to the master’s poll.
Create a single-dimension array of data type SINT that has 32 elements (256 bits). This tag must be
controller-scoped.
Error detection Select BCC or CRC error detection.
BCC: the controller sends and accepts messages that end with a BCC byte for error checking. BCC is quicker
and easier to implement in a computer driver. This is the default.
CRC: the controller sends and accepts messages with a 2-byte CRC for error checking. CRC is a more
complete method.
Enable duplicate Select whether or not the controller should detect duplicate messages. The default is duplicate detection
detection enabled.
3. the specified number (normal poll group size) of active stations in the
normal poll array
4. one inactive station, after all the active stations in the normal poll array
have been polled
Use the programming software to change the display style of the active station
array to binary so you can view which stations are active.
Example 3: DriveLogix In the following example, a workstation connects to a bar code reader. A bar
code reader is an ASCII device, so you configure the serial port differently
Controller to a Bar Code than in the previous examples. Configure the serial port for user mode, rather
Reader than a DF1 mode.
1. For the serial port of the ASCII device, determine which pins send
signals and which pins receive signals.
2. Connect the sending pins to the corresponding receiving pins and attach
jumpers:
1 CD 1
2 RDX 2 RDX
3 TXD 3 TXD
4 DTR 4 DTR
COMMON COMMON
6 DSR 6 DSR
7 RTS 7
8 CTS 8
9 9
1 CD 1
2 RDX 2 RDX
3 TXD 3 TXD
4 DTR 4 DTR
COMMON COMMON
6 DSR 6 DSR
7 RTS 7
8 CTS 8
9 9
3. Attach the cable shield to both connectors and tie the cable to
both connectors.
The following table lists the default serial port configuration settings for the
ASCII protocol. You specify these settings on the User Protocol tab under
Controller Properties.
For information about using these examples, see the Logix5000 Controllers
Reference Manual, publication 1756-UM001.
Using This Chapter The DH-485 protocol uses RS-485 half-duplex as its physical interface.
(RS-485 is a definition of electrical characteristics; it is not a protocol.) You can
configure the RS-232 port of the DriveLogix controller to act as an DH-485
interface.
Configuring Your System for For the DriveLogix controller to operate on a DH-485 network, you need:
a DH-485 Link • a 1761-NET-AIC converter for each DriveLogix controller you want to
put on the DH-485 network.
The RS-232 port on the front of the DriveLogix controller supports the
requirements you need for the DH-485 network connection.
page C-1 to understand how to gain access to the front of the DriveLogix
controller.
Connect the serial port of the DriveLogix controller to either port 1 or port 2
of the 1761-NET-AIC converter. Use the RS-485 port to connect the
converter to the DH-485 network.
The cable you use to connect the controller depends on the port you use on
the 1761-NET-AIC converter.
1761-CBL-AC00
port 2 1761-CBL-AP00
1761-CBL-PM02
1. In RSLogix 5000 programming software, select the Controller folder. Right-click to select Properties.
Specify these characteristics on the Serial Port tab (default values are shown in
bold):
Characteristic: Description (default is shown in bold):
Baud Rate Specifies the communication rate for the DH-485 port. All devices on the same DH-485
network must be configured for the same baud rate. Select 9600 or 19200 Kbps.
Node Address Specifies the node address of the DriveLogix controller on the DH-485 network. Select a
number 1-31 decimal, inclusive.
• the maximum node address is the highest node number being used on the network
• that all the devices on the same DH-485 network have the same selection for the
maximum node address.
A node holding the token can send any valid packet onto the network. Each
node gets only one transmission (plus two retries) each time it receives the
token. After a node sends one message packet, it attempts to give the token to
its successor by sending a “token pass” packet to its successor.
If no network activity occurs, the initiator sends the token pass packet again.
After two retries (a total of three tries) the initiator attempts to find a new
successor.
IMPORTANT The maximum address that the initiator searches for before
starting again with zero is the value in the configurable
parameter “maximum node address.” The default value for
this parameter is 31 for all initiators and responders.
Network initialization
The network requires at least one initiator to initialize it. Network initialization
begins when an initiator on the network detects a period of inactivity that
exceeds the time of a link dead timeout. When the link dead timeout is
exceeded, usually the initiator with the lowest address claims the token. When
an initiator has the token it will begin to build the network.
Building a network begins when the initiator that claimed the token tries to
pass the token to the successor node. If the attempt to pass the token fails, or
if the initiator has no established successor (for example, when it powers up), it
begins a linear search for a successor starting with the node above it in the
addressing.
When the initiator finds another active initiator, it passes the token to that
node, which repeats the process until the token is passed all the way around
the network to the first node. At this point, the network is in a state of normal
operation.
The number of nodes on the network directly affects the data transfer time
between nodes. Unnecessary nodes (such as a second programming terminal
that is not being used) slow the data transfer rate. The maximum number of
nodes on the network is 32.
If the node addresses for controllers are assigned in sequence, starting at node
1 (with node 0 left for a programming terminal), it is as efficient to leave the
maximum node address at 31 as it is to decrease it to the highest node address
on the network. Then, adding devices to the network at a later time will not
require modifying the maximum node address in every device on the network.
The maximum node address should be the same for all devices on a DH-485
network for optimal operation.
The best network performance occurs when node addresses start at 0 and are
assigned in sequential order. The controller defaults to node address 1
(controllers cannot be node 0). Initiators, such as personal computers, should
be assigned the lowest numbered addresses to minimize the time required to
initialize the network.
IMPORTANT Use shielded, twisted-pair cable - either Belden 3106A or Belden 9842. A
daisy-chained network is recommended. Star connections are not recommended
When cutting cable segments, make them long enough to route them from one
link coupler to the next with sufficient slack to prevent strain on the
connector. Allow enough extra cable to prevent chafing and kinking in the
cable.
tion
ina
Orange Wire
Term A
with White Stripe 6 ta
Shrink Tubing a
(OR/WH) 5 D ta B
(Recommended) a n
4 D mmo
White Wire o nd
with Orange Stripe 3 C ield Grou
Belden 3106A or 9842 Cable S h sis
(WH/OR) 2 as
(3106A Shown) h
1C
Blue Wire
(BU)
Drain Wire
(Shield)
The table and schematic diagram below shows wire/terminal connections for
Belden 3106A cable.
6 Termination
OR/WH
5 Data A
WH/OR
4 Data B
BU
3 Common
2 Shield
1 Chassis Ground
The table and schematic diagram below shows wire/terminal connections for
Belden 9842 cable.
6 Termination
OR/WH
5 Data A
WH/OR
4 Data B
BU/WH
3 Common
WH/BU
2 Shield
1 Chassis Ground
You must terminate the network at the first and last PHYSICAL devices, by
connecting pin 6 (Termination) to pin 5 (Data A).
You must ground the network at the first PHYSICAL device by connecting
pin 1 (Chassis Ground) to pin 2 (Shield).
Termination 6 6 Termination
OR/WH OR/WH
Data A 5 5 Data A
WH/OR WH/OR
Data B 4 4 Data B
BU BU
Common 3 3 Common
Shield 2 2 Shield
Chassis Ground 1 1 Chassis Ground
Example: DriveLogix In the following example, both a DriveLogix controller and a ControlLogix
controller use its own 1761-NET-IAC+ converter to connect to a DH-485
Controller, ControlLogix
Controller, and SLC
Controller on the Same
DH-485 Network
DH-485 Network
DriveLogix Controller
On the DH-485 network, the DriveLogix controller can send and receive
messages to and from other controllers on the network.
Configuring Your System for For the DriveLogix controller to operate on a third-party network, you need:
a Third-Party Link • a 1788-MODULE generic module communication daughtercard.
• RSLogix 5000 programming software (Version 12 or later) to configure
the 1788-MODULE card as part of the DriveLogix system
• Software that configures the 1788-MODULE card on the third-party
network
Figure 11.1
DriveLogix controller with 1788-MODULE
generic module communications card
Third-party network
Motor
starter RediPANEL
Sensor
Other
Laptop devices Pushbutton
cluster
Bar code
scanner
I/O devices Indicator
lights
Before you can connect the DriveLogix system to the third-party network, you
must configure the 1788-MODULE communication card and make sure it is
properly installed in the DriveLogix controller. Refer to Access Procedures on
page C-1 to understand how to gain access to the NetLinx daughtercard slot
on the DriveLogix controller.
Remember which slot you use for which communication card. You’ll need the
slot number to configure the communication card in the RSLogix 5000
programming software. The controller uses slot 0.
Communication Format
Connection Parameters
• Input
• Output
• Configuration.
Assembly Instance
Size
The size field determines how large the connections are between the
owner-controller and the I/O module. Connections are sent in sizes matching
the communications format data type selected. The default, DINT, results in
32-bit quantities.
Complete your system configuration and develop your program logic. Then
download the project to the controller.
• mitigate the risk of changes adversely affecting the application (use old,
proven program in one controller and new, untested program in other
controller). If the new untested program causes a problem, a forced
switchover can be made to the older proven program without
downloading the program again.
How the Back-up Works Figure 11.2 shows an example back-up system. In the back-up system, the
following occurs:
• Only the primary controllers sends output data to the I/O devices. A
virtual switch in the 1788-DNBO cards is used to switch outputs
between primary and secondary controllers.
The switchover occurs so quickly that the I/O devices do not timeout;
these devices are unaware that redundant controllers/scanners exist and
are unaware of the switchover.
Figure 11.2
DeviceNet
PanelView 300
Primary controller
Secondary controller
The DriveLogix Back-Up on DeviceNet solution requires that you use the
following:
• When setting up the DeviceNet network, you must set the primary and
secondary 1788-DNBO cards to the same node address and reserve the
next node address.
Power-Up and To configure a DriveLogix Back-up system on DeviceNet, you can take the
following steps. Some of these steps are described in greater detail in the rest
System Start-up of the appendix.
1. Install all I/O and operator interfaces that you need to back-up on
DeviceNet.
We recommend that you reserve node addresses 0 and 1 for the two
DriveLogix controllers used in the back-up. If you do not use 0 and 1,
make sure you reserve two consecutive numbers for the controllers
when you install I/O and other devices on DeviceNet.
3. Set the controller node address to 0 (or the lower of the 2 node
addresses reserved for the DriveLogix controllers).
The program should contain the explicit message(s) that enable the
back-up feature for this controller and scanner. The messages are
described in the Developing the DriveLogix Back-Up Application
section beginning on page 12-6.
12. Use RSNetWorx for DeviceNet to download the same scanlist used in
step 5.
13. Use RSLogix 5000 to download the user program to the second
DriveLogix controller as performed in step 6.
This completes the back-up process. For more detailed information on some
of the steps listed previously, see the next section.
Developing the DriveLogix The DriveLogix back-up is enabled from an RSLogix 5000 user program with
a few simple ladder rungs (or equivalent). The following rungs are used in the
Back-Up Application DriveLogix back-up:
The first, and most critical, step is to set the back-up “heartbeat” constant in
the DeviceNet scanner. The heartbeat constant enables the back-up feature
and determines the switchover time (2 x heartbeat).
By default, the heartbeat is zero; this default value disables the back-up mode.
Your user program must set the heartbeat to a non-zero value to enable
back-up.
The heartbeat occurs in multiples of 8ms (i.e. 8, 16, 24, etc.). We recommend a
value of 16-48ms for most applications. The recommended heartbeat times
result in switchover times of 32-96ms. However, these times do not include
controller scan delays.
You can set the heartbeat constant with five rungs of ladder logic. Figure 11.3
shows rungs 0 & 1 and the message set-up used in rung 1. The message in
rung 1 uses the INT data type.
Figure 11.3
Figure 11.4 shows rung 2 and the message set-up used on it. The message in
rung 2 uses the INT data type.
Figure 11.4
Figure 11.5 shows rungs 3 & 4 and the message set-up used on it. The message
in rung 3 uses the INT data type.
Figure 11.5
This completes the required portion of ladder logic to enable the DriveLogix
back-up on DeviceNet. The following sections describe how to use additional
ladder logic to read back-up state and status. However, these sections are not
required to complete the back-up solution.
You can read the back-up state of the DeviceNet scanner with a single rung of
ladder logic. The back-up state is useful for debug or more sophisticated
back-up schemes. The message in this rung uses the SINT data type.
Figure 11.6 shows the rung you can use to read the back-up state.
Figure 11.6
Table 11.1 describes the possible values this message may return when reading
the back-up state of the DeviceNet scanner.
Table 11.1
If the message reads the back-up state of the DeviceNet scanner is:
this value:
0 Disabled
1 Primary scanner
2 Back-up scanner
3 Invalid primary node address (e.g. the node address cannot
be 62 or 63)
4 Faulted back-up scanner - CRC failure (e.g. the scanlists in
the scanners do not match)
5 Faulted back-up scanner - back-up node number failure (e.g.
the back-up scanner is not using a node number = the
primary node number + 1)
6 Back-up scanner pending primary detection
254 Attempting primary access
255 Attempting back-up access
You can read the back-up status of the DeviceNet scanner with a single rung
of ladder logic. The back-up state is useful for debugging or more
sophisticated back-up schemes. The message in this rung uses the SINT data
type.
Figure 11.7 shows the rung you can use to read the back-up state.
Figure 11.7
Table 11.1 describes the possible values this message may return when reading
the back-up status of the DeviceNet scanner.
Table 11.2
If the message reads the back-up state of the DeviceNet scanner is:
this value:
0 No back-up scanner detected
1 Primary scanner forcing IDLE (back-up in RUN but primary in
IDLE)
Using Indicators to The 1788-DNBO card’s status indicators provide useful information (e.g.
determining which controller is primary) about back-up scanner status.
Check Status Table 11.3 lists the indicators to monitor when checking back-up status.
Table 11.3
Development and When you implement the DriveLogix Back-Up on DeviceNet solution, we
recommend you consider the following development and debugging tips:
Debugging Tips
• Develop and debug the entire application with only the primary
controller and scanner present. When the application is totally verified,
then download the program and exact same scanlist to the secondary
controller, without the primary controller present. Verify that the
secondary is also functioning properly, and then both primary and
secondary can be added to the network at the same time.
• Local I/O still works when this solution is used but the Local I/O is not
backed up.
• The I/O during switchover is NOT bumpless. Since the programs and
I/O updates are not synchronized, it is possible for the secondary
controller to be either slightly faster or slower than the primary.
For example, if output changes during a switchover, the fact that the
primary and secondary controllers are unsynchronized can cause the
• As with all back-up and redundancy systems, the I/O must change at a
slower rate than the switchover time. If the inputs change faster than the
switchover, the change of state is lost.
• Either the user program or user action determine the primary controller.
In its simplest mode, the first scanner to power-up or become available
on DeviceNet first is the primary.
• Unlike some back-up systems (i.e. PLC5), the primary controller still
maintain control of the I/O and switchover does NOT occur if the
primary controller is set to Program/Idle mode. The secondary
1788-DNBO scanner also indicates that it is in Idle Mode.
DriveLogix Controller
Category: DriveLogix 5720 DriveLogix 5720 with Memory Expansion
user memory 256k bytes
FLEXBUS Local Rail current output 640 mA maximum @ 5.1V dc
thermal dissipation 87 BTU/hour
storage temperature -40 to 70 degrees C (-40 to 158 degrees F)
battery 1756-BA1 (Allen-Bradley PN 94194801)
0.59g lithium
serial cable 1756-CP3 directly to controller
NEMA ICS 3.1 - Safety standards for Construction and Guide for Selection,
C UL
Æ US
Emissions
Immunity
Battery 1756-BA1
0.59g lithium
DriveLogix Controller The RS-232 port is a non-isolated serial port built-in to the front of the
controller.
Serial Cables
Serial Port
To connect to the serial port, determine whether you need an optical isolator.
If you connect the controller to a modem or an ASCII device, consider
installing an isolator between the controller and modem or ASCII device. An
isolator is also recommended when connecting the controller directly to a
programming workstation.
2 RDX 2 RDX
3 TXD 3 TXD
4 DTR 4 DTR
COMMON COMMON
6 DSR 6 DSR
7 RTS 7 RTS
8 CTS 8 CTS
9 9
If you make your own cable, it must be shielded and the shields
must be tied to the metal shell (that surrounds the pins) on both
ends of the cable.
You can also use a 1747-CP3 cable (from the SLC product family).
This cable has a taller right-angle connector housing than the
1756-CP3 cable.
Yes The 1761-CBL-AP00 cable (right-angle connector to controller) or
the 1761-CBL-PM02 cable (straight connector to the controller)
attaches the controller to port 2 on the 1761-NET-AIC isolator.
The mini-DIN connector is not commercially available, so you
cannot make this cable.
6 1
7 2 6 78
3
3 5
8 4 4
9 5 12
DB-9 right-angle or straight 8-pin, mini-DIN cable end
cable end
Host is faulted,
Host is faulted,
Connecting the Battery Allen-Bradley ships the DriveLogix controller with the battery installed, but
disconnected. You must connect the battary while installing the drive:
2. Connect the plug on the battery lead into the socket on the DriveLogix
controller.
Storing Replacement Because a battery may leak potentially dangerous chemicals if stored
improperly, store batteries as follows:
Batteries
Store batteries in a cool, dry environment. We recommend
ATTENTION
25° C with 40% to 60% relative humidity. You may store
batteries for up to 30 days between -45° to 85° C, such as
Estimating Battery Life When the battery is about 95 percent discharged, the controller provides the
following warnings:
• On the front of the controller, the BATTERY LED turns on (solid red).
• A minor fault occurs (type 10, code 10).
No required replacement
3 years
41° to 45° C 2 years
46° to 50° C 16 months
51° to 55° C 11 months
56° to 60° C 8 months
To estimate how long the battery will support the memory of the controller:
2. Determine the percentage of time that the controller is powered off per
week.
Use the off-time percentage you calculated with the following table to
determine battery life:
Replacing a Battery Because the controller uses a lithium battery, you must follow specific
precautions when handling or disposing a battery.
4. Remove the side cover of the drive’s control assembly (not necesary for
high power drives).
If: Then:
Yes Before handling the battery, review Guidelines for Handling Lithium
Batteries, publication AG-5.4.
No Go to the next step.
7. Remove the old battery, by unplugging the battery and cutting the cable
tie that holds the battery.
Cable Tie That
Holds Battery
Battery Battery
Connector
!
9. Attach the battery label. Write on the battery label the date you install
the battery.
If: Then:
Yes Go to the next step.
No A. Check that the battery is correctly connected to the controller.
C. If the BATTERY LED remains on after you complete Step B., contact
your Rockwell Automation representative or local distributor.
14. Download the controller’s memory and program from the computer
with RSLogix 5000 programming software.
17. Dispose the old battery according to state and local regulations.
Notes:
Access Procedures
DRIVE
DRIVE
E
S.M.A.R.T. Exit Lang Auto / Man Remove
7 8 9
4 5 6 Jog
1 2 3
Alt . 0 +/-
Exp Param #
A D
(8 Screws)
B A
G F
(8 Screws)
S
P scan list 8-4
placing scan time 1-21
host PowerFlex 700S 3-4 schedule network 7-10
priority 2-3
serial
produced/consumed tag
ASCII protocol 9-15
overview 6-20, 7-17 communication driver 9-7
program configuring the port 9-4
defining 2-5 configuring the system 9-1
developing 2-2 hardware 9-2
programming master 9-11