diegoroman17 wrote:I have a cnc laser machine. I need control it with 5i25 and 7i78 mesa cards.
Dual 7i78s seems an odd choice for a 2-axis machine. You seem to have a lot more step/dir outputs than you need, but no general-purpose IO.
I would have thought that a single 7i76 would have been a better choice?
The source laser power is controled for PWM pulses but this pulses should be synchronized with the velocity x-y to avoid discontinuity in the cutting or engraver. Exist any G code for this?
Someone has come up with a solution which varies the PWM output to be a constant number of "dots per inch" but I couldn't really understand the system they used.
wiki.linuxcnc.org/cgi-bin/wiki.pl?Rastering_With_A_Laser
It ought to be possible to use the HAL "hypot" function to calculate the current travel velocity and scale the PWM intensity.
Are you using raster or vector artwork?