Skip to content

Center geometry for gcode  #32

@ahmed2007

Description

@ahmed2007

Dear all,
I tried to center the geometry for HPGL and it is working well, using the option "--center" or "layout".

However i can't have the same option with gcode. So can i have my geometry center with gcode ? is there any option for gwrite ? or am i missing something in the difinition of my profile in the .tom file.
I left here the profile i created:

[gwrite.gcodemmahmed]
document_start = "G17\nG71\nG90\n"
segment_first = "SC_TOOL[0]\nG0 X{x:.4f} Y{y:.4f}\n"
segment = "SC_TOOL[1]\nG1 X{x:.4f} Y{y:.4f}\n"
document_end = "G0 X0 Y0\nM2\n"
unit = "mm"
vertical_flip = true
info= "This gcode profile is correctly inverted across the y-axis"
offset_x = 0
offset_y = 0

Thank you guys!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions