No idea why repetier is being brain dead... you would have to ask the developers.
The plugin is just python code.. you can edit it in a text editor, so is easy to add in the two lines
open up laser.py
find the section:
replace with:
NB this is just a educated guess... but should work.
Yes this is now using fan gcode command to turn the laser on and off
eg
M106 S255 laser on full
G4 P0 pause a moment
G1 F100.000000 set the feed rate (speed of move, but also how dark/deap the cut)
G1 X105.6317 Y81.4413 move
G1 X105.6317 Y41.1238 move
G1 X45.9619 Y41.1238 move
G1 X45.9619 Y81.4413 move
G4 P0 pause a moment
M107 S0 laser off
It will use what ever IO pin you have defined as the fan PIN. This is controlled by what motherboard name you give it in your firmware
egs
#define BOARD_RAMPS_14_EFB 43 // RAMPS 1.4 (Power outputs: Hotend, Fan, Bed)
#define BOARD_RAMPS_14_EEB 44 // RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Bed)
#define BOARD_RAMPS_14_EFF 45 // RAMPS 1.4 (Power outputs: Hotend, Fan0, Fan1)
#define BOARD_RAMPS_14_EEF 46 // RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Fan)
#define BOARD_RAMPS_14_SF 48 // RAMPS 1.4 (Power outputs: Spindle, Controller Fan)
Remember that D8 is what ever voltage you apply to the 11amp 12v power pins
But D9 and D10 are what ever voltage you apply to the 5amp 12v power pins, and will be 12v on normal systems. (needed by stepper driver)
I don’t know what your laser takes to power, but if this was me I would use BOARD_RAMPS_14_EEF so the laser is on D8 and you can set what ever supply it needs to the 11amp 12v power plug
If your doing something totally custom, you can edit what pin is being used for the fan by editing pins_RAMPS.h and compiling a custom firmware
NB if you get this working, please post results
The plugin is just python code.. you can edit it in a text editor, so is easy to add in the two lines
open up laser.py
find the section:
'header': """ G90 """,
replace with:
'header': """ G90 M452 M3 S255 """,
NB this is just a educated guess... but should work.
Quote
Quote:
so if I understand well now, I will need to connect the laser head to fan output, and in the plugin I will make the on command is M106 S255 and off command is M106 S00 ? This will give on-off signal during moves when needed to the laser?
Yes this is now using fan gcode command to turn the laser on and off
eg
M106 S255 laser on full
G4 P0 pause a moment
G1 F100.000000 set the feed rate (speed of move, but also how dark/deap the cut)
G1 X105.6317 Y81.4413 move
G1 X105.6317 Y41.1238 move
G1 X45.9619 Y41.1238 move
G1 X45.9619 Y81.4413 move
G4 P0 pause a moment
M107 S0 laser off
It will use what ever IO pin you have defined as the fan PIN. This is controlled by what motherboard name you give it in your firmware
egs
#define BOARD_RAMPS_14_EFB 43 // RAMPS 1.4 (Power outputs: Hotend, Fan, Bed)
#define BOARD_RAMPS_14_EEB 44 // RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Bed)
#define BOARD_RAMPS_14_EFF 45 // RAMPS 1.4 (Power outputs: Hotend, Fan0, Fan1)
#define BOARD_RAMPS_14_EEF 46 // RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Fan)
#define BOARD_RAMPS_14_SF 48 // RAMPS 1.4 (Power outputs: Spindle, Controller Fan)
Remember that D8 is what ever voltage you apply to the 11amp 12v power pins
But D9 and D10 are what ever voltage you apply to the 5amp 12v power pins, and will be 12v on normal systems. (needed by stepper driver)
I don’t know what your laser takes to power, but if this was me I would use BOARD_RAMPS_14_EEF so the laser is on D8 and you can set what ever supply it needs to the 11amp 12v power plug
If your doing something totally custom, you can edit what pin is being used for the fan by editing pins_RAMPS.h and compiling a custom firmware
NB if you get this working, please post results