Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 181 of 909
Program Flow Details
This chapter provides information on using program flow commands with the SmartMotor.
Introduction 182
Flow Commands 182
RUN 183
RUN? 183
GOTO#, GOTO(label), C# 183
GOSUB#, GOSUB(label), RETURN 184
IF, ENDIF 184
ELSE, ELSEIF 185
WHILE, LOOP 186
SWITCH, CASE, DEFAULT, BREAK, ENDS 186
TWAIT 187
WAIT=formula 187
STACK 187
END 188
Program Flow Examples 189
IF, ELSEIF, ELSE, ENDIF Examples 189
WHILE, LOOPExamples 189
GOTO(), GOSUB() Examples 190
SWITCH, CASE, BREAK, ENDS Examples 191
Interrupt Programming 192
ITR(), ITRE, ITRD, EITR(), DITR(), RETURNI 192
TMR(timer,time) 194
Part 1: Programming: Program Flow Details