polychemprint3.axes.nullAxes module¶
Implements axes3DSpec as null axes (returns successful to all).
First created on Sat Oct 19 20:39:58 2019
Revised: 23/10/2019 14:06:59
Author: Bijal Patel
-
class
polychemprint3.axes.nullAxes.
nullAxes
(name='nullAxes', posMode='relative', __verbose__=0)¶ Bases:
polychemprint3.axes.axes3DSpec.Axes3DSpec
Implementing axes3D for null case.
-
activate
()¶ Makes required connections and returns status bool.
Returns: True if ready to use False if not ready Return type: bool
-
deactivate
()¶ Closes communication and returns status bool.
Returns: True if closed succesfully False if failed Return type: bool
-
getAbsPosXY
()¶ Gets the current position (absolute) and return XY positions.
Parameters: command (String) – Gcode to write to axes Returns: [X, Y] X and Y positions as strings Return type: String
-
move
(gcodeString)¶ Initializes Axes3D object.
Parameters: - gCodeString (String) – Motion command in terms of Gcode G0/G1/G2/G3 supported
- Returns (|) –
- none (|) –
-
poll
(command)¶ Sends message to axes and parses response.
Parameters: command (String) – to write to axes Returns: Response from axes Return type: String
-
sendCmd
(command)¶ Writes command to axes device when ready.
Parameters: command (String) – to write to axes
-
setPosMode
(newPosMode)¶ Sets positioning mode to relative or absolute.
Parameters: newPosMode (String) – Positioning mode to use for future move cmds
-
setPosZero
()¶ Sets current axes position to absolute (0,0,0).
-