09-18-2019, 08:48 PM
I recommend you to use M codes for this purpose (assuming you use DXF2Gcode to import DXF files). Behind the scenes, a G-code program is generated and imported in RoboDK.
RoboDK will automatically create a program call given any M code. DXF2Gcode automatically creates M codes M3 and M9 when approaching and retracting each path respectively. You can view or modify this in the post processor configuration when you open DXF2Gcode.
However, this default M code is triggered before the approach and after the retract. Therefore, a workaround to have another M code that represents the weld area could be to output an M code at the same time you change the speed (see Feed rate change option above). Note that feed is in inch/min but you'll see it in mm/s in RoboDK. This does not apply to the M code in this example.
The fastest way to solve this would be to define a new JBI program named M5 and M15 to call LaserOn and LaserOff respectively. Other ways to customize this output would be to modify the post processor to trigger specific programs given an M code or given a change in the Z coordinate of your target.
Albert
RoboDK will automatically create a program call given any M code. DXF2Gcode automatically creates M codes M3 and M9 when approaching and retracting each path respectively. You can view or modify this in the post processor configuration when you open DXF2Gcode.
However, this default M code is triggered before the approach and after the retract. Therefore, a workaround to have another M code that represents the weld area could be to output an M code at the same time you change the speed (see Feed rate change option above). Note that feed is in inch/min but you'll see it in mm/s in RoboDK. This does not apply to the M code in this example.
The fastest way to solve this would be to define a new JBI program named M5 and M15 to call LaserOn and LaserOff respectively. Other ways to customize this output would be to modify the post processor to trigger specific programs given an M code or given a change in the Z coordinate of your target.
Albert