104
Jetter AG
5 Initial commissioning
Using visualization commands to manipulate visualization objects
Visualization commands are functions included in the JetSym visualization
library. These function can be invoked in the JetSym STX program. Thus,
visualization commands let you manipulate visualization objects directly from
within the JetSym STX program. The description below shows how to change,
for example, the fill color of an ellipse using the corresponding visualization
command.
All available commands have been declared in the file
VISU_Functions.stxp
.
Predefined data types, such as the color as RGB value, attributes and key
codes have been declared in the file
VISU_Defines.stxp
. Both files form an
integral part of the visualization library.
For the compiler to compile the following program without errors, add the
program code listed below to the sample programs:
#Include
"VisualInterface.stxp"
;
Function
OnKeyDown (KeyCode:long, Flags:long)
End_Function
;
Function
OnKeyUp (KeyCode:long, Flags:long)
End_Function
;
The application program is to control the color change of an ellipse through
the fill color attribute. After 5 seconds the fill color is to change from red to blue
and after another 5 seconds back from blue to red.
The application program invokes the function
VisuCmdAttribute()
at regular
intervals (cycles).
Var
Flag: Bool
At
%MX
1
;
End_Var
;
Task
Visu_STX
Autorun
Flag :=
FALSE
;
Loop
If
Flag =
FALSE
Then
Flag :=
TRUE
;
ELSE
Flag :=
FALSE
;
End_If
;
Case
Flag
Of
TRUE
: VisuCmdAttribute (Ellipse_4000,
ELLIPSE_ATTR_FILLATTRIBUTE, FillAttribute_Blue);
Break
;
FALSE
: VisuCmdAttribute (Ellipse_4000,
ELLIPSE_ATTR_FILLATTRIBUTE, FillAttribute_Red);
Break
;
Introduction
Components of the
visualization library
Prerequisites
Task 1
Task 1 - Solution
Task 1 - JetSym-STX
program
Summary of Contents for JVM-407B-HMI
Page 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Page 14: ......
Page 26: ...26 Jetter AG 2 Product description and design Rear view...
Page 34: ......
Page 80: ......
Page 106: ......
Page 144: ......
Page 168: ......
Page 178: ......
Page 182: ......
Page 258: ......
Page 268: ......
Page 274: ......
Page 294: ...294 Jetter AG Appendix Rear view...
Page 299: ......