![LabSmith HVS448 User Manual Download Page 34](http://html1.mh-extra.com/html/labsmith/hvs448/hvs448_user-manual_3205695034.webp)
34
SetFlag
Usage:
SetFlag {F1, F2, F3, F4}
This instruction sets the specified flag. The flag can be released by executing the RelFlag instruction.
Notes: More than one channel can set a flag.
RelFlag
Usage:
RelFlag {F1, F2, F3, F4}
This instruction releases the specified flag. a flag is only “cleared” when all channels that set a flag have, in turn, released the
flag. This instruction has no other effect.
FlagSet?
Usage:
FlagSet? {F1, F2, F3, F4}
This instruction tests whether the specified flag is set. If it is set, the next instruction is executed. If it is not set, the next
instruction is skipped. This instruction has no other effect.
Example:
FlagSet? F1
; Test whether F1 is set
Goto HandleF1Set
; If it is do this
...
; If it is not, do this
FlagClear?
Usage:
FlagClear? {F1, F2, F3, F4}
This instruction tests whether the specified flag is clear. If it is clear, the next instruction is executed. If it is not clear, the next
instruction is skipped. This instruction has no other effect.
Example:
FlagClear? F1
; Test whether F1 is clear.
Goto HandleF1Clear; If it is do this.
...
; If it is not, do this.
Await
Usage:
Await [{F1, F2, F3, F4, NewStep, Trigger}]
This instruction pauses until the specified event:
-
F1-F4: Pause until the respective flag is set. If the flag is already set, complete the instruction immediately.
-
NewStep: Pause until a step instruction occurs. The instruction will complete only after the execution of a “Continue”
instruction.
-
Trigger: Pause until the channel input transitions from low to high.
When the Await command completes, it resets the Pause timer.
Example:
...
Await Trigger
; Resume execution after low-to-high transition of input
10 ms
;
Pause
;
...
; Execute these instructions 10 ms after the trigger.
Output
Usage:
Output {Set, Clear}