Anasoft
Autowork User's Guide
5.4.8
Editing System Operation Instructions
Contents 5.4.10
Editing Variable Operation Instructions
5.4.9 Editing Control Instructions
back
to 5.4
Editing the Instructions of a Macro
Current
edition of Autowork supports Repeat controls. More advanced
controlling instructions such as if, then, else, for, while are within our
plan to be implemented in future editions step by step.
Pic UG-5.4-9-1 Repeat Control instructions
Repeat
Control
Repeat
controls appear in pairs. A repeat loop starts with "Repeat Start"
and ends with "Repeat End". Repeat Start has a parameter
"Repeat Count". Its valid values range between 1 and 20000. The maximum value
20000 is
enough for most of our imaginable requirements. Larger repeat count is
not recommended, but if you hope to realize it, you can also realize it by
providing multiple repeat loops one around another. There is no limit on
how many layers of repeat loops you can implement in an Autowork
macro.
The
instructions within a control loop will be indented to show they are within a
control loop. Pic UG-5.1-1 is
an example. The first instruction in Pic UG-5.1-1 is a Repeat Start
instruction. All instructions after it and before the next Repeat End will be
indented relative to this instruction to show they are within a loop. The
number 20 after Repeat Start means this loop will repeat for 20 times.
|