motion_pause()
Features
This function pauses the motion being performed. Only the motion currently being performed is paused, and other functions that operate asynchronously are not affected.Pause the motion being performed. Only the motion currently being performed is paused, and other functions that operate asynchronously are not affected.
Parameters
None
Return
Value | Description |
---|---|
0 | Success |
Negative value | Error |
Exception
Exception | Description |
---|---|
DR_Error (DR_ERROR_TYPE) | Parameter data type error occurred |
DR_Error (DR_ERROR_VALUE) | Parameter value is invalid |
DR_Error (DR_ERROR_RUNTIME) | C extension module error occurred |
DR_Error (DR_ERROR_STOP) | Program terminated forcefully |
Example
amovej([0, 0, 90, 0, 90, 0], 60, 30)
wait(1)
motion_pause()
wait(1)
motion_resume()
Related commands
- movej(pos, vel, acc, time, radius, mod, ra, ref)
- movel(pos, vel, acc, time, radius, ref, mod, ra, app_type)
- movejx(pos, vel, acc, time, radius, ref, mod, ra, sol)
- movec(pos, pos2, vel, acc, time, radius, ref, mod, angle, ra, ori, app_type)
- movesj(pos_list, vel, acc, time, mod)
- movesx(pos_list, vel, acc, ref, mod, vel_opt)
- moveb(pos_list, vel, acc, time, ref, mod, app_type)
- move_spiral(rev, rmax, lmax, vel, acc, time, axis, ref)
- move_periodic(amp, period, atime, repeat, ref)
- amovej(pos, vel, acc, time, mod, ra, ref)
- amovel(pos, vel, acc, time, ref, mod, ra, app_type)
- amovejx(pos, vel, acc, time, ref, mod, ra, sol)
- amovec(pos, pos2, vel, acc, time, ref, mod, angle, ra, ori, app_type)
- amovesj(pos_list, vel, acc, time, mod)
- amovesx(pos_list, vel, acc, time, ref, mod, vel_opt)
- amoveb(pos_list, vel, acc, time, ref, mod, app_type)
- amove_spiral(rev, rmax, lmax, vel, acc, time, axis, ref)
- amove_periodic(amp, period, atime, repeat, ref)