Postprocessor-Example China Laser Cutter

Copy&Paste the configuration below into a file called source/postpro_config/styrofoam.cfg

Open Questions: Does the Laser Cutter Support Feed Rate? If so change the following accordingly:
feed_change = F%feed%nl

Can the Laser Cutter support G2 or G3 commands? If so change the following accordingly:
arc_int_cw = G2 X%XE Y%YE I%I J%J%nl
arc_int_ccw = G3 X%XE Y%YE I%I J%J%nl

Missing things:
We need to convert the Arc's to lines if Arcs are not supported:

To be continued ....

# Configuration file for a laser cutter output:
# * no movement in Z-Axis
# * 
# by Christian Kohloeffel

#  Section and variable names must be valid Python identifiers
#      do not use whitespace in names 

# do not edit the following section name:
[Version]

    # do not edit the following value:
    config_version = 4

[General]
    output_format = .ngc
    output_text = laser cutting G-CODE for LinuxCNC 
    output_type = g-code

    abs_export = True
    cancel_cc_for_depth = False
    cc_outside_the_piece = True
    export_ccw_arcs_only = False
    max_arc_radius = 10000.0

    code_begin_units_mm = 
    code_begin_units_in = 
    code_begin = 

[Number_Format]
    pre_decimals = 4
    post_decimals = 3
    decimal_seperator = .
    pre_decimal_zero_padding = False
    post_decimal_zero_padding = True
    signed_values = False

[Line_Numbers]
    use_line_nrs = False
    line_nrs_begin = 10
    line_nrs_step = 10

[Program]
    tool_change = 
    feed_change = 
    rap_pos_plane = G0 X%XE Y%YE%nl
    rap_pos_depth = 
    lin_mov_plane = G1 X%XE Y%YE%nl
    lin_mov_depth = 
    arc_int_cw = 
    arc_int_ccw = 
    cutter_comp_off = 
    cutter_comp_left = 
    cutter_comp_right = 
    pre_shape_cut = M5
    post_shape_cut = M3
    comment = %nl(%comment)%nl

Related

Wiki: Home
Wiki: Postprocessor Configuration

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.