Using a Stop Command In Maestro Control Center Script

We are using a 1350 Maestro 6 Channel Controller. We would like to run our script on time at startup, then stop. We will momentarily interrupt power by pressing a switch, then reapply power when the switch is released to fire the script one time for each button press. What is the syntax for adding a stop command to the end of the script ?

Do we simply remove the “repeat” command?

Our Calibration Script

begin
5000 8680 6020 0 0 0 0 frame_0…5 # Y Axis + (Start)
9000 7100 0 frame_0_1 # X Axis -
9000 5556 frame_0 # Y Axis -
9000 3980 6020 frame_0_1 # X Axis +
9000 4380 frame_1 # Z Axis -
20000 3976 7569 frame_0_1 # Z Axis +
3000 8680 6020 frame_0_1 # Return To Start Y-Axis +
repeat
sub frame_0…5
5 servo
4 servo
3 servo
2 servo
1 servo
0 servo
delay
return
sub frame_0_1
1 servo
0 servo
delay
return
sub frame_0
0 servo
delay
return
sub frame_1
1 servo
delay
return

Hello.

You can place a “QUIT” command before your “REPEAT” command to stop your script before repeating.

-Derrill

Is it also acceptable to delete everything after the “repeat” command ?

No, those are the subroutines that your main code is calling; deleting them would erase the data for each of your frames and cause errors.

-Derrill