dezsoe wrote:When using the laser power off the spindle (VFD), because the laser output needs (for security) M3 to be turned on and you don't want your spindle to run.
... or run two profiles... one for milling .... one for laser, that way M3 can be assigned for other pins in the different profile
Or use 2 x relays, that way if you run the laser you feed M3 via relay 2 (Laser operation) and if you run the mill you run M3 via relay 1 (Milling operation)
Then you use two additional M-codes of your choice to be embedded within your gcode via post processor to know when its a milling operation and when it is a laser operation. This can be done very easily via sheetcam.
.........or add a 2-way manual switch... to feed the M3 signal to the laser to to the mill accordingly ...... {requires operator to check switch position before every operation}