Jetter AG
195
JVM-407B
Programming
Flags
Flags are one-bit operands. This means they can either have the value TRUE
or FALSE.
Global variables which are assigned to permanent addresses (%MX)
Non-volatile
Quantity: 256
Flag numbers: 0 ... 255
Global variables which are assigned to permanent addresses (%MX)
Non-volatile
Overlaid by registers 1000000 through 1000055
Quantity: 1,792
Flag numbers: 256 ... 2047
Global variables which are assigned to permanent addresses (%MX)
When the operating system is launched, special flags are initialized using
their default values.
Quantity: 256
Flag numbers: 2048 ... 2303
By JetSym
From HMIs
From the application program
In the program listed below, a flag is set when the user presses key F1. If key
F2 is pressed, the flag is reset. As long as this flag is set, special register
362100 (Status LED) is incremented. Incrementing of the special register
continues until the flag is reset.
Var
Merker1: Bool
At
%MX
1
;
Input_Button_1: Bit
At
%XL
361000.0
;
Input_Button_2: Bit
At
%XL
361000.1
;
Status_LEDs: Int
At
%VL
362100
;
End_Var
;
Task
Main
Autorun
Merker1:=
False
;
Loop
If
Input_Button_1
Then
Merker1 :=
True
;
ElseIf
Input_Button_2
Then
Merker1 :=
False
;
End_IF
;
Introduction
Properties of user flags
Properties of overlaid
user flags
Properties of special
flags
Memory access
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: ......