Sie sind auf Seite 1von 128

L12 - Studio 5000® and Studio 5000 Logix

Designer®: Basics Lab


Introducing the Studio 5000 Logix Designer® Environment

PUBLIC

Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 1


Introduction

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 2


Studio 5000 Logix Designer®
V20 and back V21….and forward

RSLogix 5000® Studio 5000


Logix Designer®

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 3


Studio 5000® Components

Application Code Manager

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

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 5


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
Multiple
• On-Machine™ version
disciplines

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

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 6


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 Multiple
disciplines
• Conformal coat and extreme environment versions
• Redundancy and removal insertion under power

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

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 7


Integrated Motion, Safety and Drive Control
Stratix® config
Controller owns
everything
and
diagnostics
Standard
Ethernet via
EtherNet/IP

Safety I/O

Motion & Safety


control

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 8


Lab Format
 There will be 10 sections. For each section there will be a
 Presentation
 Lab
 Discussion

 Each lab is more or less independent

 Questions?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 9


Agenda
New Project Download

Tags UDTs

I/O AOIs

Programming Logical Organizer

Tasks and Programs Trends

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 10


New Project
Controller Selection
Logix
Project Window Designer

Controller organizer

Instruction Toolbar CompactLogix™


& ControlLogix®
Controller Faceplate

Memory sizes

“ACD” file

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 11


New Project
Controller Selection

Project Window
Revision
Controller organizer
Chassis Size
Instruction Toolbar
Slot

Controller Faceplate

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 12


New Project
Controller Selection
Instruction Palette 250+
predefined instructions
Project Window

Controller organizer Controller Faceplate

Instruction Toolbar
Controller Organizer
Controller Faceplate

Programming Area

Quick View

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 13


New Project
Controller Selection
Descriptive Tags
Project Window
Integrated safety
Controller organizer

Instruction Toolbar Integrated motion

Controller Faceplate
Integrated Alarming

Definitions

I/O

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 14


New Project
Instructions
Controller Selection
Instruction Toolbar
Instruction Groups
Project Window

Controller organizer

Instruction Toolbar

Controller Faceplate

Drag and Drop


Instructions

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 15


New Project
Controller Selection

Project Window

Online/Offline Online Program Edits


Controller organizer

Instruction Toolbar

Controller Faceplate

Controller Status

Controller Properties

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 16


New Project

 Lab 1 – Creating a project


 2 minutes

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 17


New Project
Discussion

 What are some controller types supported by the software?

 What is the main area in a project?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 18


New Project
Discussion

 What are some controller types supported by the software?


 ControlLogix®, GuardLogix®, CompactLogix™, Compact GuardLogix®
 What is the main area in a project?
 Controller Organizer

 Questions?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 19


Agenda
New Project Download

I/O UDTs

Tags AOIs

Programming Logical Organizer

Tasks and Programs Trends

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 20


I/O
Modules and Devices  A controller can handle many (different) devices
I/O Configuration folder

Adding I/O Profiles

I/O Properties

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 21


I/O
Modules and Devices  Some I/O families
I/O Configuration folder

Adding I/O Profiles

I/O Profile Properties

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 22


I/O
Modules and Devices

I/O Configuration folder

Adding I/O Profiles

Local I/O
I/O Profile Properties

Ethernet Adapter
(Node)

Remote I/O

Controller Organizer

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 23


I/O
Modules and Devices  Objects in the I/O tree are called “Profiles”
I/O Configuration folder

Right click
Adding I/O Profiles
to add profile

I/O Profile Properties

Each remote rack or


device is a node
(5580 and 5380)

Module Discovery
when online

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 24


I/O
Search by part number
Modules and Devices
Manufacturer filter

I/O Configuration folder


I/O Type filter
Adding I/O Profiles

I/O Profile Properties

List of available
modules

Do we want to add
more modules?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 25


I/O
Modules and Devices
Slot number
I/O Configuration folder
Catalog number
Adding I/O Profiles
Module Name
I/O Profile Properties

Revision info

Keying

Data format

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 26


