Vous êtes sur la page 1sur 42

1st VipWin Project

First
Next
Back
Last
Exit
Overview
Contents

Goals
Requirements
Workspace
Project Wizard
Festo drivers
Variable definition
Static elements
Dynamic elements
Sending commands
Checking definitions in RT
Diagnostics
Functions
Alarm list
Further dynamic functions
Final check
Summary
1st VipWin Project
First
Next
Back
Last
Exit
Goals
Goal of this presentation


This presentation should be used as a guideline to create the first VipWin project.

This presentation describes all steps to create a simple VipWin project running with a Festo PLC

Display page by page of this presentation and perform the steps described in the parallel running VipWin environment

Only the basic functions of VipWin are covered within this presentation

VipWin supports many, many modules and functions which are not covered within this presentation

Consult the online help in Editor, the Users Manual, Tutorials and Trainings on the VipWin CD, especially the Basic Training for
more detailed information
1st VipWin Project
First
Next
Back
Last
Exit
Requirements
Requirements to create our VipWin Test Project
Running VipWin software.
Please install VipWin V6 on your computer and have a first touch with the demo application installed.
Only with a running VipWin environment it makes sense to start with this presentation!
You can use VipWin running in demo mode for this project, a licensed version is not required!
Any Festo PLC.
We will use FEC in our guide, but it also works with IPC, FPC, FC,
Both possible connections, serial and via Ethernet can be used
Connection to the FEC
Make either serial or network connection to the PLC you are using and check the connection with FST online tools
FST project
Make a small FST project with following functions:
count in 1/10 of a second R0 from 0 to the value stored in R1 and then restart counting
control start and stop counting R0 by F1.0 / I0.1
If you want to use EasyIP protocol for connection, insert TCP/IP driver in the FST project and note the IP address defined
If all these things are ready, we can start
1st VipWin Project
First
Next
Back
Last
Exit
Workspace and Project 1/2
Create a new workspace
and a new project

A Workspace covers one or more VipWin projects.
To make it clear and simple, we will create a new
Workspace and a new project.

Start the Editor and open the Workspace/Project
dialogue from the menu
File / Project / Workspace new

Select folder Workspace, define MY_WORKSPACE
and confirm with OK

The current workspace will be closed and the new
one created
1st VipWin Project
First
Next
Back
Last
Exit
Workspace and Project 2/2
Create a new workspace
and a new project

Open again Workspace/Project dialogue from menu
File / Project / Workspace new

Select folder Project, Blank Project, define
MY_PROJECT
and confirm with OK
(leave the Server field blank, its used for network
applications)

The project MY_PROJECT will be created
1st VipWin Project
First
Next
Back
Last
Exit
Project Wizard
Use the Wizard to create templates and pictures

Creating a new project, the Project-Wizard opens (you can call the
Wizard also from menu File / Wizards)

Select the basic style of your application. Arrangement of Picture is
Button Bar bottom, Main picture

In the next step of the wizard, additional function can be selected.
We use Alarming as an additional function

Finish the wizard
1st VipWin Project
First
Next
Back
Last
Exit
Project contents 1/2
Project contents created by the Wizard

When wizard is finished, the configuration window of the Simulator
driver is displayed. Simulator driver is automatically added to your
project and can be used to test functions in VipWin without any
PLC connected. Define Global Update Time to 100 ms and confirm
with ok.




Your project should consist now
of 3 pictures:
- Alarming
- Main Picture
- Button Bar
1st VipWin Project
First
Next
Back
Last
Exit
Project contents 2/2



Of 2 templates












And several Variables of the Simulator Driver


1st VipWin Project
First
Next
Back
Last
Exit
First start of Runtime
First start of the Runtime

VipWin application can be started now with the contents automatically
created by the Wizard (Simulator variables)
Start creation of runtime files and VipWin Runtime from the toolbar
Your Runtime screen should look similar to this:













Exit the Runtime via menu File / Exit



