Unity SFC View
Unity SFC View
Unity SFC View
33003018.00
Table of Contents
Chapter 2
Chapter 3
Index
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
At a Glance
Document Scope Validity Note This manual contains a quick start for Unity SFC View. This manual applies to Unity SFC View 2.0 with Unity Pro 2.0, OPC Factory Server 3.1, Microsoft Windows 2000 or Microsoft Windows XP Professional.
Related Documents
Title of Documentation Unity SFC View User Guide Unity Pro Reference Manual OPC Factory Server User Guide Vijeo Look SCADA software for small and medium monitoring applications
The data and illustrations found in this document are not binding. We reserve the right to modify our products in line with our policy of continuous product development. The information in this document is subject to change without notice and should not be construed as a warranty by Schneider Electric. Schneider Electric assumes no responsibility for any errors that may appear in this document. If you have any suggestions for improvements or amendments or have found errors in this publication, please notify us. No part of this document may be reproduced in any form or by any means, electronic or mechanical, including photocopying, without express written permission of Schneider Electric. All pertinent state, regional, and local safety regulations must be observed when installing and using this product. For reasons of safety and to ensure compliance with documented system data, only the manufacturer should perform repairs to components. When controllers are used for applications with technical safety requirements, please follow the relevant instructions. Failure to use Schneider Electric software or approved software with our hardware products may result in injury, harm, or improper operating results. Failure to observe this product related warning can result in injury or equipment damage. We welcome your comments about this document. You can reach us by e-mail at TECHCOMM@modicon.com
User Comments
General information
1
Introduction
Overview What's in this Chapter? This chapter contains general information about quick start for Unity SFC View. This chapter contains the following topics:
Topic General System requirements Installation and Registration Unity Pro presettings Page 8 9 10 10
General information
General
Goal of the documentation The documentation is intended to help you integrate SFC View as quickly as possible and in a targeted manner into a HMI application. You can then display step chains of a Unity Pro test project that is contained in the delivery scope of SFC View, in the three following views of SFC View: l Overview l Details l Details Simple. In addition, you can send the following commands to the PLC for a step chain: l Next step l Set Initialize Flag l Reset InitializeFlag Programming environment in this case is Vijeo Look 2.5.
Programming environment
General information
System requirements
Operating System One of the following operating systems is required:
An OPC Factory Server (OFS) Version 3.1 must be installed on the system.
HMI applications tested for Unity SFC View are: Monitor Pro 7.2, Schneider Electric Vijeo Look 2.5, Schneider Electric iFix 3.0, GE Fanuc InTouch 7.2, Woderware Other applications tested are: l Internet Explorer 6.0, Microsoft l Visual Basic 6.0, Microsoft
l l l l
PLCs supported
General information
Install the required software (Unity Pro, OPC Factory Server, SFC View, HMISoftware) as described in the associated manuals. Register the required software as described in their respective manuals.
Registration
Diagnostics
Make sure that under Tools Project settings... Build Diagnostics the option Application diagnostics is selected and the application level is set to Local Diagnostics . Note: This setting is required if the SFC View diagnosis is carried out via the PLC diagnosis buffer.
Make sure that under Tools Project settings... Language extension the Allow multiple token option is not selected.
Make sure that under Tools Options General Save project automatically the option On Download is selected.
10
Introduction
Overview This chapter contains information on the possibility of testing and learning SFC View using the demo application. This chapter contains the following topics:
Topic General Start and Use of the SFC View Demo Application Page 12 12
11
General
Prior to the Integration of SFC View SFC View DemoApplication Before you integrate SFC View into an HMI application, you should test for flawless interplay between SFC View, Unity Pro, the OPC Factory Server (OFS) the Unity Pro PLC Simulator. In order to test SFC View and to perform a few important adjustments, please use the SFC View Demo Application as described in the following.
Source code
Note: Before the Unity Pro test project can be converted, the SFC View library must be installed.
12
The following table describes the procedure for converting the Unity Pro test project.
Step 1 2 3 4 Action Launch Unity Pro. Open the TESTSFCV.XEF file via File Open . Generate the project via Build Rebuild All Project. Save the project via File Save using the name TESTSFCV.STU.
Settings
The demo application only works properly if all the presettings were made correctly (Unity Pro presettings, p. 10 ). The following table describes the procedure for loading the Unity Pro test project into the PLC simulator.
Step 1 2 3 4 Action Launch Unity Pro. Open the TESTSFCV.STU file via File Open . Via PLC Connect... create a connection to the PLC simulator controller. Via PLC Transfer Project to PLC load the program into the PLC simulator controller. Note: If you select the PLC RUN after transfer option, the PLC starts automatically after the program is transferred.
Before the SFC View can be used, the OFS configuration tool must be configured in a certain way. Execute the command Start Program Schneider Electric OFS OFS configuration tool. In the tab Options under Features the following option must be selected:
Options
Note: In case the tab Options is not displayed, via the command button Advanced... all tabs can be shown.
13
Comm. settings
In the Comm. tab in Options for devices without alias the following option must be selected: l Check Consistency Note: If the Comm. tab is not shown, all of the tabs can be shown via the Advanced... tab.
An alias is required to ensure that SFC View and OFS can work together. The following table describes the procedure to create an alias for the demo application.
Step 1 2 3 4 5 6 7 8 9 10 11 12 Action Click the Alias tab. Click the (Create new alias) button.
Enter as the ame TESTSFCV . Click on the <Driver> field:<PLC addr> and using the Arrow down open the page to enter the driver name. In the ADDRESS tree structure on the left click on DIRECT TCP IP. For the TCP IP address enter 127.0.0.1 and for the PLC select UNITY. Confirm your entries using OK. Click in the Symbol table file and using the arrow pointing down select the page to select the symbol file. For the file type select File type UnityPro project file (*.stu) and for the file select File TESTSFCV.STU. Confirm your selection using Open . Click on the button Alias properties... and check the Check Consistency option. Confirm the option is activated using Validate. Now confirm all of your entries for the Alias TESTSFCV using Apply.
14
The following table describes the procedure for testing the connection between the OFS and the PLC.
Step 1 Action Start the OFS client via Start Programs Schneider Electric OFS OFS Test Client. Note: The program OFS Client is only available if the appropriate option was selected for the OFS installation. Click on Schneider Aut.OFS as server and confirm using OK. Create a new group via Group New Group... and give it the name: e.g. GRP1.
2 3 4
l l l
Under Notification activate all the options and select the following settings: Update rate: 1000 ms Dead banding: 0.000000 [0.0,1.0] OPC version: Auto Confirm with OK. Via Item New... open the AddItem window.
5 6 7 8
In the tree structure in the left window of the project select TestSFCV . The project variables are shown in the right hand window. Click on the variable e.g. ACT1 and confirm with OK. If a green symbol appears to the left of the variable in the properties window which now appears, the connection between the OFS and the PLC is intact.
Errors which might appear are shown in red in the OPC Factory Server diagnosis window.
The installation of a HMI application (e.g. Vijeo Look) can make it so that the diagnosis window of the OPC Factory Server is not visible in the foreground and is displayed only as an icon in the footer line of the screen. If this is the case, run the program ChangeOFSSettings.exe . This program is saved during the installation of SFCView as a standard under ...Installation directory of the SFCView...\ . So that the change is effective, you must restart, via Start Programs Schneider Electric OFS , the OPC Factory Server .
15
The following table describes the procedure for starting the demo application.
Step 1 2 Select, via the command button confirm using OK. 3 4 Start the demo application via the demo application button 5 . Select the appropriate view via one of the following command buttons: The project data are loaded from the Unity Pro project. the Project TestSFCV to be opened and Action Execute the command Start Program Schneider Electric Unity SFC View SFC View Demo Application.
l l l
Use the items View and Run in the main menu to activate and deactivate the individual properties, methods and events in SFC View and to observe the changes to the individual views.
16
Introduction
Overview What's in this Chapter? This chapter contains information on the integration of SFC View in Vijeo Look. This chapter contains the following topics:
Topic Nature of Tasks Configure new project and Prepare SFC View-ActiveX Create New Overviews Shift between the overviews via the SFCView Menu Switch between the overviews via the Process Menu Shift between the overviews in the Welcome Overview Insert SFC View ActiveX in SFCView Overview Insert SFC View ActiveX in Process Overview VBA-Scripts for the use of SFC View VBA-Scripts for controlling the SPS Operate Vijeo Look Project Page 18 19 20 21 23 24 26 28 30 33 35
17
Nature of Tasks
Possibilities of the new project in Vijeo Look After you have configured the new Vijeo Look project as described in the following sections, the following possibilities are available to you in your new Vijeo Look project: l Switching between the three overviews (Welcome, Process, SFCView) via operating buttons l Display of the SFCView ActiveX-Controls in the three views: l Overview (in the SFCView overview) l Details (in the SFCView overview) l Details Simple (in the Process overview) l Send the following step chain commands to the PLC: l Next step l Set Initialize Flag l Reset InitializeFlag The sending of the step chain commands is done via operating buttons. The individual overviews and switching possibilities between the individual overviews:
Welcome
Process
SFCView
Process
Stepname with 32 chars 00s 000ms 00s 000ms Stepname with 32 chars 00s 000ms 00s 000ms
SFCView
Chain Name StepName Parallel Chain Status Step Commen
Bitmap
We lcome
SFCView
Welcom e
P roc ess
SFCView
Ne xtS tep
18
Keep in mind that changes in a Vijeo Look Project only become fully effective once the project has been closed and then opened again.
The following table describes the procedure for preparing the SFC View-ActiveX for a project in Vijeo Look.
Step 1 2 3 Action Open via Tools Preferences ActiveX Controls the dialog window ActiveX Controls Configuration. Click in the left column on the ActiveX UnitySFCViewCtrl.SFCView and move it with the command button >> into the right column. Make sure that the check in the checkbox is placed next to the SFC ViewActiveX, so that the ActiveX is available later under the menu item Insert Favorite ActiveX Controls . Confirm with OK.
19
Note: The screen sides of a display, called Overviews in Vijeo Look, are also shown in other HMI applications as an image or window.
New Overview
Note: Open the dialog field for changing the properties via right mouse button Properties.... Saving is done via File Save as....
20
21
2 3
2 3
22
SFCView-Menu
The switch to the Process-view is not necessary in the process menu. Therefore, delete this button. Save the overview Process_Menu. This is how the Process Menu should now appear.
Welcome SFCView
23
3 4
24
3 4
Welcome Overview
Process
SFCView
25
Properties of ActiveX
Note: For all properties not listed in the table, the preset values remain set.
26
SFCViewOverview
27
Note: For all properties not listed in the table, the preset values remain set.
28
Note: For all properties not listed in the table, the preset values remain set.
ProcessOverview
Bitmap
Note: The area shown in the previous graphic Bitmap could, for example, contain a display of the process to be observed.
29
l l l l
Public MainSFCView As Object Public SFCView_OPCAccessPath As String -------------------------------------------------Private Sub fvProject_StartupComplete() SFCView_OPCAccessPath = TESTSFCV Mimics.Open Welcome End Sub
Save and close the Visual Basic Editor.
The SFC View-ActiveX can be displayed in three different views (Overview, Details, Details Simple). So that when clicking on the operating button SFCView the SFC View-ActiveX is always in view: Overview is shown the script must be expanded for this operating button. On the overviews Welcome, Process_Menu and SFCView_Menu one operating button of this type is used for each. Therefore, all three corresponding scripts must be expanded.
30
In the following table, the procedure for the expansion of the operating script SFCView is described.
Step 1 2 3 Action Open the overview Welcome . Click on the operating button SFCView and open via the right mouse button View Script the Visual Basic Editor. Expand the code as follows:
Private Sub Text2_Click() Mimics.Open SFCView Mimics.Open SFCView_Menu ThisProject.MainSFCView.ViewMode = 0 End Sub
Close the Visual Basic Editor. 4 Also perform this expansion in the overviews Process_Menu and SFCView_Menu .
So that in the view SFCView the SFC View-ActiveX is displayed with the proper contents, a script must be created as follows for this view.
Step 1 2 3 4 Action Open the overview SFCView . Click on the SFC View-ActiveX and open via the right mouse button View Script , the Visual Basic Editor. Delete the preset code. Enter the following code:
Private Sub Mimic_Open() Set ThisProject.MainSFCView = SFCView1 SFCView1.OPCAccessPath = ThisProject.SFCView_OPCAccessPath End Sub
Save and close the Visual Basic Editor.
l l l l
The following is defined by this script: the OPCAccessPath via the Alias of the Unity Pro test project (TESTSFCV) the opening of the overview SFCView upon a double-click on an ActiveX the step chain that is then displayed in the overview (ChainName) the view in which the step chain is shown (ViewMode)
31
The following table describes the procedure when creating the script.
Step 1 2 3 4 Action Open the overview Process. Click on the left SFC View-ActiveX and open via the right mouse button View Script , the Visual Basic Editor. Delete the preset code. Enter the following code:
Private Sub Mimic_Open() SFCView1.OPCAccessPath=ThisProject.SFCView_OPCAccessPath SFCView2.OPCAccessPath=ThisProject.SFCView_OPCAccessPath End Sub ---------------------------------------------------------Private Sub SFCView1_DetailsSimpleDblClick() Mimics.Open "SFCView" Mimics.Open "SFCView_Menu" ThisProject.MainSFCView.ChainName = SFCView1.ChainName ThisProject.MainSFCView.ViewMode = 1 'Details End Sub ---------------------------------------------------------Private Sub SFCView2_DetailsSimpleDblClick() Mimics.Open "SFCView" Mimics.Open "SFCView_Menu" ThisProject.MainSFCView.ChainName = SFCView2.ChainName ThisProject.MainSFCView.ViewMode = 1 'Details End Sub
Save and close the Visual Basic Editor.
32
SFCView-Menu
33
The following table describes the procedure when creating the script.
Step 1 2 3 Action Open the overview SFCView_Menu. Click on the operating button Nextstep and open via the right mouse button Display Script the Visual Basic Editor. Expand the code as follows:
Private Sub Text2_Click() Mimics.Open Process Mimics.Open Process_Menu End Sub -------------------------------------------------------Private Sub Text3_Click() Mimics.Open SFCView Mimics.Open SFCView_Menu End Sub -------------------------------------------------------Private Sub Text4_Click() ThisProject.MainSFCView.PLCGotoNextStep (True) End Sub -------------------------------------------------------Private Sub Text5_Click() ThisProject.MainSFCView.PLCSetInitializeFlag (True) End Sub -------------------------------------------------------Private Sub Text6_Click() ThisProject.MainSFCView.PLCSetInitializeFlag (False) End Sub
Save and close the Visual Basic Editor.
34
Make sure that the Unity Pro test project (TESTSFCV.STU) is opened and saved in the PLC-Simulator Starten and Use of the SFC View Demo Application, p. 12, before you open the Vijeo Look-Project. This ensures that SFCView can access the Unity Pro Project data and you can observe projects in parallel in Unity Pro and Vijeo Look. From the Start overview of the Vijeo Look-Project (Welcome) you can switch via the operating heads SFCView and Process to the two other overviews.
Welcome
Process
SFCView
Process
Stepname with 32 chars 00s 000ms 00s 000ms Stepname with 32 chars 00s 000ms 00s 000ms
SFCView
Chain Name StepName Parallel Chain Status Step Commen
Bitmap
We lcome
SFCView
Welcom e
P roc ess
SFCView
The switching between views can also be done via the respective menu bar in the lower part of the overviews.
35
If you change to the overview SFCView the Unity Pro test project is shown as a standard in the view-overview. View display: Overview.
1
Overview Station SFCDiag PLCDiag Chain Name SFC_para SFC_seq Step Name Parallel Chain Sta- Step Comment Step sets ACT5.ACT5 is mapped to I/O but not read by any logi S_3_5 1 Running Step sets ACT13.ACT13 is mapped to I/O but not read by any lo S_4_1 1 Running
Functional project units If a functional unit was selected all the step chains for it are shown in the table on the right. Note: All chains that are not assigned to a functional unit are shown in the main directory. Information on the step chains
l l l l l
Step chain name Name of the active step for each chain Number of parallel/alternative steps Chain state Step / chain comment
4A
Click on the cell in the right table. In the first column, an arrow is shown.
36
Number 4B
Description Click in a line in the right hand table and confirm by pressing the spacebar . Instead of an arrow in the first column, a cross is shown. Using this method you can select more than one step chain and for all chains at once, apply e.g. the PLCSetInitializeFlag method. Note: If more than one step chain is marked by a cross, the method to be implemented acts on them. A step chain that is marked with only one arrow is considered in this case to be not selected. You can switch to a different view (Details) by doubleclicking on a step chain.
Note: By double-clicking on a step chain, this step chain is in view: Show details. Via the operating button SFCView you will get back to the view: Overview.
37
Unity SFCView Demo - C:\Programme\Schneider Electric\Unity SFCView\testsfcv.stu Section Disabled Initialize Flag Set Chain Name Time Check Disabled 1(2) Stepname with 32 charts maximum Three lines of comment text This is for a short error message 00s 000ms 00s 000ms Cause Error State Pin State Transition variable Three lines of comment text Qf Time Name Type Comment Transitions Disabled Actions Disabled
Qf Time
38
Number 5
Description
l l l l l
Active step name Comment (three lines) Short Error message Delay Time Current dwell time The outline around this info field can have a different color depending on the state of the step. On the right hand side the actions for the step are displayed. Identifier Time Name of variables or the section (variable or section type) Comment The background color for the variables can have a different color depending on the state of the variable. Name of transition variables Comment (three lines) The rectangle representing the transition can have a different color depending on the state of the transition. Next step name Comment (three lines) Short Error message: Delay Time Current dwell time On the right hand side the actions for the step are displayed. Identifier Time Name of variables or the section (Variable or S ection type) Comment
l l l l l l l l l l l l l l l l l
Information on transitions
10
Diagnostic information
Display of error messages for the transition. Which diagnostic information is shown can be set individually by the user.
39
Overview Process
If you change to the overview Process the chains of the Unity Pro test project, which you have defined via the properties of the SFCView, are displayed in the view:Details Simple Insert SFC View ActiveX in Process Overview, p. 28 . By double-clicking on one of the two chains, it is then shown in the overview SFCView in the view: Details. Via the operating buttons NextStep, SetIniFlag and ResIniFlag you can control the PLC or in this case the PLC simulator. With NextStep you switch the step chain a step further independently of whether the transition has been met. With SetIniFlag you set the Initialize-Flag for the selected chain. With ResIniFlag you reset the Initialize-Flag for the selected chain. Activate the individual operating buttons and observe what changes in the display of the SFCView-ActiveX.
Control PLC
40
Index
B C A
M
Menu Process, 23 SFC View, 21
C
Configure new project, 19 Configure project, 19 Create New Overviews, 20 Create Overviews, 20
D
Demo Application SFC View, 12 SFC View, Start and Use, 12
N
Nature of Tasks, 18
O
Operate Vijeo Look Projekt, 35 Operate Project Vijeo Look, 35 Operate Vijeo Look Project, 35 Overview Process, 28 SFCView, 26 Welcome, 24
G
General Prior to the Integration, 12 Quick Launch, 8 SFC View Demo Application, 12
I
Insert ActiveX in Process-Overview, 28 Insert ActiveX in SFCView-Overview, 26 Insert SFC View ActiveX in Process Overview, 28 Insert SFC View ActiveX in SFCView Overview, 26 Installation, 10 Integration General prior to the, 12
P
Prepare ActiveX, 19 Prepare SFC View-ActiveX, 19 Process Menu, 23 Process Overview ActiveX Insert, 28
41
Index
R
Registration, 10 Requirements System, 9
S
Scripts for controlling the SPS, 33 Scripts for the use of SFC View, 30 SFC View Demo Application, 12 Start and Use, 12 SFCView Menu, 21 SFCView Overview ActiveX Insert, 26 Shift between overviews via the SFCView Menu, 21 Shift between the overviews in the Welcome Overview, 24 Start and Use of the SFC View Demo Application, 12 Switch between the overviews via the process menu, 23 System requirements, 9
U
Unity Pro Settings, 10 Unity Pro presettings, 10 Unity Pro settings, 10
V
VBA-Scripts for controlling the SPS, 33 VBA-Scripts for the use of SFC View, 30 Visual Basic-Scripts for controlling the SPS, 33 Visual Basic-Scripts for the use of SFC View, 30
W
Welcome Overview, 24
42