Good afternoon colleagues.
I ask for help connecting the laser to the machine.
My machine works properly without LPT. Scheme XXYYZ. This is five motorcycles. And a spindle. The spindle to the 14-pin LPT port is such a feature of the controller.
I read topics -
forum.linuxcnc.org/10-advanced-configura...pwm-output-for-laser
forum.linuxcnc.org/plasma-laser/32691-settings-from-g-code-file
forum.linuxcnc.org/10-advanced-configura...er-control-using-pwm
From what I read, I understood the following -
1. from the g-code file, control the status and power of the laser using the M67-M68 commands
2. the main thing is that the correct configuration must be made in the machine settings file
My PWM laser is up to 20kgz.
I'm trying to add the following lines -
loadrt pwmgen output_type=1.0 #1 this is for Spindel, 0 for Laser
...
#net spindle-pwm => parport.0.pin-14-out
#setp parport.0.pin-14-out-invert 1
net spindle-cmd-rpm => pwmgen.0.value
net spindle-on <= spindle.0.on => pwmgen.0.enable
net spindle-pwm <= pwmgen.0.pwm
#setp pwmgen.0.pwm-freq 100.0
#setp pwmgen.0.scale 15000.0
#setp pwmgen.0.offset 0.133333333333
#setp pwmgen.0.dither-pwm true
net spindle-cmd-rpm <= spindle.0.speed-out
net spindle-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-cmd-rps <= spindle.0.speed-out-rps
net spindle-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-at-speed => spindle.0.at-speed
#лазерный блок
#addf pwmgen.make-pulses base-thread
# addf pwmgen.update servo-thread
setp parport.0.pin-14-out-invert 0
setp pwmgen.1.enable TRUE
#setp pwmgen.1.pwm-freq 20000
net analogout motion.analog-out-00 => pwmgen.1.value
net laserpwm pwmgen.1.pwm => parport.0.pin-14-out
doesn't work. The laser is not turned on by the M68 E0 Q 1 commands
Please tell me what I'm doing wrong? And is it possible to use the same pin 14 (I physically turn off the spindle or laser) for control?