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
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: ......