Read this document and the documents listed in the additional resources section about installation, configuration, and
operation of this equipment before you install, configure, operate, or maintain this product. Users are required to
familiarize themselves with installation and wiring instructions in addition to requirements of all applicable codes, laws,
and standards.
Activities including installation, adjustments, putting into service, use, assembly, disassembly, and maintenance are required
to be carried out by suitably trained personnel in accordance with applicable code of practice.
If this equipment is used in a manner not specified by the manufacturer, the protection provided by the equipment may be
impaired.
In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the
use or application of this equipment.
The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and
requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or
liability for actual use based on the examples and diagrams.
No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment, or
software described in this manual.
Reproduction of the contents of this manual, in whole or in part, without written permission of Rockwell Automation,
Inc., is prohibited.
Throughout this manual, when necessary, we use notes to make you aware of safety considerations.
WARNING: Identifies information about practices or circumstances that can cause an explosion in a hazardous environment,
which may lead to personal injury or death, property damage, or economic loss.
ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death, property
damage, or economic loss. Attentions help you identify a hazard, avoid a hazard, and recognize the consequence.
Identifies information that is critical for successful application and understanding of the product.
Labels may also be on or inside the equipment to provide specific precautions.
SHOCK HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that dangerous
voltage may be present.
BURN HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that surfaces may
reach dangerous temperatures.
ARC FLASH HAZARD: Labels may be on or inside the equipment, for example, a motor control center, to alert people to
potential Arc Flash. Arc Flash will cause severe injury or death. Wear proper Personal Protective Equipment (PPE). Follow ALL
Regulatory requirements for safe work practices and for Personal Protective Equipment (PPE).
Allen-Bradley, CompactBlock Guard I/O, CompactLogix, ControlFLASH, ControlLog ix, DH+, FactoryTalk, FLEX, GuardLogix, Kinetix, L ogix5000, MicroLogix, PanelBuilder, PanelView, PhaseManager, PLC-2, PLC-3,
PLC-5, POINT I/O, POIN T Guard I/O, Rockwell Automation, Rockwell Software, RSBizWare, RSFieldbus, RSLinx, RSLogix 5000, RSNetWorx, RSView, SLC, SoftLogix, Stratix, Stratix 2000, Stratix 5700, Stratix 6000,
Stratix 8000, Stratix 83 00, Studio 5000, Studi o 5000 Logix Desig ner, SynchLink, and Ultra are trademark s of Rockwell Automation, Inc.
ControlNet, DeviceNet, and EtherNet/IP are trademarks of ODVA, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
Software Updates
(produc t serial nu mber required)
Firmware Updates
(produc t serial nu mber required)
Rockwell Automation® EDS Files
AB Drives
Rockwell Automation Publication 1756-RM094I-EN-P - September 201511
Preface
Notes:
12Rockwell Automation Publication 1756-RM094I-EN-P - September 2015
Logix5000 Controller Resources
Logic and Data Memory
Logix
CPU
Backplane CPU
I/O Memory
Program source code
Tag data
RSLinx® tag group lists
I/O data
I/O force tables
Message buffers
Produced/consumed tags
1756-L7x ControlLogix controllers - Memory is separated into isolated sections.
Project Documentation Memor y
Comment descriptions
Alarm log
Extended tag properties
Logic and Data Memory
Logix
CPU
Backplane CPU
I/O Memory
Program source code
Tag data
RSLinx tag group lists
I/O data
I/O force tables
Message buffers
Produced/consumed tags
1768 CompactLogix and 1756-L6x ControlLogix controllers - Memory is separated into isolated sections.
TIP
Top icPag e
Estimate Memory Use16
Controller Connections17
Determine Total Connection Requirements18
CIP Sync20
Controller Mode21
Chapter 1
The Logix CPU executes application code and messages. The backplane CPU
transfers I/O memory and other module data on the backplane. This CPU
operates independently from the Logix CPU, so it sends and receives I/O
information asynchronous to program execution.
AB Drives
Rockwell Automation Publication 1756-RM094I-EN-P - September 201513
CPU usage is based on the number of devices in the I/O tree. About 6% of the
L7x CPU is used for every 100 devices in the I/O tree.
Chapter 1Logix5000 Controller Resources
I/O Memory
Program source code
Tag data
RSLinx tag group lists
I/O data
I/O force tables
Message buffers
Produced/consumed tags
CompactLogix 5370 controllers - Memory is separated into isolated segments.
Logix
CPU
Logic and Data Memory
Comment descriptions
Alarm log
Extended tag properties
Project Documentation Memory
Logic, Data, and I/O Memory
Logix
CPU
Program source code
Tag data
RSLinx tag group lists
I/O data
I/O force tables
Message buffers
Produced/consumed tags
I/O taskComms task
1769 CompactLogix controllers - Memory is in one, contiguous section.
The Logix CPU executes application code and messages.
These controllers have one CPU that performs all operations. Isolated tasks
perform I/O and communication and interact with networks. These tasks
simulate the backplane CPU.
14Rockwell Automation Publication 1756-RM094I-EN-P - September 2015
Logix5000 Controller ResourcesChapter 1
Logic, Data, and I/O Memory
Logix
CPU
Program source code
Tag dat a
RSLinx tag group lists
I/O data
I/O force tables
Message buffers
Produced/consumed tags
SoftLogix controllers - Memory is in one, contiguous section.
Windows
operating
system
Project Documentation Memory
Comment descriptions
Alarm log
Extended tag properties
The SoftLogix controller has one CPU that works with the Windows operating
system to perform all operations. Rather than using controller priority levels for
I/O and communication tasks, the SoftLogix controller uses Windows priority
levels for these tasks.
The first DeviceNet module is 7400 bytes. Additional DeviceNet modules are 5800 bytes each.
2
Count all communication modules in the system, not just the modules in the local chassis. The count includes device connection modules, adapters, and ports on
PanelView™ terminals.
The equations provide an estimate of the memory that is needed for a controller.
If you configure controllers for redundancy, you must double the memory
resources that are required for a non-redundant application.
1
_____ * 7,400=_____ bytes
2
_____ * 2,000=_____ bytes
To t a l=_____ bytes
Reserve 20…30% of the controller memory to accommodate growth.
RSLinx Software Use of Logix5000 Controller Memory
The amount of memory that RSLinx software needs depends on the type of data
RSLinx software reads. These equations provide a memory estimate.
RSLinx overhead
(per connection)_____* 1345=___ bytes (four connections by default)
Individual tags_____ * 45=___ bytes
Arrays / structures _____ * 7=___ bytes
To t a l=___bytes
You can consolidate tags into an array or a structure to reduce the communication
overhead and the number of connections that are used to obtain the data.
16Rockwell Automation Publication 1756-RM094I-EN-P - September 2015
Logix5000 Controller ResourcesChapter 1
Compare PLC/SLC MEMORY
The Logix5000 controllers use compiled instructions to provide faster execution
times than PLC or SLC™ processors. The compiled instructions use more
memory when compared to the instructions in PLC and SLC processors.
If you have a PLC/SLC program, you can estimate the number of bytes it takes in
a Logix5000 controller by the following equation:
number PLC/SLC words 18 = number of Logix5000 bytes
Controller Connections
Communication Attribute1756-L7x ControlLogix1756-L6x ControlLogix
Connections500250100256250
Cached messages
Unconnected receive buffers3
Unconnected transmit buffersDefault 20 (can be increased to 40)Default 10 (can be increased to 40)
(1)
32 for messages and block transfers combined
A Logix5000 controller uses a connection to establish a communication link
between two devices. Connections can be made to the following:
• Controller to local I/O modules or local communication modules
• Controller to remote I/O or remote communication modules
• Controller to remote I/O (rack optimized) modules
For more information on connections for I/O, see Communicate with I/O
on page 71.
• Produced and consumed tags
For more information, see Produced and Consumed Data
• Messages
For more information, see Communicate with I/O
• Access to RSLogix 5000® software
• RSLinx software access for HMI or other software applications
The controllers have different communication limits.
(1) See Communicate with Other Devices on page 97 for more information about messages and buffers.
AB Drives
Rockwell Automation Publication 1756-RM094I-EN-P - September 201517
Chapter 1Logix5000 Controller Resources
The limit of connections can ultimately reside in the communication module you
use for the connection. If a message path routes through a communication
module, the connection that is related to the message also counts toward the
connection limit of that communication module.
CompactLogix 5370Built-in Ethernet portsSee the CompactLogix 5370 Controllers User Manual, publication 1769-UM021
SoftLogix 58001784-PCICS128 CIP connections
128 CIP connections
depending on RPI, recommend that you use only 48 connections
(any combination of scheduled and message connections)
256 CIP connections
128 TCP/IP connections
128 CIP connections
64 TCP/IP connections
64 CIP connections
32 TCP/IP connections
depending on RPI, as many as 22 connections can be scheduled
The remaining connections (or all 32, if you have no scheduled connections) can
be used for message connections
64 TCP/IP connections
12 TCP/IP connections
for information on how to count EtherNet/IP nodes on the I/O Configuration
section of RSLogix 5000 software.
127 can be scheduled connections
,
Determine Total
Connection Requirements
The total connections for a Logix5000 controller include both local and remote
connections. Counting local connections is not an issue for CompactLogix
controllers. They support the maximum number of modules that are permitted
in their systems.
When designing your CompactLogix 5370 controllers, you must consider these
resources:
• EtherNet/IP network nodes
• Controller connections
For more information, see the CompactLogix 5370 Controllers User Manual,
publication 1769-UM021
18Rockwell Automation Publication 1756-RM094I-EN-P - September 2015
.
Logix5000 Controller ResourcesChapter 1
IMPORTANT
The ControlLogix and SoftLogix controllers support more communication
modules than the other controllers, so you must tally local connections to make
sure that you stay within the connection limit.
Use this table to tally local connections.
Connection TypeDevice QuantityxConnections per Module=Total Connections
Local I/O module (always a direct connection)x1=
SERCOS Motion modulex3=
ControlNet communication modulex0=
EtherNet/IP communication modulex0=
DeviceNet communication modulex2=
DH+/Remote I/O communication modulex1=
DH-485 communication modulex1=
RSLogix 5000 software access to controllerx1=
Tot a l
A redundant system uses eight connections in the controller.
The communication modules that you select determine how many remote
connections are available. Use this table to tally remote connections.
Connection TypeDevice QuantityxConnections per Module=Total Connections
Remote ControlNet communication module
Configured as a direct (none) connection
Configured as a rack-optimized connection
Remote EtherNet/IP communication module
Configured as a direct (none) connection
Configured as a rack-optimized connection
Remote device over a DeviceNet network
(accounted for in rack-optimized connection for local DeviceNet module)
Safety device on a DeviceNet or EtherNet/IP networkx2=
Other remote communication adapterx1=
Distributed I/O module (individually configured for a direct connection)x1=
Produced tag and first consumer
Each additional consumer
Consumed ta gx1=
Connected message (CIP Data Table Read/Write and DH+)x1=
Block transfer messagex1=
RSLinx software access for HMI or other software applicationsx4=
RSLinx® Enterprise software for HMI or other software applicationsx5=
Tot a l
x
0 or
1
x
0 or
1
x0=
x21=
=
=
AB Drives
Rockwell Automation Publication 1756-RM094I-EN-P - September 201519
Chapter 1Logix5000 Controller Resources
CIP Sync
CIP Sync is a time synchronization implementation that incorporates
IEEE-1588 standards on the EtherNet/IP protocol. CIP Sync provides the
control system access to synchronization information and transport and routing
of a system clock on standard CIP networks.
• No longer need application code or software to synchronize clocks
between controller, HMI, and other control hardware.
• Open standard lets compatibility with most IEEE-1588 v2 products exist,
letting the integration with GPS and other IT layer devices occur.
• Alarm system automatically picks up time stamps from CIP Sync system
time
• System self-heals, so that if one clock master fails the rest arbitrate to find
the next best clock master.
A ControlLogix controller or 1756-EN2T can become a system clock master.
Other Logix5000 controllers can require application code.
The controller or networked device that wins system clock arbitration is the
Grandmaster clock. The wall clock time can only be set from the system Grand
Master device. If you adjust a controller clock, the controller could reject that
time if it is not or does not become the Grandmaster clock.
You can configure the system clock via RSLogix 5000 software, version 18 and
later, and programmatically via GSV/SSV instructions. Use a GSV/SSV
instruction with the Time Sync object to do the following:
• Enable or disable CIP Sync
• Get or set the time
• Set priority to override other masters
• Get synchronization status
• Get current PTP master status and state information
20Rockwell Automation Publication 1756-RM094I-EN-P - September 2015
Logix5000 Controller ResourcesChapter 1
IMPORTANT
Controller Mode
The controller mode switch provides a mechanical means to enhance controller
and control system security. You must physically move the switch to change the
operating mode from RUN to REM or to PROG.
Remote lets you change the operational mode to REM RUN or REM PROG via
RSLogix 5000 software.
During runtime, we recommend that you place the controller mode switch in
RUN mode and remove the key (if applicable) from the switch. This practice
helps discourage unauthorized access to the controller or potential tampering
with the controller program, configuration, or device firmware. Place the mode
switch in REM or PROG mode during controller commissioning, maintenance,
and whenever temporary access is necessary to change the program,
configuration, or firmware.
For more information on controller mode switches, see the ControlLogix System
User Manual, publication 1756-UM001
.
AB Drives
Rockwell Automation Publication 1756-RM094I-EN-P - September 201521
Chapter 1Logix5000 Controller Resources
Notes:
22Rockwell Automation Publication 1756-RM094I-EN-P - September 2015
Logic Execution
Tasks to configure controller execution
Programs to group data and logic
Top icPag e
Decide When to Use Tasks, Programs, and Routines24
Specify Task Priorities25
Manage User Tasks26
Considerations that Affect Task Execution27
Configure a Co ntinuous Task29
Configure a Periodic Task29
Configure an Event Task30
Select a System Overhead Percentage31
Manage the System Overhead Timeslice Percentage32
Access the Module Object33
Develop Application Code in Routines34
Programming Methods35
Controller Prescan of Logic36
Controller Postscan of SFC Logic37
Timer Exe cution3 8
Edit an S FC Online39
Chapter 2
The controller operating system is a ct2000LAK pre-emptive multitasking
system that is IEC 61131-3 compliant.
A task provides scheduling and priority information for a set of one or more
programs. You can configure tasks as either continuous, periodic, or event.
A task contains programs, each with its own routines and program-scoped tags.
Once a task is triggered (activated), the programs that are assigned to the task
execute in the order in which they are listed in the Controller Organizer.
Programs are useful for projects that multiple programmers develop. During
development, the code in one program that uses program-scoped tags can be
duplicated in a second program to minimize the possibility of tag
names colliding.
With firmware revision 15, tasks can contain programs and equipment phases.
AB Drives
Rockwell Automation Publication 1756-RM094I-EN-P - September 201523
Chapter 2Logic Execu tion
Routines to encapsulate
executable code that is written
in one programming language
Routines contain the executable code. Each program has a main routine that is
the first routine to execute within a program. Use logic, such as the Jump to
Subroutine (JSR) instruction, to call other routines. You can also specify an
optional program fault routine.
See Develop Application Code in Routines
on page 34 for information on
selecting programming languages, and how the controller prescans and
postscans logic.
Decide When to Use Tasks,
Use these considerations to determine when to use a task, program, or routine.
Programs, and Routines
ComparisonTaskProgram and Equipment PhaseRoutine
Quantity availableVaries by controller (4, 6, 8, or 32)32 program and equipment phases
FunctionDetermines how and when code is executedOrganizes groups of routines that share a
Use• Most code is expected to reside in a
continuous task
• Use a periodic task for slower processes or
when time-based operation is critical
• Use an event task for operations that
require synchronization to a specific event
Considerations• A high number of tasks can be difficult to
debug
• Can disable output processing on some
tasks to improve performance
• Tasks can be inhibited to prevent execution
• Do not configure multiple tasks at the same
priority
(combined) per task
(100 for ControlLogix and SoftLogix
controllers)
common data area and function.
• Put major equipment pieces or plant cells
into isolated programs
• Use programs to isolate different
programmers or create reusable code
• Configurable execution order within a task
• Isolate individual batch phases or discrete
machine operations
• Data spanning multiple programs must go
into controller-scoped area
• Listed in the Controller Organizer in the
order of execution
Unlimited number of routines per program
Contains executable code (relay ladder,
function block diagram, sequential function
chart, or structured text)
• Isolate machine or cell functions in a
• Use the appropriate language for the
• Modularize code into subroutines that can
• Subroutines with multiple calls can be
• Data can be referenced from program-
• Calling many routines impacts scan time
• Listed in the Controller Organizer as Main,
routin e
process
be called multiple times
difficult to debug
scoped and controller-scoped areas
Fault, and then alphabetically
For more information about equipment phases, see Develop Equipment Phases
on page 117.
24Rockwell Automation Publication 1756-RM094I-EN-P - September 2015
Logic ExecutionChapter 2
Specify Task Priorities
Each task in the controller has a priority level. A higher priority task (such as 1)
interrupts any lower priority task (such as 15). The continuous task has the
lowest priority; periodic or event tasks always interrupt continuous tasks.
The Logix5000 controller has these types of tasks.
PriorityUser TaskDescription
Highest
Lowest
N/ACPU overhead - serial port and general CPU operations
N/AMotion planner - executed at coarse update rate
N/ASafety task - safety logic
N/ARedundancy task - communication in redundant systems
N/ATrend data collection - high-speed collection of trend data values
Priority 1 Event/PeriodicUser defined
Priority 2 Event/PeriodicUser defined
Priority 3 Event/PeriodicUser defined
Priority 4 Event/PeriodicUser defined
Priority 5 Event/PeriodicUser defined
Priority 6 Event/PeriodicUser defined
1769 CompactLogix controllers process I/O as a periodic task based on the chassis RPI setting
Priority 7 Event/PeriodicUser defined
Priority 8 Event/PeriodicUser defined
Priority 9 Event/PeriodicUser defined
Priority 10 Event/PeriodicUser defined
Priority 11 Event/PeriodicUser defined
Priority 12 Event/PeriodicUser defined
CompactLogix communication and scheduled connection maintenance
Priority 13 Event/PeriodicUser defined
Priority 14 Event/PeriodicUser defined
Priority 15 Event/PeriodicUser defined
ContinuousMessage handler - based on system overhead timeslice
If a periodic or event task is executing when another is triggered, and both tasks
are at the same priority level, the tasks’ timeslice executes in 1 ms increments until
one of the tasks completes execution.
AB Drives
Rockwell Automation Publication 1756-RM094I-EN-P - September 201525
Chapter 2Logic Execu tion
Manage User Tasks
If you want logic to executeUse this taskDescription
All of the timeContinuous taskThe continuous task runs in the background. Any CPU time that is not allocated to other operations or
• At a constant period (such as every 100 ms)
• Multiple times within the scan of your other logic
Immediately when an event occursEvent taskAn event task performs a function only when a specific event (trigger) occurs. Whenever the trigger for
You can configure these user tasks.
tasks is used to execute the continuous task.
• The continuous task runs all of the time. When the continuous task completes a full scan, it restarts
immediately.
• A project does not require a continuous task. If used, there can be only one continuous task.
Periodic taskA periodic task performs a function at a specific time interval. Whenever the time for the periodic task
expires, the periodic task:
• Interrupts any lower priority tasks.
• Executes one time.
• Returns control to where the previous task left off.
the event task occurs, the event task:
• Interrupts any lower priority tasks.
• Executes one time.
• Returns control to where the previous task left off.
See Configure an Event Task
do not support all triggers.
on page 30 for the triggers for an event task. Some Logix5000 controllers
The user tasks that you create appear in the Tasks folder of the controller. The
predefined system tasks do not appear in the Tasks folder and they do not count
toward the task limit of the controller:
• Motion planner
• I/O processing
• System overhead
• Output processing
26Rockwell Automation Publication 1756-RM094I-EN-P - September 2015
Logic ExecutionChapter 2
Considerations that Affect
Task Execution
ConsiderationDescription
Motion plannerThe motion planner interrupts all other tasks, regardless of their priority.
I/O processingCompactLogix and SoftLogix controllers use a dedicated periodic task to process I/O data. This I/O task:
System overhead
See also Select a System Overhead Percentage on page 31.
Output processingAt the end of a task, the controller performs output processing for the output modules in your system. This
Too many tasksIf you have too many tasks, then the following can occur:
• The number of axes and coarse update period for the motion group affect how long and how often the motion
planner executes.
• If the motion planner is executing when a task is triggered, the task waits until the motion planner is done.
• If the coarse update period occurs while a task is executing, the task pauses to let the motion planner execute.
• CompactLogix controllers, operates at priority 6.
SoftLogix controllers, operates at Windows priority 16 (Idle).
• Higher-priority tasks take precedence over the I/O task and can affect processing.
• Executes at the fastest RPI you have scheduled for the system.
• Executes for as long as it takes to scan the configured I/O modules.
System overhead is the time that the controller spends on message communication and background tasks.
• Message communication is any communication that you do not configure through the I/O configuration folder
of the project, such as MSG instructions.
• Message communication occurs only when a periodic or event task is not running. If you use multiple tasks, make
sure that their scan times and execution intervals leave enough time for message communication.
• System overhead interrupts only the continuous task.
• The system overhead timeslice specifies the percentage of time (excluding the time for periodic or event tasks)
that the controller devotes to message communication.
• The controller performs message communication for up to 1 ms at a time and then resumes the continuous task.
• Adjust the update rates of the tasks as needed to get the best trade-off between executing your logic and
servicing message communic ation.
processing depends on the number of output connections that are configured in the I/O tree.
• Continuous task can take too long to complete.
• Other tasks can experience overlaps. If a task is interrupted too frequently or too long, it must be triggered again
to complete its execution.
• Controller communication can be slower.
• If your application is designed for data collection, try to avoid multiple tasks.
AB Drives
Rockwell Automation Publication 1756-RM094I-EN-P - September 201527
Chapter 2Logic Execu tion
124563
1
2
3
4
5
6
This example depicts the execution of a project with these tasks.
TaskPriorityPeriodExecution TimeDuration
Motion plannerN/A8 ms (course update rate)1 ms1 ms
Event task 11N/A1 ms1
Periodic task 1212 ms2 ms24ms
I/O task—N/A to ControlLogix and SoftLogix controllers75 ms (fastest RPI)1 ms15 ms
System overheadN/ATimeslice = 20%1 ms1
Continuous taskN/AN/A20 ms48 ms
2 ms
6 ms
Motion
Planner
Event Task 1
Peri odic
Tas k 1
I/O Task
System
Overhead
Continuous
Tas k
Legend :
Description
Task executes.Task is interrupted (suspended).
5 101520253035404550
Initially, the controller executes the motion planner and the I/O task (if one exists).
After executing the continuous task for 4 ms, the controller triggers the system overhead.
The period for periodic task 1 expires (12 ms), so the task interrupts the continuous task.
After executing the continuous task again for 4 ms, the controller triggers the system overhead.
The triggers occur for event task 1.
Event task 1 waits until the motion planner is done.
Lower priority tasks experience longer delays.
The continuous task automatically restarts.
28Rockwell Automation Publication 1756-RM094I-EN-P - September 2015
Logic ExecutionChapter 2
Configure a Continuous Task
The continuous task is created automatically when you open an RSLogix 5000®
software project. A continuous task is similar to how logic executes on PLC-5®
and SLC™ 500 processors. A Logix5000 controller supports one continuous task,
but a continuous task is not required. You can configure whether the task updates
output modules at the end of the continuous task. You can change the continuous
task to either a periodic or event task.
The CPU timeslices between the continuous task and system overhead. Each
task switch between user task and system overhead takes more CPU time to load
and restore task information.
RSLogix 5000 software, version 16 and later, forces at least 1 ms of execution
time for the continuous task, regardless of the system overhead timeslice. This
more efficiently uses system resources because letting shorter execution times of
the continuous task exist means switching tasks more frequently.
System Overhead Timeslice %Communication Execution (msec) Continuous Task Execution (msec)
1019
2014
3312
5011
6621
8041
9091
Configure a Periodic Task
A periodic task executes automatically based on a preconfigured interval. This
task is similar to selectable timed interrupts in PLC-5® and SLC 500 processors.
You can configure whether the task updates output modules at the end of the
periodic task. After the task executes, it does not execute again until the
configured time interval has elapsed.
If your application has a lot of communication, such as RSLinx communication,
use a periodic task rather than a continuous task.
AB Drives
Rockwell Automation Publication 1756-RM094I-EN-P - September 201529
Chapter 2Logic Execu tion
Configure an Event Task
An event task executes automatically based on a trigger event occurring or if a
trigger event does not occur in a specific time interval. You configure whether the
task updates output modules at the end of the task. After the task executes, it
does not execute again until the event occurs again. Each event task requires a
specific trigger.
TriggerDescription
Module Input Data State ChangeWith Logix5000 controllers, a remote input module (digital or analog) triggers an event task that is based on the change of state (COS)
Consumed TagOnly one consumed tag can trigger a specific event task. Use an IoT instruction in the producing controller to signal the production of
Axis Registration 1or 2A registration input triggers the event task.
Axis WatchA watch position triggers the event task.
Motion Group ExecutionThe coarse update period for the motion group triggers the execution of both the motion planner and the event task. Because the motion
EVENT InstructionMultiple EVENT instructions can trigger the same task.
configuration for the module. Enable COS for only one point on the module. If you enable COS for multiple points, a task overlap of the event
task can occur.
• The ControlLogix sequence of events modules (1756-IB16ISOE, 1756-IH16ISOE) use the Enable CST Capture feature instead of COS.
• The embedded input points on the 1769-L16ER-BB1B, 1769-L18ER-BB1B, and 1769-L18ERM-BB1B modules can be configured to trigger
an event task when a COS occurs.
new data.
planner interrupts all other tasks, it executes first.
For more information on event tasks, see:
• Logix5000 Controllers Common Procedures Programming Manual,
publication 1756-PM001
• Using Event Tasks with Logix5000 Controllers,
publication LOGIX-WP003
Guidelines to Configure an Event Task
GuidelineDescription
Place the I/O module being used to trigger an event in the
same chassis as the controller.
Limit events on digital inputs to one input bit on a module.All inputs on a module trigger one event, so if you use multiple bits you increase the chance of a task overlap. Configure
Set the priority of the event task as the highest priority on
the controller.
Limit the number of event tasks.Increasing the number of event tasks reduces the available CPU bandwidth and increases the chances of task overlap.
Placing the I/O module in a remote chassis adds more network communication and processing to the response time.
the module to detect change of state on the trigger input and turn off the other bits.
If the priority of the event task is lower than a periodic task, the event task has to wait for the periodic task to com plete
execution .
Additional Considerations for Periodic and Event Tasks
ConsiderationDescription
Amount of code in the event taskEach logic element (for example, rung, instruction, or structured text construct) adds to scan time.
Task priorityIf the event task is not the highest priority task, a higher priority task can delay or interrupt the execution of the event task.
CPS and UID instructionsIf one of these instructions are active, the event task cannot interrupt the currently executing task. (The task with the CPS or UID.)
Communication interruptsIncoming character processing through the serial port interrupts a task, regardless of the priority of the task.
Motion plannerThe motion planner takes precedence over event or periodic tasks
TrendsTrend data collection takes precedence over event or periodic tasks.
Output processingYou can disable output processing at the end of a task to reduce the amount of task processing time. As of RSLogix 5000 software, version 16,
the Controller Organizer displays whether outputs processing is disabled.
30Rockwell Automation Publication 1756-RM094I-EN-P - September 2015
Loading...
+ 104 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.