Unity Application Generator

advertisement
Unity Application Generator
Technical Training
Contents
01 System Overview
02 System Requirements
03 Physical Model
04 Generating the PLC
05 Generating the HMI
06 Generation
07 Variable Properties
08 Template Types
09 Ethernet IO
10 Customization
11 From DFB to SCoD
12 SCoD Editor
13 Workflow
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
Options
14 Structured Data
15 Import Export
16 PLC PLC Communication
17 Net Partner Communication
18 Profibus IO
HMI System Extensions
19 Generating for Vijeo Citect
20 Generating for ArchestrA
21 Generating for Monitor Pro
22 Generating for iFix
2
UAG V3.2 Technical Training
01 System Overview
Unity Application Generator
As part of the solution approach
SoCollaborative Engineering
Based upon the customers standard
For multiple PLCs /SCADA
With documentation
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
4
Unity Application Generator
Customer focused System Software from Schneider Electric
● Reduced Cost & Project Schedules
● System implementation cost savings
● Reduced risk and improved project
schedules.
● Improved time to market by allowing the
project to go live and give return on
investment sooner
● Improved Quality
● Improved software quality.
● Improved maintainability.
Save
20-35%
● Continuous Performance Improvement
on project
schedules
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
● Standardized design and systematic
improvement.
● Reuse of Customer best practices.
5
System Software for Automation
The UAG approach…
● Process Design – Think Process not PLC
Define
● Customer Specification
● Process libraries
Deploy
● Process description
● Automation architecture
Generate
● PLC
● SCADA
● Documentation
● Standardized approach
● Application function oriented
● Automation Architecture
● Automation equipment and networks
● Mapping to “Control Modules”/Library objects
● Single data source, consistent data
● Automatic Incremental Application Generation
● PLC, HMI, Networking & Communications
● Reuse and Continuous Improvement
● Application functions
● Library management
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
6
GAMP Life Cycle Model Support
by Unity Application Generator
User Requirement
Specification
Software
Design
Specification
Functional
Specification
Design
Specification
PLC/HMI
Application
Software
related to
related to
related to
Performance
Qualification
Operational
Qualification
Installation
Qualification
Process control
system
documentation
Validation
Qualification
FAT SAT
System
Build
Unity Application Generator
Unity Application Generator
GAMP 4.0 Supplier Guide
Good Automation Manufacturing Practice
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
7
UAG Value Proposition
for System Integrators and End Users
System Integrator
… how can I reduce my
engineering efforts …
● Re-using existing DFB and SCADA
design elements
● One project environment with
structured approach.
● Offering one common database for the
whole project.
● Incremental generation and network
configuration.
● Providing a guided system that forces
system consistency and checks for
errors.
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
End User
… how do I keep my schedules and
operational efficiency …
● Using pre-developed and tested
libraries
● Structured and uniform programming
method applying EU standards.
● Incremental modification of the
applications.
● Generation of consistent project
documentation.
● Import and export using xml formats
providing flexibility of an open system.
8
Unity Application Generator
Linking Process Design and Automation Design
5 Step Design Process
From process
design
to physical
model
● For the Process Engineer
1: Assign process functions to the UAG
physical model
2: Choose the library object for each
process function
● For the Automation Engineer
3: Design the automation architecture in
the topological model
4: Assign each process function to the
relevant automation device
5: Generate the application –
automatically
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
9
Process Design
Standardized Design Approach
Process – P&ID
UAG – Physical Model
From process
design
to physical model
Site
Area
Process
Cell
Unit
Created by the Process
Engineer
Based on ISA-88
standard
(flexibility to
customize)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
Equipment
Module
Control
Module
10
Standard Functional Libraries
Control Module
UAG Library Element (SCoD)
Library element contains:
Reflecting the
needs of the
process
●
Motor
●
Application function
Created by the
Automation & SCADA
Engineer
●
PLC part
● Control logic
● Variables
● Interconnections
● Interlocking
HMI / SCADA part
● Symbol
● Status Display
● Operator control
● Logging, trends, alarms, ...
Documentation
●
●
●
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
Manuals
Data Sheets
…
11
Automation Architecture
Equipment and Networks
Automation Objects
● Multiple PLC
● Multiple SCADA / HMI
● Network Topology
● Network Devices
(Partners)
UAG: Topological Model
Reflecting the
needs of the
process
Created by the
Automation Engineer
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
12
Automation Architecture
Integrated Device Configuration
● Network configuration
UAG: Topological Model
● Address management for Ethernet and Modbus Plus
● PLC, PC, Panel and 3rd party devices
● PLC Configuration
● Unity Pro and Concept PLC platforms
● PLC IO configuration including Hot Standby
● Ethernet & Profibus IO configuration
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
13
Automation Architecture
Link the Control Module
Physical Model
Topological Model
Define where the
functionality is located:
- PLC
- Data Server
- HMI
- Network
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
14
Generate the Application
● Single entry type for PLC/HMI database
● Synchronized, consistent PLC / HMI
databases
● Use and re-use application objects from
the library
● Apply process context by
parameterization
● Incremental generation for PLC/HMI
● Global resource mapping
● PLC application (code, variables,
configuration, communication…)
● HMI application (mimics, faceplates,
variables, attributes, alarms…)
● Communication management (Ethernet,
MB+)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
15
Result of the Generation
Example
SCADA Project
UAG Project
HMI
Network
Communication
PLC
Unity Pro Project
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
16
UAG libraries
Built your application: using what is available!
Standard Libraries shipped with UAG
Process Application Library
focused mainly on WWW
with 32 Blocks
Chengdu
Water Library
CSPEL
Water Library
Enhanced Process Library 1
focused mainly on thermal applications
with 50 Blocks
Denizli Cimento
Cement Library
Lafarge
Cement Library
Device & Process Library 1
focussed mainly on device integration
with 50 Blocks
South Africa
Mining Library
Many others..
Standard Libraries are available for the
country organizations
1
Customer-Specific Libraries
Customer- Specific Libraries are developed
by Schneider Electric project teams
Will be available in Q3 2009
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
17
UAG V3.2 Technical Training
02 System Requirements
What you learn in this chapter
● UAG Installation
● Hardware and software requirements
● Installation procedure
● UAG Installed Package
● Single Tools: UAG, Customization, SCoD Editor
● Folder Structure
● Important File Types
● Set Up a New Project
● Procedure
● Files belonging to a project
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
19
UAG Hardware Requirements
● Hardware
● Pentium Processor 2 GHz or higher
● 2048 MB RAM
● 1 GB free space on hard disk
● DVD-ROM drive
● SVGA higher-resolution monitor with high color (24 bits)
● TCP/IP compatible network adapter
● Optional Hardware
● Modbus Plus Adapter (PCI85)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
20
UAG Supported Software Platforms
● Operating System
● Microsoft Windows XP
● Microsoft Windows Vista Business
● PLC Programming Software
● Schneider Electric Unity Pro V4.1 (S, M, L, XL)
● HMI & SCADA Software
● Vijeo Citect V6.1a, V7.0 or V7.1
● Monitor Pro V7.6
● iFix Intellution V3.5 or V4.1
● Wonderware ArchestrA V3.0
● PCVue (driven by Schneider Electric France)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
21
UAG Software Add On
● Remote IO
● Advantys Configuration Software V4.5
● Profibus Fieldbus
● Sycon System Configurator V2.9 (Premium PLC)
● ProSoft Configuration Builder V2.1.6.7 (Quantum PLC)
● Additional Software
● Microsoft Word 97, 2000 or 2003 to create UAG project documentation
● Acrobat Reader for reading documentation
● Tools as needed for displaying information, e.g. CAD etc.
● XML viewer or editor for Import and Export files
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
22
Installation and Configuration Workflow
● Basic Installation
● Install Unity Pro
● Install HMI / SCADA system, e.g. Vijeo Citect
● Install Unity Application Generator
● Install optional packages (as needed)
● Other HMI generator than Vijeo Citect, e.g. ArchestrA
● Library Packages, e.g. Process Application Library (PAL)
● Remote IO and Fieldbus configuration, e.g. Prosoft
● Configure the system
● Restore the library projects for Vijeo Citect
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
23
Folder Structure & Important Folders
● Default installation path
● \Programs\Schneider Electric\Unity Application
Generator
● Unity Application Generator
● Root folder with the UAG programs
● Default Customization Files (*.osc)
● Db
● Default folder for SCoD-libraries (*.osl)
● Default folder for XML stylesheets (*.xsl)
● Vijeo Citect
● Archived libraries for Vijeo Citect (*.ctz)
● Use these for restoring the libraries in Vijeo Citect
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
24
Single Tools of UAG
Unity Application
Generator
• Application Design
• Code Generation
• Template Libraries
Customization Editor
• Project settings
• Library Selection
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
SCoD Editor
• Library Definition
25
File Types of UAG
● SCoD libraries (*.osl)
● Contain all the information about the library objects for PLC and HMI
● Template Types libraries (*.ost)
● Contain all the information about template objects (combined SCoDs)
● Customization file (*.osc)
● Defines which SCoD libraries are used
● Defines the naming rules for objects and variables
● Defines the hardware to be used
● UAG project file (*.osp)
● Contains the project itself
● A customization with the same name is attached to it
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
26
Setting up a new UAG Project
● Define a new project
● Start Unity Application Generator
● Select “New” icon or chose from menu
● Choose a Customization File
● Should contain the required libraries and project settings
● See chapter 10 for details, how to configure
● Example: UAGProcessLibVCV2.0.osc
● Save the new project
● Save is only required after defining a new project
● Once project is saved, UAG executes automatic save of the project
● On save the Customization File is copied and stored together with project
● The Customization File gets the same name as the Project File
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
27
Summary System Requirements
● Unity Application Generator
● Generating Code for Unity Pro
● Generating HMI application for Vijeo Citect, Monitor Pro, iFix & ArchestrA
● Three tools
● SCoD Editor for Libraries
● Customization for Project Settings
● UAG Tool for Application Design
● UAG Projects
● Libraries are global (Multiple Projects)
● Customization and Project are bound to an Application
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
28
UAG Technical Training
03 Physical Model
What you learn in this chapter
● UAG Physical Model
● Modeling and structuring the process
● Hierarchy Levels in ISA S88
● Types and Instances
● Defining the Process Model
● Equipment, Control Modules and Templates
● Interlocks and Links
● Variables
● Representation in the PLC
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
30
Physical and Topological Model
● Physical Model
● Defines the structure according to the process
● Default model based on ISA S88.01 hierarchy
● Site, Area, Process Cell, Unit, …
● Model can be defined in Customization
● Levels according to project’s needs
● Topological Model
● contains the automation hardware and structure
● PLC, HMI, Network
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
31
Hierarchy Levels in Physical Model
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
ISA S88 Structure
Example
Site
Softdrinks
Area
Production
Process Cell
Ingredients
Unit
01Sugar
Equipment
Tank01A
Control Module
VA21
32
Structuring Levels in ISA S88
● Site
● Concern the organization of the enterprise
● Area
● Concern the organization of the enterprise
● Sublevel of the Site
● Process Cell
● Contains all the Units, Equipment and Control
Modules required for batch processing
● Unit
● Processing activities are concentrated in a Unit
● Used for a recipe
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
33
Equipment Module
● Equipment Module
●
●
●
●
●
Describes a functional group
Holds Control Modules
Level of Template instantiation
Variables can be declared
Linking to the physical Model
● Allocation of the PLC
● Linked to the HMI and a picture
● Non ISA S88 models
● Functionality of an Equipment can be set up
for each hierarchy level
● Control Modules can be placed all over the
Physical Model
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
34
Control Module
● Single Function of the Process
● Physical : motors, valves, sensors, …
● Logical: PID loops, counters, ...
● Contains all aspects of the automation
● PLC (DFB, EFB)
● HMI (Symbols, Faceplates)
● Communication relationship
● Variables and their behaviour in the HMI
● Alarming, Trending, Historical Data
● Physical Model
● Linked to one Equipment
● Interaction with other Control Modules linked to
the same or other Equipment
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
35
Template Instance
● Higher Level Function of the Process
● Multiple pre-wired Control Modules
● e.g. PID, Sequence
● Instantiation in Physical Model
● Template is instantiated as
● Equipment Module
● Couple of Control Modules
● HMI link can be a common symbol
● Control Modules and variables can be added to
instance
● Details see Chapter 8
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
36
Instantiation from Types
● SCoD as Type for Control Modules
● SCoD: Smart Control Device
● Type definition of a Control Module
● Member of a Library
● Designed in the SCoD-Editor
● based on a DFB or EFB
● contains an HMI representation (symbol,
behaviour)
● definition of variables and pin usage
● definition of communication, alarming etc.
● After design the SCoD is committed for use
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
37
Process Application Library
● SCoDs from the standard UAG Process Application Library
Standard Functions
Motor & Valves
•
•
•
•
•
•
•
• CRKBRK_P20
Circuit Breaker
• VALMO_P20
Monostable Valve
• VALBI_P20
Bistable Valve
• VALPRO_P20
Proportional Valve
• MCCDOL_P20
Direct Online Starter
• MOT1D1S_P20
Motor 1 Direction 1 Speed
• MOT1D2S_P20
Motor 1 Direction 2 Speed
• MOT1DVS_P20
Motor 1 Direction 2 Speed
• MOT2D1S_P20
Motor 2 Direction 1 Speed
• MOT2D2S_P20
Motor 2 Direction 2 Speed
• MOT2DVS_P20
Motor 1 Direction 2 Speed
COUNTER_P20
HOURMET_P20
INTERLCK_P20
ADD4_P20
MUL4_P20
OPMODE_P20
TIMER
Counter
Hour Meter
Interlock
Math - Adding
Math - Multiplying
Operation Mode
Timer
Inputs & Outputs
•
•
•
•
DIGIN_P20
DIGOUT_P20
ANAIN_P20
ANAOUT_P20
Digital Input
Digital Output
Analog Input
Analog Output
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
38
Process Application Library
● SCoDs from the standard UAG Process Application Library
Control Functions
Schneider Devices
•
•
•
•
•
•
•
•
•
•
•
•
•
DIGICONT_P20
PIDCTRL_P20
PIDCTRLAD_P20
SCHEDULER_P20
RCONBAT_P20
RCONCON_p20
SEQUENCE_P20
TOTALIZER_P20
Digital Controller
PID Controller
Advanced PID Ctrl.
Scheduler
Batch Ratio Ctrl.
Continuous Ratio Ctrl.
Sequencer
Totalizer
MOTATV_P20
PM700S_P20
ION73_P20
TESUIO_P20
PLCSTAT_P20
ATV31/61/71
Power Meter
Energy Meter
TeSys U
PLC Diagnostics
Process Specific
• PUMSEL_P20
• TANKCTRL_P20
Pump Selection
Tank Control
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
39
Representation of Physical Model
● Representation of Area, Process Cell, Unit
● PLC: groups in the Unity Pro project browser (same structure as in UAG)
● HMI: no equivalent
● Representation of Equipment and Control Modules
● PLC
● One Equipment = One Section
● One Equipment and all its Control Modules are usually assigned to the
same PLC
● HMI
● An Equipment can be freely assigned to a picture of the HMI
● One picture can contain more than one Equipment
● The equipment and all its Control Modules are usually assigned to the
same picture
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
40
Create a Level in the Physical Model
● Area, Process Cell & Unit
● Select “New …” from
context menu
● Enter a (unique) name
● Enter a description
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
41
Create an Equipment Module
● Equipment Module
● Select “New …” from
context menu
● Enter a name and a
description
● Section name is derived
from Name
● PLC and HMI link is set
after the Topological
Model is defined
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
42
Create a Control Module
● Control Module
● Select “New …” from
context menu
● Select needed SCoDType form Pop Up
● Enter a name and a
description
● Instead of using the
context menu, drag &
drop the SCoD from the
library Window
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
43
Interactions of Control Modules
● Links
● connection to variables or other Control Modules
● represented by link lines in the PLC program
(in the same section only)
● used on unconnected input pins
● simply created by drag and drop of variables
● Interlocks
● definition of interlock logic for a single input pin
● only for Control Modules with interlock input pin
defined in the SCoD Editor (e.g. MOT1D1S)
● device can have one or more interlocks
● created by defining a logical condition of variables
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
44
Definition of an Interlock
● Define an Interlock
● Select “Open Interlock”
from context menu
● Place Function Blocks as
needed
● Link blocks as needed
● Open Variable Browser
from context menu
● Drag & drop variables to
pins
● Connect last output to
the Interlock Input
● Apply interlock
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
45
Interlock representation
● Interlock representation
● generated code in Unity Pro similar to the code in UAG
● indicated as Comment box in front of the function block
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
46
Variables in UAG
● Come along with the Control Module
● they are automatically generated during
instantiation
● Additional Variables can be defined in UAG for
● Equipment Modules
● Control Modules
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
47
Variable Representation in PLC and HMI
● Standard Name Creation Rule
● Control Module Level
● Concatenation of the variable and two parent objects
● EQname_CMname_VARname
● Equipment Module Level
● Concatenation of the variable and one parent objects
● EQname_VARname
● Other Name Creation Rules
● Naming rules can be set up in the Customization using all levels of the
Physical Model, either the complete name or a part of it
● Maximum length of 32 characters in Unity has to be respected
Declaration : EQ – Equipment Module, CM – Control Module,VAR – Variable
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
48
Variable Declaration
● Variables can be
defined in UAG for
● Equipment Modules
● Control Modules
● Declare a variable
● Select “Open Variable”
from context menu
● Select “New” from
context menu in the
variable browser
● Define properties for
new variable (see next
slide)
● Apply new variable
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
49
Variable Basic Properties
● Name
● Name of the variable
● Data Type
● must be defined for each variable, e.g. Bool, Word, Byte, Int, Real, Time,
User defined DDTs,..
● Connection Type
● part of the application, where the variable is used (see next slide)
● Initial Value / Update initial Value
● an initial value can be assigned
● Update Initial Value
● Graphic representation of the variable in the SCADA (HMI variables only)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
50
Variable Connection Types
● PLC
● used PLC internal only
● IO_PLC
● variable is used within the PLC logic
● and connected to an I/O point of the PLC
● HMI
● used HMI internal only
Note:
With Unity Application
Generator all variables are
defined only once and are
automatically generated in
all of the systems, in which
they are needed.
● PLC_HMI
● variable is used in the PLC and the HMI
● communicated between both
● PLC_NET
● variable is communicated between the PLC
and a network node, e.g. hand- held panel
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
51
Summary Physical Model
● Structuring the process
● Ordering the process in a hierarchy
● based on ISA S88, but freely adjustable
● Area, Unit, Process Cell, Equipment, Control Module
● Functionality of the process
● Single function represented by Control Module
● Type definition done as SCoD
● Linked to DFB for PLC code
● Linked to an HMI representation
● Interaction of Control Modules done by
● Links (single connection to a variable)
● Interlocks (condition set of variables)
● Variables
● bound to a Control Module (defined in SCoD)
● freely added on Equipment and Control Module level
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
52
UAG Technical Training
04 Generating the PLC
What you learn in this chapter
● UAG Topological Model
● Structure the Automation Platform
● Define Network and link devices
● Define and configure a PLC
● Generate a PLC program
● Assign a PLC to the Physical Model
● Assign IO points
● Analyze the project
● Generate PLC code
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
54
Physical and Topological Model
● Physical Model
● Defines the structure according to the process
● Default model based on ISA S88.01 hierarchy
● Site, Area, Process Cell, Unit, …
● Model can be defined in Customization
● Levels according to project’s needs
● Topological Model
● contains the automation hardware and structure
● PLC, HMI, Network
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
55
Elements of the Topological Model
● Build the control hardware architecture
● Network Segments
● Network Segments (Ethernet /MBP)
● PLC
● Unity PRO with Premium / Quantum / M340
● Data Server / HMI
● Vijeo Citect
● ArchestrA, Monitor Pro, iFIX
● Generic
● Network Nodes
● Netpartner devices for data exchange
● Defines resources used by the physical model
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
56
Configuring the Network
● Network Segments
● Basic elements of the communication
architecture
● Definition of the used different Networks
● Possible Network Types are
● Modbus Plus
● Ethernet
● nodes like PLC, HMI, Data Server and Net
Partners are attached to one or more Network
Segments.
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
57
Network Segments and Routing
● Network Segment
● a single network line of a defined type
● Modbus / TCP
● Modbus Plus
● with the full range of addresses available.
● Routing Path
● connections between different network segments
● via bridges or routers
● used only for Modbus Plus
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
58
Configuring the PLC
● PLC
● Modules and Racks are edited in UAG
● Is assigned to Equipment modules
● PLC Configuration
● Definition of the Racks and Modules
● Assign network addresses
● CPU and communication modules
● Definition of communication Channels
● Communication to PLC, Data Server, Net
Partner
● Module Configuration
● Assign variables for I/O-Modules
● Failure behavior for Output Modules
● Import of fieldbus configuration
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
59
Adding a new PLC
● Define a PLC
● Select “New PLC” from
context menu
● Enter a name and a
description
● Project name is derived
from PLC name
● Open Variable Browser
from context menu
● Select PLC Family, the
rack size and the CPU
type
● Apply PLC
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
60
Selecting Slot Cards for a PLC
● Adding Slot Modules
● Select “Open Rack” from
context menu of the rack
● Select for each slot of
the rack the module
category and the module
itself
● Adding Extension Racks
● If an extension rack is
required, add the
expander module to the
local rack and choose
“New extension Rack”
from the context menu of
the rack
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
61
Properties of a PLC
● Network Addresses
● Under properties of the
CPU or any other
network interface card
the network addresses
can be entered
● Memory Layout
● Under properties of the
PLC the memory usage
can be defined in terms
of size and area, e.g. for
IO cards HMI exchange
etc.
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
62
Assign Equipment to PLC
● Assign PLC
● Select “Properties” from
context menu of
Equipment
● Select PLC from list in
properties dialog
● Apply selection
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
63
Assigning IO variables to PLC
● Assigning IO variables
● Select “Open Variables”
on context menu of
Equipment or Control
Module
● Apply filter on IO_PLC
type in variable browser
● Select “Open IO Points”
from context menu of
slot card
● Drag and drop IO_PLC
variables from variable
browser to the IO points
of the slot card
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
64
Generate the PLC
● Generate PLC
● Open UAG project
exclusively
● Select “Analyze” from
the generation menu
and analyze your project
● Check for relevant errors
and correct them
(a double click on the
message leads to the
dialog where to correct)
● Start the generation from
the “Generate” menu
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
65
Summary Generating the PLC
● Topological Model
● Structures the needed Automation Platform
● Linked to the process (Physical Model)
● Network and Communication
● PLC including (remote) IO
● Generating the PLC
● Assign Equipment Module to a PLC
● Link IO signals to hardware
● Analyze project
● Generate PLC project
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
66
UAG Technical Training
05 Generating the HMI
What you learn in this chapter
● UAG Topological Model
● Data Server and HMI
● Control Domains and Pictures
● Communication: Channels and Frames
● Generating the HMI
● Assigning a Control Domain and a Picture
● Analyze the project
● Generate the HMI (and the PLC)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
68
Generating for the HMI Overview
● HMI Configuration
● Data Server
● HMI, Control Domain and Pictures
● PLC- HMI communication
● Communication between PLC and Data Server
● Communication Channel with frames inside
● Assigning frames to variables of type PLC_HMI
● HMI Properties of variable type PLC - HMI
● Alarm Definition
● Archives
● Display Format for analog Values
● Free Properties
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
69
Configuring the Data Server
● Interface between the PLC and the HMI
application
● A PLC is connected to one Data Server only, but
a Data Server can have multiple PLC
● Communicates PLC_HMI variables defined in the
UAG project
● More than one Data Sever may be configured
● Not directly linked to the Physical Model
● Is represented by an IO Server in Vijeo Citect
HMI B
HMI A
PLC 1
Data Server
Modbus TCP / OFS
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
PLC 2
1 Data Server per PLC
70
Adding a new Data Server
● Add a Data Server
● Select “New Data
Server” from context
menu
● Enter a name
● Switch to Network-Tab
● Select network type and
segment and enter a
network address
● Optionally configure
redundant connection
and redundant server
● Apply Data Server
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
71
Communication Channel
● Definition
● bound to a PLC and enables communication
between:
● PLC and 1 Data Server (HMI)
● PLC and PLC
● PLC and Net Partner
● defines the communication path between
partners and alternative path
● defines objects to be exchanged
● frames for PLC - Data Server communication
● variables for PLC – PLC communication.
● variables for PLC – Net Partner
communication
● Communication is always bound to a PLC!
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
72
PLC to Data Server Channel
● Frames
● Organization of PLC_HMI variables according
to the data type (the frame is a property of the
variable)
● Communication frames are defined in the SCoD
Editor or in the Customization
● Frames are defined as read-write or read-only
for different data types
● Transport
● Via located variables or OPC server
● from HMI to the PLC
● operator inputs are transmitted immediately
● from the PLC to the HMI
● refresh rate is configured in the Data
Server application, i.e. Vijeo Citect’s IO
Server
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
73
Create a new Channel
● Add a Channel
● In the context menu of
the PLC select “Open
Channels”
● In the context menu of
the Channels select
“New”
● Define a name for the
channel
● Set the type, the
partner, the path and
the timeout
● Define optionally a
redundant path
● Apply Channel
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
74
Memory Assignment for Frames
● Memory Assignment
● Open Channel
● Press default button to
assign memory
● Check, if %Used is not
above 100% for any
frame
● Adjust addresses and
length manually, if
necessary
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
75
HMI, Control Domain and Pictures
● HMI
● HMI application as operator front-end
● Represented as Vijeo Citect project
● Control Domain
● Splits an HMI application into several areas
● Alarms are linked to a Control Domain
● Can be used for operator access rights
● Represented as Area in Vijeo Citect
● HMI Picture Definition
● HMI Pictures are organized in picture groups
● Pictures are member of a picture group
● Pictures are assigned to Equipment Modules
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
76
Add a new HMI and Control Domain
● Add HMI
● Select “New HMI” from
context menu
● Enter a name
● Add a Control Domain
● Select “New Control
Domain” from context
menu
● Enter a name and a
description
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
77
Add a Picture Group and Pictures
● Add a Picture Group
● Select “Open Pictures”
from context menu
● Select “New Picture
Group” from picture’s
context menu
● Enter a group name
● Add a Picture
● Select “Open Pictures”
from context menu
● Select “New Picture”
from the group’s context
menu
● Enter a picture name
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
78
Assign Equipment to HMI and Picture
● Assign HMI and Picture
● Select “Properties” from
context menu of
Equipment
● Select Control Domian
from list in properties
dialog
● Select Picture from pop
up window
● Apply selection
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
79
Generate the HMI
● Generate HMI
● Open UAG project
exclusively
● Select “Analyze” from
the generation menu
and analyze your project
● Check for relevant errors
and correct them
● Start the generation from
the “Generate” menu
● Consistency
● Generate as well the
PLC to be sure that HMI
and PLC are consistent
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
80
Summary Generating for the HMI
● SCADA and HMI in the Topological Model
● Data Server and HMI server functions
● HMI including Control Domain and Pictures
● Communication
● between PLC and Data Server is done by Channels
● Channels consist of different frames
● Variables of type PLC_HMI are assigned to frames
● Generating for the HMI
● Assign Equipment Module to a Control Domain and Picture
● Analyze project
● Generate HMI and PLC (!) project
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
81
UAG Technical Training
06 Generation
What you learn in this chapter
● Generation for PLC and HMI
● What is generated?
● Different Types of Generation
● Objects to be generated
● Analyzing the Project
● Memory Mapper
● UAG Documentation
● Change History
● Generating Documentation
● Backup and Restore
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
83
General Information
● Generation for the PLC
● Unity Pro
● Premium, M340 and Quantum PLC
● Configuration, Variables and Code
● Generation for the HMI
● Vijeo Citect V7.0 / V7.1 , Monitor Pro V7.6 , ArchestrA V3.0, iFIX V3.5
● tags and graphics
● communication, alarms, data logging
● Generation of Export files
● XML-file with all information about the UAG project
● for usage with unsupported HMI systems, e.g. by import
● as additional information for supported HMI systems
● transformable with the usage of style sheet XSL-files
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
84
Generation for the PLC
● PLC configuration
● Hardware Configuration
● Configuration of Communication, e.g. Ethernet
● PLC memory managing
● All variables
● All variables including addresses and comments
● PLC Program Code
● For program initialization & analog scaling
● For communication channels & remote IO
● Code for Control Modules
● Interlock logic for Control Modules
● Links between Control Modules
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
85
Generation for HMI (Vijeo Citect)
● One Vijeo Citect project for each configured HMI
● One Page for each defined picture in UAG
● Picture contains Genie instances for all Control Modules linked to the
picture via the Equipment
● One Cluster for each configured HMI
● Name of the HMI
● Alarm, Trend and Report server are derived from the cluster
● Alarm Handling & Trending
● One IO Server for each configured Data Server
● All tags communicated between HMI and PLC (PLC_HMI) on regular IO
Device
● All HMI internal tags (HMI) on a Disk Device
● PLC Communication (Boards & Ports)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
86
Generation for the Monitor Pro (HMI)
● One Server Application for each configured data server
● All tags communicated between HMI and PLC (PLC_HMI)
● All HMI internal tags (HMI)
● PLC Communication
● Alarm handling
● Data logging
● One Client Application for each configured HMI
● One Mimic for each defined picture in UAG
● Picture contains symbols for all Control Modules linked to the picture
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
87
Generation for the ArchestrA (HMI)
● UAG application is transferred into the specified Galaxy
● Physical Model is transferred into the Galaxy with the same structure
● Dedicated templates can either exist or will be created in the Galaxy
● All communicated tags (PLC_HMI) and HMI internal tags (HMI)
● Alarm handling
● Data logging
● Additional Properties
● One OPC Client for each configured data server
● All tags communicated between HMI and PLC (PLC_HMI)
● PLC Communication
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
88
Generation for the Generic HMI
● Generic HMI
● a XML-file with complete information about the UAG project
● a file with a format specified by a style sheet XSL-file
● e.g. CSV, HTML
● contains a subset of the XML-file in the specified format
● used export formats are entered in the customization
● Net Partners
● a CSV-file containing all variables related to a Net Partner
● can be used as import file for the net parter software
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
89
Types of Generation
● COMPLETE
GENERATION
● first generation
● if selected before generation
● existing code for the PLC and / or
HMI will be overwritten
● INCREMENTAL
● Only the modified part of the UAG project is
generated
● existing PLC and HMI application will be updated
The generated code has to be completed by the control engineer afterwards
in order to build the complete control application.
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
90
Complete and Incremental Generation
● Complete Generation
● First generation (required for a new project)
● Can be forced for an existing project for Memory Mapper, PLC or HMI
● Necessity to “download” to the PLC (STOP mode)
All additional programming in the PROJECT is
DELETED, but stored in a Backup file!
● Generation Incremental (default mode)
● After modifications in UAG in an existing project
● “Download Changes” to the PLC (RUN mode)
● Only possible, if NO modification in the hardware configuration
● and if address ranges are not modified (length and start address)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
91
Open Project
● Open Project
● Work on the project: add, modify, delete
● Project can be opened by more than one user
● Analyze the project: Customization and Project
Nothing can be generated
● Open Exclusive
● Project can be opened by only one user
● Analyze the project Customization and Project
● Code generation
Execute Memory Mapper
Application Generation / Modification for PLC and HMI
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
92
Options for Generation
● Options
● Select from menu “View\Options”
● Set path for generated code / files
● Select complete generation for next
generation
● Diverse settings for HMI system
(dependant on Type)
● Handling
● Should be set at the beginning of the
project
● Exception: Complete generation is set
when needed
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
93
Objects to be Generated
● Lists of Objects to be generated
● Select from the menu
“File\Properties”
● At the bottom of the newly opened
window lists can be opened for
objects to be generated for PLC,
Data Server and HMI.
● Especially useful when the PLC or
HMI generation throws a warning
that there are objects left for
generation.
● Used Types
● Lists can be opened for SCoDs,
Templates and HW modules
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
94
Analyze Customization & Project
● Analyze Customization
● Done when project is opened and the customization file has changed
(automatically detected by UAG)
● Analyzes what is non compatible in the project
● Detected errors have to be fixed manually
● Analyze Project
● Analyzes the project and checks all errors and warnings
● Warnings and errors don’t inhibit the generation, except
● path non-existent
● memory layout too small
● Errors are excluded from generation
● Ojects declared as “not assigned” cause a warning message
● Errors can be reached by a double click on the error message
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
95
Configure Analyze Project
● Analyse Project Options
● Open the “Options” dialog to
configure the analyzer (Menu
“View\Options”)
● Select “Analyze Project”
● Configure as needed
● How to fix errors or warnings
● Double click on the message:
UAG opens the error causing
dialog
● Directly from the Physical or
Topological Model e.g., for
mapping of I/O points
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
96
Memory Mapper
● Configuration for address ranges
● Individually for each PLC
● IO modules and IO variables
● PLC_HMI variables
● PLC_NET variables
● Configure Memory Mapper
● Default values in the addresses
tag (properties of each PLC)
● Start address and length can be
modified
● Column “Current Length” shows
usage of each address range
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
97
Change History
● Change logging
● Select from menu
“File\Change History”
● Window lists all
modifications done in the
UAG project
● Who & When
● Changed Objects
● Type of Change
● Old & new value
● Cannot be modified
● Report and Export are
possible
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
98
Generate Documentation
● Generate a Documentation
● Select from menu “File\Report”
● Define a template file
● Define a report file
● Select the contents
● Start the Report
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
99
Backup and Restore
● Setting Up an Archive
● Select from menu “File\Versions”
● In versions window select “Save
now”
● Enter a name and a comment and
select the contents of the archive
● Apply Archive
● Version Management
● Done from Versions window
● Especially delete and restore a
version
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
100
Backup and Restore
● Restoring an Archive
● Select from menu “File\Versions”
● In versions window select the
archive to be restored Restore
(if no UAG project is opened the
archive folder can be selected)
● Chooses location for restoring and
the contents to be restored
● Apply Restore
● Remark
● Vijeo Citect project is always
restored in the Vijeo Citect user
directory
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
101
Summary Generation
● Generation for PLC and HMI
● Complete and Incremental Generation
● PLC: configuration, variables, program code
● HMI: variables, alarms, pictures and symbols
● Memory mapping for PLC
● Communication: PLC to HMI, IO, PLC and Net Partner
● Workflow
● Analyze Project
● Correct errors and warnings as necessary
● Open project exclusively
● Run generation (PLC and HMI)
● Add code for PLC and HMI as necessary
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
102
UAG Technical Training
07 Variable Properties
What you learn in this chapter
● Generation for PLC and HMI
● What is generated?
● Different Types of Generation
● Objects to be generated
● Analyzing the Project
● Memory Mapper
● UAG Documentation
● Change History
● Generating Documentation
● Backup and Restore
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
104
Property Page for Variables
● Variables for the HMI
● Connection type
● HMI: Variable only available in
the HMI
● PLC_HMI: Variable available in
PLC and HMI
● 8 categories of properties
● Basic
● Communication
● Alarm
● Command
● Archive
● Display
● Free
● Usage
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
105
Variable Properties
● Properties Origin
● Properties can be already set in the SCoD Editor
● Change and visibility can be restricted in the SCoD Editor
● Values of Pop Ups are edited in the ScoD Editor or the customization
● Properties availability
● Availability of single property depends on data type, connection type
● E.g., PLC connection type does not have alarm properties
● E.g., BOOL type data type does not have display properties
● Accessibility can be restricted in the SCoD editor
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
106
Basic Properties
● Name and Description
● Data Type
● must be defined for each variable,
e.g. Bool, Word,..
● Connection Type
● for HMI: HMI or PLC_HMI
● Initial Values
● an initial value can be assigned
● Graphical Symbol
● define a symbol used in the HMI to
display the variable
● Dead Band
● Suppressing an update of the value,
if the change is within the dead band
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
107
Communication Properties
● PLC-PLC Channels
● Allows to communicate the variable
between PLC
● Failure state
● Allows to set a value, when the
communication fails
● Communication frame
● Select frame for transfer between
PLC and Data Server
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
108
Alarm Properties
● Alarm
● Defines, if an variable is an alarm
● Values: Not assigned, yes, no
● Alarm Group
● Defines the alarm group the alarm
belongs
● Alarm List
● Defines the alarm condition
● Sets the alarm text to be displayed in
the operator screen
● Sets the priority depending on the
used HMI system
● Multiple alarms can be defined
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
109
Command Properties
● Command
● Only available for In and In/Out
variables
● Defines the origin of an command,
e.g. from the Operator
● Access level
● Required access level in the HMI to
modify the value, e.g., Operator,
Maintenance, Supervisor etc.
● Levels are defined in the
customization or SCoD-Editor
● Remark
● Only used with iFix
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
110
Values of Command Option
● View Only
EQ_CM
● Value is only displayed in the HMI
● Operator cannot change the value
FB
Var1
EQ_CM_Var1
Possibility
ViewOnly
Possibility
Logic
Operator
Parameter
Constant
EQ_CM_Var1
● Logic
● Value is displayed in the HMI
● Operator cannot change the value
● Value comes from logic command
in the PLC
● Operator, Parameter
EQ_CM
FB
Var1
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
● Value is displayed in the HMI
● Can be modified by the operator
● Literal
● Value is a constant and cannot be
modified
111
Example for Command Option
● Use of different Command Options
● for In/Out variable type
● additional information for the operator
EQ_CM
FB
Logic
Possibility
Possibility
C_Var1
H_Var1
EQ_CM_Var2
Logic
Possibility
C_Var2
H_Var2
16#F876
EQ_CM_Var1
EQ_CM_Var2
C_Var3
Operator
Parameter
Different
Access Levels
Possibility
H_Var3
EQ_CM_Var3
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
Constant
112
Archive Properties
● Archive Properties
● Vijeo Citect: Definition of Trends
● ArchestrA, Monitor Pro: Definition
of Archiving
● Archive
● Defines if a variable is archived
● Archive Name
● Sets the archive name that is
defined in the Customization
● Sample Rate
● Sets the sample rate of the Trend /
Archive
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
113
Display Properties
● Display Format
● Sets the format how the variable is
displayed in the HMI
● Unit Group, Unit
● Sets the engineering unit of the
variable
● Scaling Min, Max
● Sets the scaled range in the HMI
● Boundary Min, Max
● Sets the range for operation
● Raw Min, Max
● Sets the raw value range in the
PLC
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
114
Display Properties
Unit
(list in Customization)
Display Format
(list in Customization)
Analog
Value
10.0
15.0
85.0

