Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 675 of 909
EXAMPLE:
PRINT("WAIT FOR HOST TERMINAL COMMANDS",#13)
GOSUB10 'Start of subroutine 10.
PRINT("PROGRAM RECEIVED EXTERNAL RETURN")
END
C10 'Start of subroutine 10.
WHILE 1 'Wait for terminal commands.
WAIT=100 'Report terminal errors.
IF Bs
PRINT(#13,"SCAN ERROR",#13)
Zs
ENDIF
LOOP
RETURN 'Return to line just below GOSUB10 command.
RELATED COMMANDS:
C{number} Command Label (see page 348)
END End Program Code Execution (see page 431)
GOSUB(label) Subroutine Call (see page 463)
RETURNI Return Interrupt (see page 676)
RUN Run Program (see page 682)
RUN? Halt Program Execution Until RUN Received (see page 684)
Part 2: Commands: RETURN