Machine Setup Configuration Examples - rktech-de/Inkscape-to-Laser-GCode GitHub Wiki

LinuxCNC (analog out)

Laser connected by:

Name Direction LinuxCNC signal-name Description
LaserPowerEnabel Out motion.digital-out-00 Switch on/off laser Power supply
LaserPowerOK In motion.digital-in-00 is high when laser is ready to run
LaserPower A-Out motion.analog-out-00 laser power 0..100

This configuration is valid for B/W and gray scale images

Setting Name Setting Value Description
Name of this GCode setting
Init code M65 P0{NL}M68 E0 Q0{NL}G90 G21{NL}(Wait Laser ready){NL}M64 P0{NL}M66 P0 L3 Q999{NL}F{FEED} Disable Laser, switch laser on, wait for laser ready
Post code M65 P0{NL}M68 E0 Q0{NL}M2 Disable Laser
Start of line code (Scanline {SCNL}, move dir {PDIR}){NL}G0 X{XPOS} Y{YPOS} Goto start of scan line
Power level change code G1 X{XPOS} Y{YPOS} {PCMT} move to next power transition with 'laser on/off command'
Laser ON command M67 E0 Q{POWT} set laser power to calculated pixel value
Laser OFF command M67 E0 Q0 switch laser off
Laser on threshold 254 for pixel value white (255) use switch laser off otherwise the calculated power
engraving feed rate 3000 depends on material
Minimum laser power value 0 depends on material
Maximum laser power value 100 depends on material
Distance for acceleration 10 this value can be used on my machine up to a feed rate of 5000