pause()

Pauses or resumes the machine operation.

- If called with no arguments, it toggles the pause state.
- If called with one argument, it explicitly pauses (`1`) or resumes (`0`) the machine.

Syntax

pause()
pause(state)

Parameters

Parameter Type Description
state Number (Optional) `1` to pause, `0` to resume. optional

Return Value

Examples

Toggle the pause state

pause();  

Pause the machine

pause(1);

Resume the machine

pause(0);

See also

estop
stop
pause
start