MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
15.94k stars 19.08k forks source link

[FR] Linuxcnc and Fanuc compatibility #27049

Open hsyngndz85 opened 2 weeks ago

hsyngndz85 commented 2 weeks ago

Is your feature request related to a problem? Please describe.

Yes, it is different, for example there is a G code conflict between Linuxcnc and Fanucla.

Are you looking for hardware support?

No

Describe the feature you want

For example, the G10 command is the filament retraction command in the 3D world, But it is a command related to teams in Linuxcnc and Fanuc. To prevent this, set something like Define 3d gcode standard eneble Define cnc gcode standard eneble A setting like this is required, otherwise we cannot use Marlin in the CNC world. Commands that conflict with these settings may be interpreted differently for different machines.

Additional context

Linuxcnc fanuc and 3d g code standards problem https://linuxcnc.org/docs/html/gcode/g-code.html. Linuxcnc list https://content.fanucworld.com/m-code-g-code-list/ fonic cnc list https://marlinfw.org/meta/gcode/ marlin list

thisiskeithb commented 2 weeks ago

@hsyngndz85: It would be really helpful if you could translate your Feature Requests & comments to English since that is the primary language used for this project.

hsyngndz85 commented 2 weeks ago

Thanks to Arık Marlin, 3D gcode and mcode have become standard. It is impossible to change the names of these codes, but with a setting in config.h, the standard according to which gcode and m codes will be interpreted can be added.

hsyngndz85 commented 2 weeks ago

There seems to be no conflict in M codes, it only exists in pin control. There is a lot of conflict in G codes

thisiskeithb commented 2 weeks ago

There may not be a way to make these compatible, but you can likely create a post-processing script to make them compatible or find someone who may have done this already.

hsyngndz85 commented 2 weeks ago

I tested it now, 3D commands are not recognized in CNC mode, but it does not stop and continues.How do we make the machine stop when an unrecognized command comes?

DerAndere1 commented 2 weeks ago

In general this feature would make sense. But regarding G10, there exist closed PRs that show how LinuxCNC-compatible handling of G10 L P can be added without running into conflicts.