Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 349 of 909
EXAMPLE:
END
C0
PRINT("Routine 0",#13)
END
C1
PRINT("Routine 1",#13)
END
C2
PRINT("Routine 2",#13)
END
To run routine 1, the host simply issues GOTO1 to the SmartMotor. If the host issues GOTO2,
the motor runs routine 2. You can use a similar technique to allow the host to control where
the program starts.
Using GOTOnnn to jump to a location within a SWITCH block may be syntactically valid.
However, it can yield unexpected runtime program execution when a CASE number is
encountered.
RELATED COMMANDS:
GOSUB(label) Subroutine Call (see page 463)
GOTO(label) Branch Program Flow to a Label (see page 465)
Part 2: Commands: C{number}