Online menu (optional)
Running mode (0= stop,
1= count up, 2= count down,
3= count up and down)
Boundaries for counting
Changing value according to upper settings
Click on the elements (frames) to change the
values!
1st VipWin Project
First
Next
Back
Last
Exit
Festo driver Serial CI 1/2
Defining the Festo driver

First of all we will move the elements of the simulator driver to
the right top corner of the screen. Select in the usual way all
elements, position the cursor over the elements and move with
left mouse button pressed


To connect to a Festo PLC we need the corresponding driver.

First we will have a look to the SerialCI driver. This driver
requires serial connection to the FEC!
Select Variables / Driver and in the context menu (right mouse
click) Driver new
In the Driver definition window, select
Serial/ CI driver
1st VipWin Project
First
Next
Back
Last
Exit
Festo driver Serial CI 2/2
Defining the Festo driver


In the displayed configuration dialogue select
Cycle time = 100ms
Serial port = depending on your
configuration
Baud rate = 9600 (default)
Type of PLC = depending on your PLC used
(IPC-FEC SR = single request,
one function unit per telegram, slow
IPC-FEC BR = block request, faster)
Leave all other parameters on the default values
1st VipWin Project
First
Next
Back
Last
Exit
Festo driver EasyIP
Defining the Festo driver

Alternatively or additionally to the Serial CI driver you can use
the Ether based TCP/IP driver EasyIP
Select EasyIP driver FST in the Driver definition window


In the displayed configuration dialogue select Network folder and
define the Station (IP address)
Net Address = 1
IP Address = depending on your configuration
Cycle Time = 0 to 200 ms
Description =EASY_IP
1st VipWin Project
First
Next
Back
Last
Exit
Festo driver general
Manual call of a driver configuration
1st VipWin Project
First
Next
Back
Last
Exit
Variable definition 1/5
Defining Variables



There are 2 ways to define Variables

Import from FST project is the easiest and fastest way!

Open the Import variables online dialogue from the context menu
of the driver


1st VipWin Project
First
Next
Back
Last
Exit
Variable definition 2/5
Defining Variables


Browse for allocation list file of your FST project (*.BEL)
Select the operands
COUNT R0
LIMIT R1
START F1.0
Import variables to the VipWin project
Running EasyIP additionally network address has to be defined

1st VipWin Project
First
Next
Back
Last
Exit
Variable definition 3/5
Defining Variables


Second way and more complex task is to
define Variables manually

Call context menu of Variables with right mouse click and select
Variable new

Define the Name (COUNT)
and Object type (Register)

1st VipWin Project
First
Next
Back
Last
Exit
Variable definition 4/5
Defining Variables




Set the Net address:
For Serial CI = 0
For EasyIP = 1
(remember Net address in driver configuration!)


Define offset 0 for COUNT (its R0)


Repeat definitions for LIMIT (R1) and START (F1.0, object Flag Bit,
offset 1, Bit number 0)
1st VipWin Project
First
Next
Back
Last
Exit
Variable definition 5/5
Your Variable Definition


Finally your Variables should look like this
1st VipWin Project
First
Next
Back
Last
Exit
Static Elements 1/3
Defining Static Elements

To draw or edit elements, first a picture must be selected. Open the list of pictures by clicking the Pictures item in the project
tree
Select Main_Picture by double clicking
Static elements are simple graphic elements without any connection to the PLC
Static Elements are created and edited very similar to many other graphics editors
The available static elements are show in the toolbar
1st VipWin Project
First
Next
Back
Last
Exit
Static Elements 2/3
Defining Static Elements

Select Text element
from the toolbar and
draw in the picture area
a text

Define the text My 1st
Project in the properties
window

Set background to
transparent
1st VipWin Project
First
Next
Back
Last
Exit
Static Elements 3/3
Defining Static Elements

As an additional task,
insert a new Font
Select Fonts in the
project tree
Insert a new font in the
Font list (context menu
of Font list / Font new)
Define e.g. Tahoma size
24 bold and name it
Header
Assign the new font to
the text element
1st VipWin Project
First
Next
Back
Last
Exit
Dynamic Elements 1/4
Defining Dynamic Elements

