Spindle Actions

class qtpyvcp.actions.spindle_actions.brake[source]

Spindle brake Group

static off(spindle=0)[source]

Set spindle brake OFF.

Parameters:spindle (int, optional) – The number of the spindle to apply the override to. If spindle is not specified spindle 0 is assumed.
static on(spindle=0)[source]

Set spindle brake ON.

Parameters:spindle (int, optional) – The number of the spindle to apply the override to. If spindle is not specified spindle 0 is assumed.
static toggle(spindle=0)[source]

Toggle spindle brake ON/OFF.

Parameters:spindle (int, optional) – The number of the spindle to apply the override to. If spindle is not specified spindle 0 is assumed.
qtpyvcp.actions.spindle_actions.constant(spindle=0)[source]

Unclear

qtpyvcp.actions.spindle_actions.faster(spindle=0)[source]

Increase spindle speed by 100rpm.

Parameters:spindle (int, optional) – The number of the spindle to increase the speed of. If spindle is not specified spindle 0 is assumed.
qtpyvcp.actions.spindle_actions.forward(speed=None, spindle=0)[source]

Turn a spindle ON in the FORWARD direction.

Parameters:
  • speed (float, optional) – The requested speed to spin the spindle at. If speed is not specified the current interpreter speed setting (as set by the last S word) is used, taking into account the value of the spindle override if it is enabled.
  • spindle (int, optional) – The number of the spindle to turn ON. If spindle is not specified spindle 0 is assumed.
qtpyvcp.actions.spindle_actions.getSpeed(spindle=0)[source]

Gets the interpreter’s speed setting for the specified spindle.

Parameters:spindle (int, optional) – The number of the spindle to get the speed of. If spindle is not specified spindle 0 is assumed.
Returns:The interpreter speed setting, with any override applied if override enabled.
Return type:float
qtpyvcp.actions.spindle_actions.off(spindle=0)[source]

Turn a spindle OFF.

Parameters:spindle (int, optional) – The number of the spindle to turn OFF. If spindle is not specified spindle 0 is assumed.
qtpyvcp.actions.spindle_actions.override(override, spindle=0)[source]

Set spindle override percentage.

Parameters:
  • override (float) – The desired spindle override in percent.
  • spindle (float, optional) – The number of the spindle to apply the override to. If spindle is not specified spindle 0 is assumed.
qtpyvcp.actions.spindle_actions.reverse(speed=None, spindle=0)[source]

Turn a spindle ON in the REVERSE direction.

Parameters:
  • speed (float, optional) – The requested speed to spin the spindle at. If speed is not specified the current interpreter speed setting (as set by the last S word) is used, taking into account the value of the spindle override if it is enabled.
  • spindle (int, optional) – The number of the spindle to turn ON. If spindle is not specified spindle 0 is assumed.
qtpyvcp.actions.spindle_actions.slower(spindle=0)[source]

Decrease spindle speed by 100rpm.

Parameters:spindle (int, optional) – The number of the spindle to decrease the speed of. If spindle is not specified spindle 0 is assumed.