RA Foundations - Studio 5000 and Logix
RA Foundations - Studio 5000 and Logix
Class Format
Introduction – Part 1
ROCKWELL AUTOMATION | FOUNDATIONS
Application Code
Manager
Architect
View
Designer
Logix
Designer
Controller Portfolio
Micro Control Platform Standard Machines Complex Machines & Process Process Safety
Micro800™ Controller CompactLogix™ Controller ControlLogix Controller
®
AADvance® /Trusted®
CompactLogix™ Controllers
CompactLogix™ 5370
• Integrated Motion on EtherNet/IP up to 16 axes
• Linear and Device Level Ring network topologies for up to 48 nodes
• Integrated safety up to SIL 3, PLe CAT 4 versions
• On-Machine™ version
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
• 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 Ring topologies up to 250
nodes
• Provides a Logix based real-time controller that runs in parallel to an instance of
Windows 10 IoT Enterprise
• Enhanced security features PUBLIC | Copyright ©2019 Rockwell Automation, Inc. | 7
ROCKWELL AUTOMATION | FOUNDATIONS
ControlLogix® Controllers
ControlLogix® 5570
• Integrated motion on EtherNet/IP up to 100 axes
• Integrated safety up to SIL 3, PLe CAT 4 versions
• On-Machine™ versions
• Conformal coat and extreme environment versions
• Redundancy and removal insertion under power
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
• Removal insertion under power
• Enhanced security features
Controller
Controller owns
owns Stratix
Stratix®® config
config and
and
everything
everything diagnostics
diagnostics
Standard
Standard
Ethernet
Ethernet via
via
EtherNet/IP
EtherNet/IP
Safety
Safety I/O
I/O
Motion
Motion and
and
safety
safety control
control
Lab Format
10 short labs
Each has a presentation
Each is independent (more or less) from the others
Agenda
New Project
New Project Download
Download
I/O
I/O UDTs
UDTs
Tags
Tags AOIs
AOIs
Programming
Programming STX and
STX and FBD
FBD
Tasks and
Tasks and Programs
Programs Logical Org
Logical Org // Trends
Trends
New Project
Logix
Logix
Controller Selection Designer
Designer
Project Window
“ACD”
“ACD” file
file
New Project
Controller Selection
Project Window
Revision
Revision
Controller organizer
Chassis
Chassis size
size
Instruction Toolbar
Slot
Slot
Controller Faceplate
New Project
Instruction
Instruction palette
palette 250+
250+
Controller Selection predefined
predefined instructions
instructions
Project Window
Controller
Controller faceplate
faceplate
Controller organizer
Instruction Toolbar
Controller
Controller organizer
organizer
Controller Faceplate
Programming
Programming area
area
Quick
Quick view
view
New Project
Descriptive
Descriptive tags
tags
Controller Selection
Integrated
Integrated safety
safety
Project Window
Instruction Toolbar
Integrated
Integrated alarming
alarming
Controller Faceplate
Definitions
Definitions
I/O
I/O
New Project
Instructions
Instructions
Controller Selection
Instruction
Instruction toolbar
toolbar
Instruction
Instruction groups
groups
Project Window
Controller organizer
Instruction Toolbar
Controller Faceplate
Drag
Drag and
and drop
drop
instructions
instructions
PUBLIC | Copyright ©2019 Rockwell Automation, Inc. | 16
ROCKWELL AUTOMATION | FOUNDATIONS
New Project
Controller Selection
Project Window
Online/offline
Online/offline Online
Online program
program edits
edits
Controller organizer
Instruction Toolbar
Controller Faceplate
Controller
Controller status
status
Controller
Controller properties
properties
PUBLIC | Copyright ©2019 Rockwell Automation, Inc. | 17
ROCKWELL AUTOMATION | FOUNDATIONS
New Project
New Project
Discussion
Questions?
Agenda
New Project
New Project Download
Download
I/O
I/O UDTs
UDTs
Tags
Tags AOIs
AOIs
Programming
Programming Structured Text
Structured Text
Tasks and
Tasks and Programs
Programs Logical Org
Logical Org // Trends
Trends
I/O Properties
I/O
Some I/O families
Modules and Devices
I/O
Local
LocalI/O
Local I/O
I/O
I/O Profile Properties
Ethernet
Ethernet adapter
adapter
(node)
(node)
Remote
Remote I/O
I/O
Controller
Controller organizer
organizer
I/O
Modules and Devices Objects in the I/O tree are called “Profiles”
Right-click
Right-click
Adding I/O Profiles
to
to add
add profile
profile
Each
Each remote
remote rack
rack or
or
device
device is
is aa node
node
(5580
(5580 and
and 5380)
5380)
Module
Module discovery
discovery when
when
online
online
I/O
Search
Search by
by part
part number
number
Modules and Devices
Manufacturer
Manufacturer filter
filter
List
List of
of available
available
modules
modules
Do
Do we
we want
want to
to add
add
more
more modules?
modules?
I/O
Revision
Revision info
info
Keying
Keying
Data
Data format
format
I/O
Three choices for keying
Modules and Devices
• Exact Match
• Catalog and revision must exactly match
I/O Configuration folder
• Regulated Industries
Adding I/O Profiles • Compatible Module
• Module will determine if it can support features
I/O Profile Properties • This is recommended setting
• Disable Keying
• Always try to connect regardless of match.
• Only use if manufacturer advices
I/O
Information/
Information/
config
config area
area
I/O
I/O
Discussion
Questions?
Agenda
New Project
New Project Download
Download
I/O
I/O UDTs
UDTs
Tags
Tags AOIs
AOIs
Programming
Programming Structured Text
Structured Text
Tasks and
Tasks and Programs
Programs Logical Org
Logical Org // Trends
Trends
Tags
Viewing Tags Tag
Tag list
list
Scope
Scope selection
selection
Adding Tags
Alias Tags
Program
Program scope
scope tags
tags
Tags
Only
Only I/O
I/O tags
tags have
have colons
colons
Viewing Tags Controller
Controller scope
scope in
in the
the tag
tag name
name
I/O Tags
Adding Tags
Alias Tags
Remote
Remote modules
modules begin
begin with
with
the
the adapter
adapter name
name
Local
Local modules
modules begin
begin with
with
“Local”
“Local”
Tags
Viewing Tags
Available Data Types
Atomic types - BOOL, SINT, INT, DINT, REAL, STRING
I/O Tags Structures - Timer, counter, message, UDT and more
Adding Tags
Alias Tags
Tags
Viewing Tags
Arrays
Data
Data type
type
I/O Tags Array
Array index
index [xxx]
[xxx]
Adding Tags
Alias Tags
Tags
Viewing Tags
I/O Tags
Adding Tags
Alias Tags
Tag
Tag data
data type
type
Select
Select edit
edit tags
tags Scroll
Scroll to
to bottom
bottom
New
New tag
tag tab
tab
(blank
(blank line)
line)
Tags
Viewing Tags
Controller-scoped tags
Accessible by any program (global in scope)
I/O Tags I/O module tags
Adding Tags
Produce and consume tags
Tags
Viewing Tags
Program-scoped tags
Local in nature
I/O Tags Local tag names can be reused
Adding Tags Makes code more modular
Alias Tags
Only
Only the
the routines
routines of
of the
the same
same
program
program can
can access
access local
local tags
tags
Tags
Viewing Tags
I/O Tags
Adding Tags
Alias Tags
Alias
Alias tag
tag Aliased
Aliased to?
to? Alias
Alias of
of an
an Alias?
Alias?
Tags
Lab 3 - Tags
A few minutes
Tags
Discussion
Questions?
Agenda
New Project
New Project Download
Download
I/O
I/O UDTs
UDTs
Tags
Tags AOIs
AOIs
Programming
Programming Structured Text
Structured Text
Tasks and
Tasks and Programs
Programs Logical Org
Logical Org // Trends
Trends
Programming
Routines
Ladder
Task
Task folder
folder
Structured Text
Function Blocks
Task
Task
SFC Code
Code is
is
stored
stored in
in
routines
routines
Program
Program
Program
Program tags
tags
Programming
Routines
Ladder
Rungs
Rungs
Structured Text (of
(of aa ladder)
ladder)
Function Blocks
SFC
Input
Input Instructions
Instructions
on
on left
left of
of rung
rung Output
Output instructions
instructions
on
on right
right of
of rung
rung
Programming
Routines
Ladder
Structured Text
Function Blocks
SFC
Similar
Similar to
to Pascal
Pascal
(C
(C or
or Java
Java like)
like)
Typically
Typically one
one instruction
instruction
per
per line
line
Conditional
Conditional sections
sections
PUBLIC | Copyright ©2019 Rockwell Automation, Inc. | 45
ROCKWELL AUTOMATION | FOUNDATIONS
Programming
Routines
Multiple
Multiple sheets
sheets
Ladder
Structured Text
Function Blocks
SFC
Wire
Wire connector
connector
Function
Function block
block
Pins
Pins
Programming
Routines
Ladder
Function Blocks
SFC
Steps
Steps
Transitions
Transitions
Programming
Routines
• Note: There are different flavors of Logix Designer
Ladder • Not all version offer STX, FBD, SFC
Structured Text • Professional Edition has all languages
• This is what we will be using
Function Blocks
SFC
Programming
Programming
Discussion
Questions? Comments?
Agenda
New Project
New Project Download
Download
I/O
I/O UDTs
UDTs
Tags
Tags AOIs
AOIs
Programming
Programming Structured Text
Structured Text
Tasks and
Tasks and Programs
Programs Logical Org
Logical Org // Trends
Trends
Periodic
• Should use tasks to run code only when necessary
Event
Programs
Periodic
Continuous
Continuous task
task
configuration
configuration
Event
Programs
Periodic
Event
Programs
Period
Period
Priority
Priority
Periodic
Event
Programs Configurable
Configurable
event
event
Optional
Optional execution
execution
Priority
Priority
Event Programs
Programs hold
hold
routines
routines
Programs
Main
Main routine
routine is
is
defined
defined under
under
program
program properties
properties
and
and has
has aa “1”
“1” for
for 1st
1st
Programs
Periodic
Event
Programs
Multiple
Multiple routines
routines
Lab 5
3 minutes
Questions?
Agenda
New Project
New Project Download
Download
I/O
I/O UDTs
UDTs
Tags
Tags AOIs
AOIs
Programming
Programming Structured Text
Structured Text
Tasks and
Tasks and Programs
Programs Logical Org
Logical Org // Trends
Trends
Download
Download / Upload
Terms - Download
RSLinx®
Mode
AA download
download compiles
compiles
Run the
the ACD
ACD file
file and
and loads
loads itit
into
into the
the controller
controller
Download
Download / Upload
Terms - Upload
RSLinx®
Mode An
An upload
upload reads
reads the
the
controller
controller memory
memory and
and
Run reconstructs
reconstructs the
the ACD
ACD file
file
Download
Download / Upload
RSLinx®
RSLinx®
Mode
Run
We
We will
will be
be using
using the
the
EtherNet/IP
EtherNet/IP driver
driver
RSLinx
RSLinx®® has
has aa selection
selection
of
of available
available drivers
drivers
Download
Download / Upload
Who Active
RSLinx® uses RSLinx®
Mode
Run
Who
Who active
active screen,
screen,
browses
browses network
network
Download
Download / Upload
Key switch position
RSLinx®
Program
Mode
Remote
Key
Key switch
switch
Run Run position
position
Download
Download / Upload
Remote position
RSLinx®
Run/Program controlled by
Mode software
Run
Use
Use drop
drop down
down to
to
change
change mode
mode
Download
Download / Upload
Faceplate
Faceplate and
and controller
controller
RSLinx® LED
LED show
show run
run
Mode
Green
Green power
power rails
rails
Run
Buttons
Buttons and
and
instructions
instructions reflect
reflect
live
live state
state
Download
Download / Upload Online edits
RSLinx®
Except if key switch is in “Run”
Mode
Run
Download
Download
Discussion
Questions?
Agenda
New Project
New Project Download
Download
I/O
I/O UDTs
UDTs
Tags
Tags AOIs
AOIs
Programming
Programming Structured Text
Structured Text
Tasks and
Tasks and Programs
Programs Logical Org
Logical Org // Trends
Trends
Access
Weight
Weight is
is 22 Kilos
Kilos
Basic
Basic model
model
17
17 inches
inches rims
rims
Access
UDT
Create a UDT type with desired members
Define Good practice - Use descriptions
Tag
Array
Access
UDT
Define
Once a UDT is defined, a tag can be
created with this type
Tag
Array
Access
UDT
Array
Access
UDT
• A UDT can be used as array
• A UDT can contain arrays or other UDTs
Define
Tag
Array
Access
UDT
Tags appear in instructions just like they do in the tag list
Define
Car1_Data.Weight
Car1_Data.Weight isis the
the
Tag
same
same in
in tags
tags as
as in
in
instructions
instructions
Array
Access
Lab 7 – UDT
A few minutes
UDT Discussion
Questions?
Agenda
New Project
New Project Download
Download
I/O
I/O UDTs
UDTs
Tags
Tags AOIs
AOIs
Programming
Programming Structured Text
Structured Text
Tasks and
Tasks and Programs
Programs Logical Org
Logical Org // Trends
Trends
Code
Instantiation
Samples
Routine
Parameters and Tags
• Modular program design
Parameters
Code • Well-defined interface InOut
• Well-defined function
Instantiation • Defined once
• Used many
Samples
• Should have a clearly defined purpose
• Not editable online
• Needs to be testable and manageable with a reasonable amount of code
• Single routine
Add-On Instruction
When creating or changing an AOI
Concepts and Guidelines
Give it a name, rev, and who created it.
Parameters and Tags
Code
Name
Name
Instantiation
Samples
Revision
Revision
Vendor
Vendor
Add-On Instruction
Code
Instantiation
Samples
Output
Output
(Updates
(Updates data
data when
when done)
done)
InOut
InOut
(Direct
(Direct tag
tag memory
memory reference)
reference)
Add-On Instruction
Local Tags
Concepts and Guidelines
Local to the AOI
Parameters and Tags Not accessible by outside ladder
Code
Instantiation
Samples
Local
Local tag
tag list
list
Add-On Instruction
Code
Written
Written Used
Used in
in any
any
Instantiation
in
in any
any language
language
language
language
Samples
Add-On Instruction
Unique
Unique backing
backing tag
tag
Code Unique
Unique backing
backing tag
tag
Instantiation
Samples
Add-On Instruction
Concepts and Guidelines
Code
Instantiation
Samples
Add-On Instruction
Concepts and Guidelines
PlantPax objects
Parameters and Tags Source of AOIs and Faceplates for:
Code
Device control (like valves)
Hart modules
Instantiation
Process instructions
Samples
Add-On Instruction
Lab 8 – AOI
A few minutes
AOI Discussion
• Questions? Comments?
Agenda
New Project
New Project Download
Download
I/O
I/O UDTs
UDTs
Tags
Tags AOIs
AOIs
Programming
Programming Structured Text
Structured Text and
and FBD
FBD
Tasks and
Tasks and Programs
Programs Logical Org
Logical Org // Trends
Trends
Structured Text
Similar to C or Java
STX - Text based
STX – V31
Structured Text
STX - Text based • IF. . . THEN
• Do something if or when specific conditions occur
STX - Conditionals / Loops
• CASE. . . OF
STX – V31 • Select what to do based on a numerical value
• FOR. . . DO
FBD – Block based • Do something a specific number of times before doing anything
else
Adding Function Blocks
• WHILE. . . DO
• Keep doing something as long as certain conditions are true
• REPEAT. . . UNTIL
• Keep doing something until a condition is true
Structured Text
V31 or later
STX - Text based
Displayed values
STX - Conditionals / Loops Numbered lines
Look ahead when typing
STX – V31
Structured Text
STX - Text based Example logic
Structured Text
Right-click to add instructions or drag and drop from
STX - Text based instruction bar
Drag and drop between pins on the blocks
STX - Conditionals / Loops
Can have multiple sheets
STX – V31
Structured Text
A few minutes
• Questions? Comments?
Agenda
New Project
New Project Download
Download
I/O
I/O UDTs
UDTs
Tags
Tags AOIs
AOIs
Programming
Programming Structured Text
Structured Text and
and FBD
FBD
Tasks and
Tasks and Programs
Programs Logical Org
Logical Org // Trends
Trends
Logically
Organized
Programs Span
the Tasks
Add to Library
This includes
Dependencies
(UDT, AOI’s)
Trends
Trends graph data
Trends
Part of project file
Running Trend
Atomic data types
Adding a trend
Samples as fast as 1ms for fast applications
Properties
Tag
Tag list
list
Configurable
Configurable graph
graph
Trends
Trends
Run/stop
Run/stop
Running Trend
Adding a trend
Properties
Scroll
Scroll buttons
buttons
Trends
Trends
Many trends can be created
Running Trend Unique name
Sample period
Adding a trend
Properties New
New
Trends
Adding a trend
Properties
Trends
Adding a trend
Properties
Multiple
Multiple tags
tags
Start Stop triggers
Trends
Adding a trend
Properties
Condition
Condition
Extra
Extra samples
samples
Trends
Trends
Example
Start
Start trigger
trigger Stop
Stop trigger
trigger
Running Trend
Adding a trend
Properties
Trends
A few minutes
Questions?
Introduction – Part 2
ROCKWELL AUTOMATION | FOUNDATIONS
Lab Objectives
Agenda
1 2 3 4
Project Design Studio 5000® V32 Release Notable Mentions
New Look Update
5
Lab Format
Project Design
ROCKWELL AUTOMATION | FOUNDATIONS
Subroutines
New Look
ROCKWELL AUTOMATION | FOUNDATIONS
Version 31 and up
• Common look and feel across all Studio
5000® applications
• Modernization of programming language
editors
• Improved workflows for multi-monitors,
tabbed views, quick navigation
• Clearly convey state and identification of
errors
ROCKWELL AUTOMATION | FOUNDATIONS
Multi-Monitor Support
Organize your view the way you like in a productive manner
Multi-Monitor Support
Organize your view the way you like in a productive manner
Multi-Monitor Support
Organize your view the way you like in a productive manner
FBD Functions
New functions to replace existing instructions
Faster troubleshooting with simpler user interface
Drag and drop functions available without
additional configuration
Increased function performance leads to lower
controller utilizations
New functions to replace existing instructions
Smaller visual footprint
No backing tag
More intuitive symbol-based functions
Compare/Compute/Boolean Logic Instructions
Available for 5380/5480/5580 Logix Controllers
Benefits
Notable Mentions
ROCKWELL AUTOMATION | FOUNDATIONS
Quick Watch
Quickly Monitor Tag Values
Productivity Enhancements
Version 32 Updates
Lab Format
ROCKWELL AUTOMATION | FOUNDATIONS
Format Allows You to Run in Any Order and Select the Labs
That Are Relevant to You
Advanced Labs
These labs focus on recent features
Advanced Labs
These labs focus on existing Studio 5000 features