Dynamic elements are more or less complex predefined graphics with dynamic functionality, that means they have to be connected
to the process (by means of Variables)

Dynamic Elements are created and edited very similar to many other graphics editors

The available dynamic elements are show in the toolbar

Additionally to the graphics representation dynamic elements have to be assigned to process variables
1st VipWin Project
First
Next
Back
Last
Exit
Dynamic Elements 2/4
Defining Dynamic Elements


To show our PLC counter COUNT,
we will define a bar graph

Select Bar graph element in the
toolbar and draw the element on the
screen

When the size of the element is
fixed, Variable selection dialogue is
opened.
Select variable COUNT to connect
to the bar graph.
1st VipWin Project
First
Next
Back
Last
Exit
Dynamic Elements 3/4
Defining Dynamic Elements

Define Display range maximum = 1000
and Display range minimum = 0 in the
properties window
Define Direction = UP

As an additional task you can change
different properties of the Bar graph
(e.g. Colors static, Display scale, )
and watch what happens with the
element
For later redefinition of Variable, you
can call the selection window from the
elements properties window, property
Variable
1st VipWin Project
First
Next
Back
Last
Exit
Dynamic Elements 4/4
Defining Dynamic Elements

Next step is to show the value of COUNT
Select Numerical value element in the toolbar
and draw the element on the screen
Select again COUNT in the Variable selection
dialogue
Define Background color = light green and
Foreground color = dark blue in the properties
window
Tick Display status of variable
Please note that you can display properties in different ways
Fast access shows main properties of the element(s) selected.
This is used for basic property setting.
Grouped and All properties shows the whole list of
1st VipWin Project
First
Next
Back
Last
Exit
Sending commands
Sending commands to the PLC


To set an analogue value we can use again
the Numerical value element

Draw a static text element Limit
Draw a dynamic Numerical value element
connected to variable LIMIT

You have learned to do that so there is no
need for further help!

Set the Allow setting of values to active!
1st VipWin Project
First
Next
Back
Last
Exit
Checking definitions in RT 1/2
Start of Runtime and check

Recompile and start the Runtime

Your runtime screen should similar to this
one (values may be different)

Click on the Switch to change status, click
on the Limit value to set the limit!

Check if your PLC program is working
correctly:
Start and Stop COUNT
Check if counter limit is working by setting
different limits
1st VipWin Project
First
Next
Back
Last
Exit
Checking definitions in RT 2/2
Start of Runtime and check

In case of small red squares displayed
within your dynamic elements,
communication to the PLC is not working
correctly

See next pages for
diagnostics information!


NOTE: Runtime can be started from Editor only, if the Runtime was
stopped before! In case of a running Runtime, start in Editor will
NOT execute the new definitions!
1st VipWin Project
First
Next
Back
Last
Exit
Diagnostics 1/2
Diagnostics of communication

Festo VipWin drivers supports online diagnostic information
On starting Runtime with a Festo driver, you will get an F
in the right corner of the task bar (near time display). Open
the context menu with right mouse click and select
Diagnostics

Network page (EasyIP) shows an overview about the
communication status of all PLC stations, currently
addressed by the VipWin application

Communication page (serial CI) shows communication
status (for driver cycle times < 200 ms) or communication
telegrams (cycle time > 200 ms)
1st VipWin Project
First
Next
Back
Last
Exit
Diagnostics 2/2
Diagnostics of communication


Variables page shows a list of all variables currently requested by
the VipWin application.
NOTE: Only operands currently needed to for the application
are requested. If e.g. only a picture with static elements is
displayed on the screen it may happen that no variables are
shown in the list!

In the Commands page all commands (values sent to the PLC)
are listed

1st VipWin Project
First
Next
Back
Last
Exit
Functions 1/3
Definition of Functions

Functions are used to execute various function like switching
pictures, sending fixed values, , initiated either by the user or
by other conditions

We will define a function to set the LIMIT of our counter to
1.000 and to 500

