sivicncdriver.gcode_maker module¶
A bunch of command to easily create G-Codes.
-
sivicncdriver.gcode_maker.
config_as_gcode
(**kwargs)[source]¶ Make a set of commands to save the configuration.
Parameters: - x_ratio (float) – The X axis ratio (mm/step)
- y_ratio (float) – The Y axis ratio (mm/step)
- z_ratio (float) – The Z axis ratio (mm/step)
- x_drive (int) – X axis drive mode (0:normal, 1:full torque, 2:half step)
- y_drive (int) – Y axis drive mode (0:normal, 1:full torque, 2:half step)
- z_drive (int) – Z axis drive mode (0:normal, 1:full torque, 2:half step)
- x_play (float) – X axis play
- y_play (float) – Y axis play
- z_play (float) – Z axis play
- x_reverse (bool) – Should the X axis be reversed ?
- y_reverse (bool) – Should the Y axis be reversed ?
- z_reverse (bool) – Should the Z axis be reversed ?
- x_min_time (int) – The minimal duration between 2 pulse for the x axis in milliseconds.
- y_min_time (int) – The minimal duration between 2 pulse for the y axis in milliseconds.
- z_min_time (int) – The minimal duration between 2 pulse for the z axis in milliseconds.
-
sivicncdriver.gcode_maker.
start_continuous
(axis, direction='forward')[source]¶ Start a continuous movement in the given direction. :param axis: The axis which is to move. :param direction: The direction. :type axis: str :type direction: str
-
sivicncdriver.gcode_maker.
start_continuous_x_backward
()[source]¶ Start a continuous movement on X axis backward
-
sivicncdriver.gcode_maker.
start_continuous_x_forward
()[source]¶ Start a continuous movement on X axis forward.
-
sivicncdriver.gcode_maker.
start_continuous_y_backward
()[source]¶ Start a continuous movement on Y axis backward
-
sivicncdriver.gcode_maker.
start_continuous_y_forward
()[source]¶ Start a continuous movement on Y axis forward.
-
sivicncdriver.gcode_maker.
start_continuous_z_backward
()[source]¶ Start a continuous movement on Z axis backward
-
sivicncdriver.gcode_maker.
start_continuous_z_forward
()[source]¶ Start a continuous movement on Z axis forward.
-
sivicncdriver.gcode_maker.
step
(axis, n)[source]¶ Moves the given axis of n steps.
Parameters: - axis (str) – The axis
- n (int) – number of steps
-
sivicncdriver.gcode_maker.
step_x
(n)[source]¶ Moves the X axis oh n steps. :param n: The number of steps :type n: int
-
sivicncdriver.gcode_maker.
step_y
(n)[source]¶ Moves the Y axis oh n steps. :param n: The number of steps :type n: int