polychemprint3.axes.axes3DSpec module

Specifies 3D Axes classes, implementations are for specific printers/stages.

First created on Sat Oct 19 20:39:58 2019
Revised: 23/10/2019 14:06:59
Author: Bijal Patel
class polychemprint3.axes.axes3DSpec.Axes3DSpec(name, __verbose__=0, posMode='absolute', **kwargs)

Bases: polychemprint3.utility.loggerSpec.loggerSpec, abc.ABC

Abstract Base Class for 3D Axes.

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 ready to use False if not ready
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)

Moves to the specified gcodeString position.

Parameters:gCodeString (String) – Motion command in terms of Gcode G0/G1/G2/G3 supported
poll(command)

Sends message to axes and returns 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 the current position (absolute) to (0,0,0).