Select Functions in the project tree, open context menu with
right mouse click and start New function
Select Variable-Functions -> Send value to hardware ->press
OK
Choose LIMIT variable in the Variable selection dialogue
Choose Send value to hardware from section Variables-
Functions
1st VipWin Project
First
Next
Back
Last
Exit
Functions 2/3
Definition of Functions


Choose LIMIT variable in the Variable selection dialogue





Define value 1000 and tick the Direct to hardware option

Repeat function definition to set the value 500

1st VipWin Project
First
Next
Back
Last
Exit
Functions 3/3
Definition of Functions

Use the new defined functions with 2 Text
buttons below the limit value in the main
picture
Define a Text button
Assign the text 500
Connect to function setting Function_1
(value 500) to variable LIMIT
Repeat for a second Text button to set the
limit 1000
HINT: Use Copy and Paste to duplicate
the Text button and correct the properties
of the new element!
Check in RT if limit value changes when
executing the set functions

1st VipWin Project
First
Next
Back
Last
Exit
Alarming
Defining an Alarm

The project wizard already created an Alarm picture. Also the function
to show this picture was already created.
To realize an Alarm we need to define a limit
Select variable COUNT
Add a limit in the properties window by use of the context menu (right
mouse click in properties window) and function Limits paste
Set following properties for the new created Limit [1]:
Active
Blinking
Color = RED
As Alarm
Limit = 600
Limit text = Limit of COUNT reached
Minimum/maximum = Maximum

1st VipWin Project
First
Next
Back
Last
Exit
Alarming 1/3
Switch to Alarm picture

To show the alarm in the Alarm picture, correct the function to
switch to the Alarm picture

Select Functions in the project tree and mark Picture switch to
Alarming

Click on Parameter in the properties window

Select picture Alarming (already pre selected)
1st VipWin Project
First
Next
Back
Last
Exit
Alarming 2/3
Switch to Alarm picture



Set * (all variables, all identifications) for Alarms to be displayed in the
Filter dialogue
1st VipWin Project
First
Next
Back
Last
Exit
Alarming 3/3
Check Alarm display in Runtime

Start Runtime from Editor
Set limit to 1000 and start counting
Display of the Bar graph should change to Flashing RED Bar when counter
value is higher than 600
Alarm should be displayed on top of the screen
Change to Alarming picture using menu Window / AML
Alarm is shown in the alarm list AML
NOTE: To confirm alarm you
can either use Acknowledge in
the AML picture or double click
with right mouse button the
alarm line on top of the screen!
1st VipWin Project
First
Next
Back
Last
Exit
Further Dynamic Functions
Dynamic Function Move

As a last example, realize a moving Symbol,
we will call it Smilie!
Switch to Editor, select Main_Picture and
draw a Smilie out of several static elements
(Ellipse and Line). Set element properties
(Background and Line Color) according to
your preferences
Select all elements of the Smilie and group
them to a Picture Symbol with function
Create in Edit / Symbol menu
Set in the properties window of the new
symbol for the Object Name Smilie
1st VipWin Project
First
Next
Back
Last
Exit
Further Dynamic Functions
Dynamic Function Move

To make the static Picture symbol Smilie
dynamic, the dynamic element Move will be
used

Create a dynamic element Move next to the
Smilie symbol (move is an invisible element
because it represents dynamic information
only. It is displayed in the Editor by a frame)

1st VipWin Project
First
Next
Back
Last
Exit
Further Dynamic Functions
Dynamic Function Move

Set properties for Move and connect to
Variable and Symbol:
Change X direction
Maximum movement = 350
Maximum value = 1000
Minimum Movement = 0
Minimum value = 0
Variable = COUNT
Symbol = Smilie

This definition will force the Smilie in RT to
move from X-position 50 to 350 according to
COUNT in the range 0 to 1000
1st VipWin Project
First
Next
Back
Last
Exit
Final Check
Final checking of project in Runtime
Your project should finally look:
Congratulations!
1st VipWin Project
First
Next
Back
Last
Exit
Summary
Summary

Project shown in this presentation represents only a very small part of the functions offered by VipWin
Consult online help, especially section Tutorials / Training Basic for further basic information

Vous aimerez peut-être aussi