Phần mềm Unity Pro XL là công cụ thân thiện và dễ sử dụng với nhiều bộ thư viện mạnh mẽ. Các thư viện là tập hợp các khối chức năng sẽ giúp lập trình viên cấu hình bộ điều khiển. Từ các hàm logic đơn giản cho đến các hàm tính toán PID phức tạp đều có sẵn trong thư viện Unity Pro là phần mềm đa nhiệm vi phạm các tính năng sau: Phần mềm tất cả trong một Năm ngôn ngữ lập trình IEC 611313 Ngôn ngữ lập trình LL 984 Tích hợp thiết bị với tiêu chuẩn FDT DTM Thư viện DFB tích hợp, tùy biến Trình giả lập PLC trên PC để xác nhận chương trình trước khi cài đặt Phần mềm Unity pro lập trình cho các dòng PLC cấp cao Modicon M340, Modicon M580, Modicon M580 Safety, Modicon Momentum, Premium and Quantum automation platforms. 5 ngôn ngữ lập trình là : + 3 ngôn ngữ dạng đồ họa: Ladder (LD) language Function Block Diagram (FBD) Sequential Function Chart (SFC) or Grafcet + 2 ngôn ngữ dạng TEXT: Structured Text (ST) Instruction List (IL)
Trang 1June 2009
Module 1
Unity Pro Overview
Trang 2Unity Pro is a SoCollaborative software for “end user”
platforms
Quantum, Premium, Atrium and Modicon M340
The Scalability of the software is based on the supported platforms and not on features
Unity Pro Small supports only Modicon M340 PLCs
Unity Pro for all the life cycle of your project
What is Unity Pro ?
Trang 3Selection Guide
XL L
Trang 4Single and multi-seats
Unity Pro Medium
Facility Team
Trang 5The right tool for all phases of your project
Design : structured variables, libraries of FFBs
and 5 IEC languages to develop your application program
Debug : a PLC simulator and high level of debug
services to test and debug your program
Operation : operator screens and diagnostic
viewer to monitor and control your process
Maintenance : on-line modifications to update
your application program
Openness : use of XML format / Advantys island
Trang 6Unity Pro is a full featured software package
All platforms benefit of the whole richness of the features
5 IEC languages
Standardization capabilities
Through data : unlocated variables, structures and arrays
Through program : sections of program, user function blocks, functional modules
Multitasking capabilities
MAST, FAST and AUX tasks
Event triggered treatments
Functional view to map your application to the process
With the possibility to bring more value through the openness
Interface to any client application through XML format Design
Design your Program
Trang 7Embedded PLC simulator
No hardware constraints to debug your program
Provide the same execution capabilities as a PLC
Possibility to use function blocks of IO management library to simulate
%I, %IW, %ID and %IF inputs (WRITE_INPUT_EBOOL, WRITE_INPUT_INT, …)
An large set of debug services
Power flow animation for graphical languages
Breakpoint and step by step to test and debug the program
Watch point to know the real time value of a variable
SFC monitoring of step activity times
Color used during execution progress (boolean variables, steps, transitions, …)
Debug
Debug your Application
Trang 8Visualize and control the application with operator screens
Graphical and animated view of your process
PLC and module diagnostic through configuration editor
Integrated system and application diagnostic accessible through the built-in diagnostic viewer
No programming required
Display defaults saved in the PLC with source time stamping
Fault cause analysis to find origin of process default
Possibility to acknowledge
Upward compatibility of the PLC applications
Last version of Unity Pro supports the installed base design with the previous versions
Operation
Maintenance
Operate and Maintain your Application
Trang 9Create links between the project and external documents
Import / Export all or part of application in XML format
Re-use the knowledge base developed with legacy software
Collaboration with other tools (Advantys, OFS, Vijeo Historian,…)
Integration of third party devices on CANopen (Hardware Catalog Manager)
Trang 10Design and combined your standards to develop your application in short time
Manage and share your standards
Describe the process through functional approach
Debug and adjust your application directly on your PC to reduce commissioning time
Use embedded diagnostic to reduce downtime
Manage all process data in the PLC
Don’t Reinvent the wheel each Time
Trang 11Arrange PLC data according to the process
Data structures and multi-dimensional arrays
Unlocated variables to create standard databases without memory mapping
Reusability simple through standards in libraries and import / export features
Use SoCollaborative libraries (UAG Collaborative Process Library, TeSys control library, Fuzzy
library, …)
Move to a component approach in design with Derived function blocks (DFB)
Create standards of your often used logic
Combine these standards to design more complex logic (nested DFB)
Combine your Standards
Trang 12Organize your standards in user libraries and families
Library manager is the repository of your standards
Share your standards to developpers
Standards are accessible to all programmers
Be sure that your application contains the right version
Comparison of project to the library
Versioning to trace modifications
Make modifications only to the model (type)
All instances are automatically updated Share your Standards
Trang 13Break down your application into functional modules close to the process
Use modular functional modules to describe a complex machine
Tree description with nested modular modules
Easy to find the right information through the functional description of your application
Reduce design time to create custom machines
by combination of existing functional modules
Create standardized functional modules
Export / import modules
Wizard to manage variables when reusing a module
Trang 14Debug your program without hardware
Simulate the PLC on your PC
All debug tools are available
Use embedded services to reduce commissioning time
Graphical operator screens to display the behavior
of the machine or process
Quick access to additional documents about application through hyperlinks (documentation, wiring diagrams, …)
Basic Micro
Debug and Adjust the Application on your PC
Trang 15Use embedded diagnostic without programming
Hardware and program diagnostic are easy through clear messages
Choice of language for system messages
Time stamping and navigation to the root cause
Access to advanced diagnostic through function blocks
To monitor a movement or any execution of the process
Fault cause analysis
Diagnostic through Web pages accessible via Ethernet port
Reduce Downtime during Operation
Trang 16Some memory cards can save data files accessible from the PLC application through function blocks
Create / delete files
Get / modify file attributes
Read / write data
Use Ethernet / FTP to upload / download files
Memory card is managed as FTP server
Use Unity Loader or a standard tool (Internet Explorer FTP Client) to exchange with the memory
Trang 17Module 2 Installation June2009
Trang 18Configuration Required and Installation
PC configuration required to install Unity Pro
Nominal : PC 1.2 GHz / 512 MB Ram
Operating Systems (fully qualified) : Microsoft Windows XP and Windows Vista 32
Same directory for all Schneider software
C:\program files\schneider electric\xxx
Installation procedure
Standard program install / uninstall of Windows
Right to use the software is associated to its registration (21 days free)
Unity Pro can coexist with PL7 or Concept and can be executed in same time
(different tokens)
It’s impossible to install 2 different versions of Unity Pro on the same PC
Trang 19Multi instance mode
Several instances of Unity Pro can be executed in same time (same application or different applications)
All unity Pro models (versions S to XLS) support the client / server
mode More than one client can access to the same project in read / write mode
Trang 20Unity Pro Update
Update strategy
Uninstall the previous version before installing a new version
The hardware catalog is replaced with the new one
The user FFBs library is kept with the new version installed
The global FFBs library is overwritten by the V4.1 library However unity Pro V4.0 manages all the library versions from V2.2 to V4.1
User application directory remains
Trang 21June 2009
Module 3
Security Editor
Trang 22Security overview
Security limits and inspects the access to the software functions and provide
an audit trail of all operator inputs
The security is applied to the terminal (and not to the application)
Multiple instances
Security policy is global to all the instances
Login and induced profile are related to one instance only
Security is managed by the Security Editor tool
Audit Log file is managed by the windows security system
Trang 23Security Editor Access
Activate the Security Editor Icon
Program / Schneider Electric/
SoCollaborative / Security Editor
Enter your user name and password
A valid name and password give access
to your information sheet
Use supervisor for the first time
Trang 24Security is defined by the supervisor who
can access to all the sheets
Users and profiles tabs are use to define the users list and the corresponding
profiles
Policies tab define the security state
(security off, security on with mandatory
login, …) and enable / disable the auditing and confirmation
Audit Log file managed by Windows security system save operation with audit attribut
Security Editor Overview
Trang 25Audit Log file
ASCII text file unique for all products and managed by the
Windows security system (Control Panel/Administrative
tools/Event Viewer/Application Log)
Each operation attached to an access right can be set for audit
Each event entry contains
Type (Error, Warning, )
Date and time of the event
Trang 26Audit Log file (cont)
Double click on the event to access its properties
Trang 27User Information sheet
To create or modify your password (if you lose
your password the supervisor can correct but if Supervisor loses his password he must install again the Security Editor)
To display the rights assigned to the profile
(View profile button)
Trang 28Import / Export users from / to a file
To assign a profile to a new user : one profile
per product (Unity Pro XL, Security Editor, Unity
Studio Manager, )
The predefined users (user_xxx) and the
supervisor are not modifiable
Trang 29Delete profiles (except predefined profiles)
Import / Export profiles from / to a file
To view and modify the access rights assigned
to a profile (Edit)
The predefined profiles are not modifiable
Trang 30Policies sheet
Accessible only by the Supervisor
to define the Security policy (Security off, Security
on with mandatory login, )
To choose the profile assigned to a no referenced user which access unity Pro when the login is
avoidable
To enable / disable auditing
To enable / disable confirmation
Trang 31Module 4
Project Settings June 2009
Trang 32User Interface
Trang 33All functions are accessible from the toolbars via menus
or icons (standard or contextual)
Project browser gives access to all elements of Unity Pro application
Configure the hardware and parameterize each module with configuration editor Status bar gives information
User Interface (Cont)
Trang 34Project browser gives access to all elements of Unity Pro application
Language editors allow you
to program the application in FBD, LD, SFC, ST or IL
Use data editor to define the variables of the application : types and instances
Output windows give result
of some functions : build, import / export, search
User Interface (Cont)
Trang 35All editor can be switched from normal to full screen mode (to enlarge the space dedicated for edition)
Some windows (animation tables, data editor, operator screens) can
be :
docked (to anchor in positions outside the application window)
or floating (to be always visible
in foreground) I.e : if data editor
is floating you can use variables
Ergonomics
Trang 36Project browser proposes 2 different views to present and structure your project in tree-
Functional view enables the user to structure the application into functional modules
Structural view
Structural view Functional view Project Browser
Trang 38Program sections of
the functional module
User variables of the functional module Operator screens of
the functional module
Functional module Functional View
Trang 40Run Unity Pro from Program /
Schneider Electric / SoCollaborative / Unity Pro
Open a new project
Select the family (if necessary) and
the processor (i.e BMX P34 20302)
Select a project settings (if necessary)
Start a New Project
Trang 41Operator screens
On line modifications Target selection &
Data – channel association
Hardware
configuration
Networks / Axes configuration Terminal & Project settings
Operate and maintain
Trang 421 Define the settings
Work station settings accessible via Tools / Options
Project settings accessible via Tools / Project settings
3 Define and edit the variables (elementary variables, arrays, structures,
instances of function blocks,…)
4 Structure the application (tasks, sections, functional modules)
6 Generate the code (build)
7 Choose the target (PLC or simulator) and transfert the application (download)
Methodology to Develop an Application (Cont)
Trang 43General defines the general settings of the project and the working directories
Data & Languages configures the settings for entering data
Connection defines options relating to connection of terminal to the PLC
Operator Screens defines runtime screens
Work Station Settings
Trang 44Auto incrementation of project version on each save
Auto completion of the variables name when entering data / values
Display errors / messages in message boxes or output window
Contextual restore at project opening restores the windows arrangement
and size saved in ctx file
Options - General
Trang 45Project path : path to save the stu file The project is automatically backed up
in the stu and xvm files during the transfer to PLC
Import / Export file path : path to save the XML source files (ie xef file)
XVM path : path to save the xvm file
Project settings templates path : path to save the xso file
Project settings template file : name of the xso file
Custom library path : path to save the custom library
Options – General - Paths
Trang 46Options – Data and Languages –
Spreadsheet Behavior
Move selection after entering information specifies which neighboring cell
becomes active when Enter key is pressed
Open edit session on char key press specifies that input mode is
automatically opened for active cell when a character key is pressed The
content of active cell will be overwritten by the new one
Trang 47Options – Data and Languages –
Languages
Automatically assign a variable to a new graphical object specifies that
when a graphical object is placed a properties dialog box or FFB input assistant
is opened for assigning a formal parameter
Reuse windows on refine specifies that the same window is reused on refine
or when opening transition / action in SFC
Trang 48Options – Connection
PLC connection identification identifies which terminal holds the PLC
reservation when several terminals simultaneously access the same PLC
Default connection mode defines the default terminal connection to the PLC :
use programming mode (read and write access) / use monitoring mode (read
only access) / ask for connection mode / Mandatory programming mode (if the PLC is reserved the connection is refused)
Note : in monitoring mode the links between EFs are not animated
Trang 49Options – Operator Screens - Grid
Display grid to display a grid according to th step defined
Step of the grid : from 5 to 100 pixels
Alignment of objects on grid positions objects on the grid when handled
Trang 50Options – Operator Screens - Edit
Display mouse position to display the position of the mouse in the status bar
If an object is selected it displays the position of the left corner, the dimensions
and the animation settings (if they exist)
Vertical scroll bar displays a vertical scroll bar
Horizontal scroll bar displays a horizontal scroll bar