Beruflich Dokumente
Kultur Dokumente
Contents
1. General.............................................................. 2
1.1 Document Index . . . . . . . . . . . . . . . . . . . . 2
1.2 Scope of Supply. . . . . . . . . . . . . . . . . . . . . 2
2. Installation........................................................ 2
2.1 General Remarks to Wiring . . . . . . . . . . . . 2
2.2 Starting the device. . . . . . . . . . . . . . . . . . . 2
2.3 Switching off the device. . . . . . . . . . . . . . . 2
2.4 Calibrating the Touchscreen. . . . . . . . . . . . 2
2.5 Ethernet. . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.5.1 Examining and Adjusting the
IP-Address of the Unit. . . . . . . . . . . . 3
2.5.2 Wiring. . . . . . . . . . . . . . . . . . . . . . . . . 3
2.5.3 Test the Ethernet Connection . . . . . . 3
3. The first VISUAL DESIGNER Project.............. 3
3.1 Creating a new Project. . . . . . . . . . . . . . . . 4
3.2 Select a Display Resolution. . . . . . . . . . . . 4
3.3 Saving Your Project. . . . . . . . . . . . . . . . . . . 4
1. General
Document
Document Number
[1]
Hardware manual
MN04802004Z-EN
[2]
Hardware manual
MN05010006Z-EN
[3]
Network
MN05010009Z-EN
[4]
Windows CE
MN05010007Z-EN
2.5 Ethernet
The Ethernet interface of the unit is used for engineering the Visual
Designer software. This section describes how to commission the
communication between the unit and the development PC.
An IP-Address always consists of a network and computer address.
The network mask specifies which bits belong to the network and
which do not.
Select a free computer
address for the unit
from the local network.
You can determine the
network address of your
PC under Control Panel
network connections
properties. Select
Internet protocol (TCP/IP)
from the list and click on
properties.
2. Installation
2.1 General Remarks on Wiring
Cabling should be carried out with special care in order to ensure
interference-free operation.
The EMC values stated in the technical data of the operating instructions can only be guaranteed if the connections and cables are prepared according to the specifications stated.
The cabling must be laid separately from low-voltage cables or isolated with double or reinforced insulation.
Example:
IP-Address PC
IP-Address
192.168.1.7
SubNetMask
255.255.255.0
This means
Network-Address
192.168.1
Computer-Address
192.168.1
Computer-Address
192.168.1.72
SubNetMask
255.255.255.0
Using the same IP address more than once on the same network
can result in critical network problems!
Power up the unit. After Windows CE has booted from the OS-flash
press the Start button and go to Programs Control Panel.
If the unit does not reply and instead returns Request timed out
then contact your network administrator for troubleshooting
assistance.
Requirements:
The Visual Designer visualization software must be installed correctly. You can find the current Visual Designer software on Eatons
Electrical group homepage under Products and Services, Automation
and Control, Operator Interface, and Operator Interface Software.
(www.eaton.com/Electrical/USA/ProductsandServices/
AutomationandControl/OperatorInterface/
OperatorInterfaceSoftware)
Under Software Downloads you will find Visual Designer Software.
The XV-102/152 unit is supported with VISUAL DESIGNER version
V7.0.0 or greater. For unrestricted operation of VISUAL DESIGNER
development you need a license which is contained in a USB license
key. There are two different licenses available. The first is Catalog
# VISUALDCE which will allow development on only XV models
(Windows CE). The second is Catalog # VISUALDXP which will
develop applications for all XV, XP and selected ePro PS models.
Please contact your Eaton or distributor sales person for additional
information.
2.5.2 Wiring
Connect the XV unit directly to the development PC with an
Ethernet crossover cable. If you use an Ethernet hub, switch or
router, use a standard Ethernet patch cable.
Some newer PCs come with an auto-sensing Ethernet port that
will automatically adjust the internal port connection so that a patch
cable will work between the PC and XV unit without the need for a
special Ethernet crossover cable. Consult your PC documentation or
manufacturer to determine if your PC supports this feature.
Win CE
XV for WinCE
1,500
XV for WinCE
4,000
4,000
64,000
PC Runtime
64,000
New Project
Dialog Box
When you are done, select the OK button. You have now created a
new Project.
At this point, dont worry whether you have enough tags to meet
your application requirements. You can adjust the license configuration for your software by selecting the following from the Ribbon:
Project Options
Using the Target System combo box, select a new target platform
configuration to meet your application requirements.
Project tags are tags you can create during application development. Example where application tags are used include:
Displays
Control tags
NNote: System tags do not count against the Visual Designer application
tags license limit
NNote: Shared tags are not used with CoDeSys or MXpro, they are
imported with the CoDeSys Tag import wizard from the .SYM
file created by MXpro.
All tag definitions are found in folders located in the Global Tab of the
Visual Designer Workspace. Project tags are declared in the Project
Tags database folder.
You must begin the tag with a letter. After that, you can use any
combination of letters, numbers, and the underscore character (_).
Application tag names must be unique from all other tag names
and Visual Designer built-in function names
You can use upper- or lowercase letters in a tag name. Tag names
are not case sensitive, and you can use both upper and lowercase characters to make tag names more readable (for example:
TankLevel instead of tanklevel).
Notes:
If you place your mouse cursor on the blank square in the upper
left corner (left of the Name field) and click the right mouse button, you can sort the tags by name in ascending or descending
order.
If you want to delete or insert tags, first place your mouse cursor on the blank square in the upper left corner (left of the Name
field) and click the right mouse button. Select the Disable Sort (if
it is not greyed out). Next, position your mouse cursor over the
line you want to delete, or the line to insert a new line above, and
click the right mouse button. Select Delete Line or Insert Line.
Warning: You will not be able to Insert or Delete a line if the
Visual Designer application is running. Click on the STOP icon
in the main Toolbar to stop the Visual Designer application.
You can select which fields to view in the Project Tags Datasheet
View. Simply put your mouse cursor on one of the lines, and click
the right mouse button. The Name, Size, Type, Description and
Scope fields are the default fields to be displayed, but by selecting More Columns you can view other tag (Property) fields that
can be specified during development. Tag Properties will be discussed in a later section.
Declaring tags in the Project Tags database is not the only
method of declaring Visual Designer tags. As we will see later,
with most Objects you can simply type in the name of a tag and if
the tag is not already defined, Visual Designer will ask you if you
want to declare the tag. This allows you to create new tags while
developing your application without first declaring them in the
Project Tags database. This method is suitable for declaring tags
of data type Boolean, Integer, Real, String and Array.
Like most tables in Visual Designer, you can copy and paste information to and from the Datasheet View to Excel which may facilitate the creation of the tag database.
The above graphic shows how an Integer Array tag called tank is
declared. The size value is set to 5, and since all Arrays are zerobased, there are really 6 elements in the array [0, 1, 2, 3, 4, 5]. To
reference a specific element in the tag, you would use (in an Object
or one of its Dynamic Properties) the following syntax: Array[Index],
e.g. tank[0], tank[1], .. tank[5]. Any index values greater than 5 would
be invalid for the tank array since it was declared as Size 5.
Name
Physical location
Capacity
Level
Temperature
Pressure
After clicking on OK, Visual Designer will open a new worksheet that
lets you define the elements in the Class cTank. These elements
are collectively called Members, with each element being called a
Member. The Members are not tags; they are simply the definitions
for the elements that define a Class. Note that in this example, we
have defined the Names and Type of the Members as defined above.
An optional Description field is available.
When finished,
place mouse
cursor over
this tab, right
click and select
Close, or just
click on the x
in the tab.
Once you have defined the Class Members for cTank, close the
Class definition Worksheet by clicking on the x in the tab of the
Class definition Worksheet.
We have just completed the first part of defining a Class tag, i.e.
defining the Class. The next step is to declare the Class tag in the
Project Tags database. Open the Project Tags folder and select
Datasheet View.
As shown in the graphic below, we have now defined a Class
tag called tank and its data type is cTank, the newly defined
Class definition.
Now that we have defined the Class cTank and declared Class Tag
tank, lets look at the syntax for using a Class Tag. The syntax is:
ClassTag.Member (e.g. tank.Level, tank.Pressure, etc.).
Suppose we had three (3) tanks instead of a single Tank. We could
declare three Class tags of type cTank (e.g. Tank1, Tank2, Tank3). But
a better way might be to declare an Array of Class tags. Using the
above example, we simply add a size of 3 to the Size field as show
below.
Note that since Size is set to 3, there are actually four (4) elements
to Array of Class tags. To access a specific tank in the Array of Class
tags, we would use the following syntax: ClassTag[index].Member
(e.g. tank[1].level, tank[2].pressure, etc.).
Startup: An initial startup value for the tag if the Retentive Value
option is unchecked.
Min: A minimum value that is allowed for the Tag. If the tag evaluates to a value below the minimum, a warning to the LogWin
Window will occur. Values below the Minimum are not allowed to be
entered by any Object (e.g. Text I/O).
Max: A minimum value that is allowed for the Tag. If the tag evaluates to a value below the minimum, a warning to the LogWin
Window will occur. Values below the Minimum are not allowed to be
entered by any Object (e.g. Text I/O).
Unit: A text field used to describe the engineering units for the tag.
Retentative Value: A checkbox that, if checked, tells the Visual
Designer database manager to save all changes to a Tags value during runtime operation.
NNote: checking this option can cause frequent access to your XVs flash
device, based on your application
Dead Band: The Dead Band field is used to filter alarms. It is a value
of variance around an Alarm value that the tag can vary before triggering an alarm. For example, if an Alarm Hi Limit is set to 90 and
the Dead Band value set to 5, then an Alarm will be generated when
the tag value is 95, and the Alarm will return to a Normal state
(normalized) when the tag value is 90.
Smoothing: A checkbox that, when checked, enables the Visual
Designer database manager to reduce the rate of change for a tag
by averaging the current value with the previous value. The averaged
value is then stored in the tag value.
Along with the tag
Properties that are
accessible in the
Datasheet View,
additional tag
Properties can be
accessed by the Tag
Tag Property Icon
Properties Tool. This
tool can be used by
opening the Datasheet View, selecting (left mouse click) the tag of
interest and then activating the Tags Property tool (left mouse click
on the icon) in the Ribbons Home tab, Tags section.
The Tag Property Tool has three (3) dialog boxes, selectable by tabs
on the top of the dialog box. The first tab allows you to specify the
same Tag Properties that are accessible from the Datasheet View
(with all columns enabled). The second tab allows you to set tag
parameters that are also set by an Alarm Worksheet (Task Tab of the
Visual Designer workspace), although an Alarm Worksheet provides
additional configuration options. The last tab allows setting of some
of the parameters that are specified in a Trend Worksheet (Tasks Tab
in the Visual Designer workspace). It should be noted that if any of
these Properties are changed in the Alarm or Trend Worksheet, those
values will be written into the fields shown here.
v1->Max will return the maximum value allowed for the tag.
(normally max & min are set to 0 to allow all value ranges)
If the tag is an array, depending on the Field used, you will want to
either use just the array name or use the array name with the index.
For example, if we have an array called Switches with a Size of 5:
If the tag is an Array of Class tags, you can refer to the Array name,
Array name with Index, or the Class Members. Using the previously
defined Array of Class tags (tanks), for example:
Screens
Tag->FieldName
where Tag is the name of the tag (for all tag types)
-> is the minus sign and a right arrow
FieldName is the name of the Tag Field (see table below).
Graphics
Workspace
Tab
Below is an example of the dialog box to define the file name for the
Screen. This dialog box will appear when you select Save or Save
As when the Screen has not been previously been saved, or if you
select Save As with an existing Screen.
Click the OK
button to create a Standard
Screen
In the Menu Bar, click on File, then select Save As if this is a new
Screen. Otherwise select Save if the Screen already exists and
you are just saving the latest change (or you can click on the Save
icon or right click on the Screen name (above the Screen) and
select Save). If the Screen in a new Screen, you will be prompted
to enter a file name for the Screen. The Screen will be saved as a
Display File with a .SCR extension. All screen files are automatically saved in the application folder in the \Screen
Left click
to Save or
Save As
NNote: All screen files are automatically saved in the \Screen subfolder in the
application folder. Screen files need to be stored in this subfolder. Do not
locate them into another subfolder.
Shapes
Line, Ellipse (includes the Ellipse, Chord, Arc, and Ring), Rounded
Rectangle, Rectangle, Button, Text, Open Polygon, and Closed
Polygon.
Active Objects
Text, Button, Pushbutton, Check Box, Radio Button, Combo Box,
List Box, Smart Message
Editing Toolbar
Selection, Disable Drag, Replace, Properties, Grid, Undo, Arrange
Animations
Command, Bar Graph, Text Data Link, Position (and Visibility),
Resize, Rotation, Color, and Hyperlink
Right-click on
display tab
We will also discuss the Format tab of the Ribbon which is shown
when one or more objects are selected on a screen in the editor
Arrange
Bring to front, Send to back, Group, Align, Rotate
Position
Modify X and Y position of a single object
Size
Modify the Width and Height of a single object, Resize Width and
Height of multiple selected objects
Style
Modify the line color and thickness and the fill color of one or
more selected objects
Font
Modify the font of one or more selected objects
Text icon
The ##### characters in the text object become placeholders for displaying tag information when the Text data link properties are added
to the text object. The Tag/Expression property defines the tag or tag
expression to replace the ##### characters in the string. You may
use the ellipsis () button to the right of the property to open the
Object Finder window to pick a tag from the tag database or you can
just type the tag name into the field. The Object Finder dialog shown
below allows you to pick from application tags, system tags and various math, logic and other functions for the tag/expression property:
Text Data
Link icon
Next double-click on the text object on the page and the following
properties dialog will appear:
10
You may modify the properties for alignment, colors, fonts and
even the text caption from this property dialog. To add the Text Data
Link property to this object, click on the Text data link button to
the right of the Caption or click on the Text Data Link icon from the
Ribbons Graphics tab, Animations section. This can be done while
the object properties are being displayed or with just the object
selected in the display window. Once youd added the Text data
link property you will see the following properties added to the text
object:
For this exercise simply click on the tag hmiCounter under the
Project > Integer tags and click on OK. Next click on the checkbox
for Input Enabled as shown below then close the dialog box with
the red X close button.
Pushbutton icon
In the Open section replace the Caption with OFF for the Color
use the drop list to select Gray for the background color. In the
Closed section change the Caption to ON and for the Color use
the drop list to select Green for the background color. You can also
change the Fonts of either to your taste, then when done click on
OK. Next close the object properties dialog with the red X.
Command
icon
Color
icon
11
Change the Color for the 0 limit to gray and use the ellipsis button () next to the Limit Expr: property to select the same Boolean
hmiPB1 tag from the application database. Next close the dialog
by clicking on the red x in the upper right corner, then right click
on the display name tab at the top of the page and choose Save,
then right-click and choose Close. Note that if you choose Close
first you will be prompted to Save the Changes with Yes, No, and
Cancel options.
In the On Down tab change the Type property using the drop list
to change from VBScript to Set Tag. Then in the Set Tag property
you can either type in the tag hmiPB1 or use the ellipsis button to
pick the tag from the database. When finished, the properties will
appear as below.
12
In the Main Driver Sheet all tags which are to be read from the
communications device must be entered and assigned a Station
and I/O Address. The Action field should be set appropriately as
Read+Write, or Read or Write only. Tags which are used for
background tasks such as alarming, trending, and data archiving
should leave the Scan field set to Always. Those tags which are
used for screen display and control only should have the Scan field
changed to Screen.
13
In the Target tab click on the Network IP: radio button and type in
the IP address of the XV unit then click on Connect. If the Ethernet
connection is set up correctly the following changes in the dialog
box will appear.
14
The Status field will indicate that it is connected and the Platform
field will indicate the Windows CE Version and the processor type of
the XV unit.
The runtime for Visual Designer and PLC are started from the
SD-card
The operating system image file (XV102.BIN) and all other OS components needed for Visual Designer functionality must be stored in
the directory \OS\ on the SD-card.
15
Eaton Corporation
Electrical Sector
1000 Cherrington Parkway
Moon Township, PA 15108
United States
877-ETN-CARE (877-386-2273)
Eaton.com
2011 Eaton Corporation
All Rights Reserved
Printed in USA
MN0480001E / TN
February 2011