Keywords, Control commands, Timing commands – Pololu Maestro User Manual
Page 53

Keywords
keyword
stack
effect
description
BEGIN
none
marks the beginning of a loop
ENDIF
none
ends a conditional block IF…ENDIF
ELSE
none
begins the alternative block in IF…ELSE…ENDIF
GOTO
label
none
goes to the label label (define it with label:)
IF
-1
enters the conditional block if the argument is true (non-zero) in IF…ENDIF or
IF…ELSE…ENDIF
REPEAT
none
marks the end of a loop
SUB name none
defines a subroutine name
WHILE
-1
jumps to the end of a loop if the argument is false (zero)
Control commands
command stack effect
description
QUIT
none
stops the script
RETURN none
ends a subroutine
Timing commands
command stack effect
description
DELAY
-1
delays by the given number of milliseconds
GET_MS
+1
gets the current millisecond timer (wraps around from 32767 to -32768)
Pololu Maestro Servo Controller User's Guide
© 2001–2014 Pololu Corporation
6. The Maestro Scripting Language
Page 53 of 73