Download USER`S GUIDE

Transcript
User's Guide
Wait
Meaning:
Suspends the execution of the script until a delay is elapsed.
Syntax:
Wait <delay>
Arguments:
<delay> delay expressed according to IEC conventions for time
constant expression. The "T#" or "TIME#" prefix can be omitted.
Delay value must between 10 milliseconds and 1 hour.
Notes:
Accuracy of the "Wait" instruction is not precise as it depends on the
host Windows system. Also, the delay should be considered with an
accuracy of plus or minus one ISaGRAF cycle. When a "Wait"
instruction is reached, ISaGRAF cycles are performed until the delay
is elapsed and before continuing the script execution.
Example:
PrintTime
Wait 2s
PrintTime
Output:
15:45:27
15:45:29
Meaning:
Labels can be placed anywhere in the script. They are used as a
destination by "Goto" instructions and allow flow control for script
instructions.
Syntax:
<labelname>:
Arguments:
<labelname> unique name according to ISaGRAF variable naming
conventions: limited to 16 characters, beginning with a letter, followed
by letters, digits or underscore characters. When defined, label name
should be followed by a ":" character.
Notes:
No instruction should be placed on the line where a label is defined.
Label name should not be the same as a declared ISaGRAF variable
symbol
Example:
(* example of a script with an infinite loop *)
loop:
PrintTime
Wait 1s
Goto loop
Labels
ICS Triplex ISaGRAF Inc.
A-141