
Section 4 General Programming
4.9
If it is desired to execute a MACRO more than the allowed 255 times,
another MACRO can be created to invoke the first. For example…
MACRO 2
<return>
DOMACRO 1,200
<return>
DOMACRO 1,200
<return>
DOMACRO 1,200
<return>
ENDM
<return>
DOMACRO 2 <return>
will execute MACRO 1 a total of 600 (200+200+200) times while…
DOMACRO 2,100 <return>
will execute MACRO 1 a total of 60000 (100*[200+200+200]) times.
An additional time interval specifier, in seconds, can be included with
the number of times specifier, to set a precise delay from the start of one
execution to the start of the next. Only one interval timer is provided.
Having two
MACRO
s trying to use it at the same time will cause a
TIMER
IN
USE
error. Type the following…
MACRO 1 <return>
TIME
<return>
ENDM
<return>
MACRO 2 <return>
SET TIME 12:00 PM
<return>
DOMACRO 1,3,5
<return>
TIME
<return>
ENDM
<return>
DOMACRO 2
<return>
Komentáře k této Příručce