I/O
Modules and Devices
Three Choices for Keying
• Exact Match
I/O Configuration folder
• Catalog and Revision must exactly match
Adding I/O Profiles • Regulated Industries
I/O Profile Properties • Compatible Module
• Module will determine if it can support features
• This is recommended setting
• Disable Keying
• Always try to connect regardless of match.
• Only use if manufacturer advises.

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 27


I/O
Modules and Devices

I/O Configuration folder


Configuration Other Options
Adding I/O
Module Info
I/O Profile Properties

Multiple tabs

Information/config
area

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 28


I/O

 Lab 2 – Adding I/O


 2 minutes

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 29


I/O
Discussion

 Where is I/O located in a project?

 What is keying?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 30


I/O
Discussion

 Where is I/O located in a project?


 I/O Configuration folder
 What is keying?
 Determines if a module is compatible with profile

 Questions?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 31


Agenda
New Project Download

I/O UDTs

Tags AOIs

Programming Logical Organizer

Tasks and Programs Trends

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 32


Tags
Viewing Tags Tag List
Scope Selection

I/O Tags Tag window


Controller Scope Tags

Adding Tags

Controller vs Program Scope

Alias Tags

Program Scope Tags

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 33


Tags
Only I/O Tags have colons
Viewing Tags Controller Scope in the tag name

I/O Tags

Adding Tags

Controller vs Program Scope

Alias Tags

Remote modules begin with


the adapter name

Local modules begin with


“Local”

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 34


Tags
Viewing Tags • Data Types
I/O Tags • Determines what kind of data the tag hold
Adding Tags • Atomic types
Controller vs Program Scope
• BOOL, SINT, INT, DINT, REAL, STRING

Alias Tags
• Structures
• Examples
Timer, Counter, Message, UDT

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 35


Tags
Viewing Tags • Arrays
Data type
I/O Tags Array index TYPE[xxx]

Adding Tags

Controller vs Program Scope

Alias Tags

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 36


Tags
Viewing Tags

I/O Tags

Adding Tags

Controller vs Program Scope

Alias Tags

Tag Data Type


Select Edit Tags Scroll to Bottom
New Tag Tab
(Blank Line)

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 37


Tags
Viewing Tags • Controller scoped tags
I/O Tags • Accessible by any program (Global in scope)
Adding Tags • I/O module tags
Controller vs Program Scope • Produce & Consume tags

Alias Tags
Any program in the
controller can access
these tags

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 38


Tags
Viewing Tags • Program scoped tags
I/O Tags • Local in nature
Adding Tags • Local tag names can be reused
Controller vs Program Scope • Makes code more modular

Alias Tags

Only the routines of the same


program can access local tags

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 39


Tags
Viewing Tags

I/O Tags

Adding Tags

Controller vs Program Scope

Alias Tags

Alias tag Aliased to? Alias of an Alias?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 40


Tags

 Lab 3 - Tags
 2 minutes

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 41


Tags
Discussion

 Where are I/O tags located?

 What are alias tags?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 42


Tags
Discussion

 Where are I/O tags located?


 Controller scope
 What are alias tags?
 Alias tags are an alternate name for another tag to allow a more
relevant name, such as for an I/O point or an array member

 Questions?
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 43
Agenda
New Project Download

I/O UDTs

Tags AOIs

Programming Logical Organizer

Tasks and Programs Trends

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 44


Programming
Routines

Ladder
Task Folder
Structured Text

Function Blocks
Task
SFC Code is
stored in
routines
Program

Program tags

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 45


Programming
Routines

Ladder
Rungs
(of a ladder)
Structured Text

Function Blocks

SFC

Input Instructions
on left of rung Output instructions
on right of rung

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 46


Programming
Routines

Ladder

Structured Text

Function Blocks

SFC

Similar to Pascal
( C or Java like)

Typically one instruction


per line

Conditional sections

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 47


Programming
Routines
Multiple Sheets
Ladder

Structured Text

Function Blocks

SFC
Wire connector
Function Block

Pins

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 48


Programming
Routines

Ladder

Structured Text
Actions (in STX)
Function Blocks

SFC

Steps
Transitions

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 49


Programming
Routines

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

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 50


Programming

 Lab 4 – Adding Logic


 2 minutes

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 51


