Cimplicity HMI
Cimplicity HMI
GFK-1396F
July 2001
GFL-005
Following is a list of documentation icons:
Warning notices are used in this publication to emphasize that hazardous voltages, currents,
temperatures, or other conditions that could cause personal injury exist in the equipment or
may be associated with its use.
In situations where inattention could cause either personal injury or damage to equipment, a
Warning notice is used.
Caution provides information when careful attention must be taken in order to avoid
damaging results.
ii
GFK-1396F
Preface
GFK-1396F
iii
Chapter 14. Using CimEdit Scripts: Explains a scripts role in the CimEdit
confuration and how a system administrator can incorporate scripts into the CimEdit
configuration.
Chapter 15. Taking Advantage of ActiveX Controls: Describes how to
incorporate ActiveX controls in your CimEdit screen.
Chapter 16. Point Addressing: Defines point addressing and, when and how to use
it
Chapter 17. Monitoring Point Attributes: Provides the Attribute_Point syntax to
let a user monitor the attributes of configured points through CimView.
Appendix A. CimEdit Text File Syntax: Documents the syntax for a text file
created with the /converttoctx command line option.
Appendix B. Managing CimEdit Screens: Discusses screen performance issues,
installing a screen, and command line options for installed screens and interactive
functions.
Appendix C. CimEdit Global Parameters: Documents the global parameters
available to tune CimEdit and CimView.
iv
GFK-1396F
Related Publications
For more information, refer to these publications:
CIMPLICITY HMI Plant Edition User's Manual (GFK-1180)
CIMPLICITY HMI Plant Edition Device Communications Manual (GFK-1181)
CIMPLICITY HMI Trending Operation Manual (GFK-1260)
CIMPLICITY HMI SPC Operation Manual (GFK-1413)
CIMPLICITY HMI Recipes Operation Manual (GFK-1303)
CIMPLICITY HMI Plant Edition Basic Control Engine Language Reference
Manual (GFK-1283)
CIMPLICITY HMI Plant Edition Basic Control Engine Program Editor
Operation Manual (GFK-1305)
CIMPLICITY HMI Plant Edition Basic Control Editor Event Editor and BCEUI
Operation Manual (GFK-1282)
GFK-1396F
Contents
Introducing CimEdit
1-1
Opening CimEdit
2-1
3-1
4-1
GFK-1396F
Contents-vii
5-1
6-1
Creating Expressions
7-1
Contents-viii
GFK-1396F
8-1
9-1
Using Variables
10-1
11-1
GFK-1396F
Contents
Contents-ix
Animation........................................................................................................................... 11-22
Animating the Color of an Object........................................................................ 11-22
Animating an Expression..................................................................................... 11-26
Frame Animation ............................................................................................................... 11-28
Creating a Frame Container ................................................................................. 11-29
Working with Frame Container Tools ................................................................. 11-30
Configuring a Frame Container ........................................................................... 11-31
12-1
13-1
14-1
Contents-x
GFK-1396F
15-1
16-1
17-1
A-1
B-1
Index
GFK-1396F
Contents
Contents-xi
Introducing CimEdit
Welcome to CimEdit
You are about to reap the benefits of using CimEdit, with its runtime partner,
CimViewthe first ActiveX HMI graphics container. The object oriented graphics
editing, CimEdit, and the runtime viewer, CimView, are easy to learn and easy to
use. They blend industry standards with advanced interface designs to provide you
with an intuitive package that lets you perform operations easily and naturally. Tight
integration of all CIMPLICITY functionality makes system design, configuration,
and operation simple. This package combines the power of CIMPLICITY software
with the Windows user interface that you are used to, right out of the box there is
no complex set-up, installation, or programming to learn. Crisp graphics and smooth
animation make CimEdit and CimView a pleasure to work with.
A Screen in CimEdit
GFK-1396F
1-1
CimEdit Tools
CimEdit provides a set of tools that let you graphically represent your facility.
Windows users will quickly notice the toolbars located around the screen. The
toolbars provide the drawing tools such as the capability to draw Line, Polyline,
Polygon, Rectangle, Ellipse, Arcs, Text and Button objects. CimEdit provides the
capability to import OLE and ActiveX objects into your screens. Trending, Quality
Charts, and Alarm Viewer are examples of CIMPLICITY ActiveX objects. Third
party OLE and ActiveX objects that can be embedded include Excel spreadsheets
and charts to bitmaps, video, and sound files. Once objects are created, they can be
resized, rotated or moved using the "handles" that appear when the object is selected.
With this combination of graphic tools, drawing graphic screens that accurately
depict a production process is very simple.
Once the objects are placed on the screen, another toolbar provides a powerful set of
alignment tools. Objects can be aligned automatically with a configurable grid, or
aligned as groups using the object alignment tools, which include the ability to space
objects evenly as well as align them in relation to each other. Objects can also be
rotated, flipped, grouped, or ungrouped.
Any object can then be animated using the object property sheet that pops up when
you double-click on an object or click on the property sheet icon on the forms
toolbar. This property sheet allows you to choose from a wide variety of animation
and control functions.
The animation properties of any object are displayed in a file tabular format that
allows you to navigate quickly between animation properties including: rotation, fill,
movement, color, and text annunciation, geometry, scaling, events, or the ability to
take an action using the procedure card from the property page.
1-2
GFK-1396F
CimEdit Features
CimEdit comes with an abundance of features to give you maximum ease and
flexibility when you configure the screens for your project. Some of these features
are:
A Point Browser dialog box gives you the ability to access any CIMPLICITY
point on the entire network, and use this point to animate an object.
Standard Object shapes are provided for use in your system, including squares
and rectangles, circles and ellipses, lines, polylines, arcs, pies, and cords.
Position, style, color, and rotation are some of the attributes that can be defined.
OLE and ActiveX embedded objects give your screens more power. Trend
charts, spreadsheet charts, multimedia presentations, and live motion video can
all provide power and extensibility to your system. OLE and ActiveX in-place
editing of embedded objects allows you to view your screen as a single
document without popping up other application windows. OLE and ActiveX
drag-and-drop support means you can just drag an OLE or ActiveX object from
one document to another. Drag Excel charts into CimEdit. Drag objects from
one CimEdit screen to another.
A Drag and Drop Library of over 2000 Symbols and SmartObject objects
makes creating screens a snap. The CIMPLICITY Object Explorer allows you to
easily drag and drop the symbols and SmartObjects into the screens you are
creating.
You can also add to the library by creating your own set of SmartObjects.
SmartObjects are easily created with standard CIMPLICITY objects through
Group Editing and Expression Variables. Group Editing provides the ability to
edit properties of objects within a group without ungrouping the objects.
Expression Variables provide the ability to use variables anywhere an
expression or point can be used. A variable can be replaced with either a string
or numeric value. The substitution of a variable can take place at either edit time
or at run time.
GFK-1396F
Movement and Rotation are two animations that can be performed on objects.
Filled Objects including fill from top, bottom, left, right, or bi-directional. Bidirectional fill is a unique feature that allows you to configure a single object,
which can fill in two directions from a center point. This is ideal for bipolar bar
graphs.
Interior and Border Animation provides you the ability to animate the internal
and outline aspects of objects. Interior Animation allows for color and pattern
changes. Border Animation changes the line surrounding the object.
Introducing CimEdit
1-3
1-4
Periodic
SmartObject
Hold Last Value can be defined on a project basis. This feature allows you to
configure the system to hold the last known values of points in your CimView
screens if the points go into an Unavailable State. Text points in this state will
display in a configured color (determined for the entire project).
Point Search & Replace allows you to search the screen for a point and
highlight all objects that contain the point. You can then replace point identifiers
within a CimEdit screen by simply typing over the name in a list of points used
in the screen.
Scalable Objects provides the ability to change the size of an object based on
the value of a point. The object can be scaled independently in the X and Y
directions.
Object Help can be configured for any object on the screen. The operator can
then access this help at any time using the right mouse button.
GFK-1396F
Get a description of the animation and actions associated with an object with a
click of the mouse.
Using CimEdit's Dynamic Screen Testing, you can review what CimView will
display as frequently as you want.
GFK-1396F
Introducing CimEdit
1-5
Opening CimEdit
About Opening CimEdit from the Workbench
The CIMPLICITY HMI Workbench offers you familiar features (also found in Windows
Explorer) for opening new and existing CimEdit screens.
This chapter reviews the methods available to you for:
GFK-1396F
2.
3.
2-1
3.
4.
Select New.
5.
Select Object.
3.
4.
5.
Press O.
2-2
GFK-1396F
2.
Select the screen that you want to edit in the right pane of the Workbench.
Opening an Existing CimEdit Window
Drop down menu
Popup menu
4.
4.
Select Properties.
GFK-1396F
Opening CimEdit
2-3
Frame container containing two or more frames. Each frame can contain
groups and/or objects that display when the frames pre-configured conditions
evaluate to True.
Groupa collection of several objects that are combined to act like a single
object in certain instances.
Minimize/Maximize/Restore/Close
Buttons
Control Menu
Button
Menu Bar
Toolbars
Screen
Frame
Text + Button
= a Group
(Text) Object
Status Bar
In addition to providing you with high-powered graphics tools in its toolbars and menus,
CimEdit provides you with easy to use dialog boxes. These dialog boxes are powerful
enough for the most sophisticated programmers and easy enough for screen designers
whose abilities lean more toward design. .
GFK-1396F
3-1
3-2
Selecting CimEdit objects that will convey the information most effectively.
Choosing which CimEdit processes will unleash the power of the objects.
GFK-1396F
Point data.
Variables.
Expressions.
Device Point values from PLCs or other devices provide the CimView viewer
with the ability to monitor a process represented by several points.
GFK-1396F
Full Point ID
Partial Point ID
3-3
A variable does not communicate with the PLC but is wholly contained in CimEdit.
Example of a Variable
Different values (types of values) are assigned to a variable ID {var_value} for
different items on a CimEdit screen.
Variable ID Value
var_level 40
var_level tank_level (point)
var_level tank_level+50
var_level Assigned during runtime
In addition to providing you with several options for assigning values, variables can
streamline your configuration time. For example, when you create an object that uses
variable IDs, you can use the same object in several locations on a CimEdit screen, or on
several different screens and assign different text strings to each instance of the object.
Arithmetic
Logical
Alarm functions
Bitwise
Conversion
Relational
Scientific
CimEdit provides you with an easy to use Expression dialog box, in which you build
complicated expressions with just a few clicks of the mouse.
Logged files
Text files
Note: These data sources are available through features, such as Trending, or scripts.
3-4
GFK-1396F
GFK-1396F
3-5
(Optional) ActiveX and third party objects that may enhance CimViews
capabilities.
Type and number of monitoring and regulating tasks that can be divided into
logical units
Note: Using frames is another layout option if you have several objects on a screen that
will change during runtime, based on a similar set of conditions. See the Configuring
Runtime Movement and Animation chapter in this manual for detailed information
about configuring frames.
3-6
Text objects.
OLE objects.
ActiveX controls including the CIMPLICITY Alarm Viewer and Trend chart.
GFK-1396F
CimEdit also provides you with a huge variety of tools as toolbar buttons and menu items
to change the objects appearance. This includes changing its:
Size.
Shape.
Angle of rotation.
Another time saving feature provided by CimEdit is the ability to create linked objects.
Linked objects save you valuable time by providing you with the ability to change a
single object, the linked object, and then let CIMPLICITY HMI finish the job of updating
every link to that linked object, in your entire project.
In addition, this single source capability insures that any specification or change made to
the linked object will be reproduced exactly in every link to that linked object.
By mapping out the data flow, you can narrow down your choice of objects for each
CimEdit task. Because each configuration is composed of a series of small steps, you can
easily change your mind as you begin configuration.
Normal operations
Alarm states
Trends
It is in this phase of configuration that you will involve various types of data. What you
want each object to represent and do will determine which type you use.
You may have placed some of the objects on your CimEdit screen to promote one or
more actions. The screen, itself, can also be involved.
GFK-1396F
3-7
Event
Procedure
Script
Action 1
+
+
Action n
+
Action 2
Basic language
+CIMPLICITY
extensions
Terminal Action
Move.
Rotate.
Change in size.
Fill up.
3-8
Groups.
Objects.
Text.
Lines.
Shapes.
GFK-1396F
GFK-1396F
3-9
3-10
GFK-1396F
Step 2.
Step 3.
Step 4.
Estimate the number of screens that will be needed. See page 3-13.
Step 5.
Select and layout objects that will effectively display the information. See
page 3-14.
Step 6.
Configure each object to function as required during runtime. See page 3-15.
2.
3.
Tank1_Level
2.
Tank1_Temp
3.
Tank1_Flow
4.
Valve_Piston
5.
Tank2_Flow
Level
GFK-1396F
Temperature
Flow
3-11
2.
3.
4.
5.
Monitor the rate of flow out of the Tank 1 valve (into Tank 1).
On Viewer 2
3-12
6.
7.
GFK-1396F
Screen 1 will:
A. Display as the main screen on Viewer 1.
B. Receive device data from PLC 1 and PLC 2.
C. Send setpoint input to PLC 2.
2.
Screen 2 will:
A. Display on Viewer 1.
B. Be opened through Screen 1.
C. Receive device data from PLC 1.
3.
Screen 3 will:
A. Display on Viewer 2.
B. Receive data from Screen 1 (Tank 1 flow).
C. Receive device data from PLC 3 (Tank 2 flow)
PLC 2
Screen 1
View points
Tank1_Level
Regulate
Valve_Piston
Tank1_Temp
PLC 1
Move between
Screen 1
View point
Tank1_Flow
Screen 2
Screen 3
3
4
Tank1_Temp
Tank1_Level
View point
Tank2_Flow
GFK-1396F
PLC 3
View point
Tank1_Flow
3-13
2.
3.
4.
5.
6.
A CimEdit SmartObject lever to enable user setpoint action for the valve piston.
7.
8.
9.
Screen 1
Tank1_Level
Tank 1 View
(title will be linked)
Wizard
6
Valve_Piston (setpoint)
PLC 1
Tank1_Temp
Temperature
Normal
Tank1_Flow
Screen 2
Screen 2
3
4
Screen 1
Reserved for
title link
Tank1_Temp
CimEdit
ActiveX
Tank1_Level
Trend
Screen 3
Reserved for
title link
Reserved
for copy
(of 5)
3-14
PLC 3
Reserved for
link (of 5)
Tank2_Flow
GFK-1396F
2.
3.
4.
Tank 1 level trends are the result of configuring the CIMPLICITY HMI
ActiveX trend object.
5.
6.
The Level for the valve piston setpoint uses the movement feature.
7.
The reserved place for a copy of the gauge uses rotation with criteria
modified to reflect Tank 2.
8.
The reserved place for a link container on Screen 3 displays the link to the
SmartObject gauge on Screen 1.
9.
Screen 1
Tank 1 View
1
Tank1_Level
6
Valve_Piston (setpoint)
PLC 1
2
Tank1_Temp
Temperature
Alarm High
Tank1_Flow
Screen 2
Screen 2
Tank 1 View
Screen 3
Screen 1
Tank 2 View
Tank1_Temp
Trend
Tank1_Level
PLC 3
Tank1_Flow
7 Tank2_Flow
Configuration Features
1 Fill
2 Color animation
3 ActiveX
4 ActiveX
5
6
7
8
This powerful configuration was done through simple and similar tabs in each object's (or
screens) Properties dialog box. The dialog box is accessed by double-clicking the object
(or screen). It could also have been configured through scripts.
GFK-1396F
3-15
Configuring a CimEdit
Screen
About CimEdit Screens
Your CimEdit screen provides you with several diverse features and capabilities that you
can use at any time during your screen design session. These features enable you to:
Screen size
Grid display
Create procedures that are available to objects in any direct path from the screen
down.
Add your own Help for the screen (simple text help or full Window help.
The screen has its own Properties dialog box and an Options dialog box to accommodate
its unique position within the CimEdit workplace.
This chapter describes all the screens features and capabilities. However, features such as
selecting colors, will only be addressed briefly. This is because the basic procedure is the
same as for any object and is discussed in great detail later in the manual.
GFK-1396F
4-1
2.
Method 2
1.
2.
3.
Select Properties.
Method 3
1.
2.
Select Properties from the drop-down menu over a portion of the screen that has
no objects.
Result: The Properties dialog box opens when you use any of these methods.
4-2
GFK-1396F
Screen Appearance
Because the screen is the background for your work, by the time you finish the
configuration it will have to be:
Large enough to contain all the objects you have placed, but small enough to fit
easily on the viewers.
Colored or filled with a solid color, gradient, or pattern that will focus viewers
attention on the objects.
2.
3.
Enter the screen dimensions you want to use in the Width and Height fields.
See "Object Form" in the "Applying Inanimate Visual Features" chapter in this
manual.
GFK-1396F
4-3
4.
5.
Click View on the CimEdit menu bar when the Properties dialog box is closed
8.
Select Size Window to Zoom. This resizes your window to fit the new actual
screen size.
2.
Border
Select one:
Solid
Gradient
Pattern
3.
Select the line style you want in the Line section, if you want the screen to have
a border. See Applying Other Styles and Colors in the Applying Inanimate
Visual Features chapter in this manual.
4.
Select the fill type and color(s) for that type in the Fill section. See Color and
Fill Selection in the Applying Inanimate Visual Features chapter in this
manual.
Note: Arrowheads and Closed are disabled for the screen border.
4-4
GFK-1396F
A variety of toolbars and tool tips that identify a toolbar button when you move
the cursor over the button.
2.
Select Options
Select Options
3.
Space between
lines horizontal and
vertical
4.
5.
6. Check Snap to grid if you want the object to snap to the nearest grid.
Snap to grid affects the selected object. When you move an object, resize it, or reshape it.
GFK-1396F
4-5
4-6
1.
2.
Select Options
3.
4.
GFK-1396F
2.
Select Options
3.
GFK-1396F
4.
5.
Check Show tool tips to display a description of a button when you move your
cursor over it.
4-7
Note: These methods are for display in CimEdit. To change the display of the CimView
screen, enter the screen dimensions on the Geometry tab of the Properties dialog box.
To zoom the screen, choose either:
Method 1. CimEdit toolbar buttons
Method 2. A quick zoom percent displaying on the CimEdit Edit menu
Method 3. Precise zoom from the CimEdit Zoom dialog box
Then
Continue. Fit the window to the new workspace display size.
To change a CimEdit screen display size during configuration:
Method 1. Use CimEdit toolbar buttons
Click either the:
2.
Select the percent you want the display to zoom from one of the percent choices.
4-8
1.
2.
Select Zoom.
GFK-1396F
Open Zoom
dialog box
Percent screen
zoom
Screen expands
or contracts to fit
workspace
Enter an exact
percent zoom
3.
Either:
A. Select one of the zoom choices.
B. Enter a precise zoom percent in the Percent field.
Check the Zoom to fit window radio button on the Zoom dialog box.
on the toolbar
Result: The CimEdit window will expand or contract to fit the workspace display
size.
GFK-1396F
4-9
2.
Select Options.
The Options dialog box opens.
4-10
3.
4.
Enter either:
A number between 0.001 and half the currently available page file memory.
GFK-1396F
Create variables.
Modify variables.
Delete variables.
2.
Variables
created at
the screen
level
Public
variables
Private
variables
GFK-1396F
3.
4.
Check the Public column if the value of the variable can be entered at
different locations.
4-11
5.
6.
7.
Point ID
Partial Point ID
Repeat Steps 34 (or 5) until you have completed your list of variable IDs.
Click Apply.
2.
3.
4.
Click Apply.
2.
3.
Click Delete.
Variables
created at
the screen
level
Public
variables
Private
variables
4-12
GFK-1396F
See the chapters Creating Events in CimEdit and Creating Procedures in CimEdit
in this manual for detailed information.
GFK-1396F
Expression High
Expression Update
Key Down
Key Up
Mouse Down
Mouse Up
Periodic
Screen Close
Screen Open
4-13
2.
Existing
events
Events
drop
down list
Point ID
popup
Procedure
associated
with selected
event
New / edit
procedure
popup
Expression
dialog box
3.
Click New.
4.
5.
Result: The Procedure Information dialog box opens in which you create the new
procedure.
4-14
GFK-1396F
Expression
dialog box
The events that are currently defined are displayed at the top of the Events tab. See page
4-14 for a graphic example. You can use this tab to create new events, duplicate existing
events, modify existing events, or delete existing events.
See Creating Events in CimEdit in this manual.
When you select a new Event type you can create a new procedure that the event will
trigger.
GFK-1396F
4-15
2.
You can:
Create,
Edit,
Duplicate,
Delete or
Rename
procedures.
See the Creating Procedures chapter in this manual for more information about procedures.
2.
4-16
GFK-1396F
Select a procedure from the list on the Procedures tab of the Properties dialog
box.
2.
3.
Select a procedure from the list on the Procedures tab of the Properties dialog
box
2.
Click Duplicate... to create another procedure with the same actions as the one
you selected.
3.
Enter the new procedure name when the Procedure Name dialog box opens.
4.
Click OK.
Select a procedure from the list on the Procedures tab of the Properties dialog
box.
2.
3.
GFK-1396F
1.
Select a procedure from the list on the Procedures tab of the Properties dialog
box.
2.
3.
Enter the new procedure name when the Procedure Name dialog box opens.
4.
Click OK.
4-17
Screen Scripts
Use the Script tab to create and edit a script for the screen.
The Callable entry points display lists all the subroutines and functions in the script.
Select Edit to open an Edit Script dialog box and create or update the script for the
object.
In the Program Editor window, you can edit, compile, and run the script. You can also
set breakpoints for debugging.
Once you create a script, you can create an Invoke script procedure and select an entry
point in the script, or you can configure it exactly in each script.
See the "Using CimEdit Scripts" chapter in this manual for more information,
4-18
GFK-1396F
Ambient Properties
It is at the screen level that you define the default ambient properties that will be used by
ActiveX control objects when you insert them into your screen.
Ambient properties are the window foreground color, background color, and text font that
will be used by ActiveX control objects when you insert them into your screen.
To specify a screens ambient properties:
1.
2.
Text color
Window
color
Font
dialog box
3.
Enter the foreground and background colors you want in the Fore color and
Back color input fields.
4.
Click Font... to open the Font dialog box and change the default font.
5.
Note: When you change the ambient properties, all ActiveX controls currently
embedded in the screen will reflect the changes.
GFK-1396F
4-19
Text
Text File
Help File
In CimEdit or CimView, when you select the Help button on the toolbar and click on the
screen, the help that you define here will be displayed.
To specify the Help file to use:
1.
2.
3.
Text
A. Click Text.
Up to 30,000 characters
can be displayed as Help
4-20
GFK-1396F
Help.txt
B. Enter the name of a text (.txt) file in the Text file field. The file will be
opened in Notepad when Help is selected.
Result: Use the Select File dialog box to search for and select the file
name.
Help File
A. Click Help file.
Select file
dialog box
CimEdit.hlp
27
Expression
dialog box
Point ID
popup
GFK-1396F
4-21
2.
Existing
menu items
Existing
procedure / script
drop down menu
Displays in
Popup
Popup tor:
M New procedure
M Edit procedure
M New script
Procedure
associated
with selected
menu text
Pass a string
to the script
3.
Enter the menu text in the Menu text field. This text appears in the pop-up
menu when you right-click on the object at runtime.
4.
Click New.
5.
Enter the action, in the Action field, that is executed when the menu item is
selected from the pop-up menu. Do one of the following:
A. Select an existing procedure or script from the Action fields drop down
menu.
B. Click the Popup button
6.
to:
Use the Parameter field to pass a string to the script if the procedure in the
Action field invokes a script. The script must use the
CimGetEventContext().UserParameter property to accept the parameter,
4-22
GFK-1396F
2.
The entry Document displays in the read only Object type field.
3.
GFK-1396F
4-23
Type
.cim
Binary, editable.
.cimrt
Binary, protected.
.ctx
Text, editable.
CimEdit can also read files that are in .asc text format.
The format you choose determines:
In some instances you may want to save the file in a text format.
Method 2
A. Click File on the CimEdit menu bar.
B. Select Save.
4-24
GFK-1396F
The Save As dialog box opens, when you use either method, prompting you for
the file name and location.
2.
3.
4.
Click Save.
GFK-1396F
1.
2.
4-25
enables you to distribute the object for development purposes, while protecting
your proprietary development information.
Guidelines for runtime-only screen and objects include:
1.
You can open a runtime-only screen using CimEdit. However, you cannot
modify the screen.
2.
3.
You can select named objects on the runtime-only screen and copy them or drag
them onto other screens. However, doing so does not move or copy the objects,
it creates links to the objects on the runtime-only screen.
4.
You can configure the appearance and potential runtime behavior (e.g. rotation
and fill) of the linked container on an editable (.cim) screen.
5.
The link container retains the properties of the source object. However, you
cannot see code or configuration for the source object when you open the link
container's Properties dialog box.
6.
You cannot link unnamed objects from a runtime-only screen because you
cannot create a link to an unnamed object.
Warning: Keep the original .cim file because if it is lost, there is no way to recover the
editable screen from the runtime screen.
The prompts you receive when you first save a screen as a runtime-only screen depend on
the saved condition of the screen as follows:
A saved editable .cim screen has been saved and not modified.
2.
Result: The remainder of procedure that you follow depends on the saved state of
the screen.
4-26
GFK-1396F
3.
1 Save a .cim
screen when you
select "Create
Runtime-Only
Screen"
2 CimEdit
automatically
creates a
companion .cimrt
screen.
The editable CimEdit screen displays. If you make further changes, save
both screens again.
Option 2. Save only the runtime-only screen.
If you choose this option you will not be able to edit your configuration.
GFK-1396F
4-27
Click No.
You are prompted for a name in a Save Copy As dialog box.
3.
Note: Only the .cimrt file needs to reside on the target machine. Save the .cim file
where only authorized persons can open it.
4-28
GFK-1396F
Whether the screen from which the action is triggered is editable or protected.
The file name extension that was entered for the screen to be opened.
GFK-1396F
4-29
If the specified extension is not a CimEdit extension (.cim, .cimrt, .ctx or .asc),
CimEdit appends:
A. .cim.
B. .cimrt.
th
4-30
GFK-1396F
You can also change the order in which objects will be selected in CimView when an
operator presses the Tab key from one to the next.
Tip: Place several of the objects you think you need before you start in-depth
configuration. This way you can easily make changes in your choice of objects as you
experiment with layout. This will also help you decide if you want to use the same object
in more than one place on the same screen or on other screens. If that is the case, there
are shortcuts available to you.
In CimEdit, you can easily create multiple copies of objects you create and configure.
You can place the additional copies in different locations on the same screen or different
screens.
1.
The most powerful method is to create as many link containers as you need from
a linked object.
Link containers created from a linked object initially contain all the properties
of the linked object. In addition, when a component designer updates a linked
object, all of its link containers are automatically updated. A basic method is to
copy an object from one screen to another, leaving the original object on the first
screen.
2.
If you want to change the location of an object, you can simply cut it from one
screen and paste it on another.
While you are determining what objects to use, take advantage of CimEdits tools to
experiment with the layout by moving the objects around, flipping them and rotating
them.
GFK-1396F
5-1
Available Objects
CimEdit provides you with a large variety of objects to deal with the different
requirements you will have as you design your screens. Available objects include:
Text objects.
ActiveX controls.
OLE objects.
This chapter describes how to place these objects for an initial layout.
Lines.
Polylines.
Polygons.
Rectangles.
Arcs.
Ellipses.
Lines in CimEdit
To create a line:
Method 1Use the toolbar
Click the Line button
2.
Select Line.
The cursor changes to crosshairs.
5-2
GFK-1396F
2.
Hold down the left mouse key and drag the mouse to the ending location for the
line.
3.
Polylines in CimEdit
A polyline can have as many sides as you need.
To create a polyline:
Method 1Use the toolbar
Click the Polyline button
2.
Select Polyline.
2.
3.
Move the cursor to the next point you want to set. As you move the cursor, a
line will be drawn between the last point you set and the cursor.
4.
5.
6.
At the last vertex, double-click the left mouse button to finish drawing your
polyline.
Note: If you attach the end of last line to the beginning end of the first line when you
finish the polyline, you will create a closed polygon. You can choose to have CimEdit
automatically close the polyline/polygon objects.
GFK-1396F
1.
2.
Select Options
3.
5-3
Polygons in CimEdit
To create a polygon:
Method 1Use the toolbar
Click the Polygon button
2.
Select Polygon.
2.
Click the left mouse button to set the first point (or vertex) of the polygon.
3.
Move the cursor to the second point you want to set. As you move the cursor, a
line will be drawn between the last point you set and the cursor.
4.
5.
Move the cursor to the next point you want to set. As you move the cursor, lines
will be drawn between the last point you set and the cursor and between the
cursor and the first point to create a closed polygon.
6.
7.
Repeat steps 5 and 6 until you reach the last point in your polygon.
8.
Tip: You can easily turn your polygon into a single straight line. Double-click the left
mouse button after you create the first line of the polygon. You will create a single
straight line.
5-4
GFK-1396F
Rectangles in CimEdit
+
To create a rectangle:
Method 1Use the toolbar
Click the Rectangle button
2.
Select Rectangle.
2.
Hold down the left mouse button and drag the mouse diagonally to the ending
location for the rectangle.
3.
Tip: When you click the Rectangle button, then click the left mouse button a duplicate
of the last rectangle appears.
Arcs in CimEdit
While you are creating an arc, you can choose several design characteristics. Your
choices include:
2.
Select Arc.
GFK-1396F
5-5
2.
Hold down the left mouse button. The cursor location becomes the starting
location of the arc.
3.
4.
2.
Hold down the left mouse
button Click the right mouse
button
Click the right mouse button while holding down the left mouse button. Each
click of the right mouse button will display one of three arc types:
Arc
Chord
Pie
Release the left mouse button when the shape you want displays.
Arc
Chord
Pie
Hold down the left mouse button and begin creating the arc.
2.
Press the Ctrl key while holding down the left mouse button. This toggles the
arc's direction using the same start and end points.
3.
Release the left mouse button when the arc is in the direction you want.
4.
Press/release Ctrl
5-6
1.
Hold down the left mouse button and begin creating the arc.
2.
Press the Shift key while holding down the left mouse button.
This changes the arc between its current shape and a quarter circle with the same
starting point and a radius equal to either the width or height of the original
ellipse, whichever is greater.
3.
Release the left mouse button when the shape you want displays.
GFK-1396F
4.
Quarter Circle
When you draw the first arc on the screen, a quarter circle arc is drawn. Otherwise, the
arc's size and type (arc, chord, or pie) will be the same as the last one you created.
Tip: When you create an arc, the control points for the arc and its ellipse are displayed.
Use the ellipse or arc control points to reshape the arc. If you use the Resize tool on an
arc, you will not see the control points.
If you reshape the arc with one of its control points, you can also hold down the:
Ellipses in CimEdit
To create an ellipse:
Method 1Use the toolbar
Click the Ellipse button
2.
2.
Hold down the left mouse button and drag the mouse to the ending position for
the ellipse.
3.
Tip: When you click the Ellipse button, then click the left mouse button a duplicate of
the last ellipse appears.
GFK-1396F
5-7
Use CimEdits tool lock to create several of the same type of object.
Select the object type you want to create from the Tools toolbar or the Tools
menu.
2.
Select Lock.
2.
When you are through creating the objects, click Tool Lock off.
Select the Ellipse, Rectangle, Arc, or Text button on the CimEdit toolbar.
2.
Click the left mouse button anywhere on the screen. A duplicate of the last
circle, rectangle, or arc that was created appears.
Note: You can also use this method to create the first of an object on the screen. When
you do, they will appear as follows:
5-8
GFK-1396F
Ellipse Size
Rectangle Size
36 pt by 36 pt.
Arc Shape
36 pt by 36 pt.
2.
3.
Press the Ctrl key while holding down the left mouse button.
4.
Drag the cursor in any direction. A duplicate of the object moves to where you
drag it.
2.
Move the cursor to the spot where you want to create the text string.
2.
Text box
GFK-1396F
5-9
3.
In the String field, enter one of the following to display on the screen:
Note: Click the Text Box button to the right of the String field if you want to
write a longer text string. This opens the Text Box dialog box. The string will
appear in the String field when you close the Text Box dialog box.
4.
Note: You add color to text objects the same way you do other objects, in the Color tab
of the Properties Object dialog box. For best performance, it is recommended that you
configure Text objects to have no line and a solid fill with a non-dithered color. See "the
"Text Objects on a CimView Screen" section of the "Applying Inanimate Visual features"
chapter in this manual.
Text Buttons
You can use the text button tool to create 3D buttons.
If you assign a procedure or a setpoint to a text button, and a user moves the cursor over
the button in CimView and clicks the left mouse button, the button on the screen goes
down.
When the user releases the left mouse button, the button on the screen goes up.
To create a text button:
Method 1Use the toolbar
Click the Text Button button
2.
Move the cursor to the spot where you want to create the text button.
2.
Hold down the left mouse button and drag the mouse to the ending position for
the button.
3.
4.
5-10
GFK-1396F
The Properties Object dialog box appears. Select the Text Button tab.
Object Properties Dialog Box: Text Button Tab
Text box
5.
In the String field, enter one of the following to display on the screen:
7.
Select the text color on the Colors tab of the Properties Object dialog box if
the color should be animated.
8.
Note: You can make duplicates of text buttons the same way you do basic graphic
objects. See "Creating Basic Graphic Objects" earlier in this chapter.
GFK-1396F
5-11
on the toolbar.
2.
5-12
CIMPLICITY objects.
CIMPLICITY SmartObjects.
GFK-1396F
Arrows
Home
End
Note: When you select an object, it is highlighted with a black and white border. If the
object has any help text configured, the text displays in the status bar at the bottom of the
Object Explorer. This text also appears in a Tool-Tip when you move the cursor over the
object.
2.
GFK-1396F
5-13
Note: You can bring the Object Explorer to the foreground by using its toolbar button or
by selecting its menu item. This allows for easy use when you maximize the Object
Explorer.
Note: The designer can also trigger the SmartObjects while they are on the screen. See
"SmartObject Event" in the "Creating CimEdit Events" chapter in this manual for details
about triggering SmartObjects when they are already on the CimEdit screen.
You can place, configure and test a SmartObject in a few easy steps.
Step 1.
Step 2.
Step 3.
Step 4.
Tip: You can also create your own SmartObjects and place them in the Object Explorer.
See "SmartObject Event" in the "Creating Events in CimEdit" chapter in this manual for
more information about creating SmartObjects. See also "Object Explorer Libraries" in
this chapter for specifying paths to other Object Libraries.
Step 1. Select a SmartObject in the Object Explorer:
1.
Use either:
Method 1
Click the Object Explorer button on the CimEdit toolbar.
Method 2
A. Click Tools on the CimEdit menu bar.
B. Select Show Object Explorer.
The Object Explorer opens when you use either method.
5-14
2.
3.
GFK-1396F
Double-click a SmartObject
Enter the Point Ids, strings, expressions or other values in the SmartObject
Configuration dialog box that direct what the SmartObject should display during
runtime (in CimView).
The number of fields in a SmartObject Configuration dialog box depends on the
number of values the SmartObject requires.
2.
Click OK.
Result: The SmartObject Configuration dialog box closes and the SmartObject displays
on the CimEdit screen.
Example
A thermometer is selected in the Object Explorer. The thermometer's SmartObject
Configuration dialog box contains three fields.
Field
Label
Value
The value
Units
GFK-1396F
5-15
SmartObject
thermometer resized
on the CimEdit screen
The SmartObject will display the values you entered in the SmartObject
Configuration dialog box.
SmartObject At Runtime Displaying Entered Values: Example
5-16
GFK-1396F
Select an object.
2.
3.
Hold down the left mouse button and drag the border to the size you want.
Result: When you release the left mouse button, all the objects in the library
change to the new size.
Place them a directory that is in a different path from the Symbols directory.
2.
Select Options.
The Options dialog box displays.
3.
Enter the path for the default Object Explorer in the Object explorer
directories box.
If you are simply entering a different path for the Object Explorer, you have
completed configuration.
Continue to enter additional directories.
GFK-1396F
4.
Enter the path to a directory in which your symbol directories will be located.
5.
Click OK to save your changes and close the Options dialog box.
6.
5-17
7.
Find the directory you specified in the Object explorer directories box.
8.
Result: The subdirectories you create will display as folders in the left pane of the
CIMPLICITY HMI Object Explorer.
Examples of folders are as follows.
Subdirectory
C:\mysymbols\Circles
Circles
C:\mysymbols\Squares
Squares
C:\mysymbols\Hexagons
Hexagons
Important: Do not put screens directly into the directory you specify in the Object
explorer directories box. They have to be in subdirectories in order to display.
Note: You cannot enter %BSM_ROOT%symbols. You must enter actual path as shown in
the example.
5-18
GFK-1396F
Do any other custom configuration for the screen you are configuring,
The complexity of the class object screen depends on the configuration when the source
object was created for the class.
See the "Configuring Classes" and "Configuring Class Objects" chapter in the Base
System User's Manual, GFK-1180 for details about classes and objects.
To use a class object graphic on a CimEdit screen:
1.
GFK-1396F
5-19
Method 2
A. Click the Object Browser button
B. Place the cursor
5-20
GFK-1396F
2.
(Optional) Change the class object graphic, if more than one object is available,
as follows:
A. Right-click the class object graphic.
The Properties dialog box opens.
B. Select the Class Object tab.
C. Select an object from the Graphic Name field drop-down list.
Graphic Objects Available for a Selected Class Object: Example
GFK-1396F
5-21
D. Click OK or Apply.
The selected object replaces the default object on the CimEdit screen.
3.
(Optional) Resize or move the class object so it will appear the way you want
during runtime.
4.
(Optional) Place, create and configure other non-class objects on the screen.
5.
5-22
GFK-1396F
ActiveX controls.
OLE objects.
CimEdit screens.
Files.
Move the cursor to the spot where you want to put the upper left corner of the
object.
3.
2.
3.
Move the cursor to the spot where you want to put the upper left corner of the
object.
4.
Click the left mouse button. The Insert Object dialog box opens.
2.
GFK-1396F
5-23
4.
5.
Click OK. The dialog box closes and the object you selected is displayed on
your CimEdit screen.
See "Taking Advantage of ActiveX Controls" for detailed information about ActiveX
controls.
To embed a CIMPLICITY ActiveX object:
Click the button for the CIMPLICITY ActiveX object that you want to embed. The
object you select is automatically embedded in the upper left corner of the screen.
The toolbar buttons for CIMPLICITY ActiveX objects are:
ActiveX Toolbar Buttons
General
Trends
SPC
Alarm
For more information on configuring CIMPLICITY Trend objects, see the CIMPLICITY
HMI Trending Operation Manual (GFK-1260).
For more information on configuring CIMPLICITY SPC objects, see the CIMPLICITY
HMI Statistical Process Control Operation Manual (GFK-1344).
For more information on configuring CIMPLICITY Recipes objects, see the
CIMPLICITY HMI Recipes Operation Manual (GFK-1303).
For more information on configuring an Alarm Viewer object, see the CIMPLICITY HMI
Base System User's Manual (GFK-1180)
5-24
GFK-1396F
Display the picture in the view you want in the other graphics program.
2.
Select the portion of the picture you want to bring into CimEdit
3.
4.
5.
6.
Select the Picture (Metafile) format from the Paste Special dialog box. This
pastes the object into CimEdit as a picture.
Step 2. Convert a placed picture (Metafile) object into one CimEdit object:
1.
2.
3.
Note: Not all of the drawing commands that are in a Picture can be accurately
represented using CimEdit objects. If this is the case, your converted object will look
different from your original Picture. If the results of the conversion are not acceptable,
you can use the Undo command to restore the original picture object. When the original
picture object is restored:
1.
2.
Select Ungroup.
You can now select and manipulate the individual objects in the picture.
GFK-1396F
5-25
2.
3.
In CimEdit
4.
5.
6.
7.
8.
PowerPoint slides
CIMPLICITY ActiveX controls for Trend charts, SPC charts, Recipes, and
Alarm Viewer
Linking and embedding determine where the object's data is stored. Basically:
An embedded object becomes part of the CimEdit screen.
A linked object is stored in its source file, and CimEdit stores the location of the
information.
5-26
GFK-1396F
Move the cursor to the spot where you want to put the upper corner of the
object.
3.
2.
Move the cursor to the spot where you want to put the upper corner of the
object.
4.
2.
2.
3.
Click OK.
Result: The dialog box closes and the object you selected is displayed on your
CimEdit screen.
GFK-1396F
5-27
You can assign object properties to OLE objects with some restrictions:
For Colors properties, the object line and fill colors apply to the background of
the OLE object. The line may only be partially visible. If the object does not
have a transparent background, the fill color is invisible.
For Geometry properties, you may define a position for the object, but not
rotation or shear.
You can rotate around any point on the screen. However, the center of the
object rotates around the point and the orientation of the object remains
fixed.
Fill animation is applied to the background only. If the object does not have
a transparent background, fill animation is invisible to the user.
2.
3.
Result: CimEdit deals with and informs you if there are conflicts and duplications
between the inserted screen and the screen you are configuring.
5-28
GFK-1396F
2.
on the toolbar.
2.
Place the cursor where you want the top left corner of the object to be
positioned.
3.
Result: The Insert Object dialog box appears when you use either method.
Continue from Method 1 or 2
1.
2.
4.
Result: The file will be linked to the CimEdit screen. It will not be placed on the
screen. When a user clicks the icon, the file will open.
GFK-1396F
5-29
Open the application that contains the object that will be pasted, for example,
Microsoft Excel
2.
3.
4.
5.
6.
7.
Paste Special
Brings Excel
capabilities to the
object on the
CimEdit screen.
Paste Link
opens Excel
5-30
GFK-1396F
Object Layout
As you experiment with what objects to use on your CimEdit screen, there are several
ways to specify how and where they will be placed and to modify their size and shapes.
You can:
Create:
A group of objects.
Move objects.
GFK-1396F
5-31
2.
Select Select.
3.
Choose one of the following options from the Select extended menu.
All
Static Objects
None
Invert Selection
Guideline: When you select a set of objects, one object is dominant. The dominant and
subordinate objects display and behave as follows:
1.
The dominant object has square handles while the other objects have star
handles.
2.
When you align objects, all other objects in the set align to the dominant object.
3.
When you size objects, all other objects in the set take their new size from that
of the dominant object.
5-32
1.
2.
3.
Click the object again to select it. The object just selected is now the dominant
object.
GFK-1396F
Create a group.
Step 2.
Step 3.
Step 4a.
Work with objects through the group's Properties Group tab and/or
Step 4b.
2.
3.
Two objects.
At any time, you can split the group into its individual objects
When you create a group, you can still configure properties for its individual objects.
However, you can make the objects uniform in their border and interior attributes by
creating group properties that override the individual properties.
GFK-1396F
5-33
2.
3.
2.
When
checked,
override
object
configuration.
3.
Configure other properties for the group the same as you configure them for
objects.
Note: Events, procedures and variables configured at the group level are available to the
objects within the group.
5-34
GFK-1396F
Group property
overrides object's
property
Collapse
Group
Button object
OLE or ActiveX control
Shape or object
Text object
Frame container
Frame object
Line
Expand
GFK-1396F
5-35
2.
ii.
a.
b.
5-36
a.
b.
GFK-1396F
The group's name, entered on the General tab in the Properties Group dialog box, appears on the CimEdit title bar.
Group Edit Title Bar
Note: Only the selected group is in Group Edit mode. You cannot select
other groups or objects on the CimEdit screen.
2.
GFK-1396F
5-37
3.
Continue configuration until properties of the objects in the group are what you
want.
4.
Now you:
5-38
GFK-1396F
2.
Select Ungroup.
Result: Either:
If you have configured attributes, such as events, for the group object a warning
message displays.
Either
Click OK.
The group is ungrouped.
Click Cancel.
The group remains a group.
When a group is ungrouped, instead of group handles, you will see the individual
object handles on the screen.
GFK-1396F
5-39
Step 2.
CimEdit provides you with a grid to help you arrange objects more precisely in the
workspace. A Snap to Grid feature makes it even easier.
Step 1. Make the grid visible on your CimEdit screen and enable snap to
grid:
Method 1Use the toolbar
Click the Grid button
When you enable the Grid button on the Format toolbar, both the Grid Visible and
Snap to Grid tools are enabled.
Method 2Use the menu bar
1.
2.
Select Options.
The Options dialog box opens.
3.
4.
Check one of the following option buttons in the Grid display section:
5.
5-40
As dots
As lines
GFK-1396F
When you uncheck Snap to Grid on the Tools menu, the Grid button is disabled.
However, the grid is still displayed.
Space between
lines horizontal and
vertical
Using your mouse is a convenient way to move an object from one location on the screen
to another. However, the keyboard allows you to move an object by grid units, when you
need to be more precise.
Step 2. Move an object by grid units:
Method 1Use the keyboard
Press an arrow key to move the object in the specified direction by one grid unit
when the grid is on or one pixel when the grid is off.
Method 2Use the keyboard
Press Ctrl+<arrow> to move the object in the specified direction by two grid units
when the grid is on or five pixels when the grid is off.
Tip: You can toggle the grid on or off temporarily by holding down the Alt key while
pressing the arrow keys. For example, if the grid is on, and you press Alt+<arrow> the
object will move one pixel to the right.
2.
3.
GFK-1396F
4.
5.
Enter the number of points (from the bottom of the screen) to define where the
top of the object will be located.
6.
Enter the number of points (from the left of the screen) to define where the left
of the object will be located.
5-41
From the
Bottom
Left
2.
2.
2.
5-42
1.
2.
GFK-1396F
Space the objects evenly between the two horizontal end objects.
Space the objects evenly between the two vertical end objects.
2.
3.
4.
5.
Before
After
GFK-1396F
5-43
2.
3.
4.
5.
5-44
After
GFK-1396F
2.
3.
4.
5.
6.
7.
Click OK.
Result: CimEdit spaces the objects according to your specifications, beginning with the
object at the left end.
Example Adjusting Horizontal Spacing Between Objects
Before
After
GFK-1396F
5-45
2.
3.
4.
5.
6.
7.
Click OK.
Result: CimEdit spaces the objects according to your specifications, beginning with the
object at the bottom.
Example Adjusting Verticall Spacing
Between Objects
Before
5-46
After
GFK-1396F
Lefts
Centers
Rights
Tops
Middles
Bottoms
The Layout toolbar and Format menu provide you with the buttons and menu options you
need.
To automatically align two or more objects:
Select the objects that will be aligned. The last object you select will be the one to which
the others are aligned.
Method 1Use the toolbar
Select the button on the Layout toolbar that activates the appropriate alignment.
GFK-1396F
5-47
2.
Select Align.
3.
Select the type of alignment you want from the popup menu.
Align
Left
Rectangle
Right
Top
Center
Middle
Bottom
5-48
GFK-1396F
One or more of the following events are configured for the object:
Mouse Down
Mouse Up
The object is an OLE object that has a primary verb. However the verb cannot
modify the object (for example, play the object, for an embedded sound).
Using the tab and arrow keys to highlight the objects, then using the Enter key to
invoke the actions on the highlighted object.
Moving the mouse around the screen. When the user moves the mouse over one
of these objects, the object is highlighted with a rectangle.
The order in which you create objects that meet the above criteria determines the initial
tab order.
You can use one of several methods to change the tab order of an object. When you
change the order of one object on the screen, the order of the other objects will
automatically be adjusted to accommodate your selection.
To configure objects tab order:
Method 1Use the toolbar
Click the Tab Order button
2.
changes to
GFK-1396F
1.
Select a numbered object. You can either click on the object or use the Tab key
to select it.
2.
5-49
Option 2. Move an object to last place in the tab order; do one of the following:
Option 3. Move an object later in the tab order (Increase its tab order number);
do one of the following:
Option 4. Move an object earlier in the tab order (decrease its tab order
number), do one of the following:
Result: As you change the object's order, you will see the order of the other objects
automatically change.
5-50
GFK-1396F
Enter the number of the order in which the object will be tabbed, relative to
other objects.
2.
Click Apply.
Result: You will see that the tab numbers on the other objects have changed to
reflect the new order.
General Tab: Tab Order Enabled
The default tab order is the order in
which the object is created relative to
other eligible objects
(Optional) Change
the tab order
Press Apply
Note: While you are using the Tab Order tool, the Bring to Front, Send to Back, Bring
Forward, and Send Backward operations only affect the tab order of the object. They do
not affect the position of the object in relation to other objects in the screen.
GFK-1396F
5-51
Common navigation tools that appear on several screens e.g. title bars.
SmartObjects.
Common footers.
All users benefit indirectly when links are used. They receive updates more quickly and
can be assured that there will be no duplication errors.
Component designers and screen designers benefit directly.
When component designers need to create several objects that have the exact
same features (for example, a title bar), they create (or edit) one object with the
intent that it will be the source object for several linked objects.
When they need objects with the same internal functionality (for example,
gauges), they can create a template that has the capability of being used as the
source for a linked object. The template can use public variables whose values
can be specific to each screen. This obviously provides the designer with
extensive development flexibility.
GFK-1396F
When screen designers use linked objects provided by the component designer,
they can create and configure application screens much more quickly than they
can without the linked object. Instead of having to regularly place updated
copies of the same object on different screens, all they have to do is create as
many links as they want. CIMPLICITY HMI automatically updates all the links
when any change is made to the linked source object. As a result, this
automation obviously provides the screen designer with more time for other
projects.
6-1
Copied to another location. In this case the copy will not be linked to the
original object
Or
2.
An object can have from one to several variables. Variables can be either:
Public
or
3.
Private.
A linked container is the "shell" of a linked object. You can configure properties for the
container, such as movement and animation that, in addition to the linked properties, will
affect the linked object's runtime behavior. This configuration has no affect on the linked
source object.
6-2
Edit the value of any Variable ID and scripts assigned to the unlinked object.
Make changes to the unlinked object's properties; including those that were
originally configured in the linked object.
GFK-1396F
Select (A).
Drag a copy (A to B) to another location.
2
A
A
Screen Designer
Component
Designer
A to B
A to B
Ethernet
Change (A).
(B) does not change.
Screen Designer
Ethernet
Component
Designer
Ethernet
When a source object is linked to another screen, CimEdit creates a linked object on
that screen. Components of a linked object are:
A dynamic copy of the source object (that is a child to the link container).
When a component designer updates the source object, the dynamic copy is
updated when the linked object screen is re-opened.
GFK-1396F
Can change the value of only public Variable IDs assigned to the source object.
Cannot change any of the properties configured in the linked source object.
6-3
Select (A).
Drag a link (A to B), while pressing
Ctrl+Shift, to another location.
2
A
A
Screen Designer
Component
Designer
A to B
A to B
Ethernet
Change (A).
(B) changes automatically.
Screen Designer
Ethernet
6-4
Component
Designer
Ethernet
GFK-1396F
1 = Source object
2 = Link containers
Private Variable
Public Variable
Source
Val_var =
35
Val_var =
35
Link
Containers
35
GFK-1396F
35
Val_var =
55
Val_var =
35
6-5
Need to have different values for different links, make the variable public
Should be identical to the linked source object's variable, make the variable
private
Scripts or procedures:
Need to be executed for all the linked objects, write them for the linked source
object.
Are unique to one or more linked containers, write them for the linked
containers only.
Open CimEdit.
2.
Create all the elements (objects) you want to include in the linked object.
3.
4.
5.
6.
7.
8.
Either:
9.
10. Close and save the CimEdit screen that now contains the source object.
Result: Now screen designers can create links to the source object on other screens and
change the public variables to those needed for each new link.
Screen designers can also do a normal copy of the source object to create an unlinked
object on a new screen. However, when they do, any changes you make to the source
object will not automatically be made to the copied object.
ExampleCreating an Object that can be the Source for a Linked Object
This example creates a button with a script that increments a point and text that displays
the current value of the point.
6-6
GFK-1396F
Open the CimEdit screen where you want to save your source objects.
2.
Create a text button object and a text object. Arrange them to look like this:
3.
Change the text for the button object to ButtonName and name the object
SetpointButton.
4.
Change the text for the text object to Setpoint and name the object
SetpointValue.
5.
6.
7.
8.
9.
GFK-1396F
6-7
Note that although the button owns the script, the variable will be resolved at the
group level.
14. Select the Group tab.
15. Select the SetpointValue object.
16. Open the SetpointValue object's Properties dialog box.
A. Select the Text tab.
B. In the Expression field, enter the variable {PointValue}.
17. Save the screen and close it.
Note: Once you place a linked object, it remains in the location where it is placed. If you
manipulate the source object, such as rotating it or changing its size, the linked object
will change around its own center. If you move the source object, the link position will be
unaffected.
6-8
GFK-1396F
If you decide to link the objects, you then need to assign the appropriate values to the
source object and linked container variables. What and where you assign them depends
on whether the variables are public or private.
2.
3.
Use the mouse or arrow keys to position the copy where you want it on the
screen.
Result: The copy is not linked to the object from which it was copied.
See page 6-2 for more information.
To create links to a linked source object:
1.
2.
Hold down Ctrl and Shift keys and the left mouse button.
3.
Drag a link of the source object to another location button. (Keep holding down
the keys and button.)
As you move the object to the destination screen, the cursor looks like this:
4.
Use the mouse or arrow keys to position the container where you want it on the
screen.
GFK-1396F
6-9
2.
Select the Linked Container tab of the linked object's Properties dialog box.
Result: The source file path and object are displayed for the linked object.
6-10
GFK-1396F
Public variables that will enable linked objects to have different values from the
source.
2.
3.
4.
5.
GFK-1396F
Click Test Screen to display the screen and verify that the link functions
correctly after you assign all the public Variable IDs.
6-11
2.
3.
4.
Open the Properties - Object dialog box for the linked object. Note that a Link
Container tab is included in the dialog box.
5.
When you are done, the tab will look similar to this:
6.
Result: The button title displays the text you entered, and the text at the bottom of
the link container displays the value of CAR_COUNT. When you click the button,
the value of CAR_COUNT increments by one.
6-12
GFK-1396F
Step 2.
Step 3.
Step 4.
Step 5.
Step 6.
Step 7.
Enter a value for the link's public variable. See page 6-18.
Step 8.
Configure horizontal scaling for the link container. See page 6-18
Step 9.
2.
3.
4.
GFK-1396F
6-13
2.
3.
2.
3.
4.
5.
6-14
GFK-1396F
6.
2.
3.
Click Yes.
A Save As dialog box opens.
4.
5.
Click Save.
GFK-1396F
6-15
2.
6-16
1.
2.
GFK-1396F
3.
GFK-1396F
4.
5.
6-17
2.
3.
6-18
1.
2.
GFK-1396F
2.
Result:
Retains the properties of the source object, even though the source
configuration did not display in the Properties - Object dialog boxes and
Displays the Scaling runtime property that was configured for the link
container.
GFK-1396F
6-19
Creating Expressions
2.
Insert a Point ID, point attribute or variable either after the operator or between
parentheses, if they appear with an operator.
GFK-1396F
Arithmetic operations
Bitwise operations
Conversion operations
Logical operations
Relational operations
Scientific operations
7-1
Input box
Point ID
popup
Point's
Configuration
dialog box
New Point
dialog box
Double click an
available
operator
Tip: Use the Point IDs..., Edit Point and New Point buttons to browse through
existing points, edit a selected point or create a new point.
7-2
GFK-1396F
Alarm Functions
Alarm functions supported by the Expression Editor are:
AL
A1 or WARNING
A2 or ALARM
AH1 or WARNING_HIGH
AH2 or ALARM_HIGH
AL1 or WARNING_LOW
AL2 or ALARM_LOW
ANA or ALARM_NOT_ACKED
GFK-1396F
Creating Expressions
7-3
Arithmetic Operations
Arithmetic operations supported by the Expression Editor are:
+
Addition
Subtraction
Multiplication
Division
The result of dividing two integers in an expression
will be an integer. If you want a floating point result,
multiply the numerator by 1.0 before dividing.
For example, POINTA is set 6 and POINTB is set to
4. The result of the expression POINTA/POINTB is
1, while the result of the expression
(POINTA*1.0)/POINTB is 1.5.
SQR
ABS
MIN
MAX
MOD
RND
TRUNC
7-4
GFK-1396F
FLR
CEIL
Bitwise Operations
You can use Boolean, integer or floating point number for Bitwise operations. If a
number/expression is in floating point, it is rounded off to the nearest integer for these
operations.
Bitwise operations supported by the Expression Editor are:
BAND
BOR
BNOT
BXOR
SHL
SHR
GFK-1396F
Creating Expressions
7-5
Conversion Operation
VAL
Logical Operations
You can use Boolean, integer or floating point numbers for logical operations. If an
expression has a non-zero value, it is TRUE; if the value is zero (0), it is FALSE.
Logical operations supported by the Expression Editor are:
AND
OR
NOT
XOR
IFELSE
Or
(expr1) ? (expr2) : (expr3)
Note: The IFELSE statement is not available from the operation keys. However, you
can enter it manually.
7-6
GFK-1396F
Relational Operations
Relational operations supported by the Expression Editor are:
LT
GT
EQ
Equal To
Format is (expr1) EQ (expr2)
LE
GE
NE
Not Equal To
Format is (expr1) NE (expr2)
GFK-1396F
Creating Expressions
7-7
Scientific Operations
The scientific operations supported by the Expression Editor are:
SIN
COS
TAN
ASIN
ACOS
ATAN
X^Y
EXP
LOG
LOG10
7-8
GFK-1396F
Rotating it.
Transparency.
Solid color.
Pattern.
Gradient.
Text objects can also be rotated and colored. However, because they have some inherent
characteristics that are different from graphic objects, CimEdit provides special features
to deal with those characteristics.
GFK-1396F
8-1
Object Form
CimEdit provides you with several handy tools to adjust an objects form. The tools
include several ways to change its:
Size.
Shape.
Display angle.
Note: The default unit of measure for screens and objects is points (pt). A point is a
printer's basic unit of type measurement. There are 72 points in one inch.
There are many places in CimEdit where you are asked to enter location, size, or units as
a number and a unit of measure. In addition to points, you can use any of the following
for a unit of measure in CimEdit:
"
Inches
in
Inches
mm
Millimeters
cm
Centimeters
twips
1/20th of a point
If you enter any of these other units of measure, the measurement will be automatically
converted to points by CimEdit.
For example, if you enter horizontal and vertical grid units of .5" in the Options dialog
box for Tools, when you apply the change, the values will be displayed as 36 pts.
Important: When you change the appearance of a closed frame container, you also
change the appearance of the groups and objects in that container.
8-2
GFK-1396F
2.
Select Size.
3.
Select the type of sizing you want from the popup menu.
Note: Each object on the screen is enclosed in a rectangle. When you resize an object,
the position of the top left vertex of the enclosing rectangle remains the same. You may
need to readjust the position of the objects after you resize them.
Example: Resizing Objects
Original sizes
Rectangle
Height
Width
Size
GFK-1396F
8-3
Precision resizing.
A grid.
2.
3.
4.
Enter the new width and / or height in the Width and Height fields.
When you use either method, the upper left corner of the object remains fixed. Each
arrow key does the following:
8-4
Up
Down
Left
Right
GFK-1396F
For example, if snap to grid is off and you press Ctrl+Shift+<Down> the height of
the object increases in size by five (5) pixels, instead of grid units.
Method 3Use the keyboard
1.
Press the Ctrl key and hold down the right mouse button.
2.
2.
Select Resize.
Select the object. When you do, the handles of its enclosing rectangle are
displayed.
2.
3.
4.
Drag the handle to its new location. The proposed outline of the object is
displayed as you do this.
5.
Result: The resizing that takes place depends on the type of object and the handle that
you use to perform the resize.
Choose a:
Corner handle to change both the height and width at the same time.
Select
Original
Dragging
Result
Corner handle
Center handle
Tip: Hold down the Ctrl key to resize around the center of the object.
Hold down the Shift key to maintain the aspect ratio.
GFK-1396F
8-5
2.
Select Scale.
The Scale dialog box opens.
Horizontal/Vertical
Select one for
horizontal and/or
vertical.
or
Enter between 1 and
32767.
Choose one:
Top Left
Top Right
Middle
Bottom Left
Bottom Right
Check to maintain
relative horizontal/
vertical size
3.
Select a quick scale or enter between 1 and 32767 percent for horizontal and/or
vertical size.
4.
5.
Choose the anchor point from which the scaling will occur.
6.
For several objects, choose how they will be sized relative to each other as
follows:
Check Group style scaling to maintain the objects relative positions and
anchor points within the rectangular area in which they exist
Leave Group style scaling unchecked for the anchor point to apply to each
individual object
Reshaping Objects
The Reshape tool is particularly useful for changing the shape of a polyline or polygon.
Several keys on the keyboard and the CimEdit grid provide you with additional aids
when you are reshaping the object.
To reshape an object:
Method 1Use the toolbar
Click the Reshape button
8-6
1.
2.
Select Reshape.
GFK-1396F
Select the object. When you do, the handles of its vertices are displayed.
2.
3.
4.
Drag the handle to its new location. The proposed outline of the object is
displayed as you do this.
5.
Result: The reshaping that takes place depends on the object type.
Select
Original
Dragging
Result
Corner handle
2.
2.
3.
GFK-1396F
8-7
2.
3.
4.
Enter a positive or negative Vertical shear value (if the object is a Shape)
between one of the following:
Result: Vertical shear slides the sides of the rectangle enclosing the shape in
opposite directions
5.
Enter a positive or negative Horizontal shear value (if the object is a Shape)
between one of the following:
Result: Horizontal shear slides the top and bottom of the rectangle enclosing the
shape in opposite directions.
Example: Precise Rectangle Rotation
On Geometry tab or Properties dialog box
8-8
GFK-1396F
2.
Select Rotate.
Select the object. When you do, the corner handles of the object's enclosing
rectangle are displayed.
2.
3.
4.
Drag the handle to its new location. The proposed outline of the object is
displayed as you do this.
5.
Result: The rotation that takes place depends on the object type.
Tip: Hold down the Shift key to constrain the rotation to 45-degree increments.
Hold down the Ctrl key to rotate the shape round its center.
Select
Original
Rotating
Result
Drag handle
Press Ctrl
Drag handle
GFK-1396F
8-9
Horizontally
Vertically
To flip an object:
Method 1Use the toolbar
Click the button on the CimEdit Layout toolbar to flip the object horizontally or
vertically.
Flip
horizontal.
Flip
vertical.
Select
1.
2.
Select Flip.
3.
Flip
Horizontal
Vertical
8-10
GFK-1396F
Polygons, rectangles, ellipses, chords, pies, buttons, and text objects support the
following fill styles:
No fill.
Solid.
Pattern.
Gradient.
Begin configuring the color and fill for the screen or selected object in the Colors tab of
its Properties dialog box.
To display the Colors tab of the Properties dialog box:
GFK-1396F
1.
2.
3.
Select Properties from the popup menu. The Properties dialog box for the object,
group, or screen appears.
4.
Select the component of the object you want to color in the tree of the Group
tab.
5.
Click the right mouse button again. The Properties dialog box for that
component appears.
6.
8-11
Selecting Fills
The decisions you make about the fill depend on what style you select in the Style field.
You find the Style field in the Fill section of the Colors tab on the Properties dialog box.
Object filled
Color Palette
8-12
1.
Click the down arrow in the Color field to display the Color Palette.
2.
GFK-1396F
Pattern type
Background color
Pattern color
Therefore, when you select Pattern for the fill Style, the Fill section on the Colors tab of
the Properties dialog box provides you with the tools to make your choices.
You can create a pattern with:
Object filled
Color Palette
GFK-1396F
1.
Click the down arrow in the Color field display the Color Palette.
2.
3.
Click the down arrow in the Pattern Color field to display the Color Palette.
4.
5.
Click the down arrow in the Pattern field to display a drop down menu of
pattern styles.
6.
8-13
Click
to the right of the Style field to open the Fill Effects dialog box. The
Fill Effects dialog box appears.
2.
3.
Click the down arrow in the Color field to display the Color Palette.
4.
5.
Click the down arrow in the Pattern color field to display the Color Palette.
6.
7.
Click a pattern.
8.
Click OK.
Object filled
Color Palette
8-14
Click the down arrow in the Color field to display the Color Palette.
GFK-1396F
2.
3.
Select None.
4.
5.
Pattern type
Background color
Pattern color
Therefore, when you select Pattern for the fill Style, the Fill section on the Colors tab of
the Properties dialog box provides you with the tools to make your choices.
You can create a gradient with:
Two colors.
One color.
Object filled
Color Palette
GFK-1396F
1.
Click the down arrow in the Color 1 field to display the Color Palette for the
first color.
2.
3.
Click the down arrow in the Color 2 field to display the Color Palette for the
second color.
4.
5.
Click the down arrow in the shade style field to display and select from the
shading (fill style) options.
6.
Enter the number of shades the gradient will display. Enter a number between 2
and 256. The higher the number, the finer the shading will be.
7.
Click the down arrow for the Variant field to display and select from the options
for the selected Shade style.
8-15
1.
Click
2.
3.
Click the down arrow in the Color 1 field to display the Color Palette for the
first color.
4.
5.
Click the down arrow in the Color 2 field to display the Color Palette for the
second color.
6.
7.
Click one of seven possible shading styles. When you select a shading style, the
four variants for the style display in the Variants section.
8.
Enter a number in the Shades field for the gradient. Enter a number between 2
and 256. The higher the number, the finer the shading will be.
9.
Click OK.
Note: If you decide you want to use one color, check the One color box.
8-16
GFK-1396F
Object filled
Click the down arrow in the Color field to display the Color Palette.
2.
3.
4.
Enter the number of shades the color should display. Enter a number between 2
and 256. The higher the number, the finer the shading will be.
5.
Slide the Brightness tab to the spot that defines the desired intensity of the fill.
The leftmost position corresponds to the minimum possible intensity of zero
(black).
The rightmost position corresponds to the maximum possible intensity of 255
(white).
GFK-1396F
8-17
2.
3.
4.
5.
Enter the line style and its other color and style features in the Line section of
the tab.
Line Section of Color Tab
Arrowheads only
available with lines
Line/border width
dropdown menu
8-18
Lines that are wider than 0 display in the solid line style.
GFK-1396F
2.
3.
4.
5.
6.
7.
8.
Line/border width
dropdown menu
Color palette for
button color
9.
10. Click the down arrow in the Button color field to display the color palette.
11. Select a color.
12. Check Color animate text for the text to change color when you configure
button animation.
13. Check Color animate button face for the button to change color when you
configure button animation.
See the "Configuring Runtime Movement and Animation" chapter in this manual
for detailed information about configuring animation.
GFK-1396F
8-19
Palette
Using the Color Palette, you can:
SpecialAmbient colors.
The exact colors on the basic color palette are based on whether you use the original
Windows color palette or the newer CIMPLICITY 3.0 color palette. You can select
which to use through the basic color palette.
Note: On videos with 16 and 256-color displays, the palette colors that display RGB
values will be dithered colors.
A dithered color is a pattern of dots that simulates the exact color.
Only the solid portion of a dithered color will be displayed in a pattern.
To select a color:
1.
Click the drop-down list button to the right of any Color field.
A Color Palette appears.
Basic Palette
Palette tab
Special tab
8-20
2.
3.
GFK-1396F
Click the drop-down list button to the right of any Color field.
A Color Palette appears.
2.
3.
Result: The color that was selected in the Windows Display Properties dialog box
will display.
Change the color in the Windows Display Properties dialog box.
Windows Display Properties dialog box.
Basic Palette
Special tab
Ambient colors
Colors correspond to
selections in the
Windows Display
Properties dialog box.
GFK-1396F
8-21
Click the drop-down list button to the right of any Color field.
2.
Color picker
Luminosity picker
Solid double
clicked
3.
Do one or more of the following until you have created the color you want. You
can see the exact color and the solid color that is closest to it in the Color|Solid
box.
A. Move the Color picker around to change the color.
B. Enter exact RGB Index values for any or all of the colors in the Color
fields.
Zero for all colors = Black.
0 for one color = Black for that value
255 for all colors = White
255 for one color = Pure red, green, or blue for that value
The color that displays reflects the combination of the three entries
C. Move the Luminosity picker up and down to change the amount of light
(absence of black) in the color.
D. Enter an exact value that specifies the amount of light in the color in the
Lum field.
0 = Black (The colors values will change to 0)
240 = White (The colors values will change to 255.
Any changes you make in this value will affect all the colors.
8-22
GFK-1396F
E. Specify how vivid the color specified by the balance of the three basic
colors should be in the Sat field.
0 = Gray
240 = No gray.
F.
4.
5.
Specify the balance of red, green, and blue that you want in the Hue field.
This balance is calculated against the values that are already in the Color
fields.
Decide whether to use the exact color or the solid color displayed in the
Color|Solid box. Selection possibilities are:
The exact color is the same as the solid color. The box will be entirely solid.
The exact color is dithered and is different from the solid color. The
dithered color appears on the left.
The solid color that is closest to the exact color appears on the right.
Result: The color will be added to the Custom Colors section of the Color Palette
that you selected in step 2 of this procedure and to the Color field.
To edit a color:
1.
Standard color
Custom color
3.
3.
GFK-1396F
8-23
4.
Click the drop-down list button to the right of the Color field.
2.
3.
Note: In some situations (such as picking a color for a gradient fill), the None color is not
allowed and it will not appear in the list on the Special tab.
The system special effects follow the color scheme you select in the Display Properties
on your Control Panel. If you pick one of these colors, you are warned that the color may
change from computer to computer depending on the color scheme the user selects for
that computer.
You can use the check box on the warning dialog box to silence the warning. After you
silence the warning, use the Options dialog box to turn the warning back on.
8-24
GFK-1396F
Right-click on a color in the Palette tab, the following popup menu displays:
2.
Select Options
The Color Picker Options dialog box opens.
3.
Check Use CIMPLICITY HMI 3.0 color palette to use the new palette. Leave
it blank to retain the original palette.
Basic Palette
Special tab
Palette tab
Click one to select a
basic color
Double click a blank
box to create a
custom color
Right click an existing
customized color to
edit it.
4.
GFK-1396F
Check Warn before using system colors if you want to be warned before the
system colors are used.
8-25
Made up of a balance of red, green, and blue luminosity values ranging from 0
to 255.
Example
Single Color
Red
Green
Blue
Total Color
Black
128
128
Purple
255
255
255
White
See "Default color Mappings for Alarm Class Colors" in this chapter for more
examples.
Red
Green
Blue
Total Color
255
Red
RGB.dat Files
Normally, an RGB.dat file is not necessary to create or have.
However, you may need to create an RGB.dat file if you want to
CIMPLICITY Server, you will need to store a copy of the RGB.dat file in each
project's \data directory.
CIMPLICITY Viewer, you will need to store it in the \data directory under
the main directory where your CIMPLICITY software is installed.
8-26
015
1663
Rainbow colors.
6495
Gray tones.
96-255
GFK-1396F
Note: For Alarm State and Color Index animation, if an index value does not have a
defined color and an objects color has been assigned that index value, the color displays
as black.
Imported Screens from a CIMPLICITY System
When you import screens from a CIMPLICITY System-I/U, -D/V, -H/U, or -RS/U
system that do not use the default color mappings you will need to create an RGB.dat file.
If you are importing screen files from a CIMPLICITY System-D/V, -H/U, -I/U, or
-RS/U system, the color mappings should match the RGB.dat file on that system.
If the system you are importing from does not use the default color mappings, you will
have to create an RGB.DAT file that matches the one on the source system to display its
screens correctly.
You should use the same color mappings for all projects.
GFK-1396F
Red
0
255
0
0
128
0
128
255
0
128
128
32
224
255
0
255
Green
0
0
255
0
0
128
0
255
128
128
128
64
176
0
255
255
Blue
0
0
0
255
0
0
128
255
128
128
0
64
160
255
255
0
Total Color
Black
Red
Lime
Blue
Maroon
Green
Purple
White
Teal
Gray
Olive Green
(Dark)
(Rose)
Fuchsia
Aqua
Yellow
8-27
2.
Enter four numbers (separated by one tab) on each row that represent
Row Number, Red, Green and Blue in that order.
3.
Use as many rows as are needed to specify the colors you want in your system.
Each row defines one color.
0
255
0
0
128
0
128
255
0
128
128
32
224
255
0
255
0
0
255
0
0
128
0
255
128
128
128
64
176
0
255
255
0
0
0
255
0
0
128
255
128
128
0
64
160
255
255
0
8-28
GFK-1396F
Configure any text object that you place on a CimEdit screen to display current
CIMPLICITY point values. See Placing Text Objects in the Creating a
Preliminary Layout chapter of this manual for information about placing text
objects on the screen.
Open the Properties - Object dialog box for a selected text object.
2.
For a:
A. Plain text object:
Select the Text tab.
B. Text button object:
Select the Text Button tab.
GFK-1396F
3.
4.
5.
8-29
Tip: CimEdit provides you with several ways to configure setpoints. They include:
Setpoint actions
See the "Setpoint Actions" sections of the "Creating Procedures in CimEdit" chapter
in this manual for a list of available setpoint actions.
Slider action checkboxes on the Movement tab in the Properties dialog box.
See "Creating a Slider Action" in the "Configuring Runtime Movement and
Animation" chapter in this manual for details about configuring slider actions.
Setpoint action checkboxes on the Text tab in the Properties dialog box.
Configured
Settings that are entered on the General and View tabs in the Point
Properties dialog box are used as the display format for point values in
CimView, when you select Configured in CimEdit.
A width is specified in the Point Properties dialog box. This specification
does not cause a value to be truncated. If the number of characters in the
output value is greater than the specified width, or if a width is not given, all
characters of the value are printed (subject to the precision specification).
If the number of characters in the output value is less than the specified
width, blanks are added to the left or right of the values until the minimum
width is reached. The blanks' position depends on whether the flag (for left
alignment) is specified. If the width is prefixed with 0, zeros are added until
the minimum width is reached.
If you configure a text object using this options features, make sure that
you make the text object long enough to accommodate the anticipated
length of the value.
8-30
GFK-1396F
General
If the number of digits exceeds the GSM_EXPONENT_PRECISION global
parameter, then the number is displayed in scientific notation. If
GSM_EXPONENT_PRECISION is not defined, the default number of digits is
6. If the number is larger than the precision of the format, it will be rounded
in the display. For example, with the default precision:
1234567 displays as 1.23457e+6
7654321 displays as 7.65432e+6
Custom
Enter the specification using the standard C language format notation
Integer
A. Enter, in the Width field, the number of characters needed to display the
results of the expression evaluation.
B. Check Zero filled to toggle the leading display of zeros.
Real
A. Enter, in the Precision field, the number of places to the right of the
decimal place that you want displayed.
B. Enter, in the Width field, the number of characters needed to display the
results of the expression evaluation.
C. Check Zero filled to display leading zeros.
D. Check Scientific to use scientific notation for the value display.
Text
Enter, in the Max width field, the maximum number of characters needed to
display the text string.
Time (Absolute) Format
Interprets the expression as a UNIX absolute time. That is, the value
represents the number of seconds since 00:00 GMT on January 1, 1970
Select the Time format you want to display. You can choose to display
time, date, or both.
If you choose the YYYY:MM:DD:HH:MM:SS format, you can only
display values after 1995:01:01:00:00:00 (January 1, 1995 at 00:00 AM).
Values before that date are displayed as ----:--:--:--:--:--.
Time (Relative)
Interprets the expression value as an elapsed time value in seconds.
Select the Time format you want to display. You can choose to display
time, date, or both.
GFK-1396F
8-31
Note: If you use a point with Custom conversion, the EU value of the point is a real
(floating point) number and is best displayed with the General or Real format. These
formats round floating-point numbers, while the Integer format truncates them.
1.
2.
Check Setpoint Action if you enter a single Point ID to allow a user to perform
a Setpoint action on the Point ID during runtime.
The Advanced button is activated.
3.
Point ID
popup
Text Box
8-32
1.
Enter an Expression that must evaluate to TRUE during runtime in order for a
user to access the Setpoint action.
2.
3.
GFK-1396F
Click Font , which appears on the tab where you enter the string for the
text.:
The Font dialog box opens.
Standard Font Dialog Box
Select a font, style and size from the scroll lists
GFK-1396F
2.
Select the Font, Style and Size from the scroll lists.
3.
Make sure the specified Script is for the active language. For example, use
Chinese script for the Chinese language; Western for English.
4.
8-33
Points
Variables
Points report specific conditions in the system. Points are the result of detailed
configuration, which is done in the Point Properties dialog box. As with other
CIMPLICITY HMI applications, when you are in CimEdit, you can find and use any
point that is already in any broadcasting project on your network. In addition, you can
create new points by opening the Point Properties dialog box through CimEdit.
Variables are a container for a piece of information. The information can represent a full
or partial Point ID, or text string in an expression. They are completely contained in
CimEdit. At any given moment, CimEdit evaluates them and acts on the result of its
evaluation in the manner that you specify. See the Using Variables in CimEdit chapter in
the manual for detailed information about variables.
This chapter describes how to review the points you are using on the CimEdit screen.
If you are a system administrator, see the chapters:
Using Point Addresses, for using points to reference data in CIMPLICITY HMI
software.
Monitoring Point Attributes for the point attributes syntax that enables you to
monitor the attributes of configured points through CimView.
GFK-1396F
9-1
Review a Point ID and associated information for the entire CimEdit screen
The Point View dialog box gives you the capability in:
Find the Point IDs associated with an object, group, frame or screen.
In CimEdit to:
Rename an object.
Note: Currently the Point View dialog box does not display information about Point IDs
used by scripts, variables or CIMPLICITY ActiveX controls.
When you select an object in the dialog box, it is highlighted in your CimEdit or
CimView screen.
9-2
GFK-1396F
2.
2.
When the Point View dialog box opens, the points you see are being used by the object
you selected or by the entire screen if you did not select an object.
GFK-1396F
9-3
Expand or collapse the information for one or more points in the current view.
Properties
Select Objects Using Point
All Points for Object
All Points for Parent
Collapsed View
ExpandedView
Invalid Point
Valid Point
9-4
GFK-1396F
The dialog box is resizable. The Title bar always reflects the object type and name of the
current base object.
Note: Currently, the Point View dialog box does not display information about Point IDs
used by scripts, variables, or ActiveX controls.
To expand/collapse the current view in the Point View dialog box:
Method 1
1.
Click
2.
Click
Method 2
1.
2.
3.
Select from the available expand/collapse options on the Point View popup
menu.
4
Single object
5
2
Parent of
single object
Parent of
Parent of
Parent
Parent of
Parent of
Parent of
Parent
6
Parent of
Parent
Screen
GFK-1396F
9-5
You can choose any level to display as the base object in the Point View dialog box. You
can then
Edit
Make the parent of the displayed base object, the new base object
2.
Click the All points used by the parent of the base object button
to display the parent as the new base object.
to
Method 2
9-6
1.
2.
Select All Points for Object on the popup menu to display the selected item
as the base object.
3.
Select All Points for Parent on the popup menu to display the parent as the
new base object.
GFK-1396F
Guidelines: Following are guidelines for dealing with frames as base objects and
parents.
In CimEdit, when you select a frame object on your screen and then enter Point View, if
the:
Select to view the parent of the frame object, the frame container becomes
the base object.
Select an object in the frame container as the base object, the selected frame
becomes visible and the object is highlighted on the CimEdit screen.
Select to view the parent of the Frame Container as the base object in Point
View, frame mode is closed on the CimEdit screen.
Select the Frame Container as the current object, Select Objects Using
Point in Point View is disabled.
Use Select Objects Using Point in Point View, only the top-level
objects for the current frame are selected.
Select to view the parent of a Frame Container, and then go back into it, you
will not return to frame mode in the CimEdit window.
In CimView, if you select a frame container as the base object and open the Point View
dialog box, then select any object in the frame container, the selected frame object on
your CimView screen does not change.
GFK-1396F
9-7
Important: If the Point ID is being used by an object in a Group, the Group is selected.
If the Point ID is being used by a frame in a Frame Container, the Frame Container is
selected.
Example
You want to delete all the objects that use Point ID XYZ:
1.
2.
3.
4.
button.
2.
Point View deselects all currently selected objects on the CimEdit screen, and then
selects all the top-level objects on the CimEdit screen that use the Point ID. The contents
of the Point View dialog box do not change.
9-8
GFK-1396F
Edit most selected non-point items through the Point View dialog box.
Replace a point.
Note: In CimView, you can look at the item's properties, but you cannot display the
properties of a Point ID or a frame object.
Properties
Select Objects Using Point
All Points for Object
All Points for Parent
Rename
Properties
2.
3.
2.
GFK-1396F
9-9
Point Replacement
You can replace any point with another by using Point Views Point ID popup.
2.
3.
You will be asked to respond to verification messages when you replace the Point ID.
After you verify the change, the new Point ID is entered for all objects and procedures
listed under it in the Point View dialog box.
Important: If you change the name of a Point ID to an array point element be aware
that:
You may get invalid expressions if the point you are replacing
A Point Replace Warning dialog box reviews the array point restrictions and asks you if
you want to replace the Point ID anyway. You can choose to replace the Point ID or
cancel your request.
9-10
GFK-1396F
Select the object for which you want to create or edit a point.
2.
3.
GFK-1396F
9-11
Unqualified points.
Qualified points.
You make your specifications on the Edit tab of the Options dialog box.
Information about an unqualified point can come from the locally running project or from
the default project determined by the /project <project> command line option used.
Unqualified points are best used when you:
Want to create a screen to view points with the same IDs from different projects.
To get information about the point, CimEdit and CimView use the following steps to
fully qualify an unqualified Point ID:
1.
2.
3.
If the screen is in a project directory, that project is used to fully qualify any
unqualified Point IDs.
4.
If you are on a Server and a single project is currently running, that project is
used to fully qualify any unqualified Point IDs.
5.
If you are on a Server and multiple projects are running, the project that was
started first is used to fully qualify any unqualified Point IDs. However, this
behavior can be modified by using the PROJECT_ID global parameter.
6.
Information about a fully qualified point always comes from the project or node specified
in the Point ID.
Fully qualified points are best used when you have multiple projects running on the
network at the same time. When you create a CimView screen using fully qualified Point
IDs, and use that screen on any computer running CIMPLICITY HMI software, the point
information always comes from the projects you specified in the Point IDs.
9-12
GFK-1396F
2.
Select Options.
The Options dialog box opens.
3.
4.
5.
Select the Default project from the drop down list of available projects.
GFK-1396F
9-13
Naming Points
Because the same rules apply to creating and editing points throughout CimEdit, it is
important to adhere to the rules about Point IDs.
Tip: Display all existing points in the Workbench when you need to create new points.
That way you can refer to the existing list to avoid name duplication.
Each point in a project has a unique Point ID. This identifier may be up to 32 characters
long. You may use any combination of upper-case letters and numbers to create a Point
ID. You may also use special characters in a Point ID. There are however, some
reserved words and reserved characters. If you use reserved words or characters for a
Point ID:
When you include a Point ID that contains reserved words or special characters
in an expression or equation, you must enclose the Point ID in single quotes.
File names for Alarm Help files will be difficult to correlate to Point IDs. These
file names are usually generated automatically by CIMPLICITY software and
are based on the Point/Alarm ID.
A2
AL
ALARM
ALARM_NOT_ACKED
BAND
BXOR
GE
LT
OR
WARNING_HIGH
AH1
AL1
ALARM_HIGH
ANA
BNOT
EQ
GT
NE
SQR
WARNING_LOW
If, however, you do use a reserved word for a Point ID and you include such a Point ID in
a point expression or equation, you must enclose the Point ID in single quotes.
9-14
GFK-1396F
GFK-1396F
9-15
By separating runtime and configuration information in this manner, you can modify
your configuration information while CIMPLICITY software is running, and update your
runtime system as appropriate.
However, when you want to update configuration information and have the updated
information immediately available to the runtime system, you can by using the Dynamic
Update option.
To enable dynamic point configuration:
Method 1Use the toolbar
Click the Dynamic Points button
2.
While Dynamic Points is disabled, you only create points in the master directory.
To disable dynamic point configuration:
Method 1Use the toolbar
Click the enabled Dynamic Points button
9-16
1.
2.
GFK-1396F
User defined attribute sets that are assigned to a point in the Point Properties
dialog box.
See the "Using Point Attributes" chapter in the CIMPLICITY HMI Base System User's
Manual (GFK-1180) for a list of and more information about point attributes.
Associating a point attribute with a point is as easy as configuring any expression in
CimEdit.
To associate a point attribute with a point in a CimEdit expression:
1.
2.
3.
Enter the Point ID and attribute you want to display using the following syntax.
'<POINT_ID>.<ATTRIBUTE_ID>'
where
<POINT_ID> is the Point ID of any configured point
<ATTRIBUTE_ID> is one of the CIMPLICITY HMI point attributes.
Or
'<POINT_ID>.<FIELD_NAME>'
where
<POINT_ID> is the Point ID of a point to which an attribute set is assigned
<FIELD_NAME> is the name of one of the fields in the attribute set that is
assigned to the point
Important: You must enclose the syntax in single quotes, because the '.' character is a
special character.
GFK-1396F
9-17
4. Click OK
CimView
Address
%R750
The list of attributes in this chapter specifies the type of value that each attribute
returns, e.g. integer, character. Use the basic syntax to return the value, as
specified.
Examples
'GEF_DEMO_PT.DESCRIPTION'
'GEF_DEMO_PT.ALARM_HIGH'
You can force an expression to return a numeric value, if the value is a number
but the attribute is listed as returning a character. You use the operator VAL to
do this.
Example
VAL('DEV1750.ALARM_HIGH')+VAL(DEV1900.ALARM_HIGH')
9-18
Some of the attributes are specific to points of a particular type. Valid point
types, which are specified in the attribute list, are:
Device
Derived (Virtual)
Global (Virtual)
GFK-1396F
2.
3.
4.
5.
Either:
A. Click the right mouse button. A popup menu appears.
In the popup menu:
i.
ii.
A Quick Trend window opens and instantly begins to display the current trend of the
point you selected.
GFK-1396F
9-19
Using Variables
About Variables
A variable can be used in an expression to represent different types of values.
A Variable ID's chameleon-like functionality behaves as follows:
1.
A screen designer enters text to identify a Variable ID (on the Variables tab) in
CimEdit. The text may represent any of several types of values.
2.
Scripts, which can include Variable IDs to which values are assigned.
Full Point ID
Partial Point ID
3.
4.
Variables can streamline your configuration time. For example, when you create an
object that uses Variable IDs, you can use the same object in several locations on a
CimEdit screen, or on several different screens. You can then assign the variable a
different value, for example different Point IDs, for each instance of the object.
This becomes a particularly powerful tool when you use a variable in linked objects.
Go to the next page for a summary example of variable behavior.
GFK-1396F
10-1
tank1_level
tank{myvar}_level * 2
{myvar}
Resulting Expression
tank1_level * 2
tank1_level * 2
tank1_level * 2
tank1_level * 2
Evaluated Expression
50
tank1_level * 2
50
tank1_level * 2
50
The screen
A group
An object
If you define the same Variable ID at more than one level of the hierarchy CimEdit first
looks for the Variable ID in the object you are configuring. If the Variable ID is not there,
CimEdit goes to the next level up in the hierarchy, and, if necessary, continues to the next
levels, to find an object that references that variable.
Example
For example, you have a CimEdit screen with two groups and two subgroups that contain
text objects as follows:
Example of the Hierarchy when a Variable is Assigned
Variable ID {value_var} is assigned to:
The screen
Group 1
Subgroup 1
Screen
{value_var}
Subgroup 2
text object 1
Group 2
Subgroup 1
{value_var}
text object 2
text object 3
Group 1
{value_var}
10-2
GFK-1396F
Variable Configuration
The process to create and use a variable includes:
1.
2.
3.
You can then use the Variable ID in your configuration and set its value, if it is still open,
either during configuration or runtime.
Open the Properties dialog box for the object that is at the appropriate level for
creating a variable.
2.
3.
4.
Check the Public column if the value of the variable can be entered at
different locations. See the "Choosing Public or Private Variables" section
of the "Saving Time with Linked Objects" chapter in this manual for details
about using public and private variables.
GFK-1396F
Using Variables
10-3
5.
Point
Partial point
5.
Repeat Steps 34 (or 5) until you have completed your list of Point IDs.
6.
Click Apply.
Result: You now have the Variable IDs available for the selected item and any item
below it in the configuration hierarchy.
Tip: Take advantage of CIMPLICITY HMIs many graphic objects in the Symbols and
Smart Objects Library that come with predefined Variable IDs.
Example
Using a CIMPLICITY HMI Gauge with Predefined Variable IDs
You select a pressure gauge from the Smart Object Gauges library and place it on the
CimEdit screen.
When you select the Variable tab in the gauges Properties dialog box, you see the
following predefined variables.
You can edit and / or set the values according to your needs.
10-4
GFK-1396F
Selecting a Variable ID
Wherever you can enter a Variable ID in a CimEdit Properties dialog box, you can
browse through the list of Variable IDs that you defined in the Variables tab.
To browse through a list of defined Variable IDs:
1.
2.
Screen
Group 1
{color_var}
Subgroup 1
Text Object 3
Group 2
This dialog box shows you a list of all the defined variables contained within the screen.
The following icons tell you which items are variables and the type of item associated
with the variable.
Icon
Item
Screen in which the variable is defined
Variable ID
Group in which the variable is defined
Object in which the variable is defined
GFK-1396F
Using Variables
10-5
When you select a Variable ID for an object from the tree, make sure that you select one
that is above the object and in its path
Example
For Text Object 3 your Variable ID selections include:
The Variable IDs for Group 2 or any other objects in Subgroup 1 are not above Text
Object 3.
10-6
Assign values to the Variable IDs automatically when the user executes the
action at runtime.
Let the user assign values to the Variable IDs when the user executes the
action at runtime.
Screen Open event that assigns values to the Variable IDs when a user opens
the screen in CimView.
Invoke Script procedure and have the script assign values to the Variable
IDs. This procedure can be assigned to any event.
GFK-1396F
Caution: If you do use Variable IDs in Setpoint actions, especially if you are using
nested Variable IDs, make sure that the Variable ID is referencing the correct object and
value.
See "Variable Evaluation Hierarchy" in this chapter for details about nested variables.
Tip: CimEdit provides you with several ways to configure setpoints. They include:
Setpoint actions
See the "Setpoint Actions" sections of the "Creating Procedures in CimEdit" chapter
in this manual for a list of available setpoint actions.
Slider action checkboxes on the Movement tab in the Properties dialog box.
See "Creating a Slider Action" in the "Configuring Runtime Movement and
Animation" chapter in this manual for details about configuring slider actions.
Setpoint action checkboxes on the Text tab in the Properties dialog box.
See the "Using Text Objects to Display Point Values" section in the "Applying
Inanimate Visual Features" chapter in this manual for the procedure to configure
text objects including enabling setpoint actions.
See "Variable Evaluation Hierarchy" in this chapter for details about variable
hierarchies.
Example of a Variable ID in a Setpoint Action
To create an example Variable ID in a setpoint action:
GFK-1396F
1.
2.
3.
4.
Assign a Point ID, e.g., Light1, to the variable in the Value column.
Using Variables
10-7
5.
6.
7.
8.
Click OK.
Result: When an operator clicks the button during runtime, the light is turned on
or off.
Example: Light Turned On/Off using a Toggle Setpoint action and a Variable ID
Color animation and
text, each with a Light1
Point ID assigned.
(Configured to display if
the light is on or off.)
Toggle Setpoint action:
M {Light_Switch} variable.
M Light1 Point ID value.
Light on
10-8
Light off.
GFK-1396F
Tip: In this example, two easy ways to increase the scope of the Toggle Setpoint
action when using a variable are to:
A. Copy the button and change the value of the Variable ID, e.g., to Light2, on the
Variables tab of the Text Button's Properties dialog box. An operator will have two
or more buttons to toggle two or more Point ID's values during runtime.
Or
B. Add an event with a Variable Assign action that uses the Variable ID
{Light_Switch} variable. An operator can then change the value of the Variable
ID at runtime and control several points through the single button.
GFK-1396F
Using Variables
10-9
You can follow this example, which uses one of the points from the CimpDemo demo
project.
In this example, you will
Step 1.
Step 2.
Step 3.
Step 4.
Step 5.
Configure Group 1
Step 6.
Configure Group 2
Step 7.
Step 8.
2.
Select the Start Demo menu item to start the Demo Project.
After the project starts, the CIMPLICITY HMI Demonstration Main Menu
screen opens.
3.
4.
5.
6.
In the Demo Points screen, make sure the points are updating. If they are not,
click the Start demo points button.
7.
At this point, the CimpDemo project is running, and the demo points have changing
values.
You are now ready to create a CimEdit screen with Variables. This sample screen shows
you how to create two objects, assign a variable name to them, and group them. It then
shows you how to use the group to create another group.
The two groups demonstrate two ways of assigning Variables.
10-10
For the first group, you create a Variable Assign action that lets you assign a
point to the variable at runtime.
For the second group, you assign a point to the variable in the Group properties,
so that the group automatically displays that point at runtime.
GFK-1396F
Open a CimEdit screen from the Workbench for the Demo Project.
2.
Text Example
GFK-1396F
3.
In the Expression field on the Text tab of the Properties dialog box, enter the
word {value}. This tells CimEdit that you want to use a Variable for the point
value to be displayed at runtime.
4.
Click OK to close the Properties dialog box. You will see the following
message:
5.
Click OK to close the message box. You can ignore this message for now.
Using Variables
10-11
Create the rectangle object below the text object on the screen.
Text Example
10-12
2.
3.
4.
Enter the word {value} in the Expression field in the Fill section. This tells
CimEdit that you want to use the same variable for this object as you do for the
text object.
5.
Select the color that to fill the rectangle, reflecting the variables value during
runtime.
6.
Click OK to close the Properties dialog box. You will see the following
message:
7.
Click OK to close the message box. You can ignore this message for now.
GFK-1396F
2.
GFK-1396F
Using Variables
10-13
2.
3.
4.
5.
Click Apply.
6.
7.
8.
9.
10-14
GFK-1396F
D. Click OK.
The Events tab for Group 1 now looks like this:
GFK-1396F
Using Variables
10-15
2.
3.
10-16
Click OK to save your configuration and close the Properties dialog box.
GFK-1396F
30
The second group immediately starts displaying the value for DEMO_COUNTER, but
nothing is displaying for the first group.
GFK-1396F
Using Variables
10-17
2.
Click the left mouse button. The Variable Assignment dialog box for the value
variable opens.
3.
4.
Click OK.
The group immediately starts to display the point you selected.
1
65
30
You can view other demonstration points for Group 1 by repeating the above
steps.
10-18
GFK-1396F
For more details about using scripts, see the "Using CimEdit Scripts" chapter in this manual.
GFK-1396F
Using Variables
10-19
Move.
Change in size.
Rotate.
Fill up or down.
You can use one or all of the following objects for each activity.
Groups
Single objects
Text objects
Lines
Shapes
CimEdit also provides you with frame containers, an efficient tool with which to create
animation.
Frames are based on the concept of frames that are created for a film. They can save
you a lot of configuration time if you have a section of a screen that will change
considerably during runtime, based on a predetermined set of conditions.
No matter what you choose to do, configuration involves a few simple arithmetic
calculations. In addition, if you combine or nest any of the activities, you still only do the
same simple configuration for each activity.
Your options depend only on the requirements for your project, your ingenuity, and
system resources.
GFK-1396F
11-1
Object Movement
You can use movement on a CimEdit screen to:
Set a value
Movement is an effective way to alert an operator that the value of a point or expression
changed.
The movement can be:
Horizontal.
Vertical.
You can also configure a slider action so a user can set an analog point during runtime by
sliding an object within a specified distance on the screen.
11-2
1.
2.
Specify a starting position (A). (A) can be on either the left or right.
3.
4.
(Suggested) Draw a temporary line the length of the distance you want the
object to move.
5.
6.
GFK-1396F
To continue:
Method 1-Calculate the offset yourself
7.
8.
Jot down the number in the Left field. That is the (A) position.
9.
Increase the number until the object has moved to the (B) position. (Click
Apply to make it move without closing the Properties dialog box.)
(Suggested) Draw a line from the center of the object at (A) to the center of the
object at (B).
8.
9.
10. Click the maximum position to which the object can move (the end of the line).
GFK-1396F
11-3
Enter one or
more Point IDs
and mathematical
operators that
can be evaluated.
Expression
dialog box
Point ID
popup
minus (-)
Begin position (A)
Enter the point ID or expression, on the Movement tab, that you want the
movement to reflect.
2.
Enter the minimum value of the point ID or expression. This value will cause
the object to be in Position (A).
3.
Enter the maximum value of the point ID or expression. This value will cause
the object to be in Position (B).
4.
Check Slider action box if you want the operator to set an analog point value by
sliding the object. See "Slider Action" in this chapter for more information about
sliders.
5.
Click Ok.
Result: You can test your object in Runtime mode. You will see that CimEdit
divides the difference between the minimum and maximum values by your B-A
(offset calculation) to determine the objects position.
6.
11-4
Delete the line, when you are finished and place the object anywhere you want
on the screen.
GFK-1396F
Note: The object will not begin to move until the minimum value has been exceeded.
GFK-1396F
11-5
2.
3.
4.
(Suggested) Draw a temporary line the length of the distance you want the
object to move.
5.
6.
8.
Jot down the number in the Top field. That is the (C) position.
9.
Increase the number until the object is positioned in the (D) position. (Click
Apply to make it move without closing the Properties dialog box.)
11-6
GFK-1396F
14. Click the maximum position to which the center of the object can move (the end
of the line).
Click here for the car
to move to D
Enter one or
more Point IDs
and mathematical
operators that
can be evaluated.
Expression
dialog box
Point ID
popup
Quick offset
Enter the point ID or expression, on the Movement tab, that you want the
movement to reflect.
2.
Enter the minimum value of the point ID or expression. This value will cause
the object to be in Position (C).
3.
Enter the maximum value of the point ID or expression. This value will cause
the object to be in Position (D).
4.
Check Slider action if you want the operator to set an analog point value by
sliding the object. See "Slider Action" in this chapter for more information about
sliders.
5.
Click Ok.
Result: You can test your object in Runtime mode. You will see that CimEdit
divides the difference between the minimum and maximum values by your D-C
(offset calculation) to determine the objects position.
GFK-1396F
11-7
6.
Delete the line, when you are finished and place the object anywhere you want
on the screen.
Example: Runtime Test for Vertical Movement
Values Entered on the Movement tab in the Properties dialog box
Min Value = 50
Max Value = 250
Offset = 125
Some values during runtime
Value=0 to 50
Offset=0
Value=150
Offset=93.75
Value=250
Offset=125
Note: The object will not begin to move until the minimum value has been exceeded.
11-8
GFK-1396F
Result: You can test your object in Runtime mode. You will see that CimEdit
calculates the real value of each percentage point and scales the object
accordingly.
Example: Runtime Test for Horizontal + Vertical Movement
Values Entered on the Movement tab in the Properties dialog box
Horizontal
Vertical
Min Value = 0
Min Value = 50
Max Value = 100
Max Value = 250
Offset=225
Offset=125
Some positions during runtime
Begin:
H Value=0, Offset=0
V Value=0-50, Offset=0
End:
H Value=100, Offset=225
V Value=250, Offset=125
Horizontally
Vertically
During runtime when a slider object is released, its position between the beginning and
end of the horizontal or vertical distance that you specify represents the value that will be
written to the point or points.
You can use the slider action alone or combine it with other procedures. When you do,
the order of execution is:
1.
2.
3.
Note: Normally you should not configure a Slider Action with Rotation animation.
However, if you must, make sure the center of rotation is 0,0. Note that the outline of the
object will not rotate as the slider is moved.
GFK-1396F
11-9
Tip: CimEdit provides you with several ways to configure setpoints. They include:
Setpoint actions
See the "Setpoint Actions" sections of the "Creating Procedures in CimEdit" chapter
in this manual for a list of available setpoint actions.
Slider action checkboxes on the Movement tab in the Properties dialog box described
here.
Setpoint action checkboxes on the Text tab in the Properties dialog box.
See the "Using Text Objects to Display Point Values" section in the "applying
Inanimate Visual Features" chapter in this manual for the procedure to configure
text objects including enabling setpoint actions.
2.
3.
4.
Execute condition
Expression
dialog box
Enter one or more
Point IDs and
mathematical operators
that can be evaluated.
Point ID
popup
Text Box
5.
Enter one or more point IDs and mathematical operators that can be evaluated
during runtime.
11-10
GFK-1396F
No
GFK-1396F
11-11
Object Scaling
When you use CimEdits scaling feature to configure an object, its horizontal and / or
vertical dimensions will change during runtime based on the current value of one or two
expressions. This is another way for a CimView user to be ably to glance quickly at a
CimView screen and see when a change occurs.
If you define both horizontal and vertical scaling for an object, you may use different
expressions, minimums, maximums, percent scales, and fixed locations for each scaling.
2.
3.
4.
(Suggested) Draw a temporary line the length of the distance you want the
object to expand.
5.
6.
7.
Jot down number in the Width field. That is the default size.
8.
Increase the number until the object has expanded to the maximum size. (Click
Apply to make it expand without closing the Properties dialog box.)
9.
Change the number back so the object will be the default size.
A
11-12
GFK-1396F
Enter one or
more Point IDs
and mathematical
operators that
can be evaluated.
Maximum size (B)
as percent of
Minimum size (A)
Expression
dialog box
Point ID
popup
Select one:
Left
Middle
Right
11. Divide the Geometry value (B) by the Geometry value (A).
12. Enter the dividend as a percentage in the Percent scale field. For example,
320 / 95 = 3.368 Enter 337.
13. Select the objects fixed location for expansion.
14. Enter the point ID or expression that you want the horizontal scaling to reflect.
15. Enter the minimum value of the point ID or expression. This value will cause
the object to be the default size.
16. Enter the maximum value of the point ID or expression. This value will cause
the object to expand to the specified length on the screen.
Result: You can test your object in Runtime mode. You will see that CimEdit
calculates the real value of each percentage point and scales the object
accordingly.
GFK-1396F
11-13
2.
3.
4.
(Suggested) Draw a temporary line the length of the distance you want the
object to expand.
5.
6.
7.
11-14
Jot down number in the Height field. That is the default size.
GFK-1396F
8.
Increase the number until the object has expanded to the maximum size. (Click
Apply to make it expand without closing the Properties dialog box.)
9.
Change the number back so the object will be the default size.
Enter one or
more Point IDs
and mathematical
operators that
can be evaluated.
Maximum size (B)
as percent of
Minimum size (A)
Expression
dialog box
Point ID
popup
Select one:
Top
Middle
Bottom
GFK-1396F
11-15
Value=150
Value=225
Scale =368% Scale = 429%
Height==129
Height=150
11-16
GFK-1396F
Object Rotation
You can make the following objects rotate during runtime based on the value of one or
two expressions.
Lines
Shapes
Text
Buttons
Groups
Frames
One of the many useful applications for rotation is to place one or more gauges on the
screen. The CimEdit Smart Object library provides you with gauges for which you only
need to enter the expression they represent. During runtime, they will rotate to reflect the
expressions value.
To rotate an object:
1.
2.
3.
4.
5.
6.
Rotation Example
Enter one or
more Point IDs
and mathematical
operators that
can be evaluated.
Expression
dialog box
Point ID
popup
Horizontal Center
Vertical Center
GFK-1396F
Quick offset
11-17
7.
Enter the Point ID or expression that you want the rotation to reflect.
8.
Method 1
A. Enter the minimum value of the point ID or expression. This value will
cause the object to be at the beginning of the rotation.
B. Enter the maximum value of the point ID or expression. This value will
cause the object to be at the end of the rotation.
Method 2
A. Click the Quick Offset button
B. Move the mouse to the where you want the center of rotation to be.
C. Click the left mouse button.
Continue from Method 1 or 2
9.
Enter the angles of rotation that represent the minimum and maximum values for
the expression that will cause movement to occur, in the min/max angle fields.
The default angles (0, 360) will cause the object to perform one full
counterclockwise rotation around the center offset as the expression value
increases from its minimum value to its maximum value.
You can specify counterclockwise or clockwise rotation.
Note: If the Expression field contains a single point ID with no operations performed
on it and the point has Display Limits defined, you may leave the Expr. Min/Max fields
blank. CimView will use the Display Limits configured for the point ID when the screen
file opens for the expression minimum and maximum values.
11-18
GFK-1396F
Object Fill
Fills are a useful way to let a CimView user quickly see the level of a point or
expressions value during runtime.
You can create fill animation for:
Lines
Shapes
Groups
The CimEdit Smart Object library provides a large assortment of fill SmartObjects,
including tanks and a large number of fill shapes for you to use.
CimEdit offers you several options for configuring where a flow begins and ends.
Flow can move from:
In a bipolar direction
Bottom to top
Top to bottom
Left to right
Right to left
In Bipolar flow the midpoint of the object represents the mean calculated from a point or
expression's minimum and maximum values.
When the point or expressions value is: Filling occurs:
Greater than the mean value
No filling is displayed.
2.
3.
4.
Select a fill color or pattern in the Fill section. This color will be the default
color when the object is empty.
5.
6.
Enter the minimum value of the point ID or expression. This value will cause
the object to have no fill (display only the default color).
7.
Enter the maximum value of the Point ID or expression. This value will cause
the object to be filled (display only the fill color).
8.
9.
GFK-1396F
11-19
Fill Example
Expression
dialog box
Point ID
popup
Enter one or more
Point IDs and
mathematical
operators that can
be evaluated.
Based on
mean of
min/max
difference
Enter the fill:
Style
No fill
Solid
Pattern
Gradient
Color
Fill from:
Bottom
Right
Left
Top
11. Enter the Point ID or expression that you want the fill to reflect.
12. Select the direction in which the flow should flow.
13. Check Bipolar for the flow to represent the deviation from the mean of the
difference between the maximum and minimum value of the point or expression.
14. Enter the minimum value of the Point ID or expression. How the fill displays
depends on whether you selected a standard or bipolar fill.
15. Enter the maximum value of the Point ID or expression. How the fill displays
depends on whether you selected a standard or bipolar fill.
16. Click Ok.
Result: You can test your object in runtime mode.
11-20
GFK-1396F
Standard
fill from:
Bottom
ExpressionValue=0
ExpressionValue=100
ExpressionValue=250
ExpressionValue=400
ExpressionValue=500
Note: If the Expression field contains a single point ID with no operations performed
on it and the point has Display Limits defined, you may leave the Expr. Min/Max fields
blank. CimView will use the Display Limits configured for the point ID at runtime.
GFK-1396F
11-21
Animation
There are several reasons to animate an objects color or text. Two very common
applications are to:
Animate an expression.
You can easily create animation applications by writing expressions that specify when the
color or text should change.
2.
3.
4.
Click Edit.
Animation dialog
box
11-22
GFK-1396F
List of
mutually
exclusive
expressions
Move item
up / down in
list
For Items
on List
Create new
Duplicate
selection
Delete
selection
Expression
dialog box
Enter one or
more Point IDs
and mathematical
operators that
can be evaluated.
Point ID
popup
Check to
select:
Line
Fill
Line Style
Primary color
Color/Pattern
Second color
Color/Pattern
type
Line color
Line thickness
dialog box
5.
6.
Select a line style and/or color fill that will display when the expression
evaluates to True. See the "Color and Fill Selection" of "Applying Inanimate
Visual Features" in this manual.
7.
Check Blink if you want the object to blink when the expression evaluates to
TRUE.
8.
Click:
9.
Repeat Steps 58 until the objects in the list represent all the conditions you
need.
10. Move the objects up or down until the list is in the order you want.
CimEdit evaluates the expressions in the order they appear on the list and
displays the specified text for the first expression that evaluates to TRUE for as
long as it remains true.
If no conditions evaluate as TRUE the color of the object is the color assigned in
the Colors properties.
11. Click Close.
GFK-1396F
11-23
12. The Expression Count on the Color Animation tab will equal the number of
expressions configured on the list.
13. Click OK.
Result: You can test your object in runtime mode.
Note: The number of expressions you can define for an object is limited only by the
amount of memory available.
Visibility of an Object
Visibility animation lets you show or hide screen elements based on the evaluation of an
expression.
To control when an animated object should be visible:
1.
2.
3.
4.
5.
Enter an expression of one or more point IDs and mathematical operators that
can be evaluated at runtime.
If the expression you enter evaluates to TRUE during runtime, the object is
visible, and users can execute any procedures assigned to the object.
Visibility Expression
Enter one or
more Point IDs
and mathematical
operators that
can be evaluated.
11-24
Expression
dialog box
Point ID
popup
GFK-1396F
For a digital point, the color of the object will change when the value of the
point ID changes from 0 to 1.
For an analog point, the color of the object will change when the value of the
point ID is in one of the four alarm states (Alarm High, Warning High,
Warning Low, or Alarm Low).
Enter the Point ID to associate with the object in the Alarm State Expression field of
the Color Animation tab. You can configure the colors and blink codes for Default
Annunciation in the global parameters file.
If no global parameters are defined, the following defaults are used:
For Digital Points
Color
Blink
Expression
No
<point id> EQ 1
No
<point id> EQ 0
Color
Blink
Expression
15
No
14
No
10
No
13
No
The colors used for Alarm State color animation are those defined by the RGB.dat file.
The color of the object will change as the value of the expression ranges from 0
to 255.
If the expression value does not correspond to a value in the range of 0 to 255,
the object will be displayed with the "unavailable" color (black).
The colors displayed for the expression value will correspond to the 256 colors
in the RGB.dat file.
Enter an expression that can be evaluated in the Color Index Expression field of the
Color Animation tab. The expression can consist of one or more point IDs along with
mathematical operators.
GFK-1396F
11-25
Animating an Expression
CimEdit lets you make the contents and/or appearance of a text string change during
runtime based on conditions that are specified by an expression.
The number of expressions you can define for an object is limited only by the amount of
memory available.
To animate the color of an object using expressions:
1.
2.
3.
4.
Click Edit
The Expression List Attribute Animation dialog box appears.
List of
mutually
exclusive
expressions
Move item
up / down in
list
For Items on
List
Create new
Duplicate
selection
Delete
selection
Expression
dialog box
Enter one or
more Point IDs
and mathematical
operators that
can be evaluated.
Point ID
popup
Check to
select:
Text
Font
Font
Font style
Font size
Display text
5.
11-26
6.
Enter the text string you want to display in the Text field. There is no restriction
on length.
7.
Select the font, style and size that will display when the expression evaluates to
TRUE.
GFK-1396F
8.
Check Blink if you want the text string to blink when the expression evaluates to
TRUE.
9.
Click:
10. Repeat Steps 59 until the objects on the list represent all the conditions you
need.
11. Move the objects up or down until the list is in the order you want.
CimEdit evaluates the expressions in the order they appear on the list and
displays the specified text for the first expression that evaluates to TRUE for as
long as it remains true.
If no conditions evaluate as TRUE the color of the object is the color assigned in
the Colors properties.
12. Click Close.
13. The Expression Count on the Color Animation tab will equal the number of
expressions configured on the list.
14. Click OK.
Result: you can test your object in runtime mode.
Note: If you select black for the expression color, blinking will not occur.
GFK-1396F
11-27
Frame Animation
Frames can be a time saving configuration choice if you have a section of a screen that
will change considerably during runtime, based on a configured set of conditions.
The frame concept in CimEdit is based on frames that are created for a film. You create
the frames in a frame container. While you work in an open Frame Container, you can
select objects in the current frame, but you cannot select other objects on the screen.
Example: Frame on a CimEdit
Screen
Frame
Objects in
the frame
As you configure frames, you can move forward and backward to view and edit the
different frames. During runtime, at any given moment, the frame with the conditions that
are TRUE will display.
You may create any object in a Frame Container that you can create on your screen.
11-28
GFK-1396F
Method 2
1.
2.
Result: The Frame Container opens; the first frame is displayed and the Frame
Toolbar displays.
To open a frame container
Method 1
Click the Frame Container button on the Tools toolbar.
Method 2
1.
2.
Result: The Frame Container opens. The first frame is displayed, and the Frame
Toolbar displays.
GFK-1396F
11-29
Frame Container
Open Frame Container
Previous Frame
Next Frame
New Frame
Delete Frame
Close Frame Container
If you are on the first frame, Previous Frame displays the last
frame in the sequence.
Next Frame
If you are on the last frame, Next Frame displays the first
frame in the sequence.
New Frame
Delete Frame
Close Frame Container
When the Frame Container is open, the number of the frame you are currently working
on is displayed in the Title bar. It will look similar to this:
When you close the Frame Container, the last frame you were working in remains on the
screen.
11-30
GFK-1396F
Example:
Using frames to clearly display a
kiln's status in order to prompt an action.
OverHeat
HighHeat
Running
Ready
You can look over the frames you have created and what they contain in the Frames tab
of the Properties dialog box.
To view the Properties dialog box:
1.
Click once on any object in the frame to see the extent of the frame.
2.
GFK-1396F
11-31
Frames Renamed
Default
names for
frames
Frame
Expand the objects
Shape object
Collapse the display
OLE object
Line object
Text object
Button object
Group
Popup menu
Note: If an object you select represents an object in a frame, the selected frame will
display and the object will be highlighted.
View, select, edit and rename frames and their objects by using the Frame tree or the
menu that pops up when you select an object and click the right mouse button.
To change the name of any object in a frames tree:
Select the object, and then do one of the following.
Method 1
Click the left mouse button, enter the new name, and click Enter.
Method 2
1.
2.
3.
4.
Click Enter.
11-32
1.
2.
3.
GFK-1396F
Result: The Properties dialog box associated with what you select appears.
Rotated/filled.
Moved
Scaled
Events
Menus
Scripts
Variables
You configure when and why frames display relative to each other in the Frames tab.
GFK-1396F
11-33
At runtime, expressions are evaluated in the order they appear in the Frame Expressions
dialog box.
When a user displays the CimView screen at runtime, the expressions are evaluated.
Whenever the source point for an expression in the list changes, the frame associated
with the first expression that evaluates to TRUE is displayed.
To enter an expression for a frame:
1.
2.
3.
Click the Popup Menu button to browse for Point or variable IDs, edit
the expression, or add elements to the expression.
Result: The expression appears in the list on the Frame Expression tab.
11-34
1.
2.
Click Move Down to move the frame down one place in the list.
GFK-1396F
GFK-1396F
1.
Hold down the left mouse button on any object in the frame. You will see the
outlines of all objects in the frame container. While holding the button down,
2.
11-35
Event
Procedure
Script
Action 1
+
+
Action n
+
Action 2
Basic language
+CIMPLICITY
extensions
Terminal Action
GFK-1396F
12-1
Available Events
In CimEdit, you use an event to trigger a procedure (which contains an action or series of
actions). If you associate a specific event with more than one item on the screen, how the
event triggers actions depends on the event.
Note: The following events are triggered in CimView only, except for:
Event
Triggered In
Object Inserted
CimEdit only
Object Removed
CimEdit only
Smart Object
CimEdit Event
ActiveX Controls
Dialog Box
Expressions
Keystrokes
Mouse buttons
Periodic
12-2
GFK-1396F
Objects
Screens
In CimEdit:
You assign a Key Up event for key A to each:
For the screen, the Key Up event for key "A" opens Screen A
For the group, the Key Up event for key "A" opens Screen B
For the object, the Key Up event for key "A" opens Screen C
In CimView:
When a user presses then releases key "A" in CimView, all the screens open.
2.
In CimEdit:
You assign a Mouse Up event to each:
In CimView:
GFK-1396F
When a user moves the cursor over the screen and clicks the mouse, Screen A
opens.
12-3
When a user moves the cursor over the group and clicks the mouse, Screen B
opens.
When a user moves the cursor over the object and clicks the mouse, Screen C
opens.
The Same Actions Executed in CimView for Two Events: Example
Key Up Event
1 In CimEdit
configure Key Up
"A" to:
2 In CimView Key
Up "A" opens all
the screens.
Main Screen
Group
Object
open
open
open
Screen A
Screen B
Screen C
Screen A
Screen B
and
Screen C
and
Mouse Up Event
1 In CimEdit
configure Mouse
Up to:
2 In CimView
Mouse Up
opens a screen
based on where
the cursor is
positioned.
12-4
Main Screen
Group
Object
open
open
open
Screen A
Screen B
Screen C
Screen A
Screen B
or
Screen C
or
GFK-1396F
Event Creation
You begin to configure an event by creating it on the Event tab of an objects Properties
dialog box.
To create a new event:
1.
2.
3.
4.
5.
6.
Select the type of event you want to define in the Event field.
7.
8.
9.
Click OK.
Result: The event is added to the list of events on the Events tab.
Existing
events
Events drop
down list
Procedure
associated with
selected event.
A script name
can also appear
in the Action
field.
GFK-1396F
New / edit
procedure
or script
popup
12-5
Event Configuration
Configuring an event is straightforward. Because an event is the trigger that initiates a
procedure (which includes one or more actions) or a script, configuration involves simply
selecting the event and if there is an element involved with the event specifying that
element. For example, for a Key Up event, the key needs to be selected.
When an event fires in CimView, its associated procedure (or script) is placed in the
procedure queue. When the procedure (or script) that is at the head of the queue runs and
finishes, the next procedure (or script) starts. The sequence continues until all of the
procedures (or scripts) have run.
When you configure a procedure, you determine the order or the actions.
The number of procedures (or scripts) you can include in the queue is limited only by the
amount of memory on the computer.
If the procedure invokes a script, you can use the Parameter field to pass a string to the
script. The script must use the CimGetEventContext().UserParameter property to
accept the parameter.
12-6
GFK-1396F
ActiveX Event
Note: Each ActiveX control has its own set of events. See the documentation for the
ActiveX control you plan to use.
Example ActiveX Event (From Trend Control)
Event available with
ActiveX control
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
Parameter
GFK-1396F
Can be used if the event invokes a script. (The event can invoke a script
directly or through a procedure. See page12-6.
12-7
Dialog Close
Dialog Close
Dialog Close triggers a procedure or calls a script when a user closes a screen that was
opened using the GefApplication.DialogPopup or GefScreens.DialogPopup
method in the CimEdit/CimView GefObject Model.
The event is triggered in the screen that was specified as the parent screen in the
DialogPopup call.
Dialog Close Event
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
Either:
12-8
GFK-1396F
Note: The following methods and event allow you to use CimView screens the way you
would use dialog boxes:
GFK-1396F
GefApplication.DialogPopup method,
GefScreen.CloseEx method,
12-9
Expression High
Opens a
Procedure Information
dialog box
or
Edit Script window.
Enter one or more Point IDs and mathematical operators that can be
evaluated.
Action
Either:
Parameter
12-10
Can be used if the event invokes a script. (The event can invoke a script
directly or through a procedure. See page12-6.
GFK-1396F
Opens a
Procedure Information
dialog box
or
Edit Script window.
Enter one or more Point IDs and mathematical operators that can be
evaluated.
Action
Either:
Parameter
GFK-1396F
Can be used if the event invokes a script. (The event can invoke a script
directly or through a procedure. See page12-6.
12-11
Key Up
There are some guidelines to follow when you assign keys to the event. See page 12-15
for the guidelines.
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
Action
Either:
12-12
Can be used if the event invokes a script. (The event can invoke a script
directly or through a procedure. See page 12-6.
GFK-1396F
Key Up Event
Key Up triggers a procedure or calls a script when a predefined key is pressed then
released.
Key Up Event
Press a key or key combination
within guidelines
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
Action
Either:
Parameter
GFK-1396F
Can be used if the event invokes a script. (The event can invoke a script
directly or through a procedure. See page12-6.
12-13
Number
specifying the
interval length
On Event tab, Properties
dialog box
Time Type
Ms (milliseconds)
Sec (seconds)
Min (minutes)
Hour (hours)
In Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
Time period
Time Type
Action
Either:
Parameter
12-14
Can be used if the event invokes a script. (The event can invoke a script
directly or through a procedure. See page12-6.
GFK-1396F
You may assign most keys as a Key Down or Key Up event. However, when
you do, the triggered procedure overrides any other function the key may have
performed.
Do not use:
Ctrl, Shift, or Alt alone
Esc, Tab, Enter, or Print Screen either alone or in combination with
other keys.
Ctrl+Alt+Delete
Ctrl+Alt+Shift+Delete
Ctrl+Scroll Lock
Ctrl+Shift+Scroll Lock
Ctrl+Alt+Scroll Lock
Pause
Ctrl+Pause (regardless of other modifiers like Shift and Alt)
ALT+F6 (for Windows 98)
You may assign a key that would normally invoke a menu or Help. If no
procedure is assigned, the normal action is invoked. Keys that are affected are:
Key
Accelerator Action
Ctrl+O
File Open
Ctrl+P
File Print
F1
Help Contents
Shift+F1
Context Help
F10
Alt+F4
Close Window
(Note: The window will close after the
procedure is done.)
&h01
GefModControl
&h02
GefModShift
&h04
To extract just the high order byte containing the modifier states and the low order byte
containing the key code, you can use the following sample code:
modifiers = key / 256
keycode = key mod 256
GFK-1396F
12-15
Since the modifiers are bit values, you must use the binary AND operator to test them.
Example
If modifiers And gefModAlt Then
' do something
End If
Unhighlight
Mouse Down
Mouse Up
See page12-21.
Highlight Event
Highlight triggers a procedure or calls a script after an object in CimView changes
from not highlighted to highlighted.
Object in CimView
When the Highlight event is configured for an object, a user can highlight the object
by:
Tabbing to it.
Highlight Event
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
12-16
GFK-1396F
Either:
Unhighlight Event
Unhighlight triggers a procedure or calls a script after an object in CimView changes
from highlight to unhighlight.
Object in CimView
When the Unhighlight event is configured for an object, if the object is highlighted, a
user can remove the highlight (unhighlight) the object by:
Unhighlight Event
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
GFK-1396F
12-17
Either:
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
Note: This event also occurs when a user presses Enter on the keyboard.
Mouse Down event fields include:
Action
12-18
Either:
GFK-1396F
&h04
gefControl
&h08
Parameter
Can be used if the event invokes a script. (The event can invoke a script
directly or through a procedure. See page12-6.
Mouse Up Event
Mouse Up triggers a procedure or calls a script when the left mouse button is clicked
then released.
Mouse Up Event
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
GFK-1396F
12-19
Note: This event also occurs when a user releases the Enter key on the keyboard.
Mouse Up event fields include:
Action
Either:
&h04
gefControl
&h08
Parameter
12-20
Can be used if the event invokes a script. (The event can invoke a script
directly or through a procedure. See page 12-6.
GFK-1396F
Number
specifying the
interval length
On Event tab, Properties
dialog box
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
Note: This event also occurs while a user holds Enter down on the keyboard.
While Mouse Down event fields include:
Time period
Time Type
Action
Either:
GFK-1396F
12-21
&h04
gefControl
&h08
Parameter
12-22
Can be used if the event invokes a script. (The event can invoke a script
directly or through a procedure. See page12-6.
GFK-1396F
Object Removed
See page12-24.
Smart Object
There are several notes and tips for using the Object Inserted and Object Removed
events. See page 12-25 for these notes and tips.
Also, see page 12-32 for a detailed example of configuring and using Object Inserted and
Smart Object events.
Important: Events based on inserting or removing objects are only available for the
CimEdit screen. They do not apply to CimView or any other application.
Note: The Object Inserted event is not triggered if the object is:
Inserted again by using the CimEdit Undo or Redo feature, e.g. after it has been
cut or deleted from or previously inserted in the screen.
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
GFK-1396F
12-23
Either:
Note: The Object Removed event is not triggered if the object is:
Removed again by using the CimEdit Undo or Redo feature, e.g. after it has
been inserted in or previously deleted from the screen.
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
Either:
12-24
GFK-1396F
Whenever the object is inserted, the variables are created. When the object is removed,
the variables are deleted.
Tip: Configure several objects with the ObjectInserted and / or ObjectRemoved
event on one or more CimEdit screens. Create your own object library that will display in
the Object Explorer. You can then easily find and insert them when you need them. See
"Object Libraries" in the Creating a Preliminary Layout" chapter in this manual for
more information.
Configure a SmartObject event with the same script as the Object Inserted event.
This creates SmartObjects that a designer can trigger both when the object is inserted on
a CimEdit screen and during the design process when the screen is open.
To protect your named SmartObject from being decomposed, you can save the CimEdit
screen as a runtime-only screen (.cimrt). As a result, another designer will be able to
link the protected SmartObject, but not copy it or view the code. See "CimEdit Binary,
Protected .cimrt Runtime-Only Screen" section in the "Configuring a CimEdit Screen"
chapter in this manual for more details about the .cimrt format.
Go to page (See page 12-32 for a detailed example of an object made into a SmartObject
with ObjectInserted and SmartObject events
GFK-1396F
12-25
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
Either:
Script Note: There are no parameters for the Sub OnSmart Object ()
function.
Parameter
Tip: The Object Explorer library contains several pre-configured SmartObjects that you
may want to review before you take the time to create a new SmartObject. You can also
place any SmartObjects you create in the Object Explorer library so they will be available
for frequent use.
To protect your named SmartObject from being decomposed, you can save the CimEdit
screen as a runtime-only screen (.cimrt). As a result, another designer will be able to
link the protected SmartObject, but not copy it or view the code. See "CimEdit Binary,
Protected .cimrt Runtime-Only Screen" section in the "Configuring a CimEdit Screen"
chapter in this manual for more details about the .cimrt format.
12-26
GFK-1396F
See "Object Explorer Libraries" in the "Creating a Preliminary Layout" chapter in this
manual for details about placing objects in Object Explorer libraries.
Same SmartObject Configuration dialog box that the CimEdit screen designer
uses or,
GFK-1396F
1.
2.
3.
12-27
2.
3.
12-28
GFK-1396F
See page12-21.
Periodic Event
Periodic triggers a procedure or calls a script periodically at the rate you specify in the
Time Period.
Periodic Event
Number
specifying the
interval length
On Event tab, Properties
dialog box
Time Type
Ms (milliseconds)
Sec (seconds)
Min (minutes)
Hour (hours)
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
Time Type
Action
Either:
Script Note: There are no script parameters for the Sub OnTimer ()
function.
Parameter
GFK-1396F
12-29
Screen Open
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
Either:
12-30
GFK-1396F
Example in
Procedure
Information dialog
box
Opens a
Procedure Information
dialog box
or
Edit Script window.
Either:
GFK-1396F
12-31
Configure the basic object to fill during runtime. (See page 12-32.)
Step 2.
Turn the object into a SmartObject with a SmartObject event. (See page
12-34.)
Step 3.
Step 4.
Place the SmartObject in the Object Explorer Library. (See page 12-37.)
Step 5. Test using the Object Insert event. (See page 12-37.)
Step 6.
Step 7.
12-32
1.
2.
3.
4.
GFK-1396F
3.
4.
5.
6.
7.
Result: The object is configured to fill during runtime, except that it needs a value
in order to work.
GFK-1396F
12-33
2.
12-34
3.
4.
5.
Create a script to display a dialog box with one field. The field requests a Point
ID or expression for the FillPoint variable.
GFK-1396F
GFK-1396F
12-35
6.
Script to be triggered by
SmartObject event
2.
3.
4.
Select onwizard (Script), which is the name given to the script written for
the SmartObject event.
Result: The Events tab displays the Smart Object and Insert Object events
with the same script designated for the procedure.
SmartObject Event and ObjectInserted on the Events Tab
12-36
GFK-1396F
2.
3.
4.
5.
6.
Click Save.
7.
2.
3.
GFK-1396F
4.
5.
12-37
6.
7.
Select a Point ID (e.g. an integer device point connected to a PLC) that will
display values at runtime.
You can enter any value that you can use for a variable. Therefore, you can also
enter a number or expression (e.g. 25) as the value if you do not have an active
Point ID.
The value you select displays in the Fill Point field.
8.
Click OK.
9.
CimView opens. The SmartObject displays the value of the selected Point ID
(value).
12-38
GFK-1396F
Note: It the object was not a SmartObject, the Properties dialog box would
appear.
2.
3.
Result: CimView opens. The SmartObject displays the last selected value.
GFK-1396F
12-39
2.
Result: The same SmartObject configuration dialog box that displayed in CimEdit
displays in CimView.
This functionality is part of the SmartObject event. You can suppress the
functionality in your script if you do not want an operator to open the SmartObject
Configuration dialog box.
12-40
GFK-1396F
Event
Procedure
Script
Action 1
+
+
Action n
+
Action 2
Basic language
+CIMPLICITY
extensions
Terminal Action
GFK-1396F
13-1
CimEdit Action
Command
Execute Command
Screen
Close Screen
Home Screen
Open Screen
Overlay Screen
Previous Screen
Print Screen
Method / Script
Invoke Method
Invoke Script
Setpoint
Absolute Setpoint
Ramp Setpoint
Relative Setpoint
Toggle Setpoint
Variable Setpoint
Variable
Variable Assign
All the procedures that have been configured for a screen, frame, or group to
which the object belongs are available to the object
Procedures that you configure for an object supersede any procedure with the
same name that is further up in the hierarchy.
13-2
GFK-1396F
Procedure Configuration
Procedures are very useful for anyone who configures a CimEdit screen. In fact, if you
are a screen designer without a lot of programming experience you will find working
with procedures can be a welcome alternative to writing scripts.
The core of your configuration is in the Procedure Information dialog box that you access
through the selected objects Properties dialog box.
In order to create a new procedure you:
1.
2.
Open the Procedure Information dialog box through either the Procedures or
Events tab.
2.
3.
4.
Either:
For a group
Select the Procedures tab.
For an object
A. Select the Group tab.
B. Find the object you want to configure.
C. Click the right mouse button.
D. Select Properties.
E. Select the Procedures tab from the newly opened Properties dialog box.
Note: If more than one procedure has the same name on a CimEdit screen, the procedure
associated with the object you are configuring is the one that will be triggered for the
object.
GFK-1396F
13-3
2.
3.
4.
Either:
For a group
Select the Events tab.
For an object
A. Select the Group tab.
B. Find the object you want to configure.
C. Click the right mouse button.
D. Select Properties.
E. Select the Events tab from the newly opened Properties dialog box.
5.
If this is the first event you are defining, go to Step 6. If there are other events
defined, click New to add a new event.
6.
In the Event field, select the type of event you want to define.
7.
8.
9.
Click OK.
Procedures tab: The procedure will be available for any events configured for
a group or object.
Events tab: The procedure will be associated with the event being configured.
13-4
Procedures tab
Events tab
GFK-1396F
Opens
Procedure
Information
dialog box
Example of
procedures
available for
object
2.
Click New.
The Procedure Information dialog box appears.
3.
4.
5.
6.
Make sure the actions are listed in the order that they should be executed.
7.
8.
Click OK.
Result: The Procedures tab appears with the new procedure on the list.
GFK-1396F
13-5
1 Click New.
2 Name the
procedure.
3 Configure
one or more
actions.
4 Specify the
order in the
list.
5 Click OK.
6 Repeat the procedure as many
times as you need.
The procedure names appear in a
list on the Procedure tab.
13-6
The Actions tab lets you define the procedure name and all the actions that will
be performed in the procedure.
The Advanced tab lets you enter a description, and define procedure messages
and execution conditions.
GFK-1396F
2.
3.
5.
6.
7.
Make sure the actions are listed in the order that they should be executed.
8.
9.
Close Screen
Home Screen
Overlay Screen
Previous Screen
Click OK.
The Events tab of the Procedure Information dialog box appears with the
procedure included in the list that will be triggered by the event.
GFK-1396F
13-7
1 Select an Event
Events tab
3 Name the
procedure.
4 Configure
one or more
actions.
5 Specify the
order in the
list.
6 Click OK.
Events tab
13-8
GFK-1396F
Close Screen
Home Screen
Overlay Screen
Previous Screen
Editing a Procedure
You can edit any existing procedure either through an objects:
Procedures tab.
Events tab.
2.
3.
Click Edit.
The Procedure Information dialog box opens.
4.
GFK-1396F
5.
6.
Click OK.
13-9
2.
3.
Using either method, select Edit Procedure from the popup menu.
13-10
5.
6.
Click OK.
GFK-1396F
2.
Click Rename.
4.
2.
Click Duplicate.
Object.
Event.
GFK-1396F
1.
2.
Click Delete.
13-11
2.
3.
Click Delete.
Browse:
Commands
Arguments
Screens
4
5
1 Enter one:
Command pathnamee.g. pointset.bat
Folder namee.g. C:\CIMPLICTY\docs
Document name with a registered extensione.g..HLP, .HTML
or .PPT
Web page reference
e.g. http://www.CIMPLICITY.com/
2 Additional information used by the program (usually blank)
3 Directory path to command if it is different from the screen file
directory.
4 CheckedMinimizes window associated with command.
5 CheckedRequires confirmation at runtime.
6 Opens a Text Box to enter customized confirmation message.
Invoking a web page in this manner is especially effective since it will use whatever
browser the user has configured.
13-12
GFK-1396F
Screen Actions
Actions triggered for the CimView screen include:
Action
Close Screen
Home Screen
Open Screen
Overlay Screen
Previous Screen
Print Screen
Note: Both the Home Screen and Previous Screen features rely on actual files
to work.
When you enter CimView by pressing the Test Screen button in CimEdit, CimView is
not passed a file to work with. The screen is passed in memory. Therefore, because there
are no available files for the previous or home screens, the Previous Screen and
Home Screen buttons are disabled. (This is why you dont have to save the screen
before you push the Test Screen button. Of course, it is recommended that you do. )
When you do an overlay from the test screen you have opened, the Home Screen
button is enabled. The new screen file becomes the home screenit is the first file opened.
The Previous Screen button is disabled. There is next file for the previous screen.
.
Close Screen (Terminal):
Purpose: To close the current screen.
Fields:
Check to require
confirmation at
runtime
GFK-1396F
13-13
Check to require
confirmation at
runtime
Open Screen:
Purpose: To display a different CimView screen in another window.
Fields:
Browse for a screen
1
2
3
7
8A
1
2
3
4
5
6
7
8
8B
Open Screen enables you to specify precisely what screen should open, at what zoom
relative to the current screen, in what location; you can also define variables with initial
values that the open screen will assume. However, your entries are optional. The
following procedure describes what you can enter in each field and the defaults if you do
not make an entry.
13-14
GFK-1396F
2.
Select or enter a project name in the Base project field to qualify unqualified
points.
Default: BlankPoints are not associated with a project.
3.
4.
5.
Enter the percent you want the open screen to zoom to when it opens.
Default: 100
Example
If you enter 100 the screen will open at 100% zoom. The open screen will open
to size specified on the Geometry tab in that screen's Properties dialog box.
CimView will size the window to the zoom.
6.
GFK-1396F
13-15
Qualified variable
Object
Name Variable
unqualified
variable
7.
Specify the initial position for the top left corner of the open screen as follows.
A. Select one of the three Position types.
Type
Absolute
CimView screen relative Bottom left corner (0, 0) of the current CimEdit
screen.
Positive y values move up the screen; positive x
values move to the right.
Object Relative
Note: The "event trigger object" is the object on which the event is
triggered. It is not necessarily the object through which you are configuring
the procedure.
B. Specify the x and y positions in the Position fields.
13-16
GFK-1396F
Overlay screen enables you to specify precisely what screen should overlay; you can also
define variables with initial values that the overlay screen will assume. However, your
entries are optional. The following procedure describes what you can enter in each field
and the defaults if you do not make an entry.
To configure an overlay screen action:
1.
2.
Select or enter a project name in the Base project field to qualify unqualified
points.
Default: BlankPoints are not associated with a project.
3.
4.
GFK-1396F
13-17
unqualified
variable
13-18
GFK-1396F
Check to require
confirmation at runtime
Print Screen:
Purpose: To print the current screen through the default printer.
Fields:
Check to require
confirmation at
runtime
Invoke Method
Invoke Script
Invoke Method:
Purpose: To invoke a designated method.
Fields:
Example: Trending Method
Select the object to
which the method will
be assigned
Select the method to
implement
Check to require
confirmation at
runtime
GFK-1396F
13-19
Certain automated objects support methods. When supported, the Invoke method
action is an efficient way to carry out or customize one or more results when it is
triggered by an event. CimEdit frequently needs more than basic information to carry out
a method. When it does, the Advanced button will be enabled.
Currently, methods are supported for CIMPLICITY HMI Trends, SPC Charts, Recipes,
and Alarm Viewer controls.
To configure an Invoke method method that requires advanced
configuration:
1.
2.
3.
4.
5.
6.
Follow the same procedure that you follow for any action up through selecting
the Invoke method action.
7.
8.
9.
A.
B.
A. Axis on which
the label
displays
Value entry is required.
B. Text that
displays
10. Enter an expression in the Value column that will pass as the argument for each
argument in the Name column. Your options are:
A. You must make an entry for each parameter that has a No in the Optional
field. If the argument is optional, you will see Yes in the Optional field.
Choose one of the following to pass argument values to a method:
13-20
Type
Enter
Integer
GFK-1396F
String
GFK-1396F
Check to require
confirmation at
runtime
13-21
2.
3.
Select the type of event, in the Event field, that will invoke the script.
4.
5.
6.
If the entry point you selected returns a value or contains output arguments, the
Advanced... button will be activated after you select the method.
7.
Click Advanced to open the Edit Method dialog and define this information.
Example: Entry in Edit Method Dialog Box for an Invoke Script Action
(Optional) A setpoint that contains the status
valuedevice or global Point ID Boolean point
8.
Expresion Point ID
dialog box popup
Enter an expression in the Value column that will pass as the argument for each
argument in the Name column. Your options are:
A. You must make an entry for each parameter that has a NO in the Optional
field. If the argument is optional, you will see YES in the Optional field.
Choose one of the following to pass argument values to a method:
Type
Enter
ByRef Integer
Choose either:
A Point ID
The contents of the Point ID are passed to
the method
ByRefString
13-22
GFK-1396F
(Optional) Enter a Setpoint in the Method result field if the function returns a
value. You can use a :
Device or global Point ID with the correct Point Type for the status
value.
10. Click OK to save your changes and return to the Actions property tab.
11. Click OK to save the procedure information and return to the Events tab.
12. Click OK to save the event.
Guideline: Runtime Behavior
When the script is invoked at runtime:
If you select an object name in the Object name field, then the action looks
first in the script for that object.
If you select <Event trigger object> in the Object name field, then
the action looks first in the script for the object whose event triggered the
procedure.
In either case, if the entry point does not exist in that object's script, then the action looks
for it in the script for that object's container, and so on, until it reaches the screen's script.
If the entry point is not found, the action is skipped.
See Using Scripts in this manual for more information about scripts.
GFK-1396F
13-23
Setpoint Actions
Actions using a Setpoint include:
Action
Absolute Setpoint
Ramp Setpoint
Relative Setpoint
Toggle Setpoint
Variable Setpoint
Tip: CimEdit provides you with several ways to configure setpoints. They include:
Setpoint actions described here.
Slider action checkboxes on the Movement tab in the Properties dialog box.
See "Creating a Slider Action" in the "Configuring Runtime Movement and
Animation" chapter in this manual for details about configuring slider actions.
Setpoint action checkboxes on the Text tab in the Properties dialog box.
See the "Using Text Objects to Display Point Values" section in the "applying
Inanimate Visual Features" chapter in this manual for the procedure to configure
text objects including enabling setpoint actions.
Absolute Setpoint:
Purpose: To identify a Point ID and a value to associate with the object. When the
procedure is invoked in CimView, the value will be downloaded to the Point ID.
Fields:
Point on which a
setpoint is performed
Select a Point
browser
Point ID
popup
Check to require
confirmation at
runtime
Setpoint value
for point
Important: The following restrictions apply when specifying the absolute Setpoint. The:
Value you select must be compatible with the point's type.
13-24
GFK-1396F
Ramp Setpoint:
Purpose: To let users add or subtract the standard and alternate values from the current
value of a point, then perform a Setpoint on the point using the modified value.
Fields:
Important: The following restrictions apply when using Ramp Setpoint. The:
GFK-1396F
13-25
Relative Setpoint:
Purpose: To add the offset value to the current value of the point. The result is
downloaded to the point.
Fields:
Point on which setpoint is
are performed
Select a Point
browser
Point ID popup
Number added or
subtracted from the point's
value when a user:
Clicks the Up/Down arrows
in the Default box
Presses the Up/Down arrow
keys
Check to require
confirmation at
runtime
Important: The following restrictions apply when using Relative Setpoint. The:
Toggle Setpoint:
Purpose: To toggle the current value of a Boolean point. The result is downloaded to
the point.
Fields:
Point on which a
setpoint is performed
Select a Point
browser
Point ID popup
Check to require
confirmation at
runtime
13-26
GFK-1396F
Variable Setpoint:
Purpose: To display a dialog box that prompts users for a value to download to the
point.
Fields:
Point on which a setpoint
is performed
Point ID popup
Select a Point
browser
Variable assign:
Purpose: To assign a Variable ID to a value or Point ID.
Fields:
Enter one:
Variable on which the
assignment is performed
or
Text value that is not
evaluated but is literally
substituted for the
Variable ID.
Select a Variable
browser
Variable
ID popup
GFK-1396F
Expression
dialog box
13-27
Text Boxes
Expression
dialog box
Point ID popup
Text Box
FALSE and no message is defined The system behaves as if the procedure does not
exist.
Example
If the procedure is assigned to a key, nothing will
happen when the user presses the key.
FALSE and a message is defined
13-28
GFK-1396F
If the expression contains unavailable points, a user may think a procedure exists.
However, when the user selects the procedure, the following message displays.
"The execution condition for this procedure contains unavailable
points. Would you like to execute the procedure anyway?"
If the user selects:
Yes
No
GFK-1396F
13-29
Event
Procedure
Script
Action 1
+
+
Action n
+
Action 2
Basic language
+CIMPLICITY
extensions
Terminal Action
GFK-1396F
14-1
This chapter describes how to invoke a script in CimEdit. It also defines basic extensions
that you may have used previously and provides you with the new automated alternatives.
See Basic Extensions for CimEdit for the numerous Basic extensions that have been
created for CimEdit.
In addition, CimEdit scripting has implemented several automated objects. These
automated objects can only be used by CimEdit scripts. You can create a script for any
object, group, or frame container on your CimEdit screen. You can also create a script
for the screen itself.
CimEdit scripting uses the same Editor and Basic language as the Basic Control Engine.
Anything you can do in a normal script, you can do in a CimEdit script.
Tip: If you want to use objects with the same scripts on different screens, link them.
For unlinked objects, CimEdit scripts are only accessible from the screen in which you
create them. If you have any questions on how to use the Editor or the Basic language,
consult the following documents:
For details on how to create and edit a script, see the CIMPLICITY HMI Basic
Control Engine Program Editor Operation Manual (GFK-1305).
For details on the Basic language, see the CIMPLICITY HMI Basic Control
Engine Language Reference Manual (GFK-1283).
Both of these manuals are included in the CIMPLICITY Base System library.
14-2
GFK-1396F
Script Configuration
You configure a script through an objects Properties dialog box. (An object can be the
screen, a frame, group, or object.)
Basic choices for scripting include:
CimEdit/CimView
Object ModelCimEdit and CimView object model, listing the properties, methods,
objects and enums, which can be used in CIMPLICITY and other applications, such
as C++, that have the capability to create OLE based objects.
Note: There is a notion in CimEdit of "static" objects. These are objects that have no
animations, no actions, no help text and no name. The objects are compiled into very
small representations that cannot be manipulated by the object model. In fact, they won't
even show up in the GefObjects collection.
To make a static object accessible from the object model:
For a single object
1.
2.
3.
Animation,
Action,
Help, or
Name,
then every object in that group will be accessible from the object model.
GFK-1396F
14-3
2.
Method 1
3.
4. Click Edit.
A blank Edit Script dialog box appears.
Method 2
3.
4.
Select an event.
5.
Click the Popup Menu button at the right of the Action field.
6.
Result: An Edit Script dialog box appears with an entry for the events subroutine.
When you click Edit in the Script tab, the Edit Script dialog box opens.
14-4
GFK-1396F
This window is similar to the window used by the Basic Control Engine Program Editor.
Consult the Basic Control Engine documentation if you have any operational questions.
As you create entry points in the script, they are displayed in the Script tab of the
Properties dialog box.
GFK-1396F
14-5
You define an entry point (in the scripts) for more than one of the objects containers
Then:
If:
Then:
If:
You configure a procedure to execute an Invoke script action for a particular entry
point and use the <Event trigger object> as the object to look for entry points.
Then:
Any object that implements the entry point in its script with the same parameters can use
that procedure.
Example
You have two objects.
Each object has its own script with an entry point alpha.
alpha uses one input argument and returns a status
14-6
GFK-1396F
If:
Where
GSM_GLOBAL_SCRIPT|1| is the global parameter that specifies the file(s) to be
loaded at startup.
C:\scriptpath\script1.bcl is the name of the path and script that will be
opened..
Option 2: You run CimView with the command line option:
/LoadScript scriptFileName
where
scriptFileName is a file specification) to specify a common script file. (Multiple
/LoadScript options can be given on the command line.)
Then:
A common script file can be shared among all screens loaded in CimView. Functions that
are included in this common file will be loaded when CimView is first run, and will be
callable as if they were included in the Basic code for the local screen.
If you utilize both options, CimView will load the contents of both files into memory.
The functions specified in the GSM_GLOBAL_SCRIPT file will take precedence over those
referenced by the /LoadScript option.
If you specify the /LoadScript argument for a file after CimView is already running,
its contents will be appended to the list of common functions with the lowest precedence.
Advanced procedure
GFK-1396F
1.
2.
3.
4.
Click New to create a new event, if there are already other events configured. If
there are no other events configured, go to Step 5.
5.
Select the type of event, in the Event field, that will invoke the script.
6.
Click the Popup Menu button at the right of the Action field.
14-7
7.
8.
2 Click New.
4 Select an object.
5 Select a method as a
script entry point.
6 Click Advanced to
open the Edit
Method dialog box.
9.
Click New.
10. Select Invoke script. in the Action type field, The Object name is
automatically set to Event trigger object.
11. Select the entry point in the script that you want to assign to the object in the
Method field.
12. Click Advanced if the button is enabled. This means the function returns a
value that contains output arguments.
The Edit Method dialog box opens.
13. Click OK when you have completed configuration to save the event.
14-8
GFK-1396F
Method's
parameters
2.
Parameter
type
Entry is required
Expression
dialog box
Enter an expression in the Value column that will pass as the argument for each
argument in the Name column. Your options are:
A. You must make an entry for each parameter that has a NO in the Optional
field. If the argument is optional, you will see YES in the Optional field.
Choose one of the following to pass argument values to a method:
Type
Enter
ByRef Integer
ByRef String
GFK-1396F
14-9
3.
(Optional) Enter a setpoint in the Method result field if the function returns a
value. You can use a :
Device or global point ID with the correct Point Type for the status value.
Variable ID that evaluates to a point ID. If you use a variable ID that does
not evaluate to a point ID, nothing happens.
4.
5.
Click OK to save the procedure information and return to the Events tab.
6.
If you select an object name in the Object name field, then the action looks
first in the script of that object.
If you select Event trigger object in the Object name field, then the action
looks first in the script of the object whose event triggered the procedure.
In either case, if the entry point does not exist in that object's script, then the action looks
for it in the script of that object's container, and so on, until it reaches the screen's script.
If the entry point is not found, the action is skipped.
14-10
GFK-1396F
Script,
2.
3.
you can use the Test feature of CimEdit to debug the procedure.
2.
Invoke the event that will start the script you want to test.
When Basic comes to the first breakpoint in the script, it opens the Debug Script
window.
3.
Edit the code, change break points, recompile, restart, step into functions
etc. in the Debug Script window. However, if you change the entry point
that was called from the procedure, you will not be able to restart the script.
Open the Properties dialog box of an object and make changes to the script.
However, you can not execute the script from this editor.
4.
Save the changed script in CimView to send the updated script back to CimEdit
immediately. This does not save the script to the screen file.
5.
Return to CimEdit.
6.
Important: It is recommended that you close the Debug Script window before exiting
Test Screen mode, or before going back to CimEdit and using the Test Screen button
again.
GFK-1396F
14-11
Replaced By
cimEvent (constant)
CimGetEventContext (function)
CimEvent (object)
CimGetEvent (function
CimGetEventContext (function)
CimGetRootObject (function)
CimGetScreen (function)
CimGetScriptOwner (function)
CimGetObject (function)
CimObject (object)
CimObjectVariable (object)
cimOwnerObject (constant)
CimGetObject (function)
14-12
GFK-1396F
Basic Extensions
Basic extensions include:
CimCreateSafeArray (function)
CimEdit (function)
CimGetEventContext (function)
CimGetObject (function)
CimGetScreen (function)
cimOleObj (constant)
CimView (function)
CimCreateSafeArray (function)
Syntax
CimSafeArray = CimCreateSafeArray()
Description
Status
Comments
Example
GFK-1396F
14-13
CimEdit (function)
Syntax
GefApplication = CimEdit ()
Description
Status
Example
CimGetEventContext (function)
Syntax
GefEventContext = CimGetEventContext ( )
Description
Status
Example
Dim ev As GefObjectModel.GefEventContext
Dim x As Long
Dim y As Long
Dim flags As Long
Set ev = CimGetEventContext()
If ev.GetMouseEvent(x, y, flags) Then
'Center Object on mouse coordinates
x = x - ev.TriggerObject.Width / 2
y = y + ev.TriggerObject.Height / 2
ev.TriggerObject.Left = x
ev.TriggerObject.Top = y
ev.Parent.Refresh False
End If
CimGetObject (function)
Syntax
GefObject = CimGetObject ( )
Description
Status
Example
14-14
GFK-1396F
CimGetScreen (function)
Syntax
GefScreen = CimGetScreen ( )
Description
Status
Example
CimGetScreen().Refresh True
cimOleObj (constant)
Syntax
cimOleObj
Description
or as:
Private cimOleObj As ObjTypeLib.ObjType
Type
Object
Example
cimOleObj.Value = 10
CimView (function)
Syntax
GefApplication = CimView ( )
Description
Status
Example
GFK-1396F
14-15
Comments
Replaced by a GefScreen.Refresh
Boolean = CimAutoUpdateScreen (AutoUpdate)
Turns AutoUpdate on when set to TRUE and off when set to
FALSE.
Returns a Boolean representing the previous state of the
Auto Update flag.
The AutoUpdate parameter is a Boolean specifying the new
state of the Auto Update flag.
AutoUpdate is set to TRUE by default when a script starts
running. While Auto Update is True, if the value of a
CimObjectVariable changes, the screen is
synchronously updated, and any CimObjects that are
animated by the variable are changed before the value set
returns.
CimEvent (object)
Obsolete
Overview
Example
14-16
Replaced by a GefEventContext
Represents the event in CimView that caused the script to be
run.
Dim event As CimEvent
Set event = CimGetEvent()
GFK-1396F
CimEvent.GetMouseEvent (function)
Obsolete
Syntax
Description
Replaced by a GefEventContext
CimEvent.GetMouseEvent(xPos, yPos, mouseFlags)
Retrieves information about the mouse. Returns a Boolean
indicating if the mouse parameters retrieved are valid. This
will only return TRUE if the event type is
CIM_ET_MOUSE_DOWN or CIM_ET_MOUSE_UP or
CIM_ET_WHILE_MOUSE_DOWN.
Comments
CIM_MF_SHIFT.
GFK-1396F
14-17
CimEvent.GetOleParmName (function)
Obsolete
Replaced by a GefEventContext
Syntax
Description
CimEvent.GetOleParmName(parmIndex%)
Comments
Example
14-18
GFK-1396F
CimEvent.GetOleParm (function)
Obsolete
Replaced by a GefEventContext
Syntax
CimEvent.GetOleParm(parmIndex%)
CimEvent.GetOleParm(parmName$)
Description
Comments
Example
Dim Ev As CimEvent
Dim Var As Variant
Set Ev = CimGetEvent()
If Ev.Type = CIM_ET_OLE_EVENT Then
Count% = Ev.OleParmsCount
Index% = 0
While Index% < Count%
Var = Ev.GetOleParm(Index%)
Do Stuff with the parameter.
Index% = Index% + 1
Wend
x% = Ev.GetOleParm("xPos")
y% = Ev.GetOleParm("yPos")
End If
Replaced by a GefEventContext
Syntax
Description
CimEvent.OleParmsCount
Example
GFK-1396F
14-19
Replaced by a GefEventContext
Syntax
Description
CimEvent.TriggerObject
Example
Example
Replaced by a GefEventContext
CimEvent.Type
Returns an Integer representing the type of event.
The type is one of the following values:
CIM_ET_NONE
CIM_ET_MOUSE_DOWN
CIM_ET_MOUSE_UP
CIM_ET_KEY_DOWN
CIM_ET_KEY_UP
CIM_ET_WHILE_MOUSE_DOWN
CIM_ET_WHILE_KEY_DOWN
CIM_ET_TIMED
CIM_ET_EXPRESSION_HIGH
CIM_ET_EXPRESSION_UPDATE
CIM_ET_SCREEN_OPEN
CIM_ET_SCREEN_CLOSE
CIM_ET_OLE_EVENT
Dim Ev As CimEvent
Set Ev = CimGetEvent()
If Ev.Type = CIM_ET_SCREEN_OPEN Then
...
14-20
Obsolete
Replaced by a GefEventContext
Syntax
CimEvent.UserParameter)
Description
Example
GFK-1396F
CimGetEvent (function)
Obsolete
Replaced by a GefEventContext
Syntax
Description
Example
CimGetEvent()
CimGetRootObject (function)
Obsolete
Replaced by CimGetScreen
Syntax
Description
Example
CimGetRootObject()
CimGetScriptOwner (function)
Obsolete
Syntax
Description
Example
Replaced by CimGetObject
CimGetScriptOwner()
Returns the CimObject that owns the script.
Dim Obj As CimObject
Set Obj = CimGetScriptOwner()
CimObject (object)
Obsolete
Description
Example
Replaced by a GefObject
Represents a visual object on the screen.
Dim Obj As CimObject
Set obj = CimGetEvent().TriggerObject
Replaced by a GefObject
Syntax
Description
CimObject.Container
Example
GFK-1396F
14-21
CimObject.GetObject (method)
Obsolete
Replaced by a GefObject
Syntax
CimObject.GetObject(index)
Description
CimObject.GetObject(name$)
Comments
Example
14-22
GFK-1396F
CimObject.GetVariable (method)
Obsolete
Replaced by a GefObject
Syntax
CimObject.GetVariable(name$))
Description
Comments
Example
Replaced by a GefObject
Syntax
CimObject.Name)
Description
Example
Replaced by a GefObject
Syntax
Description
CimObject.ObjectCount
Example
GFK-1396F
14-23
Replaced by a GefObject
Syntax
Description
CimObject.OleObject
Example
CimObjectVariable (object)
Obsolete
Description
Example
Replaced by a GefObjectVariable
Represents an object variable on a CimView screen.
Dim
Dim
Set
Set
rotorVar As CimObjectVariable
Obj As CimObject
Obj = CimGetScriptOwner()
rotorVar = Obj.GetVariable("RotorNum")
CimObjectVariable.GetValueAsNumber (method)
Obsolete
Replaced by a GefObjectVariable
Syntax
Description
Comments
CimObjectVariable.GetValueAsNumber()
CimObjectVariable.GetValueAsString (method)
Obsolete
Replaced by a GefObjectVariable
Syntax
Description
CimObjectVariable.GetValueAsString()
14-24
Obsolete
Replaced by a GefObjectVariable
Syntax
Description
Example
CimObjectVariable.ID
GFK-1396F
Replaced by a GefObjectVariable
Syntax
Description
CimObjectVariable.Value
Comments
Example
CimOwnerObj (constant)
Obsolete
Replaced by CimGetObject
Syntax
Description
cimOwnerObj
Type
Example
GFK-1396F
14-25
GFK-1396F
15-1
on the toolbar.
2.
Your mouse pointer changes to into a bracket when you use either method.
Move the bracket to the area of the screen where you want to place the control
and click the mouse. The Insert Object dialog box opens.
2.
Select the ActiveX tab to see the list of all ActiveX controls installed on your
computer.
Select an ActiveX
Control
15-2
3.
4.
Click OK. The selected ActiveX control is placed on your CimEdit screen.
GFK-1396F
2.
3.
2.
3.
Select Properties.
2.
Press Alt+Enter.
Result: The Object Properties dialog box opens when you use any method.
Note: The Object Properties dialog box that opens is the same dialog box you use for all
standard CIMPLICITY objects.
The CIMPLICITY Object Properties dialog box lets you integrate the ActiveX control
with a CIMPLICITY HMI project. This means that by changing CIMPLICITY object
properties, you can make this ActiveX control interact with a CIMPLICITY project by
displaying values, or by allowing a user to set points, open screens, etc.
GFK-1396F
15-3
If the ActiveX control's custom properties are available only in a separate dialog box, the
menu tabs that appear in the Object Properties dialog box are the same as the tabs for any
object.
If the ActiveX control's custom properties are available through the Object Properties
dialog box, the Control Properties tab appears:
2.
2.
15-4
1.
2.
If the ActiveX control has a submenu, move the mouse cursor to the right to
display the submenu.
GFK-1396F
Select Properties to open the ActiveX Control Properties dialog box for this
ActiveX control.
Note: Remember that the ActiveX Control Properties dialog box for each ActiveX
control is different. The following shows you the dialog box for a CIMPLICITY AMV
ActiveX control.
Use the ActiveX Control Properties dialog box to change the look and feel of the control.
Depending on what options the developer of the control has allowed, you may be able to
change a wide variety of properties for an ActiveX control, including colors, depth, fonts,
sizes, and other properties. See the documentation that comes with the ActiveX control
for detailed configuration information.
GFK-1396F
15-5
2.
3.
2.
3.
Select Properties.
2.
Press Alt+Enter.
Result: If the control allows it, you will see a Control Properties tab in the Object
Properties dialog box.
You can use the Control Properties tab in the control's Properties dialog box to change
the appearance of the control. For example, the Control Properties for the Microsoft
Forms 2.0 Textbox Control looks like this:
15-6
GFK-1396F
AMV Control.
Recipe Control.
SPC Control.
Trend Control.
XY Plot Control.
Tip: Also take advantage of CIMPLICITY HMI's many SmartObjects, such as gauges,
that enable you to quickly create and use tools for tracking project data, such as current
point values. See "SmartObject Inserted from the Object Explorer" in the "Creating a
Preliminary Layout" chapter in this manual for details about inserting CIMPLICITY
SmartObjects on a CimEdit screen.
Note: The CIMPLICITY Trend control provides you with the tools to configure Trend
charts that display detailed expression, logged and reference data. See the CIMPLICITY
Trend and XY Chart Operation Manual for detailed information about configuring the
CIMPLICITY Trend Control.
The steps for creating a simple Trend chart are:
GFK-1396F
Step 1.
Step 2.
Step 3.
Step 4.
Step 5.
Step 6.
15-7
2.
Move the cursor to the spot on the CimEdit screen where you want to place the
control and click the left mouse button.
3.
4.
5.
on the Toolbar.
2.
15-8
GFK-1396F
4.
Name the
ActiveX
control
5.
Click OK.
Result: The Properties Object dialog box closes. The Trend control is named
Trend.
Step 3. Create a trend line:
1.
2.
3.
5.
GFK-1396F
15-9
6.
Select Tank1.
7.
Click OK.
The Lines tab displays the default configuration for the Quick Line.
Line color
Tank 1 using
Quick Line
default
Expression
line type.
15-10
GFK-1396F
2.
3.
2.
GFK-1396F
15-11
3.
4.
Click OK.
Result: The axes are configured, using the defaults for all other settings.
Step 5. Configure the Legend font size:
1.
2.
Click Font.
The Font dialog box opens.
3.
15-12
GFK-1396F
4.
Click OK.
The Legend is configured, using the defaults for all other settings.
5.
Click OK
Red
expression
line
Size 9 font for Axis and Legend
GFK-1396F
15-13
Result: The Trend chart displays the Tank1 expression line in CimView.
CIMPLICITY Trend Control Displayed in CimView
Blue Chart
Y axis
Red
expression
line
Size 9 font for Axis and Legend
15-14
GFK-1396F
2.
3.
Listing depends on
the selected object
GFK-1396F
1.
2.
3.
15-15
2.
3.
Listing depends on
the selected object
15-16
1.
2.
3.
GFK-1396F
2.
3.
Listing depends on
the selected object
GFK-1396F
1.
2.
3.
15-17
4.
Select either:
Convert to
Activate as
5.
Select the type from the available options in the Object Type box. The options
depend on the selected object.
6.
Click OK.
15-18
GFK-1396F
GFK-1396F
16-1
They may only be used in applications, like CimView, which directly display
point data.
16-2
GFK-1396F
Display the Point ID popup menu in any CimEdit Point or Expression Edit
fields.
2.
GFK-1396F
2.
(Optional) Enter a remote Project name for fully qualified projects in the
Project field.
3.
Enter the CIMPLICITY HMI Device from which the data will be collected.
4.
Enter the Type of CIMPLICITY HMI data to be collected (e.g., INT, BOOL, or
REAL).
5.
6.
16-3
7.
Check the appropriate radio button to select the data associated with the address:
Device
Diagnostic
8.
Enter the bit Offset for the address if the point is a BOOL, BYTE, or WORD
point. The default is 0.
9.
10. Enter the multiple of the device Scan rate at which the data will be collected.
The default is 1.
11. Click OK.
Point by Address Dialog Box Entries appearing in a Properties Dialog Box Example
2 CimEdit automatically
fills in the Point by
Address field based
on entries in the Point
by Address dialog
box.
1 Click.
'\\CIMPDEMO\@DEVICE=S90_TCP1|ADDR=3.26.6.208|TYPE=INT|ACCESS=READ'
Entry in Expression field
Note: If the Point by Address entry is dimmed on the popup menu, it is not supported.
16-4
GFK-1396F
ADDR (required)
TYPE (optional)
SCAN (optional)
OFFSET (optional)
ACCESS (optional)
ELEM (optional)
ORIGIN (optional)
GFK-1396F
16-5
The keywords may be specified in any order, but the required keywords must be
included. Thus, the following are acceptable Point by Address descriptions:
@TYPE=BOOL|DEVICE=DEV03|ADDR=%R100|OFFSET=3|ELEM=4
@ADDR=%R100|DEVICE=DEV04|TYPE=REAL|SCAN=4|ACCESS=WRITE
@DEVICE=DEV05|ADDR=%M100
@DEVICE=MYDEV
DEVICE=MYDEV|ADDR=%R100
(missing @ sign)
(integer point types cannot have a device
address offset)
@DEVICE=DEV99|ADDR=%R1|OFFSET=4
Within a point expression, Point by Address descriptors must be quoted; thus, you could
display the sum of two registers in CimView:
'@DEVICE=MYDEV|ADDR=%R10' + '@DEVICE=MYDEV|ADDR=%R11'
16-6
GFK-1396F
2.
3.
Enter the Point ID and attribute you want to display using the following syntax.
Review
'<POINT_ID>.<ATTRIBUTE_ID>'
where
<POINT_ID> is the Point ID of any configured point
<ATTRIBUTE_ID> is one of the attributes given in the table below.
Important: You must enclose the syntax in single quotes, because the '.' character is a
special character.
GFK-1396F
17-1
3. Enter a '<PointID>.<Attribute>'
4. Click OK
Address
CimView
%R750
The list of attributes in this chapter specifies the type of value that each attribute
returns, e.g. integer, character. Use the basic syntax to return the value, as
specified.
Examples
'GEF_DEMO_PT.DESCRIPTION'
'GEF_DEMO_PT.ALARM_HIGH'
You can force an expression to return a numeric value, if the value is a number
but the attribute is listed as returning a character. You use the operator VAL to
do this.
Example
VAL('DEV1750.ALARM_HIGH')+VAL(DEV1900.ALARM_HIGH')
17-2
Some of the attributes are specific to points of a particular type. Valid point
types, which are specified in the attribute list, are:
Device
Derived (Virtual)
Global (Virtual)
GFK-1396F
GFK-1396F
A-1
BNF Syntax
The following elements define the BNF syntax.
<AnyAction> ::=
<GmmiFileOpenAction>
| <GmmiPrevScreenAction>
| <GmmiHomeScreenAction>
| <GmmiFileCloseAction>
| <GmmiExecAction>
| <GmmiAbsoluteSetpointAction>
| <GmmiInvokeDispMethodAction>
| <GmmiRelativeSetpointAction>
| <GmmiRampSetpointAction>
| <GmmiVariableSetpointAction>
| <GmmiToggleSetpointAction>
| <GmmiInvokeScriptAction>
| <GmmiVariableAssignAction>
| <GmmiPrintScreenAction>
<AnyAttributeAnim> ::=
<GmmiFillAnim>
| <GmmiExprValueAnnun>
| <GmmiDefaultAnnun>
| <GmmiExprAnnun>
| <GmmiValueAnim>
| <GmmiVisibilityAnim>
<AnyEventList> ::=
<KeyDownEventList>
| <KeyUpEventList>
| <OleEventList>
| <WhileKeyDownEventList>
| <TimedEventList>
| <ExprEventList>
<AnyObject> ::=
<GmmiLineObject>
| <GmmiRectShapeObject>
| <GmmiEllipseShapeObject>
| <GmmiTextObject>
| <GmmiGroupObject>
| <GmmiOleObject>
| <GmmiTextButtonObject>
| <GmmiArcObject>
| <GmmiFAContainerObject>
| <GmmiFAFrameObject>
Note: a <GmmiFAFrameObject> can only appear in a <GmmiFAContainerObject>
A-2
GFK-1396F
<AnyPositionAnim> ::=
<GmmiHorizMoveAnim>
| <GmmiVertMoveAnim>
| <GmmiRotateAnim>
| <GmmiHorizScaleAnim>
| <GmmiVertScaleAnim>
<AnySingleEvent> ::=
<GmmiMouseUpEvent>
| <GmmiMouseDownEvent>
| <GmmiWhileMouseDownEvent>
| <GmmiScreenOpenEvent>
| <GmmiScreenCloseEvent>
<AttributeAnimationTable> ::=
"(" GmmiOptionTable
{<AnyAttributeAnim>}+ ")"
<Bool> ::=
<number>
<Empty> ::=
This non-terminal is used for emphasis to
designate that nothing should appear.
<EventOptionTable> ::=
"(" GmmiOptionTable
{<AnySingleEvent>}*
{<AnyEventList>}* ")"
<ExecCond> ::=
<ExprEventList> ::=
"(" GmmiOptionTable
{<GmmiExprHighEvent> |
<GmmiExprUpdateEvent> }+ ")"
<FillMode> ::=
<mode.number>
GFK-1396F
A-3
<GmmiAbsoluteSetpointAction> ::=
"(" GmmiAbsoluteSetpointAction
<GmmiSetpointAction> <PointValue>
")"
<GmmiAction> ::=
<flags.number>
Confirm
<GmmiActionAnim> ::=
Valid flags are:
0x02
0x04
A-4
<GmmiExprAnim> <flags.number>
<ExecCond>
<GmmiActionList> ::=
<GmmiAnnunOptionTable> ::=
"(" GmmiOptionTable
[<GmmiColorAnnunAttr>]
[<GmmiTextAnnunAttr>]
[<GmmiBlinkAnnunAttr>]
[<GmmiInteriorAnnunAttr>]
[<GmmiBorderAnnunAttr>]
[<GmmiFontAnnunAttr>]")"
<GmmiArcObject> ::=
"(" GmmiArcObject
<GmmiGraphicObject> <GRArc> ")"
<GmmiBackdrop> ::=
"(" GmmiBackdrop
<border.GRBorderAttr>
<interior.GRInteriorAttr> ")"
<GmmiBlink> ::=
<GmmiBlinkAnnunAttr> ::=
GFK-1396F
<GmmiBorderAnnunAttr> ::=
"(" GmmiBorderAnnunAttr
<flags.number> <line.GRBorderAttr>
")"
0x0002
0x0004
<GmmiButtonObject> ::=
<GmmiGraphicObject>
<GmmiColorAnnunAttr> ::=
"(" GmmiColorAnnunAttr
<color.GRColorAttr> ")"
<GmmiContainer> ::=
"(" GmmiContainerObject
<GmmiObject> "("
GmmiObjectPtrList {<AnyObject>}*
")" <flags.number>
[<overrideInterior.GRInteriorAttr>]
[<overrideBorder.GRBorderAttr>]
[<overrideFont.GRFontAttr>]
<GmmiBackdrop> ")"
<GmmiDefaultAnnun> ::=
"(" GmmiDefaultAnnun
<pointID.string> <element.number>
<type.number> ")"
"(" GmmiDocumentObject
<GmmiContainer> ")"
<GmmiEllipseShapeObject> ::=
"(" GmmiEllipseShapeObject
<GmmiGraphicObject>
<GRSimpleRect> ")"
<GmmiEvent> ::=
"(" GmmiEvent
<actionFlags.number>
<procedureName.string> |
<GmmiInvokeScriptAction>
<userParameter.string> ")"
GFK-1396F
A-5
<GmmiExecAction> ::=
Minimize
<GmmiExpr> ::=
<GmmiExprAnim> ::=
"(" GmmiExprAnnun
<count.number>
{<GmmiExprAnnunElement> }* ")"
There must be exactly count <GmmiExprAnnunElement> entries.
<GmmiExprAnnun> ::=
<GmmiExprAnnunElement> ::=
"(" GmmiExprAnnunElement
<GmmiExprAnim>
<GmmiAnnunOptionTable> ")"
<GmmiExprEvent> ::=
<GmmiExprHighEvent> ::=
"(" GmmiExprHightEvent
<GmmiExprEvent> ")"
<GmmiExprUpdateEvent> ::=
"(" GmmiExprUpdateEvent
<GmmiExprEvent> ")"
<GmmiExprValueAnnun> ::=
"(" GmmiExprValueAnnun
<GmmiExprAnim> ")"
"(" GmmiFAContainerObject
<GmmiContainer> <FillMode>
<fillInterior.GRInteriorAttr> ")"
Note: A GmmiFAContainerObject only contains GmmiFAFrameObjects
<GmmiFAContainerObject> ::=
A-6
GFK-1396F
<GmmiFAFrameObject> ::=
"(" GmmiFAFrameObject
<GmmiContainer>
<frameSelector.GmmiExpr> <FillMode>
<fillInterior.GRInteriorAttr> ")"
<GmmiFileCloseAction> ::=
"(" GmmiFileCloseAction
<GmmiAction> ")"
<GmmiFileOpenAction> ::=
"(" GmmiFileOpenAction
<GmmiAction> <pathname.string>
<flags.number> <position.Point>
<zoom.number> <project.string> ")"
<GmmiFillAnim> ::=
<GmmiFontAnnunAttr> ::=
"("
GmmiFontAnnunAttr<flags.number>
<font.GRFontAttr>")"
GFK-1396F
<GmmiGraphicObject> ::=
<GmmiObject>
<GmmiGroupObject> ::=
"(" GmmiGroupObject
<GmmiContainer> <FillMode>
<fillInterior.GRInteriorAttr> ")"
<GmmiHomeScreenAction> ::=
"(" GmmiHomeScreenAction
<GmmiAction> ")"
<GmmiHorizMoveAnim> ::=
"(" GmmiHorizMoveAnim
<GmmiMoveAnim> ")"
A-7
<GmmiHorizScaleAnim> ::=
"(" GmmiHorizScaleAnim
<GmmiScaleAnim> ")"
<GmmiInteriorAnnunAttr> ::=
"(" GmmiInteriorAnnunAttr
<flags.number> <fill.GRInteriorAttr>
")"
A-8
<GmmiInvokeDispMethodAction> ::=
"(" GmmiInvokeDispMethodAction
<GmmiAction> <objectName.string>
<methodName.string>
<GmmiParameterBlock> ")"
<GmmiInvokeScriptAction> ::=
"(" GmmiInvokeScriptAction
<GmmiAction> <objectName.string>
<scriptEntryPointName.string>
<GmmiParameterBlock> ")"
<GmmiKeyDownEvent> ::=
"(" GmmiKeyDownEvent
<GmmiKeyEvent>")"
<GmmiKeyEvent> ::=
<GmmiKeyUpEvent> ::=
"(" GmmiKeyUpEvent
<GmmiKeyEvent> ")"
<GmmiLineObject> ::=
"(" GmmiLineObject
<GmmiGraphicObject> <GRPolyLine>
")"
GFK-1396F
<GmmiMethodParam> ::=
<paramType.number> <GmmiExpr>
Where paramType is one of:
0
Empty parameter
1
Input parameter
2
Output parameter: A set-point will be performed on a point.
3
Method result: A set-point will be performed on a point.
<GmmiMouseDownEvent> ::=
"(" GmmiMouseDownEvent
<GmmiEvent> ")"
<GmmiMouseUpEvent> ::=
"(" GmmiMouseUpEvent
<GmmiEvent> ")"
<GmmiMoveAnim> ::=
<GmmiActionAnim> <offset.number>
Slider Animation
Confirm Silder
<GmmiObject> ::=
GFK-1396F
<GmmiOleEvent> ::=
<GmmiOleObject> ::=
"(" GmmiOleObject
<GmmiGraphicObject>
<GROleGraphic> ")"
<GmmiParameterBlock>::=
"(" GmmiParameterBlock
<countParams.number>
{<GmmiMethodParam>}* ")"
<GmmiPoint> ::=
<GmmiPointMap> ::=
A-9
<GmmiPrevScreenAction> ::=
"(" GmmiPrevScreenAction
<GmmiAction> ")"
<GmmiPrintScreenAction> ::=
"(" GmmiPrintScreenAction
<GmmiAction> ")"
<GmmiProcedure> ::=
"(" GmmiProcedureMap
{<GmmiProcedure>}* ")"
<GmmiRampSetpointAction> ::=
"(" GmmiRampSetpointAction
<GmmiRelativeSetpointAction>
<altValue.number> <flags.number> ")"
A-10
<GmmiRectShapeObject> ::=
"(" GmmiRectShapeObject
<GmmiGraphicObject>
<GRSimpleRect> ")"
<GmmiRelativeSetpointAction> ::=
"(" GmmiRelativeSetpointAction
<GmmiSetpointAction> <value.number>
")"
<GmmiRotateAnim> ::=
"(" GmmiRotateAnim
<GmmiExprAnim> <centerOffset.Point>
<minAngle.number>
<maxAngle.number> ")"
GFK-1396F
<GmmiScaleAnim> ::=
<GmmiExprAnim>
<scaleOrigin.number>
<scaleFactor.number>
<GmmiScreenOpenEvent> ::=
"(" GmmiScreenOpenEvent
<GmmiEvent> ")"
<GmmiScreenCloseEvent> ::=
"(" GmmiScreenCloseEvent
<GmmiEvent> ")"
<GmmiScript> ::=
<GmmiSetpointAction> ::=
"(" GmmiSetpointAction
<GmmiAction> <pointID.string>
<element.number> <flags.number> ")"
GFK-1396F
<GmmiTabOrder> ::=
<GmmiTextAnnunAttr> ::=
"(" GmmiTextAnnunAttr
<text.string> ")"
<GmmiTextButtonObject> ::=
"(" GmmiTextButtonObject
<GmmiButtonObject><GRTextButton>
")"
<GmmiTextObject> ::=
"(" GmmiTextObject
<GmmiGraphicObject> <GRText> ")"
<GmmiTimedEvent> ::=
A-11
<GmmiToggleSetpointAction> ::=
"(" GmmiToggleSetpointAction
<GmmiSetpointAction> ")"
<GmmiValueAnim> ::=
"(" GmmiValueAnim
<GmmiExprAnim> <format.string>
<formatType.number> ")"
Where format is a
1
2
3
4
5
6
7
No format
Configured
Custom
General
Integer
Text
Real
<GmmiVariableAssignAction> ::=
A-12
"(" GmmiVariableAssignAction
<GmmiAction> <variableID.string>
<value.string> <flags.number> ")"
"(" GmmiVariables
{<GmmiVariables>}* ")"
<GmmiVariables> ::=
"(" GmmiVariables
<variableID.string> <value.string> ")"
<GmmiVariableSetpointAction> ::=
"(" GmmiVariableSetpointAction
<GmmiSetpointAction> ")"
<GmmiVertMoveAnim> ::=
"(" GmmiVertMoveAnim
<GmmiMoveAnim> ")"
<GmmiVertScaleAnim> ::=
"(" GmmiVertScaleAnim
<GmmiScaleAnim> ")"
<GmmiVisibilityAnim> ::=
"(" GmmiVisibilityAnim
<GmmiExprAnim> ")"
<GmmiWhileKeyDownEvent> ::=
"(" GmmiWhileKeyDownEvent
<GmmiKeyEvent>
<eventFrequencyMS.number> ")"
GFK-1396F
GFK-1396F
<GmmiWhileMouseDownEvent> ::=
"(" GmmiWhileMouseDownEvent
<GmmiEvent>
<eventFrequencyMS.number> ")"
<GRArc> ::=
<GRShape> <GRArcDim>
<GRArcDim> ::=
<GRRectShapeDim>
<startAngle.number>
<endAngle.number>
<GRAttrib> ::=
<Empty>
<GRBitmapButton> ::=
<GRButton>
<bitmapButtonFlags.number>
<bitmapSize.size>
<GRBorderAttr> ::=
<GRBorderRes> ::=
<GRObjRes> <GRBorderAttr>
<GRBoundGraphic> ::=
<GRGraphic>
<GRButton> ::=
<GRBoundGraphic>
<face.GRInteriorRes>
<buttonFlags.number>
<GRColorAttr> ::=
<GRColorObjAttr> ::=
<GRObjAttr> <GRColorAttr>
<GRFontAttr> ::=
A-13
<GRFontRes> ::=
<GRObjRes> <GRFontAttr>
<GRGraphic> ::=
<GRInteriorAttr> ::=
A-14
<GRInteriorRes> ::=
<GRObjRes> <GRInteriorAttr>
<GRObjAttr> ::=
<Empty>
<GRObjRes> ::=
<Empty>
<GROleClientItem> ::=
"("GROleClientItem
<itemNumber.number> ")"
<GROleControl> ::=
<GROleGraphic> ::=
<GROleGraphicData> ::=
<GROleControl> | <GROleClientItem>
<GRPolyLine> ::=
<GRShape> <PointArray>
<lineFlags.number> "("Arrow
<arrowWidth0.number>
<arrowLength0.number>
<arrowStyle0.number> ")" "("Arrow
<arrowWidth1.number>
<arrowLength1.number>
<arrowStyle1.number> ")"
<GRRectShapeDim> ::=
GFK-1396F
GFK-1396F
<GRResource> ::=
<Empty>
<GRShape> ::=
<GRBoundGraphic>
<GRShapeResources>
<GRShapeResources> ::=
<GRBorderRes>
<interior.GRInteriorRes>
<fillInterior.GRInteriorRes>
<fillMode.number>
<percentFill.number>
<GRSimpeRect> ::=
<GRShape> <GRRectShapeDim>
<GRText> ::=
<GRGraphic> <GRTextAttributes>
<GRTextAttributes> ::=
<GRFontAttr> <GRInteriorRes>
<GRBorderRes> <textAlign.number>
<textAnchor.Point> <text.string>
<GRTextButton> ::=
<GRButton> <GRText>
<Help> ::=
<HexBlob> ::=
<KeyDownEventList> ::=
"(" GmmiOptionArray {
<GmmiKeyDownEvent> }+ ")"
<KeyUpEventList> ::=
"(" GmmiOptionArray {
<GmmiKeyUpEvent> }+ ")"
<OleCurrency> ::=
"(" OleCurrency
<currencyValue.string> ")"
<OleDate> ::=
<OleEventList> ::=
"(" GmmiOptionArray {
<GmmiOleEvent> }+ ")"
<OleI64> ::=
<OleItemData> ::=
"(" GROleClientItem
<itemNumber.number> <HexBlob> ")"
A-15
A-16
<OlePropBag> ::=
<OlePropStream> ::=
"(" OlePropStream
<objectCLSID.guid> <HexBlob> ")"
<OleSafeAray> ::=
"(" OleSafeArray
<elementType.number>
<dimensionCount.number> {"("
OleArrayBound
<lowerBound.number>
<elementCount.number> ")" }+ {
<PropElementData> }+ ")"
<OleU64> ::=
<Point> ::=
<PointArray> ::=
<PointAttr> ::=
255
| <type.number>
<length.number><elements.number>
<PointValue> ::=
<value.number> | <value.string>
<PositionAnimationTable> ::=
"(" GmmiOptionTable
{<AnyPositionAnim>}+ ")"
<PropElement> ::=
<propName.string>
<PropElementData>
GFK-1396F
<PropElementData> ::=
<numValue.number>
| <strValue.string>
| <OlePropBag>
|<OlePropStream>
|<OleCurrency>
|<OleDate>
|<OleI64>
|<OleU64>
|<OleSafeArray>
<Rect> ::=
<RootOptionTabet> ::=
GFK-1396F
<Scaler> ::=
<xNum.number> <yNum.number>
<xDen.number> <yDen.number>
<Size> ::=
<TextFileFormat> ::=
<TimedEventList> ::=
"(" GmmiOptionTable
{<GmmiTimedEvent>}+ ")"
<ToplevelDocument> ::=
"(" GmmiToplevelDocument
<GmmiDocument>
<initialPosition.Point> <Size>
<zoom.number> ")"
<ToplevelDocumentPO> ::=
<GmmiPointMap>
<ambientForeground.GRColorAttr>
<ambientBackground.GRColorAttr>
<ambientFont.GRFontAttr>
<GmmiProcedureMap>
<WhileKeyDownEventList> ::=
"(" GmmiOptionArray {
<GmmiWhileKeyDownEvent> }+ ")"
A-17
Token Syntax
Here is the modified BNF syntax for tokens. Tokens (except for <string>) may not
contain embedded whitespace.
<alpha-char> ::=
<digit> ::=
"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
<exponent-char> ::=
<guid> ::=
"{"xxxxxxxx"-"xxxx"-"xxxx"-"xxxx"-"
xxxxxxxxxxxx"}"
where x == <hex-digit>
<hex-digit> ::=
<mantissa> ::=
<named-char> ::=
Named characters use the ISO 1064 naming convention for characters. Convenience
names for some characters are also defined.
A-18
GFK-1396F
GFK-1396F
<non-negative-integer> ::=
{<digit> }+
| "&H" {<hex-digit>}+
| "&h" {<hex-digit>}+
| "&O" {<octal-digit>}+
| "&o" {<octal-digit>}+
<number> ::=
[<sign>] <non-negative-integer>
| [<sign>] <mantissa> [<exponent-char> [<sign>]
{<digit> }+]
<octal-digit> ::=
<sign> ::=
"+" | "-"
<string> ::=
<string-char> ::=
<symbol> ::=
<alpha-char> {<symbol-char>}*
<symbol-char> ::=
<token> ::=
"("
| ")"
| <guid>
| <number>
| <symbol>
| <string>
A-19
Screen performance issues, including memory size and screen cache size
Screen installation.
Command line options that are available for installed screens and for interactive
use.
Size memory.
Tip: You can use the Windows Performance Monitor to review HMI CimView
performance counters to monitor the performance of CimView during any single session.
See the "Reviewing CIMPLICITY HMI Counters" chapter in the System Sentry Operation
Manual, GFK1632, for details.
Sizing Memory
For best performance on screen transfers, make sure that you have at least 60 MB of
RAM on the computer that is displaying CimView screens.'
GFK-1396F
B-1
Note: All screens in the cache, whether being displayed or not, continue to have their
points updated from the Point Manager. If you have many screens in the cache with
rapidly changing points, this may affect your system performance.
Screens are put in the cache as they are displayed by the users. If space is needed for a
new screen and the cache is full, the oldest screen in the cache is removed to make space
for the new screen.
If the <cachefile> name is not fully qualified, its location depends on how users start
CimView:
B-2
When starting CimView from a shortcut, the working directory for the
<cachefile> is determined by the Start in field of the Properties dialog.
When starting CimView from the command prompt, the working directory for
the <cachefile> is relative to where the user is in the Command Prompt.
GFK-1396F
Run regedit.exe.
Important: Adjusting this value too low will slow animation on the screens.
GFK-1396F
B-3
2.
3.
B-4
4.
5.
GFK-1396F
Method 1
1.
2.
Select Settings.
3.
4.
5.
6.
Method 2
1.
Click the right mouse button on the folder or desktop where you want to install
the screen.
2.
3.
4.
Method 3
GFK-1396F
1.
2.
3.
4.
5.
When you release the right mouse button, click on Create Shortcut(s) Here.
B-5
Options that can be added to the command line for an installed CimView icon.
Options that can be added to the command line for an installed CimEdit icon.
2.
3.
4.
At the start of the Target field, insert cimview.exe followed by the option (or
options) you want.
Example
If you have created a primary screen for a project, your initial screen is
ini.cim, and you do not want users to exit that screen, you can change the
command line for the screen's CimView icon:
From
C:\cimplicity\myproj\ini.cim
to
cimview.exe /noexit C:\cimplicity\myproj\ini.cim
5.
You can also use the command line to start multiple CimView screens from a single
shortcut. When you do this and use a command line option that affects the primary
window, the first file in the list is designated as the primary window. For example, if you
use /alwaysmaximized, the first screen in the list is maximized, and all other screens
are displayed in their normal windows.
B-6
GFK-1396F
/alwaysmaximized
/noresize
/captive
/project <name>
/geometry <width>x<height><xoff><yoff>
/setvar
/keypad
/TouchActive
/loadcache <cachefile>
/TouchDyn
/loadpassword
/TouchStat
/LoadScript
/wait [<time>]
/maximized
/waitforproject <name>
/minimized
/zoomtobestfit
/noexit
/nomenutitle
/noopen
/noPointTargets
interactively.
/alwaysmaximized
For: CimView only
Displays the primary CimView window in a maximized state. The user will not be
allowed to resize the primary window. The window will not rise to the top when the user
clicks on it (this prevents it from obscuring other windows on the user's terminal screen
This option is only applied if it is used with the first CimView window opened. This
window is known as the primary window. If used with subsequent open commands, it is
equivalent to /maximize.
Example
cimview.exe /alwaysmaximized C:\myproj\scr.cim
/captive
For: CimView only
Displays the primary CimView window in captive state. When the user opens this
window, the Explorer shuts down. Other screens are displayed on top of the primary
window, and the user will not be able to go below (see anything below) the primary
window.
/captive requires the following configuration in order to override Windows Explorer
and the Task Manager. This is necessary for the option to function correctly in the
Windows environment.
GFK-1396F
B-7
3.
The user can use Alt+Tab to navigate through all opened CimView Windows.
You can use any other command line options in conjunction with /captive. In
particular, note the following:
/geometry <width>x<height><xoff><yoff
For: CimEdit and CimView
Sizes and positions the CimView window when it opens. The screen is sized to fit the
window. All fields are in pixels.>
The arguments for this command line option are:
Argument
Specifies the:
<width>
Window width
<height>
Window height
<+xoff>
<+yoff>
Example
cimview.exe /geometry 200x200+100+200 C:\myproj\scr.cim
opens the screen in a 200x200 window that is 100 pixels from the left side of the
terminal screen and 200 pixels from the top edge of the terminal screen.
B-8
GFK-1396F
/keypad
For: CimView only
Displays a keypad window on the users screen whenever the user has to perform a
Variable Setpoint action in a procedure. To enter a new setpoint value, the user clicks on
the appropriate keys in the keypad window rather than entering them from a keyboard.
This option is only applied if it is used with the first CimView window opened. This
window is known as the primary window. If used with subsequent open commands, it
will be ignored.
Example
cimview.exe /keypad C:\myproj\scr.cim
/loadcache <cachefile>
For: CimView only
Pre-loads the CimView screen cache with the files contained in <cachefile>. If the number
of files in the <cachefile> is greater than the default cache size, this number overrides the
default.
See "Preloading the Screen Cache" for more information.
Important: The password configuration file must be located in the data subdirectory of
the CIMPLICITY installation directory (e.g. CIMPLICITY\HMI\Data).
GFK-1396F
B-9
Example
Your CIMPLICITY Plant Edition Web site server uses the WebView.cfg file.
/loadpassword WebView.cfg
Where
WebView.cfg is the specification for a file that requires user passwords to open
CimView/WebView screens either through your CIMPLICITY HMI Plant Edition Web
site or at a specific URL for a single WebView screen.
PROJECT|USER ID|PASSWORD or
|USER ID|
/LoadScript
For: CimEdit and CimView
Enables a common script file to be shared among all screens loaded in CimView.
Functions that are included in this common file will be loaded when CimView is first run,
and will be callable as if they were included in the Basic code for the local screen.
If the /LoadScript argument is specified for a file after CimView is already running,
its contents will be appended to the list of common functions with the lowest precedence.
Example
/LoadScript scriptFileName
Where
scriptFileName is a file specification to specify a common script file.
B-10
GFK-1396F
/maximized
For: CimEdit and CimView
Opens the screen at its maximum size. The screen takes up the entire terminal screen.
The user will be able to resize the window after it opens.
Example
cimview.exe /maximized C:\myproj\scr.cim
/minimized
For: CimEdit and CimView
Opens the screen at its minimum size. The screen appears on the Taskbar only.
The user can click on the screen in the Taskbar to open it.
Example
cimview.exe /minimized C:\myproj\scr.cim
/noexit
For: CimView only
Will not let the user exit the primary CimView window.
The Exit menu item is removed from the File menu, and the Close menu item and its
Alt+F4 shortcut key are removed from the Control menu. Close Screen actions are
ignored in the primary window.
This option is only applied if it is used with the first CimView window opened. This
window is known as the primary window. If used with subsequent open commands, it
will be ignored.
Example
cimview.exe /noexit C:\myproj\scr.cim
/nomenutitle
For: CimView only
Removes the menu bar and title bar from the primary CimView window and all
subsequent windows that you open.
This option is applied to the new windows and to any windows that are opened from
within CimView. If a later CimView command is executed without the option, the option
is disabled for those windows and any new windows opened from within CimView.
Example
cimview.exe /nomenutitle C:\myproj\scr.cim
GFK-1396F
B-11
/noopen
For: CimView only
Lets a user open only the CimView screens that are explicitly mentioned in Open Screen
and Overlay Screen actions. Open Screen and Overlay Screen actions that do not specify
a screen are ignored.
In addition, the Open and Open Window menu items and the file list are removed from
the File menu, and the File Open Toolbar button is disabled.
This option is applied to the new windows and to any windows that are opened from
within CimView. If a later CimView command is executed without the option, the option
is disabled for those windows and any new windows opened from within CimView.
Example
cimview.exe /noopen C:\myproj\scr.cim
/noPointTargets
For: CimView only
Prevents the point targets, e.g. Point Control Panel and quick trends, from being available
from Point View or the right mouse menu.
/noresize
For: CimView only
Prevents a user from resizing any CimView windows that the user displays.
This option is applied to the new windows and to any windows that are opened from
within CimView. If a later CimView command is executed without the option, the option
is disabled for those windows and any new windows opened from within CimView.
Example
cimview.exe /noresize C:\myproj\scr.cim
/project <name>
For: CimEdit and CimView
Sets the base project to <name>.
The data for all unqualified points on the CimView screens will be requested from the
named project.
This option is applied to the new windows and to any windows that are opened from
within CimView. If a later CimView command is executed without the option, the
previous value for the default project continues to be used.
Example
cimview.exe /project myproj C:\myproj\scr.cim
B-12
GFK-1396F
/setvar
For: CimView
(Configured on the current screen), sets variables and their initial values that a CimView
screen uses when it opens from or overlays the current screen.
The arguments for this command line option are:
Argument
Specifies the:
<variable name>
<Initial value>
You can use the /setvar command line option multiple times to set multiple variables.
Example
/setvar "Button1\Tank" "0" /setvar "Button2\Tank" "0" /setvar
"Value" ""
sets the qualified variable Button1\Tank to the initial value 0; the qualified variable
Button2\Tank to the initial value 0 and the unqualified variable, Value to no specified
initial value.
/TouchActive
For: CimView only
Keeps the documents currently being displayed swapped into memory. Without this flag,
only documents in the cache are touched periodically to keep them swapped into
memory.
See "Screen Performance Issues for more information.
Example
cimview.exe /TouchActive myproj C:\myproj\scr.cim
/TouchDyn
For: CimView only
Keeps documents with many dynamic objects swapped into memory.
See "Screen Performance Issues for more information.
Example
cimview.exe /TouchDyn myproj C:\myproj\scr.cim
/TouchStat
For: CimView only
Keeps documents with many static objects swapped into memory.
This is faster than /TouchDyn, but dynamic parts of a screen may be swapped out.
See "Screen Performance Issues for more information.
Example
cimview.exe /TouchStat myproj C:\myproj\scr.cim
GFK-1396F
B-13
/wait [<time>]
For: CimView only
Makes CimView wait for the Router to start before opening the screen. Note that
CimView does not try to start the Router. The Router must be started by another method.
Typically, this option is used when configuring CimView to start at boot or when the user
logs in to Windows.
You can specify a time, in seconds, to wait. The screen opens at the end of the time,
regardless of the state of the router. If you do not specify a time, CimView waits forever.
Example
cimview.exe /wait 60 C:\myproj\scr.cim
/waitforproject <name>
For: CimView only
Makes CimView wait for the project to start before opening the window.
The project is considered started after CIMPLICITY Program Control terminates
normally. Note that individual programs in the project may be in the Running or Failed
state.
Example
cimview.exe /waitforproj myproj C:\myproj\scr.cim
/zoomtobestfit
For: CimEdit and CimView
Initially places the primary CimView window in Zoom To Best Fit mode. All
subsequent windows are also displayed in this mode.
This option is applied to the new windows and to any windows that are opened from
within CimView.
Example
cimview.exe /zoomtobestfit C:\myproj\scr.cim
B-14
GFK-1396F
/offline
/project <name>
/offline
For: CimEdit and CimView
Forces CimEdit to work offline, even if a CIMPLICITY project is running.
Example
cimedit.exe /offline
/project <name>
For: CimEdit and CimView
Sets the base project to <name>.
The base project is the project that will be used to fully qualify any unqualified Point IDs.
This does not affect the Point IDs stored in the file. Point IDs that are entered as
unqualified will be stored unqualified.
The option is only recognized when it is used with the first CimEdit window, and is
applied to all subsequent windows until they are closed.
Example
cimedit.exe /project myproj
GFK-1396F
B-15
Convert .asc files to .cim or .cimrt files, or upgrade .cim files from an
earlier release.
Display a dialog listing the Point IDs used in the screen file.
2.
3.
4.
Select Command Prompt. This ensures that all project pointers are correct.
5.
If you are on a Viewer, launch the Command Prompt from the Start menu.
You can execute each utility for one file, or a list of files. The command line format is:
cimedit.exe <option> <filename> [<filename> ...]
/convert
/converttoctx
/converttocimrt
/dumppoints
/convert
For: CimEdit only
Reads each of the files on the command line and writes them out again, changing the
extension to .cim.
This utility can be used to
Note: When upgrading files from an older release, you should save a copy of the .cim
files in another directory before executing this utility since this option will overwrite the
original files.
No CimEdit window is displayed, and CimEdit exits when done. When the conversion is
complete, check the Status Log for error messages. Messages longer than 79 characters
are in multiple log entries, and the continuation lines begin with " ".
Example
cimedit.exe /convert C:\MyProj\scr1.asc C:\MyProj\scr2.ctx
B-16
GFK-1396F
/converttoctx
For: CimEdit only
Reads each of the files on the command line and writes them out again in text format,
changing the extension to .ctx.
You can use the text format to make modifications to the screen file with a text editor.
Note: Do not use text files as the primary file format in a production environment, as
they take longer to read and process.
See the text file format syntax for details. The text file format syntax is documented in
Appendix A.
Example
cimedit.exe /converttoctx C:\Proj\scr1.cim C:\Proj\scr2.cim
/convertocimrt
For: CimEdit only
Reads each of the files on the command line and writes them out again as a runtime-only
screen file, changing the extension to .cimrt
See "Runtime-only Screens" in the "Configuring a CimEdit Screen" chapter in this
manual for more information about runtime-only screens.
Example
cimedit.exe /converttocimrt C:\Proj\scr1.cim C:\Proj\scr2.cim
/dumppoints
For: CimEdit only
Loads each file and displays a dialog listing the points used in the file.
The dialog looks like this:
GFK-1396F
B-17
2.
You can not change the first search location (relative to the directory of the current
screen) and, in most cases, you will want to leave the default second location (relative to
the project's Screens directory) intact. However, if you need to change the second
location you can by editing the GMMI_SCREENS logical name. See "Understanding the
CimEdit/CimView Screen Search Sequence" in the "Configuring a CimEdit Screen"
chapter in this manual for more information about how CimEdit and CimView locate a
screen.
and
and
Because a Viewer does not have directories for projects, the only Log_Names.cfg file is
in the Bsm_Root:\Data directory.
B-18
GFK-1396F
Caution: It is recommended that you keep the GMMI_SCREENS entries in all the
Log_Names.cfg files are in sync with each other. Care should be used when editing
these files.
When you open either Log_Names.cfg file, you will find two lines that refer to the
screen location. These entries should be identical.
GMMI_SCREENS|S|default|30|SITE_ROOT:\screens
GMMI_SCREENS|P|default|30|SITE_ROOT:\screens
Where
GMMI_SCREENS is the CimEdit and CimView screens logical name.
SITE_ROOT:\SCREENS is the default directory for those files. This directory can be
changed. In fact, the logical path can actually be a list of directories to be searched,
separated by semicolons.
|30| is the maximum length of the logical value. You need to change this if you
Important: Changes will take affect only after all CIMPLICITY processes on the
computer you are configuring are entirely shut down and restarted. The best way to
ensure this is to reboot.
2.
3.
4.
Finally in D:\Screens.
Note that the length was increased to 60 to account for the extra space.
GMMI_SCREENS|S|default|60|SITE_ROOT:\screens;C:\SCREENS;D:\SCREENS
GMMI_SCREENS|P|default|60|SITE_ROOT:\screens;C:\SCREENS;D:\SCREENS
GFK-1396F
B-19
Index
.
.cim
CimEdit screen 4-24
.cimrt
CimEdit screen 4-25
.ctx
CimEdit screen 4-29
/
/alwaysmaximized B-7
/captive B-8
/convert B-16
/converttocimrt B-17
/converttoctx B-17
/dumppoints B-17
/geometry B-8
/keypad B-9
/loadcache B-9
/loadpassword B-9
/maximized B-11
/minimized B-11
/noexit B-11
/noopen B-12
/noPointTargets B-12
/noresize B-12
/offline B-15
/project <name> B-12, B-15
/setvar B-13
/TouchActive B-13
/TouchActive B-3
/TouchDyn B-13
/TouchDyn B-3
/touchstat B-13
/wait B-14
/waitforproject B-14
/zoomtobestfit B-14
GFK-1396F
A1 7-3
A2 7-3
ABS 7-4
Absolute Setpoint 13-24
Accelerator Actions
Keys for 12-15
ACCESS 16-5
ACOS 7-8
Action
For a procedure 13-8
Action Type
Absolute setpoint 13-24
Close screen 13-13
Execute command 13-12
Home screen 13-14
Invoke method 13-19
Invoke script 13-21
Open screen 13-14
Overlay screen 13-17
Previous screen 13-19
Print screen 13-19
Ramp setpoint 13-25
Relative setpoint 13-26
Toggle setpoint 13-26
Variable assign 13-27
Variable setpoint 13-27
Actions
Absolute setpoint 13-24
Available to build procedures 13-2
Close screen 13-13
Create slider overview 11-9
Execute command 13-12
Home screen 13-14
In a screen level procedure 4-15
Invoke method 13-19
Invoke script 13-21
List of 13-12
Open screen 13-14
Overlay screen 13-17
Previous screen 13-19
Print screen 13-19
Relative setpoint 13-26
Screen 13-13
Toggle setpoint 13-26
Variable assign 13-27
Variable setpoint 13-27
Actions Tab
Definition (in Properties dialog box) 13-6
Active X Object 5-24
ActiveX
Properties compared with other
object properties 15-3
Control events in CimEdit 12-7
Control properties tab 15-6
Index-i
Controls
independent control properties dialog box 15-4
Controls definition 15-1
Controls overview 15-1
Example displaying point information for ActiveX
controls 15-7
Insert controls into CimEdit overview 5-23
Installation of controls 15-2
Placing controls on CimEdit screen 15-2
Using controls to display data 15-7
View properties in the standard properties
dialog box 15-6
Viewing a controls standard properties 15-3
Viewing the ontrol
properties 15-4
Add
Border to an object 8-18
ADDR 16-5
Addressing
Points in CimEdit 16-1
Adjust
Touch interval B-3
Adjust Spacing
Between objects 5-43
Advanced
Configure advanced properties for procedures 13-28
Advanced Tab
Definition (in Properties dialog box) 13-6
AH1 7-3
AH2 7-3
Aids
For the screen workspace 4-5
AL 7-3
AL1 7-3
AL2 7-3
Alarm
Class color defaults in RGB.dat 8-27
Function 7-3
Functions in Expression Editor 7-3
State animation of an object 11-25
State color animation for analog point objects 11-25
State color animation for digital point objects 11-25
ALARM_HIGH 7-3
ALARM_LOW
Function 7-3
ALARM_NTO_ACKED
Function 7-3
Align
Objects 5-47
All Objects Using Point
Toolbar in Point View 9-9
All Points for Object
Popup in Point View 9-5
All Points for Parent
Popup in Point View 9-5
Toolbar in Point View 9-9
Index-ii
Allow edit
Ramp setpoint 13-25
Alt
Toggle a grid display 5-41
Alternate offset
Ramp setpoint 13-25
Alwaysmaximized
Command line argument B-7
Ambient
Color select 8-21
Ambient Properties
For a screen 4-19
ANA 7-3
Anchor point
Positioning an object 8-6
AND 7-6
Angle
Object rotation 8-8
Animate
Color of an object 11-22
The color of an object using expressions 11-26
Animation
Control when an object should be visible 11-24
Fill an object 11-19
Overview 11-22
Appearance
Screen 4-3
Apply
Color to a text button 8-19
Arc
Creating in CimEdit 5-5
Design options 5-6
Argument
/alwaysmaximized B-7
/convert B-16
/convertocimrt B-17
/converttoctx B-17
/dumppoints B-17
/geometry B-8
/keypad B-9
/loadcache B-9
/loadpassword B-9
/LoadScript B-10
/maximized B-11
/minimized B-11
/noexit B-11
/nomenutitle B-11
/noopen B-12
/noPointTargets B-12
/noresize B-12
/offline B-15
/project B-12, B-15
/setvar B-13
/TouchActive B-13
/TouchActive B-3
/TouchDyn B-13
GFK-1396F
/TouchDyn B-3
/TouchStat B-13
/wait B-14
/waitforproject B-14
/zoomtobestfit B-14
Arguments
Execute command 13-12
Arithmetic
Operations in Expression Editor 7-4
ASIN 7-8
Assign
Values to a linked object 6-11
ATAN 7-8
AutoCad
Converting drawings to CimEdit objects 5-26
B
Back
Object position 5-42
Back color
Ambient properties 4-19
BAND 7-5
Base Object
Change display in Point View 9-6
Definition 9-5
Base project
Open screen 13-14
Base Project
Overlay screen 13-17
Basic
And script entry points 14-6
Basic Extensions (previous) for CimEdit Scripts
CimEvent (constant) 14-16
CimEvent (object) 14-16, 14-20
CimEvent.GetMouseEvent (function) 14-17
CimEvent.GetOleParm (function) 14-19
CimEvent.GetOleParmName (function) 14-18
CimEvent.OleParmsCount (read-only property) 14-19
CimEvent.Type (read-only property) 14-20
CimEvent.UserParameter (read-only property) 14-20
CimGetEvent (function) 14-21
CimGetRootObject (function) 14-21
CimGetScriptOwner (function) 14-21
CimObject (object) 14-21
CimObject.Container (read-only property) 14-21
CimObject.GetObject (method) 14-22
CimObject.GetVariable (method) 14-23
CimObject.Name (read-only property) 14-23
CimObject.ObjectCount (read-only property) 14-23
CimObject.OleObject (read-only property) 14-24
CimObjectVariable (object) 14-24
CimObjectVariable.GetObjectAsNumber
(method) 14-24
CimObjectVariable.GetObjectAsString
(method) 14-24
GFK-1396F
Index
Index-iii
Resize 8-5
Rotate 8-9
Tab order 5-49
Text 5-9
Text button 5-10
Tool lock 5-8
Buttons
Edit expression dialog box 7-2
BXOR 7-5
ByRefInteger
Invoking a script 14-9
ByRefString
Invoking a script 14-9
C
Cache
Preloading for CimView screen B-2
Size for screen B-2
Capabilities
Of screens 4-1
Captive
Open screen 13-14
CEIL 7-5
Center offset
Object rotation 11-18
Change
A tested CimEdit script 14-11
Displayed base object 9-6
Font 8-33
Objects display overview 8-8
Objects size overview 8-2
Objects tab order 5-49
The name of an object in a frames tree 11-32
Changes
Made through Point View 9-9
Choices
About linking objects 6-2
Unlinked vs. linked objects 6-2
Choose
Between two color palettes 8-25
CimCreateSafeArray (function) 14-13
CimEdit
A word about 1-5
Features overview
Text File Syntax A-1
Tools overview 1-2
CimEdit (function) 14-14
CimEdit interactive command line options
/convert B-16
/converttocimrt B-17
/converttoctx B-17
/dumppoints B-17
Index-iv
CimEdit Screen
Editable .cim format 4-24
Editable .ctx format 4-29
File format 4-24
Protected .cimrt format 4-25
Search sequence from an editable screen 4-29
Search sequence overview 4-29
CimEdit Screens
Saved and found 4-24
CimEdit scripts
CimEvent (constant 14-16
CimEvent (object) 14-16, 14-20
CimEvent.GetMouseEvent (function 14-17
CimEvent.GetOleParm (function 14-19
CimEvent.GetOleParmName (function 14-18
CimEvent.OleParmsCount (read-only property 14-19
CimEvent.Type (read-only property) 14-20
CimEvent.UserParameter (read-only property) 14-20
CimGetEvent (function) 14-21
CimGetRootObject (function) 14-21
CimGetScriptOwner (function) 14-21
CimObject (object) 14-21
CimObject.Container (read-only property) 14-21
CimObject.GetObject (method) 14-22
CimObject.GetVariable (method) 14-23
CimObject.Name (read-only property) 14-23
CimObject.ObjectCount (read-only property) 14-23
CimObject.OleObject (read-only property 14-24
CimObjectVariable (object) 14-24
CimObjectVariable.GetValueAsNumber
(method) 14-24
CimObjectVariable.GetValueAsString(method) 14-24
CimObjectVariable.ID(Read-only property) 14-24
CimObjectVariable.Value(read/write property) 14-25
cimOleObj (constant 14-15
cimOwnerObj (constant 14-25
CimEdit utilities B-16
/convert B-16
/converttocimrt B-17
/converttoctx B-17
/dumppoints B-17
CimEvent (constant) 14-16
CimEvent (object) 14-16, 14-20
CimEvent. GetMouseEvent (function) 14-17
CimEvent.GetOleParm (function) 14-19
CimEvent.GetOleParmName (function) 14-18
CimEvent.OleParmsCount (read-only property) 14-19
CimEvent.Type (read-only property) 14-20
CimEvent.UserParameter (read-only property) 14-20
CimGetEvent (function) 14-21
CimGetEventContext (function) 14-14
CimGetEventContext().UserParameter 12-6
CimGetObject (function) 14-14
CimGetRootObject (function) 14-21
CimGetScreen (function) 14-15
CimGetScriptOwner (function) 14-21
GFK-1396F
CimObject(object) 14-21
CimObject.Container(read-only property) 14-21
CimObject.GetObject(method) 14-22
CimObject.GetVariable(method) 14-23
CimObject.Name(read-only property) 14-23
CimObject.ObjectCount(read-only property) 14-23
CimObject.OleObject (read-only property) 14-24
CimObjectVariable(object) 14-24
CimObjectVariable.GetValueAsNumber
(method) 14-24
CimObjectVariable.GetValueAsString(method) 14-24
CimObjectVariable.ID(read-onlly property) 14-24
CimObjectVariable.Value(read/write property) 14-25
cimOleObj (constant) 14-15
cimOwnerObj (constant) 14-25
CimView (function) 14-15
CimView Command Line Argument
/alwaysmaximized B-7
/captive B-8
/geometry B-8
/keypad B-9
/loadcache B-9
/loadpassword B-9
/maximized B-11
/minimized B-11
/noexit B-11
/nomenutitle B-11
/noopen B-12
/noPointTargets B-12
/noresize B-12
/project <name> B-12
/setvar B-13
/TouchActive B-13
/touchdyn B-13
/touchstat B-13
/waitforproject B-14
/zoomtobestfit B-14
CimView Command Line Options B-6
CimView Screen
Search sequence from an editable screen 4-29
Search sequence overview 4-29
Circle
Create in CimEdit 5-7
Class Object
Graphic placed on CimEdit screen 5-19
Close
Frame container 11-30
Close Screen
Action 13-13
Collapse
Point View 9-5
Collapse All
Frame tree popup 11-31
Popup in Point View 9-5
GFK-1396F
Index
Color
Alarm state animation 11-25
Alarm state color animation for analog
point objects 11-25
Alarm state color animation for digital
point objects 11-25
Animate for an object 11-22
Animation object
expression list 11-26
Animation overview 11-22
Apply to a text button 8-19
Common features 8-18
Display the tab in the properties dialog box 8-11
Dithered 8-20
Edit 8-23
Gradient fill for an object 8-15
Index for object color animation 11-25
No fill for an object 8-12
Object fill 11-20
One color gradient 8-17
Palette Overview 8-20
Pattern fill for an object 8-13
Picker options 8-25
Select ambient 8-21
Select basic 8-20
Solid in an object 8-12
Specifying for screen 4-4
Two color gradient 8-15
Visibility of an animation, object 11-24
Color 1
Gradient fill for an object 8-15
Select for a screen 4-4
Color 2
Select for a screen 4-4
Colors
Default mappings for alarm class colors 8-27
Fixed color palette options 8-25
RGB index 8-26
Select special 8-24
Colors in CimEdit Overview 8-11
Colors, CimEdit
Pattern 8-13, 8-15
Command
Execute command 13-12
Command Line
Options B-6
Command Line Argument
/alwaysmaximized B-7
/captive B-7
/geometry B-8
/keypad B-9
/loadcache B-9
/loadpassword B-9
/LoadScript B-10
/maximized B-11
/minimized B-11
Index-v
/noexit B-11
/nomenutitle B-11
/noopen B-12
/noPointTargets B-12
/noresize B-12
/project B-12
/setvar B-13
/TouchActive B-13
/TouchDyn B-13
/TouchStat B-13
/wait B-14
/waitforproject B-14
/zoomtobestfit B-14
Command Line Interactive Options
/convert B-16
/convertocimrt B-17
/converttoctx B-17
/dumppoints B-17
Command Line Option
Add arguments to the command line for a CimView
shortcut B-6
Command Line Options
/offline B-15
/project <name> B-15
CimEdit B-15
Interactive B-16
Configuration
Advanced for invoking a script 14-9
Advanced properties for procedures 13-28
Frame container overview 11-31
Overview 3-1
Overview of choices in CimEdit 3-6
Overview of options for CimView screens 3-7
Procedure overview 13-3
Reviewing steps to configure CimEdit 3-2
Configuration File
GMMI_SCREENS B-18
Configure
Invoke method that requires advanced
configuration 13-20
Object libraries 5-17
Objects in a group 5-36
Point attributes 17-1
Point by address 16-3
Variable overview 10-3
Confirmation
Advanced procedure properties 13-28
Confirmed
Absolute setpoint 13-24
Close screen 13-13
Execute command 13-12
Home screen 13-14
Invoke script 13-21
Open screen 13-14
Overlay screen 13-17
Previous screen 13-19
Index-vi
GFK-1396F
D
Data
Choosing sources for CimView 3-3
Displaying for a project using ActiveX controls 15-7
Expressions as source for CimView 3-4
Default
Color mappings for alarm class colors 8-27
Definition
ActiveX control properties 15-3
ActiveX controls 15-1
Dithered color 8-20
Embedded object 5-26
Frames 11-1
Link container 6-3
Linked container 5-1
Linked object 5-26
Procedure 12-1, 13-1
Script 12-1
Unlinked copy 6-2
Variable 10-1
Delete
A procedure for the screen 4-17
Frame 11-30
Variable at screen level 4-12
Description Of
Advanced procedure properties 13-28
Deselect
Objects 5-31
DEVICE 16-5
Dimensions
Automatically make same for objects 8-3
Direction
Object fill 11-20
GFK-1396F
Index
Display
Grid on CimEdit screen 4-5
Group tab in CimEdit 5-34
Linked objects on a screen 6-9
Mouse location 4-6
Object Explorer 5-12
Procedures tab of the Properties dialog box 13-3
Properties for an object in a frames tree 11-32
The Colors tab 8-11
Toolbars 4-7
Display message when disabled
Execution condition for slider action 11-10
Dithered Color
Definition 8-20
Do Setpoint
Checkbox in edit method dialog box 13-21
Invoke method 13-20
Invoke script 13-22
Dumppoints
Command line option B-17
Duplicate
A procedure for a screen 4-17
Of a selected object 5-9
Quick in CimEdit 5-8
Selected popup menu item 4-22
Dynamic Point Configuration 9-16
E
Edit
A color 8-23
A point through CimEdit 9-11
A procedure for a screen 4-17
Highlighted item through Point View 9-9
Linked object effect on link container 6-3
Linked object effect on unlinked copy 6-2
Method dialog box for invoking a script 14-9
Procedure 13-9
Edit Point
Button in edit expression dialog box 7-2
Editable
CimEdit .cim screen 4-24
CimEdit .ctx screen 4-29
ELEM 16-5
Ellipse
Create in CimEdit 5-7
Embedded
Object 5-26
Enlarge
CimEdit screen display size 4-8
Entry Points
For scripts 14-6
EQ 7-7
Evaluate
Variable hierarchy 10-2
Index-vii
Evaluation
Execution condition 13-28
Even Spacing
Among objects 5-43
Event
ActiveX event 12-7
Available in CimEdit overview 12-2
Create to invoke a script 14-7
Creating in CimEdit 12-5
Expression high 12-10
Expression updated 12-11
Highlight 12-16
Key down 12-12
Key Up 12-13
Mouse down 12-18
Mouse Up 12-19
Object inserted 12-23
Object removed 12-24
Parameters 12-6
Periodic 12-29
Screen close 12-30
Screen open 12-31
Unhighlight 12-17
While key down 12-14
While mouse down 12-21
Events
At the screen level 4-13
Available at the screen level 4-13
Example
Creating and using variables grouping objects 10-13
Creating and using variables, Inserting a rectangle
object 10-12
Display project data with an ActiveX control 15-7
Variable ID in a setpoint action 10-7
Execute Command Action 13-12
Execution Condition
Evaluated 13-28
EXP 7-8
Expand
Frame tree popup 11-31
Point View 9-5
Expand All
Frame tree popup 11-31
Popup in Point View 9-5
Explorer
Object 5-12
Expr count
Expression animation 11-22
Expr min/max
Horizontal scaling 11-13
Object fill 11-20
Object rotation 11-18
Vertical scaling 11-15
Expr. Count
Visibility of an object 11-24
Index-viii
Express Updated
Event 12-11
Expression
Configure point attributes 17-1
Create 7-1
Enter for a frame 11-34
Execution condition for slider action 11-10
Expression list attribute expression animation 11-26
Expression list attribute visibility animation 11-23
Frame 11-33
Horizontal scaling 11-13
Object fill 11-20
Object rotation 11-18
Vertical scaling 11-15
Visibility of an object 11-24
Expression Editor
About 7-1
Alarm functions 7-3
Arithmetic operations 7-4
Bitwise operations 7-5
Logical operations 7-6
Relational operations 7-7
Scientific operations 7-8
Expression High
Event 12-10
Expression List for object color animation 11-26
Expression variables 10-1
Expressions
As data sources for CimView 3-4
Extensions
CimEdit screens 4-24
F
Failure
Advanced procedure properties 13-28
Features
CimEdit overview 1-3
Screen 4-1
File
Inserted into a CimEdit screen 5-29
Save in .cim format 4-24
Save in .cimrt format 4-25
Save in .ctx format 4-29
File Format
For CimEdit screens 4-24
Fill
Color for an object 8-12
Create a fill animation 11-19
Expression list attribute visibility animation 11-23
Gradient for an object 8-12
Gradients Overview 8-15
Object overview 11-19
Pattern for an object 8-13
Pattern for an object 8-12
GFK-1396F
Fill Style
Object fill 11-20
Find
Source of a linked object 6-10
Fixed location
Horizontal scaling 11-13
Vertical scaling 11-15
Flip
Objects 8-10
FLR 7-5
Font
Change 8-33
Configure ambient properties 4-19
Expression list attribute expression animation 11-26
Fore color
Ambient properties 4-19
Format
.cim file 4-24
.cimrt file 4-25
.ctx file 4-29
Display toolbar 4-7
For CimEdit screens 4-24
Group 5-33
IFELSE 7-6
Frame
Animation overview 11-28
Container overview 11-31
Create a frame container 11-29
Definition 11-28
Enter an expression for 11-34
Label for current 11-30
Menu 11-30
Open a container 11-29
Toolbar 11-30
Frame container object
creating 11-29
Frame ID
Frame expressions 11-33
Frames
Definition 11-1
Guidelines for using as base and parent objects 9-7
Reordering in a frame container 11-34
Front
Object position 5-42
Fully Qualified
Points in CimEdit 9-12
Function
Accessing scripts 14-6
Geometry
Command line argument B-8
Object rotation 8-8
GMMI_SCREENS
And BSM_ROOT B-18
And Site_Root B-18
Configuration file B-18
Logical name B-19
Logical name example B-19
Gradient
One color 8-17
Overview 8-15
Two color 8-15
Graphic
Select for a class object 5-19
Graphic Objects
Creating basic objects 5-2
Graphics
General features and tools overview 5-8
Grid
Display on the CimEdit screen 4-5
Make visible on a screen 5-40
Move an object by grid units 5-41
Placing objects using a grid 5-40
Select display on the CimEdit screen 4-5
Size on CimEdit screen 4-5
Group
Button on CimEdit toolbar 5-33
Configure overview 5-33
Create in CimEdit 5-33
Edit mode 5-36
In variable tree 10-5
Of objects overview 5-33
Style scaling checkbox 8-6
Tab of properties dialog box 5-34
Tree in properties dialog box 5-35
Ungrouped in CimEdit 5-39
Group Edit Mode
In CimEdit 5-36
Grouping objects
Example for variables 10-13
GSM_CACHE_SIZE B-2
GSM_EXPONENT_PRECISION 8-31
GSM_GLOBAL_SCRIPT
CimView loading file contents 14-7
GT 7-7
Guidelines
Assigning keys to key events 12-15
Using frames as base and parent objects 9-7
When script is invoked at runtime 13-23
GE 7-7
General
Configure grid 4-5
GFK-1396F
Index
Index-ix
H
Height
Specify for an object 8-4
Specifying for screen 4-3
Vertical scaling 11-14
Help
Designating for a screen 4-20
Help File
As CimEdit help file 4-21
Hide
Toolbars 4-7
Hierarchy
Variable 10-2
Highlight
Event in CimEdit 12-16
HMI CimView
About performance counters B-1
Home Screen 13-14
Horizontal
Move an object vertically and horizontally 11-8
Objects moving 11-2
Scale object 11-12
Shear 8-8
Horz. Units
Specify for grid 4-5
I
Icon
In Point View tree 9-4
Icons
In variable tree 10-5
IFELSE
Fomat 7-6
Inanimate
Visual features 8-1
Index
Color index animation 11-25
RGB 8-26
Information
In Point View 9-4
Requirements for CimView 3-3
Insert
ActiveX control into CimEdit 5-23
ActiveX control on a CimEdit screen 15-2
File into a CimEdit screen 5-29
General OLE object 5-27
Metafile object in CimEdit 5-25
SmartObject from the Object Explorer 5-14
Typical object from the Object Explorer 5-13
Insert Object
Event 12-23
Inserting a rectangle object
Example for variables 10-12
Index-x
Installation
A screen from CimEdit B-4
ActiveX controls 15-2
CimView screen from desktop B-5
Screen B-4
Installing a CimView Screen
From desktop B-5
Interior attributes
Group tab of properties dialog box 5-34
Invoke
CimEdit script 14-7
Invoke Method 13-19
Invoke Script 13-21
And entry points 14-6
K
Key Down
Event 12-12
Key Parameter
Detailed explanation 12-15
Key Up
Event 12-13
Keypad
Command line argument B-9
Keys
Assigning to key events 12-15
Keyword
ACCESS 16-5
ADDR 16-5
DEVICE 16-5
ELEM 16-5
Not accepted in point by address 16-6
OFFSET 16-5
ORIGIN 16-5
SCAN 16-5
TYPE 16-5
L
Label
For current frame 11-30
Layout
Display toolbar 4-7
Objects overview 5-31
Preliminary overview 5-1
LE 7-7
Left
Horizontal movement 11-2
Level
Parent and base objects 9-5
Libraries
Specify directories for Object Explorer 5-17
Limitations
Point View display 9-5
GFK-1396F
Line
Creating in CimEdit 5-2
Expression list attribute visibility animation 11-23
Link
Special paste 5-30
Link Container
Definition 6-3
Variable ID assignment 6-11
Working with 6-3
Link source object
On link container tab of properties dialog box 6-10
Linked Objects
Basic principles 6-2
Container 5-1
Copy to another location 6-9
Creating 6-6
Creating example 6-6
Creating overview 6-6
Definition 5-26
Displaying on a screen 6-9
Example of creating a link on a destination
screen 6-12
Find the source 6-10
Link container features 6-2
Links to 6-9
Overview 6-1
Unlinked object features 6-2
Updating 6-8
Using example 6-12
Variable ID assignments for links 6-11
Linked Scripts 14-2
List
Actions available for procedures 13-2
Associations with events 12-2
Available objects in CimEdit 5-2
Of actions 13-12
List source file
On Link container tab of properties dialog box 6-10
Loadcache
Command line argument B-9
loadpassword
Command line argument B-9
LoadScript
And accessing entry points 14-7
Command line argument B-10
Location
Changing an objects location 5-1
Of mouse 4-6
Specifying for points in CimEdit 9-12
Lock
An object tool 5-8
Aspect ratio checkbox 8-6
LOG 7-8
Log_names.cfg
And GMMI_SCREENS B-18
LOG10 7-8
GFK-1396F
Index
Logical
Operations in Expression Editor 7-6
Logical Name
GMMI_SCREENS B-19
GMMI_SCREENS example B-19
LT 7-7
M
Make
A duplicate of the last created object 5-8
Manage
CimEdit screens B-1
MAX 7-4
Maximized
Command line argument B-11
Measurement
Unit of in CimEdit 8-2
Memory
Sizing for CimView screens B-1
Menu
Delete a selected item 4-22
Frame 11-30
Popups created for the screen 4-22
Popups for objects 4-22
Message
Execute command 13-12
Execution condition for slider action 11-10
For Execute command 13-12
Metafile
Converting into CimEdit object 5-25
Inserting in CimEdit 5-25
Method
Invoke 13-19
Invoke method 13-19
Invoke script 13-21
Method help text
Invoke method 13-20
Method Name
Invoke method 13-20
Invoke script 13-22
Method Result
Invoke method 13-20
Invoke script 13-22
MIN 7-4
Min/max angle
Object rotation 11-18
Minimized
Command line argument B-11
MOD 7-4
Modify
A variable at the screen level 4-12
Mouse
Displaying the location 4-6
Highlight event 12-16
Unhighlight event 12-17
Index-xi
Mouse Down
Event 12-18
Mouse Up
Event 12-19
Move
A frame container to a new location 11-35
An object by grid units 5-41
Objects on a CimEdit screen 5-40
N
Name
A public or private variable 10-3
Changing for an object in a frames tree 11-32
Invoke method 13-20
Invoke script 13-22
Points through CimEdit 9-14
Navigate
Through Point View 9-4
NE 7-7
New
Frame 11-30
Point through CimEdit 9-11
Procedure 13-3, 13-4
New Point
Button in edit expression dialog box 7-2
Next
Frame 11-30
No Fill
Color for an object 8-12
Noexit
Command line argument B-11
nomenutitle B-11
Nomenutitle
Command line argument B-11
Noopen
Command line argument B-12
noPointTargets
Command line argument B-12
Noresize
Command line argument B-12
NOT 7-6
O
Object
Arc design 5-6
Base definition 9-5
Embedded 5-26
Group edit mode 5-36
Make a duplicate of a selected object 5-9
Make a duplicate of the last created object 5-8
Parent definition 9-5
Properties compared with ActiveX control
properties 15-3
Properties dialog through Group tab 5-36
Index-xii
GFK-1396F
Rotate 11-17
Rotate visually 8-9
Rotation 11-17
Scale horizontally 11-12
Scale the size 8-6
Scale vertically 11-14
Scaling overview 11-12
Select a set in CimEdit 5-31
Selected in the object name field for scripts 13-23
Spaced evenly 5-43
Spacing adjusted 5-43
Static made accessible from the object model 14-3
Through Group tab in CimEdit 5-35
Ungroup in CimEdit 5-39
offline
Command line option B-15
Offset
Ramp setpoint 13-25
Relative setpoint 13-26
OFFSET 16-5
OLE
Display toolbar 4-7
Insert an OLE object 5-27
Placing objects 5-26
Open
A frame container 11-29
ActiveX control properties dialog box 15-4
Point view dialog box 9-2
Point View dialog box 9-3
Screen properties dialog box 4-2
The options dialog box 4-5
Open Screen 13-14
OpenObject 5-19
Option
Opening the dialog box 4-5
Optional
Invoke method 13-20
Invoke script 13-22
Options
Command line B-6
Configure grid on the General tab 4-5
For CimView shortcuts B-6
Options for installed CimEdit icons B-15
Options that can be executed interactively B-16
OR 7-6
ORIGIN 16-5
Output Argument
In edit method dialog box 13-21
Overlay Screen 13-17
Override object attributes
Group tab of properties dialog box 5-34
GFK-1396F
Index
Overview
ActiveX controls 15-1
Change an objects display 8-8
Choices about linked objects 6-2
CimEdit features 1-3
CimEdit screen search sequence 4-24
CimEdit screens saved 4-24
CimEdit tools 1-2
CimEdit/CimView screen search sequence 4-29
Color animation 11-22
Colors in CimEdit 8-11
Expression editor 7-1
Frame animation 11-28
Linked objects 6-1
Scale objects 11-12
Screen features 4-1
P
Pagefile
Preventing swaps to B-3
Palette
Color overview 8-20
Fixed color palette options 8-25
Newer CIMPLICITY palette 8-25
Original Windows palette 8-25
Special tab 8-24
Tab of the color palette 8-20
Parameter
CimGetEventContext().UserParameter 12-6
Detailed explanation for Key parameter 12-15
For an event 12-6
Parent Object
Definition 9-5
Paste Special 5-30
Pattern
Fill for an object 8-13
Select for a screen 4-4
Pattern Color 8-13, 8-15
Percent scale
Horizontal scaling 11-13
Vertical scaling 11-15
Percent zoom
Open screen 13-14
Performance
Counters for CimView B-1
Issues for screen B-1
Periodic
Event 12-29
Pictures
Converting to CimEdit objects 5-25
Index-xiii
Place
Linked objects on a screen 6-9
Metafile object in CimEdit 5-25
Objects using a grid 5-40
OLE objects 5-26
Placing an ActiveX control on a CimEdit screen 15-2
Point
Addressing in CimEdit
Reserved characters 9-15
Addressing in CimEdit reserved words 9-14
By address browser 16-3
By address syntax 16-5
Creating through CimEdit 9-11
Definition 9-1
Edit through CimEdit 9-11
Open Properties dialog box through CimEdit 9-11
View all objects for 9-8
Point Attribute
Configuration 17-1
Point by Address
In CimEdit 16-1
Keywords not accepted 16-6
Security 16-6
Point ID
Absolute setpoint 13-24
Ramp setpoint 13-25
Relative setpoint 13-26
Toggle setpoint 13-26
Variable setpoint 13-27
Point Ids
Button in edit expression dialog box 7-2
Point View
Benefits 9-2
Change displayed base object 9-6
Collapsed 9-4
Edit highlighted item 9-9
Expanded 9-4
Making changes through 9-9
Navigate through 9-4
Open dialog box 9-3
Rename highlighted item 9-9
Replace a highlighted point 9-10
Points
Choosing sources for CimView 3-3
Fully qualified in CimEdit 9-12
Naming through CimEdit 9-14
Unqualified in CimEdit 9-12
Polygon
Creating in CimEdit 5-4
Polyline
Creating in CimEdit 5-3
Popup
Menus for the screen 4-22
Menus for the screen or objects 4-22
Index-xiv
Position
Objects in front of/in back of others 5-42
Open screen 13-14
Preload
Cache for CimView B-2
Previous
Frame 11-30
Previous Screen 13-19
Principles
Of linked objects 6-2
Print Screen 13-19
Private
Variable at screen level 4-11
Procedure
Add a border to an object 8-18
Animate the color of an object 11-22
Animate the color of an object using
expressions 11-26
Apply color to a text button 8-19
Assign values to a linked object 6-11
Automatically make objects have same
dimensions 8-3
Browse list of defined variable ids 10-5
Change displayed base object in Point View 9-6
Change displayed size of object in the Object
Explorer 5-17
Change the font and style for text 8-33
Change the name of an object in a frames tree 11-32
Choose between two fixed color palettes 8-25
Choose toolbars to display or hide 4-7
Configuration overview 13-3
Configure invoke method that requires advanced
configuration 13-20
Configuring advanced properties 13-28
Control opening view in Point View 9-2
Control when an animated object should
be visible 11-24
Convert a metafile object into a CimEdit object 5-25
Copy a source object to another location 6-9
Create a fill animation 11-19
Create a frame container 11-29
Create a group in CimEdit 5-33
Create a line in CimEdit 5-2
Create a new point through CimEdit 9-11
Create a new popup menu item 4-22
Create a new procedure through an objects Events
tab 13-7
Create a new script 14-4
Create a one color gradient 8-17
Create a polygon in CimEdit 5-4
Create a polyline in CimEdit 5-3
Create a procedure at screen level 4-14
Create a rectangle in CimEdit 5-5
Create a slider action 11-10
Create a text button 5-10
Create a two color gradient 8-15
GFK-1396F
GFK-1396F
Index
Index-xv
Project
Command line argument B-12
Command line option B-15
Displaying data using ActiveX controls 15-7
Prompt for Value
Variable assign 13-27
Properties
Accessing for screen 4-2
Ambient for a screen 4-19
Change for group object 5-38
Configuring advanced properties for
procedures 13-28
through CimEdit Group tab 5-35
Viewing standard properties for an
ActiveX control 15-3
Protected
Runtime-only screen 4-25
Public
Variable at screen level 4-11
Q
Qualified
Points in CimEdit 9-12
Quick Trends
Using in CimView 9-19
Resize
An object precisely 8-4
An object using the resize tool 8-5
Object by grid units 8-4
Restrictions
Point by address 16-2
Restrictions on keys for key events 12-15
Review
Options for CimView shortcuts B-6
Procedures available for an object 13-2
Procedures created on a CimEdit screen 4-16
RGB
Index 8-26
RGB.dat File
Default colors for alarm class colors 8-27
RND 7-4
Rotate
An object visually 8-9
Objects 11-17
Rotate An object precisely 8-8
Runtime
Guideline for when a script is invoked 14-10
Guidelines for script behavior 13-23
Runtime-only
CimEdit screen 4-25
S
R
Reason for
Linked Objects 3-7
Linked Objects 6-1
Rectangle
Creating in CimEdit 5-5
Reduce
CimEdit screen display size 4-8
Relational
Operations in Expression Editor 7-7
Relative Setpoint 13-26
Rename
A procedure 13-11
A procedure for a screen 4-17
Frame tree popup 11-31
Highlighted item through Point View 9-9
Popup in Point View 9-5
Reorder
Frames in a frame container 11-34
Replace
Highlighted point through Point View 9-10
Requirements
Information for CimView 3-3
Reserved
Characters for point addressing in CimEdit 9-15
Words for point addressing in CimEdit 9-14
Reshape
An object 8-6
Index-xvi
Same Height
Button on CimEdit toolbar 8-3
Same Size
Button on CimEdit toolbar 8-3
Same Width
Button on CimEdit toolbar 8-3
Save
A CimEdit .cim file 4-24
A CimEdit .cimrt file 4-25
A CimEdit .ctx file 4-29
Scale
An object 8-6
An object horizontally 11-12
Object horizontally and vertically overview 11-16
Object vertically 11-14
Objects overview 11-12
SCAN 16-5
Scientific
Operations in Expression Editor 7-8
Screen
Accessing properties 4-2
Actions 13-13
Ambient properties 4-19
Appearance overview 4-3
Cache size B-2
CimEdit/CimView search sequence from an editable
screen 4-29
Close 13-13
GFK-1396F
GFK-1396F
Index
Search Sequence
CimEdit/CimView screens 4-29
CimEdit/CimView screens from an editable
screen 4-29
Security
Point by address 16-6
Select
A special system color 8-24
Class object graphic on a CimEdit screen 5-19
From the Object Explorer 5-13
Objects 5-31
Objects using a highlighted point id 9-8
Set of objects in CimEdit 5-31
Toolbars 4-7
Select Objects Using Point
And frames 9-7
Toolbar in Point View 9-9
Select Objects Using Points
Popup in Point View 9-5
Select Variable
Dialog box 10-5
Select Variables 10-5
Set
Value for a variable 10-6
Setpoint
Absolute 13-24
Actions overview 13-24
Do setpoint in edit method dialog box 13-21
Relative 13-26
Toggle 13-26
Variable 13-27
Setpoint Action
Example using a Variable ID 10-7
Sets
Of objects overview 5-31
Setvar
Command line argument B-13
Shade style
Select for a screen 4-4
Shear
Horizontal 8-8
Vertical 8-8
Shift
Resizing an object 8-5
Resizing objects by grid units 8-4
Rotating objects 8-9
Shortcuts
Options for CimView B-6
Show
Object Explorer 5-12
SHR 7-5
SIN 7-8
Site_Root
And GMMI_SCREENS B-18
Index-xvii
Size
Memory for a CimView screen B-1
Of font 8-33
Of grid on CimEdit screen 4-5
Overview of changing the size of an object 8-2
Screen cache B-2
Specifying for screen 4-3
Slider
Create a slider action 11-9
SmartObject
And ObjectInserted and ObjectRemoved events 12-25
Insert from Object Explorer 5-14
SmartObject Event
Example 12-32
Snap
To grid 4-5, 5-41
Solid
Color for an object 8-12
Select color for a screen 4-4
Source
Of a linked object 6-10
Of data in CimView 3-3
Sources
Choosing data for CimView 3-3
Choosing point sources for CimView 3-3
Choosing variables for CimView 3-3
Expressions as data sources in CimView 3-4
Spacing
Among objects 5-43
Special Paste 5-30
Specify
Screens ambient properties 4-19
SQR 7-4
Standard
Display toolbar 4-7
Static Object 5-31
Static Objects
Made accessible from the object model 14-3
Status Bar
And mouse location 4-6
String
Placing text in CimEdit 5-9
Style
Change for font 8-33
Gradient fill for an object 8-15
Pattern color for an object 8-13
Select border for a screen 4-4
Specify fill for a screen 4-4
Subgroup
In variable tree 10-5
Subroutine
Accessing script 14-6
Success
Advanced procedure properties 13-28
Swaps
Preventing to the pagefile B-3
Index-xviii
Syntax
Point by address 16-5
T
Tabs
Change objects order 5-49
TAN 7-8
Techniques
Make objects have same dimensions 8-3
Overview of resizing a selected item 8-4
Scale a selected item 8-6
Test
CimEdit script 14-11
Created script 14-5
Text
As CimEdit help 4-20
Expression list attribute expression animation 11-26
Placing strings in CimEdit 5-9
Text Box
For Execute command 13-12
Text Button
Color overview 8-19
Create 5-10
Text File
As CimEdit help 4-21
Text File Syntax
CimEdit A-1
Time
While mouse down event 12-21
Toggle Setpoint 13-26
Toolbar
Frame 11-30
Toolbars
Displaying 4-7
Tools
CimEdit overview 1-2
Display toolbar 4-7
Dynamic 9-16
Frame container 11-29, 11-30
Text button 5-10
Tool lock 5-8
Tool Lock 5-8
Top
Move object vertically 11-6
Touch Interval
Adjusting B-3
TouchActive
Command line argument B-13
TouchDyn
Command line argument B-13
TouchStat
Command line argument B-13
Tree
For variables 10-5
Frame container 11-31
GFK-1396F
Trends
Quick in CimView 9-19
TRUNC 7-4
Twips
Abbreviation for 8-2
Definition 12-19
Type
Invoke method 13-20
Invoke script 13-22
TYPE 16-5
U
Ungroup
A group in CimEdit 5-39
Unhighlight
Event in CimEdit 12-17
Unit
Of measurement in CimEdit 8-2
Unlinked Copy
Definition 6-2
Working with 6-2
Unqualified
Points in CimEdit 9-12
Update
Effect on link container 6-3
Effect on unlinked copy 6-2
Uses
Common for linked objects 6-1
V
VAL 7-6
Value
Set for a variable 10-6
Value
Absolute setpoint 13-24
For a variable 4-12
Invoke method 13-20
Invoke script 13-22
Variable
Assign action 10-6
Create at screen level 4-11
Definition 9-1, 10-1
Delete at screen level 4-12
Example of different values 10-1
Modify at the screen level 4-12
Variable Assign 13-27
GFK-1396F
Index
Index-xix
W
Wait
Command line argument B-14
Waitforproject
Command line argument B-14
Warning
Function 7-3
WARNING_LOW
Function 7-3
Welcome
To CimEdit 1-1
While Key Down
Event 12-14
While Mouse Down
Event 12-21
Width
Scaling an object 11-12
Specify for an object 8-4
Specifying for screen 4-3
Workbench
Open CimEdit screen 2-1
Working directory
Execute command 13-12
Working With
Link containers 6-3
Workspace
Aids displayed on the screen 4-5
X
X^Y 7-8
XOR 7-6
Z
Zoom
CimEdit screen display size 4-8
Zoomtobestfit
Command line argument B-14
Index-xx
GFK-1396F