![Jetter JVM-507B - HMI Скачать руководство пользователя страница 76](http://html2.mh-extra.com/html/jetter/jvm-507b-hmi/jvm-507b-hmi_user-manual_3864918076.webp)
76
Jetter AG
6 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-507B - HMI
Страница 1: ...User Manual JVM 507B HMI 60881526 We automate your success...
Страница 8: ......
Страница 12: ......
Страница 52: ......
Страница 70: ...70 Jetter AG 6 Initial commissioning Initial commissioning in JetViewSoft see page 58 Related topics...
Страница 78: ......
Страница 88: ......
Страница 99: ...Jetter AG 99 JVM 507B Programming If Merker1 Then Inc Status_LEDs Delay T 100ms End_If End_Loop End_Task...
Страница 106: ......
Страница 128: ......
Страница 146: ...146 Jetter AG Appendix The JVM 507B is intended for installation in the driver s cabin Installation location...
Страница 151: ......