Programming
Discussion

 What are some of the available languages?

 What object holds code?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 52


Programming
Discussion

 What are some of the available languages?


 Ladder, FBD, STX, SFC
 What object holds code?
 Routines

 Questions?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 53


Agenda
New Project Download

I/O UDTs

Tags AOIs

Programming Logical Organizer

Tasks and Programs Trends

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 54


Tasks and Programs
Tasks
• Three types of tasks
Continous
• Tasks control when code runs
Periodic • Should use tasks to run code only when
Event
necessary
Programs

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 55


Tasks and Programs
Tasks
• Continuous task
Continuous
• Runs in free time
Periodic
Continuous task
Configuration
Event

Programs

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 56


Tasks and Programs
Tasks
• Periodic task
Continuous
• Runs per defined period
Periodic

Event

Programs

Period

Priority

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 57


Tasks and Programs
Tasks • Event task
Continuous • Runs per defined Event
Periodic

Event

Programs Configurable
Event

Optional Execution

Priority

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 58


Tasks and Programs
Tasks
Tasks hold programs.
Continuous All programs execute
when task does
Periodic

Event Programs hold


routines
Programs

Main routine is
defined under
program properties
and has a “1” for 1st

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 59


Tasks and Programs
Tasks • Programs should be used to modularize code parts of a:
Continous • Machine
Periodic • Process Multiple programs

Event • System
Programs

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 60


Tasks and Programs
Tasks • Routines can then be used to further modularize code for
Continous sub parts of a machine, etc.
Periodic

Event

Programs

Multiple routines

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 61


Tasks and Programs

 Lab 5
 2 minutes

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 62


Tasks and Programs
Discussion

 What types of tasks are available?

 What are programs?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 63


Tasks and Programs
Discussion

 What types of tasks are available?


 Continuous, Periodic, Event
 What are programs?
 Programs hold routines, have a defined main routine, and are
assigned to tasks

 Questions?
PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 64
Agenda
New Project Download

I/O UDTs

Tags AOIs

Programming Logical Organizer

Tasks and Programs Trends

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 65


Download
Download
 Terms - Download
Upload

Mode
A download compiles
the ACD file and loads it
Run
into the controller

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 66


Download
Download
 Terms - Upload
Upload

Mode An upload reads the


controller memory and
reconstructs the ACD file
Run

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 67


Download
Download
 RSLinx®
Who Active

Mode

Run

We will be using the


EtherNet/IP driver

RSLinx® has a
selection of available
drivers

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 68


Download
Download
 Who Active
Who Active
 uses RSLinx®
Mode

Run

Who Active screen,


Browses Network

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 69


Download
Download
 Key switch Position
Who Active
 Program
Mode
 Remote Key switch
position
Run
 Run

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 70


Download
Download
 Remote Position
Who Active
 Run/Program controlled by
Mode
software
Run

Use drop down to


change mode

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 71


Download
Download

Faceplate and controller


Who Active LED show run

Mode
Green power rails
Run

Buttons and
instructions reflect
live state

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 72


Download
Download
 Online edits
Who Active
 Except if keyswitch is in “Run”
Mode

Run

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 73


Download

 Lab 6 – Download and test the program


 5 minutes

 Open this ACD file


C:\Lab Files\Basics Logix\Logix_Basics_Lab_Demo_Project.ACD

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 74


Download
Discussion

 What is online? What is offline?

 What is indication controller is running?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 75


Download
Discussion

 What is online? What is offline?


 Offline is not monitoring controller, online shows live data and states
 What is indication controller is running?
 Controller LED. When online - faceplate, green rails

 Questions?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 76


Agenda
New Project Download

Programming UDTs

Tags AOIs

I/O Logical Organizer

Tasks and Programs Trends

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 77


User Defined Type
UDT
• How can I keep data about an object together
Define in one place?
Tag • What if I have 1000 cars? (That a lot of tags!)
Array 2 doors Color is Red

Access

Weight is 2 Kilos

Basic model

17 inch rims

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 78


User Defined Type
UDT • User Defined Type
Define • Made of simpler types
Tag • Organizes related information
Array • Defined under Data Types folder

Access

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 79


