L12 - Studio 5000 and Studio 5000 Logix Designer: Basics Lab
L12 - Studio 5000 and Studio 5000 Logix Designer: Basics Lab
PUBLIC
Architect
View Designer
Logix
Designer
Intuitive, integrated design and configuration suite with multiple Plugin components
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 4
Controller Portfolio
Micro Control Platform Standard Machines Complex Machines & Process Process Safety
Micro800™ Controller CompactLogix™ Controller ControlLogix® Controller AADvance® /Trusted®
• Low acquisition cost • Scalable redundancy for
• Easy connectivity • Multiple control disciplines fault tolerance
• Simple programming tools • Flexible and scalable • Provides safety and
• Ideal for standalone machines • Real time information-enabled availability requirements
• Standard, unmodified Ethernet • Distributed processing power
• One common integrated design environment
• Local and distributed I/O options
CompactLogix™ 5380
• Integrated Motion on EtherNet/IP up to 32 axes
• Two Ethernet ports for dual IP or support for linear and Device Level Ring
topologies for up to 80 nodes
Flexible and
scalable
• Enables high-speed I/O, motion control
• Enhanced security features
CompactLogix™ 5480
• Enables high-speed I/O, and Integrated Motion on EtherNet/IP up to 150 axes
• Includes three GbE EtherNet/IP ports supporting both linear or Device Level One common
Ring topologies up to 250 nodes design environment
• Provides a Logix based real time controller that runs in parallel to an instance of
Windows 10 IoT Enterprise
• Enhanced security features
Flexible and
scalable
ControlLogix® 5580
• Integrated Motion on EtherNet/IP up to 256 axes
• 1 gigabit (Gb) embedded Ethernet port enables high-speed
I/O and motion control for up to 300 nodes
• Conformal coat versions
One common
• Removal insertion under power design environment
• Enhanced security features
Safety I/O
Questions?
Tags UDTs
I/O AOIs
Controller organizer
Memory sizes
“ACD” file
Project Window
Revision
Controller organizer
Chassis Size
Instruction Toolbar
Slot
Controller Faceplate
Instruction Toolbar
Controller Organizer
Controller Faceplate
Programming Area
Quick View
Controller Faceplate
Integrated Alarming
Definitions
I/O
Controller organizer
Instruction Toolbar
Controller Faceplate
Project Window
Instruction Toolbar
Controller Faceplate
Controller Status
Controller Properties
Questions?
I/O UDTs
Tags AOIs
I/O Properties
Local I/O
I/O Profile Properties
Ethernet Adapter
(Node)
Remote I/O
Controller Organizer
Right click
Adding I/O Profiles
to add profile
Module Discovery
when online
List of available
modules
Do we want to add
more modules?
Revision info
Keying
Data format
Multiple tabs
Information/config
area
What is keying?
Questions?
I/O UDTs
Tags AOIs
Adding Tags
Alias Tags
I/O Tags
Adding Tags
Alias Tags
Alias Tags
• Structures
• Examples
Timer, Counter, Message, UDT
Adding Tags
Alias Tags
I/O Tags
Adding Tags
Alias Tags
Alias Tags
Any program in the
controller can access
these tags
Alias Tags
I/O Tags
Adding Tags
Alias Tags
Lab 3 - Tags
2 minutes
Questions?
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 43
Agenda
New Project Download
I/O UDTs
Tags AOIs
Ladder
Task Folder
Structured Text
Function Blocks
Task
SFC Code is
stored in
routines
Program
Program tags
Ladder
Rungs
(of a ladder)
Structured Text
Function Blocks
SFC
Input Instructions
on left of rung Output instructions
on right of rung
Ladder
Structured Text
Function Blocks
SFC
Similar to Pascal
( C or Java like)
Conditional sections
Structured Text
Function Blocks
SFC
Wire connector
Function Block
Pins
Ladder
Structured Text
Actions (in STX)
Function Blocks
SFC
Steps
Transitions
Ladder
• Note: There are different flavors of Logix Designer
Structured Text
• Not all version offer STX, FBD, SFC
Function Blocks • Professional Edition has all languages
SFC • This is what we will be using
Questions?
I/O UDTs
Tags AOIs
Programs
Event
Programs
Period
Priority
Event
Programs Configurable
Event
Optional Execution
Priority
Main routine is
defined under
program properties
and has a “1” for 1st
Event • System
Programs
Event
Programs
Multiple routines
Lab 5
2 minutes
Questions?
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 64
Agenda
New Project Download
I/O UDTs
Tags AOIs
Mode
A download compiles
the ACD file and loads it
Run
into the controller
Mode
Run
RSLinx® has a
selection of available
drivers
Run
Mode
Green power rails
Run
Buttons and
instructions reflect
live state
Run
Questions?
Programming UDTs
Tags AOIs
Access
Weight is 2 Kilos
Basic model
17 inch rims
Access
Array
Access
Array
Access
Array
Access
Array
Access
Access
Lab 7 – UDT
2 minutes
Questions?
Programming UDTs
Tags AOIs
Code
Instantiation
Samples
Define
State the Develop Solve Test
Input &
Problem Algorithm Problem Solution
Outputs
Proper planning can save time and money in the long run!
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 90
Add-On Instruction
Concepts and Guidelines AOI
• Modular program design Local Tags
Parameters and Tags
• Well defined interface INPUT Code OUTPUT
Code Routine
• Well defined function
Parameters
Instantiation
• Defined once InOut
Samples
• Used many
• Should have a clearly defined purpose
Routine
Parameters
InOut
Code
Instantiation Name
Samples
Revision
Vendor
Code
Instantiation
Samples
Output
(Updates data when done)
InOut
(Direct tag memory reference)
Instantiation
Samples
Code
Used in any
Instantiation
language
Written
Samples in any
language
Code
Unique backing tag
Unique backing tag
Instantiation
Samples
Code
Instantiation
Samples
Lab 8 – AOI
2 minutes
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 100
AOI Discussion
• Why use an AOI?
• Questions? Comments?
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 101
AOI Discussion
• Why use an AOI?
• Encapsulate common code and well defined function
that can easily be reused with a single instruction
• What are the parts of an AOI?
• Input, output, and local tags, with one routine
• Questions? Comments?
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 102
Agenda
New Project Download
Programming UDTs
Tags AOIs
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 103
A Logical View of the System
VFFS
VFFS Infeed Filling
Infeed
Forming
Filling Forming
Sealing
Sealing
Mixer
Addition Addition
Agitate Mixer
Agitate
Pressure Ctrl
Pressure Ctrl
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 104
Why Add A Logical Organizer?
• To create an organizational model of the system from the
user’s perspective.
• Helps facilitate good modular automation design practices.
• Paradigm shift from how the “controller executes code” to how
the “user views the system”.
Logically
Organized
Programs Span
the Tasks
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 105
System Organizer Logical View
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 106
Library .ACD Deployment
Add to Library
This includes
Dependencies
(UDT, AOI’s)
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 107
Library Options
Using XML Code
Import/Export
Library Management Tools
Right Click
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 108
Logical Organizer
1 minute
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 109
Logical Organizer Discussion
• Why use the Logical Organizer?
• Questions? Comments?
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 110
Logical Organizer Discussion
• Why use the Logical Organizer?
• Group related code and for Library functions.
• Does rearranging the Logical Organizer affect the Controller Organizer?
• No!
• Questions? Comments?
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 111
Agenda
New Project Download
Programming UDTs
Tags AOIs
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 112
Trends
Trends • Trends graph data
Running Trend • Part of project file
Adding a trend • Atomic Data types
Properties • Samples as fast as 1ms for fast applications
Tag list
Configurable Graph
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 113
Trends
Trends
Run/Stop
Running Trend
Adding a trend
Properties
Scroll Buttons
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 114
Trends
Trends
• Many trends can be created
Running Trend
• Unique name
Adding a trend • Sample period
Properties New
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 115
Trends
Trends • Display properties
Running Trend
Adding a trend
Properties
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 116
Trends
Trends • Display properties
Running Trend
Adding a trend
Properties
Can have
multiple tags
Start Stop triggers
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 117
Trends
Trends • Config - Start and Stop Triggers
Running Trend
Adding a trend
Properties
Condition
Extra Samples
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 118
Trends
Trends • Example
Start Trigger Stop Trigger
Running Trend
Adding a trend
Properties
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 119
Trends
Lab 10 – Trends
4 minutes
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 120
Trends Discussion
How fast can a trend sample?
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 121
Trends Discussion
How fast can a trend sample?
1 Millisecond
Can there be more than one tag?
Yes!
Questions?
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 122
Modular Features
• Modular Program Design
• Add-On Instructions (AOIs)
• User-Defined Types (UDTs)
• Program Parameters
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 123
Modular Features
• Code and Machine Management
• Import/Export
• Drag and Drop Environment
• Library management
• Logical Organizer
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 124
Questions ?
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 125
Thank You!
PUBLIC
www.rockwellautomation.com
Lab 1
2 minutes
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 127
Timer Template
Lab 1
5 minutes
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 128