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
Содержание JVM-407B-HMI
Страница 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Страница 14: ......
Страница 26: ...26 Jetter AG 2 Product description and design Rear view...
Страница 34: ......
Страница 80: ......
Страница 98: ...98 Jetter AG 5 Initial commissioning Initial commissioning in JetViewSoft see page 86 Related topics...
Страница 106: ......
Страница 144: ......
Страница 168: ......
Страница 178: ......
Страница 182: ......
Страница 196: ...196 Jetter AG 10 Programming If Merker1 Then Inc Status_LEDs Delay T 100ms End_If End_Loop End_Task...
Страница 220: ...220 Jetter AG 10 Programming Topic Page Programming 221 Registers 233 Sample programs 238 Contents...
Страница 258: ......
Страница 268: ......
Страница 274: ......
Страница 294: ...294 Jetter AG Appendix Rear view...
Страница 299: ......