rockwell users group - wayne welk · 2018. 4. 5. · find more information on rockwell automation...
TRANSCRIPT
PUBLIC
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Rockwell Users GroupSeptember 2017
PUBLIC
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
What is Modular Programming?
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Add-on Instruction
Routine
Code
Routines
Parameters
Local Tags
Code
Routines
Parameters
Local Tags
Code
Routines
Parameters
Local Tags
Code
Routines
Parameters
Local Tags
Mixe
r
Addition
Agitate
Press Cntrl
Logical Organizer
Code
Tags
Parameters
Program
Pum
p
Strategic Compartmentalization
It is breaking an application into its
most fundamental components.
Then Using those as building blocks
to tackle a larger problem.
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Add-on Instruction
Routine
Code
Tags
Parameters
Program
Pum
p
Why?
Pros. To be more efficient in the long run.
1. It is faster to debug smaller, simpler code.
2. You prove the code only once.
3. No changes needed for each use.
4. No copy and paste errors.
Cons. Larger effort up front
1. Think of all of the uses for the code
2. Design it for all the uses
3. Revision control
PUBLIC
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.5
Logix DesignerRecent updates to make this easier
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
New Additional Non-Volatile Extended Memory
6
5370 / 5570Controller
CPUUser Memory
(Volatile/RAM)
Storage is Completely Independent of User Memory Space
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
T101.Level
T101.Level.@EU
T101.Level.@Min
T101.Level.@Max
Logix Extended Tag Properties
Simplify your Logix application
No need to create custom data structures for commonly used tag information
Develop your application faster and reduce errors
Use Min/Max tag limits programmatically, or propagate to third party HMI after
moving to a local tag.
7
Decreased Troubleshooting Time & Faster Time to Market
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Logical Organizer
8
NEW Logical Organizer View
Logical organization of programs to
represent your process flow.
Easier to locate code even though
programs span task scheduling
Create your own hierarchy
Mixer
1
Code
Routines
Parameters
Local Tags
Addition
Code
Routines
Parameters
Local Tags
Agitate
Code
Routines
Parameters
Local Tags
Press Cntrl
Code
Routines
Parameters
Local Tags
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
My_Project
Library
Library
9
Library
Use .ACD as Library or XML files
Increased transportability
Data maintained and collisions managed
Mixer XX
Code
Routines
Parameters
Local Tags
Mixer 01
Code
Routines
Parameters
Local Tags
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Program Parameters
1
Program Parameters
Clearly defined interface for programs
Direct communication between programs
Increased modularity
Mixer 1
Code
Routines
Parameters
Local Tags
Addition
Code
Routines
Parameters
Local Tags
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Data
Prog_01
Code
Routines
Program Tags
Tag_4
Tag_5
Tag_6
Prog_02
Code
Routines
Program Tags
Tag_4
Tag_5
Tag_6
Prog_01
Code
Routines
Local Tags
Parameter
s InIn
OutOut
InOutInOut
Prog_02
Code
Routines
Local Tags
Parameter
s InIn
OutOutData
V23 & PriorV23 & Prior
V24V24
New capability (Program Parameters)
Scalable and Flexible SolutionsUse modular code to simplify the application
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Add-on Instruction
Routine
Code
Routines
Parameters
Local Tags
Code
Routines
Parameters
Local Tags
Code
Routines
Parameters
Local Tags
Code
Routines
Parameters
Local Tags
Mixe
r
Addition
Agitate
Press Cntrl
Logical Organizer
New in Version 24
Code
Tags
Parameters
Program
Pum
p
Scalable and Flexible SolutionsRecap…Modularity advancement
Time
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Putting It All Together
Library .ACD My Project .ACD
Logical View Execution View
Easily Deploy
Library Content Easier to Locate Maintains Schedule
PUBLIC
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.14
V27 – Studio 5000 Architect
Architect
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Studio 5000 - Architect
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
1
Organize Multi-
Controller & Multi-
HMI Projects in
one place
What does it look like?
Graphical representation of the area. Controllers, I/O, Switches, HMIs
-Produce/Consume Tag list -Find Results Log
-IO Alias tag List
Hardware Library
Controllers, I/O, Switches,
HMIs, and Computers.
User Libraries include AOI,
UDT and HMI content.
Configure Server to
Controller Network Paths
and RSLinx Enterprise
Shortcuts
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Key Points…FactoryTalk View 8.1 integrated with Architect
Studio 5000 ArchitectStudio 5000 ArchitectStudio 5000 ArchitectStudio 5000 ArchitectStudio 5000 ArchitectStudio 5000 ArchitectStudio 5000 ArchitectStudio 5000 Architect
FactoryTalk View StudioFactoryTalk View StudioFactoryTalk View StudioFactoryTalk View StudioFactoryTalk View StudioFactoryTalk View StudioFactoryTalk View StudioFactoryTalk View Studio
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Key Points…IAB export to RSLogix Architect
Reduces design time by matching the BOM with the actual project
Allows for the export of control systems created in Integrated Architecture Builder to Architect and the automatic creation of the corresponding Logix Designer controller project files
Eliminates data entry redundancy
Reduces design time by matching the BOM with the actual project
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Key PointsEPLAN Bi-Directional synchronization
Improves start-up time ensuring electrical drawings are perfectly matched to I/O assignments
Synchronizes data transfer of Hardware configuration and Point Tags (Alias Tags)
Allows for automated schematic updates in EPLAN
Improves start-up time ensuring electrical drawings are perfectly matched to I/O assignments
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Creating Logix and View ProgramsStudio 5000 Architect
Logix
Program
FactoryTal
k View SE
Project
FactoryTalk
View ME
Project
• Create Logix and FactoryTalk View Programs
Logix
Program
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Adding library content to projectsStudio 5000 Architect
• Add content from the Rockwell Automation Library of Process Objects
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
DESIGN
• Library Designer is integrated
into Logix Designer
• Flexible library authoring,
structuring reusable content the
way you want
PUBLISH
• Combine control, visualization,
historical and alarm management
into one library object
• Centralized repository for easy
access and version management
BUILD
• Easily generate your
standardized application code
• Bulk configure projects
• Leverage Rockwell Automation
provided libraries (Process)
Maximize reuse and quickly build projects
Application Code Manager
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Design & Publish Library Static content transforms into dynamic library content
23
Logix Control Code
Alarms & Events
FactoryTalk View
FactoryTalk Historian
V1.0
V1.1
V2.0
V1.0
V1.1
V2.0
V1.0
V1.1
V2.0
Step 1:Create Content to be
libraried
Step 2: Group and Parametrize Library Content
Step 3:
Publish
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
V1.0
V1.1
V2.0
V1.0
V1.1
V2.0
V1.0
V1.1
V2.0
Build Project Content Easily deploy project content through configuration – No Programming!
Step 1: Select objects from library
Step 2:Configure via Parameters
Step 3: Generate
PUBLIC
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.25
PlantPAx® Library of Process Objects
Rockwell has already done some of this for you
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Rockwell Automation Library of Process Objectsfor Application Code Manager
Out of the box integration enables simple and fast bulk deployment of the
Process Objects v3.50.02 library
Out of the box libraries
Simply download, configure, and generate all of your
application content.
No coding, no copy and paste, no more errors due to
manual steps!
Save time and money while also reducing your project
risks.
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
PlantPAx® Library of Process Objects
27
The PlantPAx ® Library of Process Objects is a predefined library of controller code (AOIs), display elements (global
objects), and faceplates
All together, they allow you to quickly assemble large applications with proven strategies, rich functionality, and known
performance
Find more information on Rockwell Automation Knowledgebase - Answer ID 62628
Step 1: Add and
configure Add On Instruction
(AOI) in control program
Step 1: Add and
configure Add On Instruction
(AOI) in control program
Step 2: Drop Pre-defined Global
Object onto display and assign to
an AOI instance
Step 2: Drop Pre-defined Global
Object onto display and assign to
an AOI instance
Step 3: Access faceplate from Global
Object at runtime for control and
maintenance operations.
Step 3: Access faceplate from Global
Object at runtime for control and
maintenance operations.
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
28
Premier Integration with ControlLogix®
BENEFITS
• No need to duplicate settings in the HMI that are
already defined in the controller.
• Enhances productivity by creating parameterized
reusable faceplates and global object
• Change based communications to minimize system
impact
OVERVIEW
• Display ControlLogix Tag Extended Properties on
HMI screens
• Runtime inheritance of controller setting / value
changes
• Supports language switching for text
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Reusable Library for Design Productivity
Suite of control and HMI
objects to accelerate project
engineering
Role-based feature set for
Operation
Maintenance
Engineering
29
Rockwell Automation® Standard Library – “Out of the Box”
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Library Philosophy
Standard Applications
Control Strategies
(Control Modules)
Library Hierarchy
Devices (valves, motors /
drives, control algorithms,
transmitters, etc.)
Logix5000™ function
blocks, faceplates and
graphic objects
Level control, temperature
control, etc.
Mixer/Reactor, etc.
ExampleIncluded
in base
system
System
Add-On
Custom
Purchase
Logix Programming and
Visualization Tools
Devices
(Process Objects)
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Key Benefits
31
Improvements in:
System “out-of-the-box” experience
Engineering efficiency, plus tools, for solution providers
Lets you focus on application engineering rather than building base blocks
Consistency of application solutions from multiple delivery partners
Predictability of system behavior
Library managed by Rockwell Automation
Consistent engineering library framework
In line with customer expectations
TechConnect℠ support
Ask for “PlantPAx® Support”
PUBLIC
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
FactoryTalk Historian Site EditionIt just keeps getting better
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Simple Deployment and Configuration Saves Time and Money
Premier Integration to FactoryTalk
Pre configured: Data sources, databases, systems
Auto Discovery / Auto Configuration
Standardization of code and data structures can get systems up and running quicker
Configuration Rules Can make deployment repeatable
When a similar skid, system, line is deployed the data collection can be configured by repeating the previous configuration
PUBLIC
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
These are all great features! But where do I start?
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Lets break it down
System: Mixing Tank
What does it do?
Functions: Add/Remove/Mix/Heat/Cool
How does it do those?
Controls components: valves/motors/steam/chilled water Valve block. Options, control only? Include limit switches? Encapsulate alarms?
Type of valve? Analog? 2 position? Spring return? How long to open?
Motor Block. Options, VFD? Speed control? Start stop delays? Faults? Valve
interlocks?
Steam. Just a few valve blocks and a temp control loop?
Chilled water. See above What about level control?
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
To AOI or not to AOI?
AOI’s the good, the bad, and the lack of spaghetti. + Have their own Data type
+ Can have enable in false code (does a one shot work with out this?)
- AOI can not be modified on line.
+ Revision history
+ Can be locked down
+ Great for small code
- Can become unruly at large sizes
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
AOI/AOP Tag Types
Input
Output
InOut
Local
Public Parameter (AOP only)
How does each behave scan to scan?
If your program acts as a UDT, do you still need a UDT?
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
How to interconnect programs
Input
Output
Inout
Local
Public Parameter
Options:
Link tags directly in code
Link tags in parameter list
Link inputs
Link outputs
Have mapping code
How do you handle extra code between programs?
Interlocks, alarms, other
PUBLIC
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Library implementation exampleGrab a 5min nap. Demo coming soon.
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Install the Logix Components
40
For Add-On Instructions (AOIs), import only the ones you need.
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
All Dependencies Are Imported
41
IMPORTANT: All dependencies are included in the AOI import file Embedded AOIs and all required data types (UDTs, STRINGs)
Example: the P_Motor instruction uses P_Alarm and P_Mode
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Use RUNG Imports if Available
42
Some instructions provided with both AOI import and RUNG import files
A RUNG import includes all the associatedTags and UDTs for In/Out Parameters Example: Fault Code Lookup Tables
Import the RUNG(to a LadderDiagram routine)
Do this once, even ifyou are implementingin Function BlockDiagram Then simply delete
the rung of logic
All the other stuffyou need stays
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Install the HMI Components
43
First, add the library components to your HMI
application (FactoryTalk® View Site Edition or
FactoryTalk View Machine Edition)
1. Import the Images – all the .PNG files
2. Import the Global Objects – all the .GGFX files
3. Import the Displays – only the .GFX files you need
The order is important: each item depends
on the previous items
Add any platform-required items (Tags,
Macros, etc.) See Release Notes.
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Displays: Only the Ones You Need
Each faceplate, Quick or Help popup counts as only one Display … even though the faceplate has multiple tabbed views.
Many instructions useP_Mode, P_Alarm, P_Gate
...so don’t forget to include
their Help and Configuration
Displays.
Include common Displays
Common Analog Edit (SE)
44
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Create an Instance in Logix
45
Add the instruction Ladder (LD),
Function BlockDiagram (FBD),
Structured Text (ST)
Create its backing tag Controller or
Program scope
You can do this online Actually, you can
do all of this online,including importingAOIs and graphics!
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Connect to I/O
46
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Open your Display
Drag and drop the graphic symbol
From the appropriate “… Graphics Library” GGFX file
Note the use of .PNG images
Create a FactoryTalk® View Instance
47
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Link to Tag in Controller
48
Just one Global Object Parameter
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Add Run Feedback
Link the run feedback
input in the code
Open the faceplate and
enable Run Feedback
checking
Engineering tab:
Has Run Feedback
Maintenance tab:
Use Run Feedback
49
PUBLIC
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Demo TimeThey don’t make enough duct tape to fix this.
PUBLIC
www.rockwellautomation.com
Copyright © 2016 Rockwell Automation, Inc. All Rights Reserved.
Thank You