Program Actions

qtpyvcp.actions.program_actions.reload()[source]

Reload the currently loaded NC program

ActionButton syntax:

program.reload
qtpyvcp.actions.program_actions.clear()[source]

Clear the loaded NC program

ActionButton syntax:

program.clear
qtpyvcp.actions.program_actions.run(start_line=0)[source]

Runs the loaded program, optionally starting from a specific line.

ActionButton syntax:

program.run
program.run:line
Parameters:

start_line (int, optional) – The line to start program from. Defaults to 0.

qtpyvcp.actions.program_actions.step()[source]

Steps program line by line

ActionButton syntax:

program.step
qtpyvcp.actions.program_actions.pause()[source]

Pause executing program

ActionButton syntax:

program.pause
qtpyvcp.actions.program_actions.resume()[source]

Resume a previously paused program

ActionButton syntax:

program.resume
qtpyvcp.actions.program_actions.abort()[source]

Aborts any currently executing program, MDI command or homing operation.

ActionButton syntax:

program.abort
class qtpyvcp.actions.program_actions.block_delete[source]

Block Delete Group

static on()[source]

Start ignoring lines beginning with ‘/’.

ActionButton syntax:

program.block-delete.on
static off()[source]

Stop ignoring lines beginning with ‘/’.

ActionButton syntax:

program.block-delete.off
static toggle()[source]

Toggle ignoring lines beginning with ‘/’.

ActionButton syntax:

program.block-delete.toggle
class qtpyvcp.actions.program_actions.optional_stop[source]

Optional Stop Group

static on()[source]

Pause when a line beginning with M1 is encountered

ActionButton syntax:

program.optional-stop.on
static off()[source]

Don’t pause when a line beginning with M1 is encountered

ActionButton syntax:

program.option-stop.off
static toggle()[source]

Toggle pause when a line beginning with M1 is encountered

ActionButton syntax:

program.optional-stop.toggle
qtpyvcp.actions.program_actions.optional_skip

alias of block_delete