Welcome! Log In Create A New Profile

Advanced

Repetier Firmware, M106 Fan command, and Laser Diode Question

Posted by lslewis901 
Repetier Firmware, M106 Fan command, and Laser Diode Question
June 20, 2015 09:03AM
Hello,

I am using the 0.92 version of the Firmware on a Prusa I3 DIY Kit.

I have connected a laser diode (from J Tech Photonics) to D8 on the Ramps 1.4 board. To control the laser I am using M106 Sxxx for 8 bit control of the laser diode.

My problem is that I can see that there are several fan control g code commands M106 sent by the Repetier host software and processed by the firmware even while the first G1 move command is still be running. How can I keep the G1 move commands in sync with the M106 commands from a physical process perspective?

short example
; turn on laser
M106 S255.0000
;start moving
G1 Y89.9000
G1 X119.9000
G1 Y0.0000
G1 X0.0000
M107
G1 X0 Y0.1
; this M106 command is already processed while the laser is still moving from above commands
M106 S14
G1 X0 Y0.2
M106 S15

Thanks
Lindsey
Re: Repetier Firmware, M106 Fan command, and Laser Diode Question
June 20, 2015 10:50AM
M400 will wait until all buffered commands are executed. So put a M400 before every change to the laser.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Sorry, only registered users may post in this forum.

Click here to login