Skip to content

How to suspend or restart the current motion

TopgunZh edited this page Sep 23, 2019 · 3 revisions

Caution

If want to use this funtion, must make sure the firmware is v4.5.0 or later.

For Gcode cmd

send "S1000 V0" string to suspend current motion

send "S1000 V1" string to restart current motion

For python library

swift.set_position(x=200, y=0, z=150, speed=10, wait=True, timeout=10) #init positon

swift.set_position(x=200, y=0, z=0, speed=10) # this must close wait system time.sleep(1) swift.send_cmd_sync(msg='S1000 V0') # suspend motion

time.sleep(2) swift.send_cmd_sync(msg='S1000 V1') # restart motion