Hi, I'm very new to linuxcnc and this forum, so forgive me if this is easy to answer from the documentation. I'm working to build a hybrid 3D printer for metals (DED+CNC) and I'm trying to better understand what custom M code can do. Our printer will have a CNC spindle as well as a laser head mounted together. The laser is controlled using a simple ethernet interface. The laser will be plugged into a router with the desktop and MESA hardware. Is it possible to create an M-code that can be called from LinuxCNC that will allow for ethernet communications with the laser controller? As far as I can tell I can assign an unused M code to run a python function and have two parameters that can be passed. Are there any limitations on this that would prevent me from using ethernet to talk to the laser?
Thank you in advance.