User Defined Type
UDT
• Create a UDT type with desired members
Define
• Good practice - Use descriptions
Tag

Array

Access

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 80


User Defined Type
UDT

Define • Once a UDT is defined, a tag can be


Tag
created with this type

Array

Access

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 81


User Defined Type
UDT

Define • Tag can be expanded to see members


Tag

Array

Access

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 82


User Defined Type
UDT • A UDT can be used as array
Define • A UDT can contain arrays or other UDTs
Tag

Array

Access

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 83


User Defined Type
UDT

Define • Tags appear in instructions just like they do in the


Tag
tag list Car1_Data.Weight is the
same in tags as in
instructions
Array

Access

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 84


User Defined Type

 Lab 7 – UDT

2 minutes

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 85


UDT Discussion
 Why use a UDT?

 Can a UDT contain other UDTs?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 86


UDT Discussion
 Why use a UDT?
 For simple and easy organization and documentation of related data
 Can a UDT contain other UDTs?
 Yes!

 Questions?

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 87


Agenda
New Project Download

Programming UDTs

Tags AOIs

I/O Logical Organizer

Tasks and Programs Trends

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 88


Add-On Instruction
Concepts and Guidelines

Parameters and Tags

Code

Instantiation

Samples

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 89


Add-On Instruction
Key Idea: Always use a systematic approach to solving problems

Define
State the Develop Solve Test
Input &
Problem Algorithm Problem Solution
Outputs

Do Not Start Here

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

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 91


Add-On Instruction
Concepts and Guidelines • Not editable online
Parameters and Tags • Needs to be testable and manageable with a
Code
reasonable amount of code
• Single Routine AOI
Instantiation

Samples Local Tags

INPUT Code OUTPUT

Routine

Parameters
InOut

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 92


Add-On Instruction
Concepts and Guidelines  When creating or changing an AOI
Parameters and Tags  Give it a name, rev, and who created it.

Code

Instantiation Name

Samples

Revision

Vendor

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 93


Add-On Instruction
Concepts and Guidelines Input
(Uses copy of data)
Parameter List
Parameters and Tags

Code

Instantiation

Samples

Output
(Updates data when done)

InOut
(Direct tag memory reference)

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 94


Add-On Instruction
Concepts and Guidelines • Local Tags
Parameters and Tags • Local to the AOI
Code • Not accessible by outside ladder

Instantiation

Samples

Local tag list

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 95


Add-On Instruction
Concepts and Guidelines

Parameters and Tags

Code

Used in any
Instantiation
language
Written
Samples in any
language

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 96


Add-On Instruction
Concepts and Guidelines • Each AOI needs a unique backing tag
Parameters and Tags

Code
Unique backing tag
Unique backing tag
Instantiation

Samples

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 97


Add-On Instruction
Concepts and Guidelines

Parameters and Tags

Code

Instantiation

Samples

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 98


Add-On Instruction
Concepts and Guidelines
 PlantPax objects
Parameters and Tags
 Source of AOIs and Faceplates for:
Code
 Device control (like valves)
Instantiation
 Hart modules
 Process instructions
Samples

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 99


AOI

 Lab 8 – AOI

2 minutes

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 100
AOI Discussion
• Why use an AOI?

• What are the parts of 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

I/O Logical Organizer

Tasks and Programs Trends

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

Library .ACD My Project .ACD


Create from Library

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

 Lab 9 – Logical Organizer

1 minute

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 109
Logical Organizer Discussion
• Why use the Logical Organizer?

• Does rearranging the Logical Organizer affect the Controller 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

I/O Logical Organizer

Tasks and Programs Trends

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

Start Stop triggers

Tag list

Configurable Graph

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 113
Trends
Trends

Run/Stop
Running Trend

Adding a trend

Properties

Start Stop triggers

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

Start Stop triggers

PUBLIC Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 115
Trends
Trends • Display properties
Running Trend

Adding a trend

Properties

Start Stop triggers


Very configurable

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

Start Stop triggers

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

Start Stop triggers

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?

 Can there be more than one tag?

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

Copyright © 2018 Rockwell Automation, Inc. All Rights Reserved. 126


Timer Template

 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

Das könnte Ihnen auch gefallen