Scaling
min

Boundary
min
°C
90.0

Boundary Scaling
max
max
Operator range
Value range ( HMI display )
Raw
min
Raw
max
Remark: If scaling is done in the PLC, raw values can be left empty
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
115
Free Properties
● Free Properties
● up to 20 properties to be freely
assigned
● can be used for HMI properties
not specified in UAG
● e.g. attach variable to report
● e.g. configure trending
● Evaluation is usually done via
export of the Generic HMI
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
116
Usage Properties
● Usage
● Not a property, but a crossreference, where a variable is used
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
117
Control Module Properties
● Summary of Variable Properties
● Most important Variable Properties
are summarized in the Control
Module Properties
● Definition is done in the SCoD
Editor
● Idea of full configuration of Control
Module
● All relevant parameters are there
● Ordered in different tabs
● Easy to access and to modify
● Access via context menu
“Properties”
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
118
Add a Variable
● Add a Variable
● Open Variable Browser
from context menu of the
tree
● Select “New” from
context menu of the
Variable Browser
● Define the variable, at
least:
● Name
● Description
● Connection Type
● Type
● Apply Variable
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
119
Summary Variable Properties
● Properties of HMI variables
● Variable types PLC_HMI and HMI
● Alarm definition and assignment
● Possibilities of Operator interaction
● Archive and Trending (storage of historical values)
● Display and measurement unit
● Free properties
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
120
UAG Technical Training
08 Template Types
What you learn in this chapter
● Template Types
● Pre-defined higher level functions
● Organized in Libraries
● Setting up a Library and Template Types
● Change Propagation of Template Types
● Template Instances
● Instantiating a Template
● Linking to the Topological Model
● Additional Control Modules and Variables
● Handling of Change Propagation
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
122
Template Types and Instances
● Template Types
● Pre-defined higher level functions, e.g. PID
Control, Sequence
● Combination of multiple Control Modules with
● Variables and Properties
● Pre-wired Links and Interlocks
● Common or single HMI symbols
● Organized in Libraries
● Instances
● Instantiation on Equipment Level
● As Equipment and Control Modules
● Naming of Equipment is applied
● Wiring of the open Links and Interlocks
● Connection to the Topological Model
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
123
Add a Template Library
● Add a Template Library
● Select “New Template Library” from
Template Libraries’ context menu
● Enter a name and a description
● Apply Template Library
● Remarks
● A new Template Library can also be
added from the Customization
● Existing Libraries can be opened in
the UAG project and included.
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
124
Add a Template Type
● Add a new Template Type
● Select “New Template Type” in the
context menu of the library
● Enter a name and a description
● Select the HMI Symbol
● HMI symbol of template: A
common symbol (Genie) for
the entire template
● HMI symbol of members: The
symbols (Genies) of the single
member Control Modules are
used
● Optionally add a help file
● Apply the Template Type
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
125
Add Members to Template Type
● Add a Control Module Member
● Select “New Control Module” from
the type’s context menu
● The dialog opened is the same as
for regular Control Modules in the
Physical Model
● Select the SCoD type, enter a
name and description
● Set the properties of the Control
Module as necessary
● Apply the Control Module
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
126
Properties of a Template Type
● Template Properties
● Allow quick configuration of Template
instances (like Control Module
Properties)
● Add Properties to the Type
● Select “Open Property List” from
type’s context menu
● Select “add from Member Control
Modules”, if an existing property
should be visible on Type level
● Select “New” from context menu of
the property list, if property that does
not exist for a Control Module should
be created
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
127
Properties of a Template Type
● Add existing Property
● Select “Add from
Member…” in property
list’s context menu
● Select the properties
that should appear on
the level of the Template
● Name of the Tab and
Position on the Tab can
be adjusted in the
property list
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
128
Properties of a Template Type
● Add new Property
● Select “New” in property
list’s context menu
● Select the variable and
its property that should
become a Template
property
● Enter a caption name for
the property
● Name of the Tab and
Position on the Tab can
be adjusted in the
“Position” tab
● Apply Property
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
129
Links and Interlocks in Template Types
● Links
● Links of member Control Modules can be pre-wired with all variables that
exist inside the Template Type
● New Variables can be defined on Template or member level
● Workflow is the same as for regular Links
● Interlocks
● Interlocks of member Control Modules can be pre-wired with all variables
that exist inside the Template Type
● New Variables can be defined on Template or member level
● Workflow is the same as for regular Links
● An Interlock must be fully configured. It is not possible to keep function block
connections open that are set in the instance
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
130
Connection to the Topological Model
● Template Type
● There is no link to the Topological Model
● Template Instances
● On instantiation, or later via Equipment properties can be set
● The executing PLC
● The HMI/Control Domain and the Picture
● Once a PLC is set the IO signals can be assigned
● There is no difference in Workflow compared to a standard Equipment
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
131
Save a Template Library
● Save a Template Library
● In opposite to the rest of a UAG
project a Template Library has to
be saved
● A modified and unsaved Library is
indicated by an asterisk
● In the UAG project always the last
saved version is applied
● Changes are propagated to the
instances
● For save use “Save” from context
menu of the Template Library
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
132
Instantiate Template Type
● Instantiate a Template
● Select “New Equipment”
in context menu of
Physical Model
● Checkmark “Use
Template” and select the
Template
● Enter a name and a
description
● Optionally assign PLC
and HMI
● Set the Template’s
properties
● Apply Template
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
133
Instantiate Template Type
● Appliance of Naming
Rules
● When the Template is
instantiate the following
dialog is popped up
● Instance names can be
adjusted according to
the needs
● Instance names must be
adjusted according to
the naming rules
● The checkmark indicates
a valid name according
to the rules
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
134
Use instantiated Template
● Interlocks, Links
● Interlocks and Links can be defined with the standard workflow for Control
Modules
● Only those Interlocks and Links can be defined that were not defined in the
Template Type definition
● Already in the Type defined Interlocks and Links do not appear in the lists of
Interlocks and Links
● Connection to the Topological Model
● The connection to the Topological Model is done in the same way as for
standard Equipment and Control Modules, i.e.
● Assigning of PLC, HMI and Picture in the Equipment
● Assigning of IO_PLC variables to the IO cards
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
135
Additional Control Modules & Variables
● Additional Control Modules
● Additional Control Modules can be added to a
Template Instance
● They are not part of the Template instance but
displayed on the same HMI picture
● Additional Hierarchy Elements
● If the definition of the Physical Model allows
additional hierarchy levels can be added to a
Template Instance
● Color Indication
● Template Instances are displayed in blue,
standard instances are displayed in black
● There is no color indication for Variables
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
136
Modification of Template Type
● Modifications of Template Type
● Template Types can be modified
● Modifications are applied to the instances when the library is saved
● Impact on Instances
● A dialog is popped up that list all affected instances and the changes done
● The user can decide if the particular instance is updated, deleted or
disconnected
● In case of disconnection the instances are converted to regular Equipment
and Control Modules
● There are cases where an update of particular instances is not possible due
to name conflicts, e.g. an additional Control Module exists with the same
name
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
137
Define Template Types by Drag & Drop
● Drag & Drop from Physical Model
● Existing Equipment with Control Modules can be dragged to a Template
library node
● User is asked for a name and description
● All links to the Topological Node are stripped
● All references that are outside the Equipment and the Control Modules are
stripped, e.g.
● A Link Variable that is not part of the Equipment
● Interlocks that use those Variables
● New Template Type gets created and has to be saved
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
138
Reference Existing Template Libraries
● Existing Libraries
● Existing libraries can be opened via the context
menu
● Include
● To use an existing library it has to be included
into the project via the context menu
● Exclude
● An included library can be excluded via the
context menu
● Read only
● Only the first UAG project that opens a library
gets the write access
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
139
Summary Template Types
● Template Types
● Combination of multiple Control Modules with
● Variables and Properties
● Pre-wired Links and Interlocks
● Common or single HMI symbols
● Organized in Libraries
● Changes are propagated
● Instance
● Instantiation on Equipment Level as Equipment and Control Modules
● Wiring of the open Links and Interlocks
● Connection to the Topological Model
● Propagated Changes can be applied or Instance is disconnected
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
140
UAG Technical Training
09 Ethernet IO
What you learn in this chapter
● Ethernet IO Points
● As Ethernet IO Rack for single Ethernet IO modules, e.g. Momentum
● As Ethernet IO Device for Advantys STB
● As Modbus IO Rack for Modbus Gateways
● As Profibus IO Rack for Profibus Gateway ( described with Profibus IO)
● Handling in UAG
● Linked to a particular Ethernet Interface, e.g. NOE, ETY, CPU
● Memory assignment is done by Memory Mapper
● IO Scanner entries are generated for Unity Pro
● Code for data exchange and variable assignment is generated
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
142
Add Ethernet IO Rack
● Ethernet IO Rack
● An Ethernet IO Rack allows the
data exchange with IO modules
that have a fixed IO map and an
own IP-address
● Add an Ethernet IO Rack
● In context menu of the PLC select
“New Rack”
● Set Link Type to Ethernet IO and
Rack type Ethernet IO
● The Head Slot offers all slots that
are equipped with an Ethernet
Interface, select one
● Apply Rack
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
143
Add IO Modules to an Ethernet IO Rack
● Populate the Rack
● The rack is populated in the same way as the PLC Rack
● UAG offers all Ethernet Momentum IO and Ethernet IO that are additionallly
configured in the Customization
● Assign the IP address
● In the Properties of each module the IP-address and the scan rate can be
configured
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
144
Configured Ethernet IO Rack
● Example
● The screenshots show an Example
for an Ethernet IO Rack configured
with some Momentum IO
● The Rack is listed under the slot of
the Ethernet Interface and shown in
the Network Viewer
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
145
Add an Advantys IO on Ethernet
● Advantys IO Rack
● An Advantys IO Rack allows the
data exchange with Advantys IO
that is configured with Advantys
Software
● Add an Ethernet IO Rack
● In context menu of the PLC select
“New Rack”
● Set Link Type to “Ethernet Device”
and Rack type “Advantys STB”
● The Head Slot offers all slots that
are equipped with an Ethernet
Interface, select one
● Name the Advantys configuration
file
● Apply Rack
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
146
Import an Advantys IO on Ethernet
● Open Advantys Configuration
● Once an Advantys Rack is created,
the IO system can be opened in
Advantys software and configured
● Select “Open Advantys” from
context menu
● Import Advantys Configuration
● To make the configured Advantys
IO usable in UAG, it has to be
imported
● Select “Import Advantys” from
context menu
● After the imported the Advantys slot
cards and IO points are available in
the model
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
147
Assign IP-address to Advantys IO
● Assign IP address
● Advantys IO successfully imported
● IP-address assignment is available
in the Properties of NIP-module,
i.e. the first module of the Advantys
Rack
● Repetitive rate for IO scanner can
also be set
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
148
Configured Advantys IO on Ethernet
● Example
● The screenshots show an Example
for a configured Advantys IO
● The Advantys is listed under the
slot of the Ethernet Interface and
shown in the Network Viewer
● CANopen extension of Advantys
can be used. UAG shows the
extension devices as part of the
rack
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
149
Add a Modbus-Ethernet Gateway
● Modbus IO Rack
● A Modbus IO Rack allows the data
exchange with Modbus devices that
are connected via a Modbus
Ethernet Gateway
● Add an Ethernet IO Rack
● In context menu of the PLC select
“New Rack”
● Set Link Type to “Modbus IO” and
select the Gateway type”
● The Head Slot offers all slots that are
equipped with an Ethernet Interface,
select one
● Enter the IP-address of the Gateway
● Apply Rack
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
150
Add a Modbus-Ethernet Bridge
● Populate the Rack
● The rack is populated in the same
way as the PLC Rack
● UAG offers all Modbus devices IO
that are configured in the
Customization
● Assign the Modbus address
● In the Properties of each Modbus
device in the rack the Modbus
address and the scan rate can be
configured
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
151
Configured Modbus-Ethernet Gateway
● Example
● The screenshots show an Example
for a configured Modbus-Ethernet
Gateway with an ATV running on
Modbus
● The devices are listed under the
slot of the Ethernet Interface and
shown in the Network Viewer as
separate Modbus network behind
the Gateway
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
152
Memory Mapper
● Memory Mapping
● The Memory Mapper assigns %IW and %MW according to the specified IO
range of each module
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
153
Generated Code
● Transfer from Variables to IO scanner tables (Read & Write)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
154
Summary Ethernet IO
● Different Ethernet IO are supported
● Ethernet Rack for Momentum and any other IO Module with own IP-address
● Advantys STB Rack for Advantys based IO including CANopen extension
● Modbus Rack for Modbus based devices via Modbus-Ethernet Gateway
● IO modules are organized in Racks
● Located under the serving Ethernet Interface
● Modules and IO points can be accessed in the same way as for local PLC
modules
● Memory Mapper assigns PLC addresses
● Generated Code
● IO Scanner entries for Unity Pro
● Data Conversion to the IO Scanner Interface
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
155
UAG Technical Training
10 Customize the project
What you learn in this chapter
● UAG Customization
● General Project Settings
● Define the Physical Model to be used
● Set the naming rules for objects
● Define how variable names get created
● Edit configuration data for the HMI system
● Select the PLC hardware you want to use
● Add specific IO devices
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
157
General Information
● Adjust the UAG project to the needs
● Select HMI to be used
● Select Libraries and Templates to be used
● Customize Physical Model
● Define Naming Rules for Objects
● Define general behavior of HMI values
● Select used Hardware
● Why to do? Benefits
● Adjust UAG to the project
● Make the use of UAG easier
● Enforce company and project standards
● Less mistakes in doing the project with UAG
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
158
Workflow Customization
●
General
●
●
●
Physical Level
●
●
●
Define the Libraries to be used in the project
Define the Tools to document your process
e.g. CAD, Word, ...
Define the parameters of Area, Process Cell,
Unit and Equipment
Define the availability of control module and
variable container at each layer.
Naming Convention
●
●
Define the Description Length of the
comments
Define the Naming Rules for the different
objects UAG
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
159
Workflow Customization
●
Name creation rules
●
●
Data
●
●
●
●
●
●
Define the rules for naming variables at
different hierarchy levels
Define the Access Level
Define Alarm Priorities
Define Archiving and Trending behavior
Define the Display Format
Define the Measurement Unit Groups and
Measurement Units
PLC
●
●
Select the hardware for the project: PLC,
modules etc.
Define additional IO and field-bus devices
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
160
Settings - General
● Paths
● Path for SCoD libraries
● Path for XML style sheet conversion
● Path for help files of the used SCoD
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
161
Settings - General
● Libraries
● Selection of the libraries to be used in the
project
● Tools
● Add programs (known extensions) for direct use
in UAG
● Export Format Name
● Enter the transformations to be done after XML
export (Style sheet and export file name)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
162
Settings Library
● Libraries
● All available libraries (SCoD and Templates) are listed in the library window
according to the specified path
● A library can be selected, if the correct HMI system is supported
● A library can be de-selected, if it is not used in the UAG project
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
163
Settings – Physical Level
● Layer Levels
● Adjust, add or remove layer levels in the
Physical Model of the project.
● Modification of Level
● Give the level an individual name
● Selection, if unique names are required
● Selection, if the Control Module and / or
Variables can be used at this level
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
164
Settings – Physical Level Examples
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
165
Settings - Naming Convention
● Description length (comments)
● Maximum of characters authorized in UAG
● Up to 64 characters for all mentioned elements
● Control Domain, PLC, Rack, etc.
● Control Module, Equipment, Variable, etc.
● Naming convention
● Rules how to name single element in the project
● Freely editable or restrictions can be made
● Enforce the applied naming standard
● Avoid mistakes during naming
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
166
Settings - Naming Convention
● Naming convention
● Rules how to input single element names in the
UAG project
● Freely editable or restrictions can be made
● to enforce the applied naming standard
● to avoid mistakes during naming
● Example
● Object Name is concatenated out of two parts
● First part: 3 digit number
● Second part: Freely editable text with a
maximum of 10 characters
● E.g., “001HelloWorld”
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
167
Settings - Naming Convention
● Setting Up Naming Conventions
● Enter the number of different
name components parts
● number of edit fields
● Each component can be edited
● Via buttons “Edit1”, …
● as a Letter, a Number or a
List
● actual result for the field is
displayed
● Total length of the name is
supervised
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
168
Settings - Naming Convention
● Field Type: Letter, fixed size
● size is editable (maximum 16
characters)
● capital letters without digits
● small letters without digits
● capital and small letters with digits
● specify small or capital letter for
each character (digits not allowed)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
169
Settings - Naming Convention
● Field Type: Letter, variable size
● minimum and maximum size Size
are editable
● capital letters with digits
● small letters with digits
● capital and small letters with digits
● Field Type: Letter, fixed string
● Fixed Text
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
170
Settings - Naming Convention
● Field Type: Number, fixed size
● size is editable (maximum 16
characters)
● add or no leading digits
● Example for 3 digits
● 056 with leading digits
● 56 without leading digits
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
171
Settings - Naming Convention
● Field Type: List
● define a new list or choose an
existing one
● select predefined values in a list
● the “short” field is displayed in
UAG
● up to 4 alphanumeric
characters
● always the same number of
characters
● the “description” field can have up
to 64 characters
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
172
Settings - Naming Convention
● List Designer
● Open
● from menu “List”
● from field type List (Button
“Designer”)
● create, modify and remove a list
● up to 15 characters for the
name of the list
● edit the values contained in the
list
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
173
Settings - Naming Convention
● Comment
● appears in UAG, beside or below
the name field
● standard comment contains
information about the length
● possible to edit and adjust
according to the used naming rule
● Recommended to adjust, when
naming convention is changed
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
174
Settings - Naming Convention
● Maximum length of the name
Area
32
PLC
8
Process cell
32
Channel
16
Unit
32
HMI
32
Equipment
32
Control Domain
16
Control Module
32
Data Server
8
Variable
32
Network Node
32
Network Segment
32
Picture Group
32
Picture
32
● Maximum length of the Physical Model levels
must reflect the Name Creation Rule
● see next slide
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
175
Settings - Naming Convention
● Limitation of Variable Names by PLC and HMI Software
● Unity Pro with Vijeo Citect:
31 + 1 characters (addition is separator)
● Unity Pro with Monitor Pro:
30 + 2 characters
● Unity Pro with iFix:
28 + 2 characters
● Unity Pro with ArchestrA:
31 + 1 characters
● Name Creation Rule
● Standard Rule is Equipment_ControlModule_Variable
● I.e., the summed length of these three elements must not exceed 30
characters (as 2 separators “_” are used)
● If only parts of a level name are used (Field), the summed length uses
the length of the part
● See next slides for details
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
176
Settings – Name Creation Rules
● Defining rules for naming
● Define rules for Variables used in a particular
hierarchy level of the Physical Model
● Used in a Control Module
● Used directly on the level
● Define rules for Variable’s comment on the
particular level
● Remark
● In the default ISA S88 model rules can be set
only on Equipment level, as only there Control
Modules and Variables are allowed
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
177
Settings – Name Creation Rules
● Naming rules for Variables
● Define the number of name
components (Fields; max. 32).
● Each field can be edited and three
types can be selected:
● Fixed String,
● Physical Level
● Variable
● All Physical levels can be used
either with
● Complete name
● Single name fields
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
178
Settings – Name Creation Rules
● Following rules have to be applied
● Name components to be used
● Variable name
● Control Module name (for
Control Module Variables
only)
● Variable name has to be
separated by “_”-character from
the rest of the name
● Maximum length of 32 (iFix 30)
has to be respected
● Consistency check
● Rules are checked during Analyze
of the Customization
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
179
Settings – Name Creation Rules
● Example 1: Standard ISA S88 Model
● The variable will be defined with
name of Equipment followed by
Control Module then the variable
● E.g., EQ2_Mot22_MFwd
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
180
Settings – Name Creation Rules
● Example:
● The variable will be defined with a
fixed string followed by Control
Module then the variable
● E.g., Plant_Mot22_MFwd
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
181
Settings - Data
● Alarm Group
● Organization of Alarms into groups
● Availability in the single HMI systems
● Vijeo Citect: Combines Alarm Group and Priority
(next slide) to an Alarm Category
● Monitor Pro: Fully supported
● iFix: Not supported
● ArchestrA: Not supported
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
182
Settings - Data
● Alarm Priority
● list of the different alarm priorities available in
the HMI
● Availability in the single HMI systems
● Vijeo Citect: Combines Alarm Group and
Priority to an Alarm Category (max. 253)
● Monitor Pro: 3 priorities supported
● iFix: fully supported
● ArchestrA: fully supported
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
183
Settings - Data
● Archive Name
● Defines the name and location of Archive
● Availability in the single HMI systems
● Vijeo Citect: fully supported for Trends
● Monitor Pro: fully supported
● iFix: not supported
● ArchestrA: fully supported
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
184
Settings - Data
● Communication Frame
● Definition of communication frames
● Data exchange between PLC and HMI
● Availability in the single HMI systems
● Fully supported by all systems
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
185
Settings - Data
● Data Type
● the elementary data types for Unity Pro
● structured data imported from the used libraries
● possible to deselect a type (as long as not used)
● possible to add a new data type
● no definition of internal structure
● rename or remove possible
● impossibility to modify or remove
● elementary types
● types coming from a SCoD library
● at least one data type must be selected
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
186
Settings - Data
● Display Format
● list of the different display formats available for
the HMI
● at least one format must be selected
● Availability in the single HMI systems
● Fully supported by all systems
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
187
Settings - Data
● Measurement Unit Group
● list of the groups the Units belong to
● Measurement Unit
● list of the different units used in the application
● a unit can only be added, if a group is defined
● Availability in the single HMI systems
● Fully supported by all systems
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
188
Settings - PLC
● Define the hardware used in the project
● PLC family
● Rack
● Module
● User Defined Module
● PLC Family
● Choose the PLC-Types used in the project
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
189
Settings - PLC
● Rack
● Choose the Racks used in the project
● Module
● Choose the Modules used in the project
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
190
Settings - PLC
● User defined module
● Adding specific modules to be
used in UAG
● Specify name, description of the
module
● Specify a category and the
possible racks
● Specify the input and output range
according to the modules
documentation
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
191
Settings - Fieldbus
● Add a new Fieldbus Slave
Type
● Select “Add” from Profibus
context menu
● Enter a name for the type
to be added
● Apply Type
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
192
Settings - Fieldbus
● Add a Module to a Slave
Type
● Select “Add” form Slave
Type’s context menu
● Enter a Module Name
and a Description
● Define input and output
range
● Select IO Map to define
the Input and Output
signals on the defined
range
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
193
Settings - Fieldbus
● Edit the IO Mapping of a
Fieldbus Slave Type
● Adding / modifying a
module item
● Define data type, byte
order, position in byte
stream
● Enter so many items
until the complete range
is used (gaps are
possible)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
194
Settings - Fieldbus
● Module definition using user FFBs for the mapping mapping
● Using a DFB instead of the direct mapping of the byte stream
● Instead of the logic constructed by UAG,
● a user DFB maps the correct information into the variables
● Satisfy more complex data type modification
● DFB interface is based on the variable description
● proposed from UAG to be imported in Unity Pro
● enhanced with the user logic
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
195
Analyze the Customization
● Checking the Customization
● start the analyze via the menu or the icon
● at any time by the programmer
● a report is displayed with the errors in red
● automatically when exiting the file or the editor
● in this case the report is not displayed;
● if errors are detected, a dialog box opens
● the report is displayed by pressing the
“details” button
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
196
Additional Information
● Analyze
● Analyze the project
● Version
● Shows the Version of the project
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
197
UAG Technical Training
11 From a DFB to SCoD
What you learn in this chapter
● Design a DFB
● Basic steps to set up a DFB
● Basic steps to put a DFB in a library
● Basic steps to export a DFB
● Design a Smart Control Device (SCoD)
● Basic steps to import a DFB
● Basic steps to make a ScoD avialable for a Project
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
199
From a DFB to SCoD
● Unity Pro Part
● Create a DFB in Unity Pro
● Analyze and validate the DFB
● Put the DFB in the Unity library
● Export the DFB from Unity Pro
● UAG Part
● Open an existing SCoD library with the SCoD editor
● Save the library under a new name
● Import the DFB by using the Unity export file
● Validate DFB as new ScoD
● Save SCoD library
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
200
Create a new DFB
● Create a new DFB in Unity Pro
● Open Derived FB instances
● Context Menu of Derived FB Instances
● Open
● Choose DFB Types
● Enter a name for the new DFB, e.g. MOT2D
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
201
Modify the DFB Interface
● Modify the interface of the DFB
● Enter in- and outputs as required for the function
● Enter internal variables as needed
● Use of public variables
● not supported by UAG
● only for programming inside Unity available
● Create the sections needed for the function
● Add code to the DFB
● Open the created sections
● Design the code as required for the function
● Insert Blocks with Icon or <CTRL> D or right
mouse click
● Connect variables and blocks
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
202
Modify the DFB Code
● Recommended logic inside the block
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
203
Modify the DFB Code
● Recommended logic inside the block
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
204
Validate DFB and put into the Library
● Analyze and Validate the DFB
● In the Data Editor
● In context menu select “Analyze
type”
● Put the DFB in the Unity Library
● Choose “Copy into Library” in the
context menu
● Select the library family
● Only the library reference allows
UAG to instantiate a function block
during generation
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
205
Export Function Block
● Export the DFB
● Select the DFB in the Project Browser
● Select “Export” in the context menu
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
206
Import DFB as new SCoD
● Used SCoD library
● Open existing SCoD Library
● e.g. Processxx.OSL
● Save SCoD Library with new Name
● e.g. TEST_LIB.OSL
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
207
Import DFB as new SCoD
● Import DFB
● Select “Import DFB”
● Depending on the selected file one or several
function blocks are offered
● Select or de-select the single DFB
● Only DFB interface is imported as SCoD
● the DFB interface (inputs, outputs) is available
● UAG does not know about the internal code
(Black Box)
● Default Settings
● for all pins variables of type PLC are added to
the SCoD
● all pins are connected to the variable of the
same name
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
208
Make the SCoD available
● Commit SCoD
● In context menu of the SCoD select
“Commit SCoD”
● The Commit Procedure
● After modifications an analyze is
necessary first
● Correct errors, if necessary
● Click “Commit SCoD” for a second
time
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
209
Use the SCoD
● Update the Customization
● Open the Customization of the
project
● The new SCoD is recognized and
its data imported (Message Box)
● Save the Customization file
● Use of ScoD
● In the UAG project the updated
library has to be confirmed
● The new ScoD can now be
instantiated as a new Control
Module
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
210
Summary From DFB to SCoD
● Define a DFB
● Define the interface (Inputs, Outputs)
● Write the necessary DFB code
● Put the DFb in the Unity Pro library that UAG can reference it
● Export the DFB for SCoD definition
● Define a SCoD
● Import the DFB into the SCoD editor (only the Interface is used)
● Commit the SCoD when it is finalized
● Update the Customization of the Project
● Use SCoD in the Project
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
211
Unity Application Generator
12 SCoD Editor
What you learn in this chapter
● ScoD Definition
● How are pins of DFB used
● How variables are defined and used
● What are variable properties
● What are SCoD properties
● What is inheritance
● How is an HMI symbol assigned
● How is the SCoD committed
● General Data
● General Data for Variable properties
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
213
Overview SCoD Editor Functions
● Design and Handling of SCoDs in Libraries
● Create new SCoDs
● Assign a DFB or EFB and an HMI graphics
● Import DFB and EFB from Unity Pro
● Import Data Types
● Commit the SCoD
● SCoD Interface Design
● Modification of SCoD Interface (IO)
● Allow Additional Logic (Interlocks)
● Allow Linking of Pins
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
214
Overview SCoD Editor Functions
● Variables and their Usage
● Variable Environment and Communication
● Variable Properties like Alarms, Trends etc.
● SCoD Properties
● General Data like Access Levels, Alarm
Priorities, etc
● Adds Properties for single variables (Alarms,
Initial Value, etc.)
● Connect Variables (Inherit Values)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
215
SCoD Editor Workflow
● Set up a new SCoD library
● Create new SCoD library
● Select the HMI used
● Alternative rename an existing library
● Delete the unused SCoDs
● Advantage: re-use of general data
● Import DFB and EFB as new ScoDs
● Import DDT not in DFB included
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
216
SCoD Editor Workflow
● Define General Data as needed
● General Data for HMI
● Access levels
● Alarm Groups and Priorities
● Archive names
● Measurement Units
● Communication Frames
● Enumeration
● SCoD Interface Design
● Modification of SCoD interface (IO)
● Allow Additional Logic (Interlocks)
● Allow Linking of Pins
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
217
SCoD Editor Workflow
● Define the behavior of variables
● Modify imported variables and their usage
● variable environment and communication
● Define PLC behavior: initial value
● Define HMI behavior: alarms, archives, ...
● Add variables as needed
● Define Properties and Inheritance
● Define values to be listed on the property page
● Define inherited values
● Finalize SCoD
● Assign HMI Graphics (symbol) and help file
● Analyze the SCoD, correct errors
● Commit SCoD
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
218
Set Up a new SCoD library
● SCoD Editor new Library
● Select “New” icon or menu entry
● Choose the appropriate HMI
system
● Save the library
● Rename existing library
● Open existing SCoD Library, e.g.
UAGProcessLibVCV2.0.osl
● Save SCoD Library with new Name,
e.g. TestLib. osl
● Delete unused SCoDs from library
● Advantage: re-use of general data
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
219
Set Up a new SCoD library
● Import DFB or EFB
● Only the DFB interface is imported
● Inputs and Outputs
● Code remains in Unity Pro
● Import DFB from Unity Pro: *.xef, *xdb file
● Import DDT for additional variables from Unity
Pro: *.xef, *xdb file
● Imported DFB as SCoD
● With the import the SCoD editor automatically
● Creates variables of type PLC for all pins
● Connects all pins to those variables
● The variable name and the pin name is the
same
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
220
SCoD representation in the Editor
● SCoD is represented by
● Variables
● coming along with
the SCoD
● (partially) connected
to pins
● FFB Pins
● Interface of DFB /
EFB
● Usage of the pins
● Properties
● Value modification
via Property Page
● Inheritance
● connecting variables
of the SCoD
● edit once, modify
multiple
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
221
Workflow for Modification of SCoD
● FFB Pins
● Define how the pins are
going to be used: Variable,
Link, Interlock, …
● Variables
● Define for each variable,
where and how it is used
● Properties
● Define the general
properties of the SCoD
● Inheritance
● Define the inherited values
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
222
SCoD FFB Pins
● Declare the usage of the
pins
● Variable connected, Link,
Interlock, Literal
● Add, delete and modify
pins
● Added (modified) pins
must be available in the
original DFB / EFB
● Deleted pins are ignored
and appear unconnected
in PLC code
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
223
Add and modify a pin
● Add or Modify a Pin
● Select “New Pin” or
“Properties” from context
menu
● Properties of a Pin
● Name
● Name of the pin
● Data Type
● Select from a list,
e.g. Real, Bool, ...
● I/O Type
● IN, OUT, INOUT
● Defines the pin type
● Position
● Position of the pin
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
224
Add and modify a pin
● Pin usage
● Not connected
● Variable
● Literal (Inputs only)
● Interlock (Boolean inputs only)
● Literal Mode
● Assign a static or editable literal
● Literal Value (static, assigned fixed
in the SCoD Editor)
● Variable Property (editable, derived
from a variable)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
225
SCoD Variables Workflow
● Declare environment of usage
● Connected to pin or additional variable
● Connection type: PLC, PLC_HMI, ...
● Add, delete and modify variables
● Set basic properties for adding
● Copy variables
● Insert to same or other SCoD
● Adjust properties
● Make values visible and changeable
● PLC: initial value, communication frame
● HMI: alarms, archives, operator access
● Free properties for various purpose
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
226
SCoD Variables Basic Properties
● Basic Properties
● Name and description
● Data Type
● Connection type
● Environment the
variable is used
● PLC, PLC_HMI,
HMI, PLC_NET,
PLC, IO, Literal
● I/O Type
● depending on the
connected pin or
usage
● IN, OUT, INOUT
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
227
SCoD Variables General Properties
● HMI Bitfield Variable
● Assign a structure of
type HMI to a Word,
DWord
● Sending HMI values
in compact way
(Word)
● Split single values
by bitfield structure
● Recommended for
Monitor Pro and
ArchestrA
● For Vijeo Citect use
Cicode Function for
extraction
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
228
SCoD Variables General Properties
● Connected Pins
● Shows connected pins
for this variable
● Add and remove
connected pins
● Inheritance Relation
● Shows where this
variable is used for
Inheritance
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
229
SCoD Variables Value Properties
● Initial Value
● set initial value of variable
● Deadband Mode
● Suppressing an update of
the value, if the change is
within the dead band
● Variable Used
● defines, if an IO_ PLC the
variable must be used
● Invert
● Inverts the value of an
input (IN) variable
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
230
SCoD Variables Communication Prop.
● Communication Frame
● set communication frame
for type PLC_HMI
● Failure State & Value
● Allows to set a value,
when the communication
fails
● set timeout behavior (last
value, user defined)
● set the timeout value
● available for type IO_PLC
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
231
SCoD Variables Alarms
● General
● Only available for type
PLC_HMI and HMI
● Alarm
● Assigns an alarm to this
variables
● Alarm Group and Priority
● Assigns the alarm group
● Aelect from predefined
lists ( General Data)
● Alarm List
● Shows all defined Alarms
on a variable
● For single Alarm switch to
Details
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
232
SCoD Variables Alarms
● Alarm Text
● Defines the text displayed
in the alarm viewer
● Default:
Comment Variable Control Module –
Equipment
● Default Composition can
be set in the Customization
● Alarm Operator and Limit
● Defines the comparison
operator (=, >, <, <>, ...)
● Defines the limit for
activating the alarm
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
233
SCoD Variables Command
● General
● Only available for type
PLC_HMI and HMI
● Command
● Assigns the interaction
level for this variable
● Operator, Parameter:
read and write
● all other: read only
● Access level
● Necessary access level
for interaction
● Select from predefined
lists ( General Data)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
234
SCoD Variables Command
● State 0 / 1 Text
● Text to be displayed for
the variable in the HMI
● Update Initial Value
● Enables the update of
initial values in Unity Pro
● Recommended to set in
SCoD library only
● Available for PLC_HMI,
PLC, PLC_NET
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
235
SCoD Variables Archive
● General
● Only available for type
PLC_HMI and HMI
● Not supported by iFix
● Archive
● Sets the variable to be
stored in an archive or
displayed as trend
● Archive Name
● Set the archive name to
be used, i.e. the file
name or database table
● Sample Rate
● Sets the sample rate of
the Trend / Archive
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
236
SCoD Variables Display
● General
● Only available for type
PLC_HMI and HM
● Only analog variables
(Int, Dint, Real, ...)
● Not supported by
Monitor Pro 7.2 / 7.6
● Display Format
● Set the display format
● Select from predefined
lists ( General Data)
● Measurement Unit
● set the measurement
unit for the value
● select from predefined
lists ( General Data)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
237
SCoD Variables Display
● Raw Min, Max
● Sets the raw value range
in the PLC
● Mainly used for Vijeo
Citect, when scaling is
not done on PLC side
● Scaling min / max
● Scaling for Display
output in the HMI
● Boundary min / max
Boundaries for manual
input in the HMI
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
238
SCoD Variables Free properties
● Free Property List
● set up to 20 properties
can be defined
● usable for additional
information, e.g.
● trending
● mathematical
operation
● available in the XML
export file
● transferred to HMI
format via style
sheets
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
239
How to modify Variable Properties
● Property Value
● free editable value
● pop up select for Boolean values or enumeration
● Availability
● Visible: value is visible in the UAG project
● Changeable: value is changeable in the UAG project
● visible is automatically selected
● if not selected, the user cannot change this value
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
240
How to modify Variable Properties
● Enumeration
● Use enumeration to choose values
● Enumeration must be defined under General Data
● Possibility to restrict the user’s choice
● Inheritance
● Shows to which variables / properties the value is inherited
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
241
SCoD Properties
● Define variable properties to be changed in UAG
● Control Module configuration
● Properties available in the module’ s property page in UAG
● easy way to get all necessary modification at one place
● instead of going through all variables looking for modification
● Add, delete and modify properties
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
242
Set up a SCoD Properties
● Step 1: Define Property
● Select “New Property” from context menu
● Choose Tab “General”
● Select a variable (“Select” button)
● Choose a property to be updated in UAG
● Set a name for the new SCoD property
(“Caption”)
● Important Note
● The variable property must be “Changeable”
● Otherwise the SCoD property cannot be
modified
● Select “Changeable” for the variable’s property
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
243
Set up a SCoD Properties
● Step 2: Assign Position on property page
● Select Tab “Position”
● Choose the position of the property on
● the right property tab, e.g. Configuration
● the position on the page (select 1 to 12)
● Property pages can be
● added (Button “Add”)
● named (Enter name under “Caption”)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
244
SCoD Inheritance
● Connect variables between SCoDs or within a SCoD
● Usable for deploying values to different variable properties, e.g.
● One Initial value for different variables
● The same values for scaling or boundaries
● Reduce effort for user, avoid mistakes
● Add, delete and modify inheritance
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
245
Set up Inheritance
● Inheritance
● Select “New Inheritance” from context menu
● Select source ScoD, Variable (DDT Element) and Property
● Select target SCoD, Variable (DDT Element) and Property
● Apply Inheritance
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
246
SCoD General Data
● Purpose
● Pre-define values for several variable properties
● restricts property value,
● if free selection is not useful
● the user should be restricted (Enumeration)
● SCoD General Data
● Access Levels
● Alarm Groups
● Alarm Priorities
● Archive Names
● Communication Frames
● Data Types
● HMIs
● Measurement Unit Group
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
247
SCoD General Data
● General Information on Items
● All check-marked items are imported into the
Customization and the project
● Used items automatically get check-marked
● Possibility to add, modify or delete an entry
● No limitation for the number of values
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
248
General Data - Access level
● Access level
● List of the different access levels available
● Add, modify or delete via context menu
● Needs a Name and a Description
● Used by iFix
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
249
General Data - Alarms
● Alarm Group
● List of available Alarm Groups
● Add, modify or delete via context menu
● Needs a Name and a Description
● For Monitor Pro and Vijeo Citect
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
250
General Data - Alarms
● Alarm Priority
● List of the different Alarm Priorities
● Add, modify or delete via context menu
● Needs a Name and a Description
● Has to fit to the capabilities of the HMI, e.g.
Monitor Pro supports only 3 levels
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
251
General Data - Archive
● Archive Name
● Definition of Archive Names, i.e. database table
or the file name
● Add, modify or delete via context menu
● Needs a Name and a Description
● Not used by iFix
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
252
General Data - Communication
● Communication Frame
● Definition of communication frames
● Data exchange between PLC and HMI
● Frame needs a name and a data type
● Frame is Read or Read/Write
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
253
General Data - Data Type
● Data Type
● the elementary data types for Unity Pro
● imported or added structured data types
● no definition of elements, when adding
● rename or remove possible, if not used
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
254
General Data – Display Format
● Display Format
● Definition of Display Format, i.e. how values
appear in the HMI
● Add, modify or delete via context menu
● Needs a Definition
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
255
General Data - Enumeration
● Enumeration
● List with predefined values
● Values can be added or removed
● Can be used instead of freely editable value
fields
● Needs a name and a description
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
256
General Data - Enumeration
● Enumeration Value
● Single Value in a List
● Values can be added or removed
● Needs a name and a description
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
257
General Data - Measurement Unit
● Measurement Unit Group
● List of the groups the Units belong to
● Needs a name
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
258
General Data - Measurement Unit
● Measurement Unit
● List of the different units used in the application
● A unit can only be added, if a group is defined
● Needs a name, a description and the group it
belongs to
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
259
SCoD Properties
● SCoD Properties
● Set SCoD name and a Description
● Assign
● Function Block
● HMI Symbol (one or multiple)
● Help File
● Select Icon for UAG project
● Default
● All picture types, e.g. jpg, gif,
bmp
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
260
Commit SCoD
● Commit SCoD
● After modifications an analyze is necessary first
● Correct errors, if necessary
● Click “Commit SCoD” for a second time
● Report
● Generate a report about the SCoD
● Select template file
● Select target file
● Select topics to be included
● MS Word must be installed
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
261
Summary SCoD Editor
● SCoD Workflow
● Define Pin Usage (Variable, Link, Interlock, …)
● Define Variables and their behavior (Alarm, Trend, PLC/HMI, …)
● Define SCoD properties
● Define Inheritances
● Assign DFB and HMI symbol
● Analyze SCoD
● Commit SCoD
● General Data
● Pre-definitions for HMI (Alarm Priority, Archive, Units, …)
● Help to enter Variable Values (Enumeration, …)
Schneider Electric - End User Software – UAG Business & Sales Support –July 2009
262
Download