Hi Repetier.
i really like that idea because it would accomplish exactly what i need. My laser has a max pulse output of 1 kHz and even at that i think it would go through bulbs like crazy. Its a flash lamp pumped nd yag and the bulbs are $360 US so its in my financial best interest to keep the pulse rate low. At this point the speed of the machine movement at a very slow rate will be sufficient.
The default code (not using the CUSTOM_EVENTS), which is very well written by the way ☺, works exactly the way i want. Im not using a special software like inkscape to generate G3 S*** commands because it isnt what im doing with the machine. Im just using repetier host with slic3r. If i add the M452 to gcode to slic3r with no M3 commands, and start a print, repetier fires exactly at the start of each layer and shuts off during moves which is perfect. I just need it to fire at a required frequency. Im using relay logic to communicate with the laser so thats another reason to keep the frequency down. If i find i need higher frequency ill switch to TTL, but relay will work just fine for now.. and its simpler.
Without adjusting the frequency for the PWM pin 44, the best result ive got is to modify the code to loop
LaserDriver::changeIntensity = 255
and
LaserDriver::changeIntensity = 0
using an appropriate trigger that stays "true" only during the realtime print of the current layer. So far ive been using fanSpeed == cur->secondSpeed && linesCount != 0. This works ok but the laser is on during the initial move which is not good. But works perfect for all layers after that. Can you suggest a trigger that would work better?
As well, the PWM will ultimately work the best because i can leave the repetier code as-is and do the frequency through the pin 44. Can you tell me a good way to modulate that pin at full 5 vdc @ 1Hz - 1kHz?
I am going to create two firmware versions with the two methods. I will use the one that works the best for what i am doing.
Thanks for your help Repetier!