Jetter AG
105
JVM-407B
Initial commissioning
End_Case
;
Delay(
T#5s
);
End_Loop
;
End_Task
;
When a certain button is activated (Button_10000), the fill color of a rectangle
object is to change to red.
When a second button is activated (Button_10001), the fill color of the same
rectangle object is to change to blue. The digipot is used to activate the
buttons.
Assign in JetViewSoft the event
OnButtonDown
to both buttons. When this
event occurs, the macro function
CallSTXFunctionEx()
is invoked.
In the application program, a function has been declared which in turn
executes a visualization command. In the given case it is the function
VisuSTXFunction()
.
The SenderID holds the information which button has been pressed. A case
instruction is used to retrieve this information.
Function
VisuSTXFunction (SenderID : long)
Case
SenderID
Of
Button_10000: VisuCmdAttribute (Rectangle_3000;
RECTANGLE_ATTR_FILLATTRIBUTE, FillAttribute_Red);
Break
;
Button_10001: VisuCmdAttribute (Rectangle_3000;
RECTANGLE_ATTR_FILLATTRIBUTE, FillAttribute_Blue);
Break
;
End_Case
;
End_Function
;
Task
Visu_STX
Autorun
End_Task
;
Once you have selected the macro function
CallSTXFunctionEX()
in a macro
object, this function with its name is declared in the file
VisualInterface.stxp
as
forward
.
Task 2
Task 2 - Solution
Task 2 - JetSym-STX
program
Note
Содержание 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: ......