K40 Laser Conversion

330 views
Skip to first unread message

Simon5030

unread,
Nov 9, 2016, 3:30:19 PM11/9/16
to Opensource Laser
Hello to all, first post!

I am most of the way through converting my K40 laser to use RAMPS 1.4, all connected up and X,Y axis movement looks correct,
I have created a GCode file using Inkscape but using J Tech Photonics plugin, all seems to work OK, i have opened up the GCode file and had a look around, ran a test and all the movements seem correct, now ready to connect up my LASER, using the menu on the RAMPS Smart LCD controller, sent the head home OK, ran a test on the laser head 20% for 50ms and this turned the laser on and kept it on! Then reset and tried again same result, reset again and ran a short program and the laser never turned on? Program below.

M107 S0
G90 (absolute positioning)
G21 (set units to mm)
G1 F1000 (set feed rate to 1000)
G1  X100 Y100 (controlled movement)
G4 P1000
M016 S100
G4 P0
G1 F500
G1  X150
G1  Y150
G1  X100
G1  Y100
G4 P0
M107 S0
G4 P0
G1 F5000 (set feed rate)
G4 P2000
G1 X50 Y50
M18 (disable all stepper motors)

I have connected my boards up following this write-up http://3dprintzothar.blogspot.co.uk/2014/08/40-watt-chinese-co2-laser-upgrade-with.html
The part i am struggling with a bit is everything says the laser turns on with G1 but in my output from Inkscape it suggest that laser on is M016 S255 and off is M107 S0 (S being the laser power)
Cannot work out why the RAMPS smart LCD keeps the laser on when running a burst test?
Cannot figure out why my laser will not fire on the above program? does the laser power have to be set a S255?
How do i test the output from the RAMPS for Laser Fire and PWM? not sure what to look for?

I know the next part is trying to feed you all info so please feel free to ask more questions

Many Thanks
Simon

ritchie p

unread,
Dec 15, 2016, 11:36:15 AM12/15/16
to Opensource Laser
you code says M016 it should be M106 this is why you lasers not switching on

timne0

unread,
Apr 7, 2017, 6:56:35 AM4/7/17
to Opensource Laser
What firmware do you use? MK4Duo has an option for flipping the on/off if it's not the gcode...


On Wednesday, 9 November 2016 20:30:19 UTC, Simon5030 wrote:
Reply all
Reply to author
Forward
0 new messages