P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 617 of 909
PAUSE
Pause Program Execution
APPLICATION:
Program execution and flow control
DESCRIPTION:
Pause program execution; used for interrupts
EXECUTION:
Immediate
CONDITIONAL TO:
User program running
LIMITATIONS:
N/A
READ/REPORT:
N/A
WRITE:
Write only
LANGUAGE ACCESS:
N/A
UNITS:
N/A
RANGE OF VALUES:
N/A
TYPICAL VALUES:
N/A
DEFAULT VALUE:
N/A
FIRMWARE VERSION:
5.x and later
COMBITRONIC:
PAUSE:3
where ":3" is the motor address — use the actual address or a
variable
DETAILED DESCRIPTION:
When executed, the PAUSE command suspends program execution until the RESUME
command is received. It will not affect the current state of the Interrupt Handler (i.e., if the
Interrupt Handler is enabled, it will still be enabled after a PAUSE), and its execution has no
effect on the interrupt/subroutine stack.
PAUSE is primarily used to put the main part of a program to sleep when a program is 100%
driven by interrupt events. Additionally, PAUSE is very useful for debugging. For instance, you
may wish to pause a program at key locations when trying to isolate a problem:
PRINT("Debug pause, type RESUME",#13)
PAUSE
PRINT("Resumed",#13)
There is a separate stack for PAUSE, which will restore the state of PAUSE (that existed
before a GOSUB from a terminal or an interrupt) after a RETURN or RETURNI. Any RESUME
that occurred during the time the GOSUB or interrupt routine was executing will not impact
the PAUSE in the previous context.
Part 2: Commands: PAUSE
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...