Advanced Search

Search Results (Searched for: )

  • abs32
  • abs32
14 Oct 2025 16:11 - 14 Oct 2025 16:45
Replied by abs32 on topic Secondary PWM Output for LASER

Secondary PWM Output for LASER

Category: Advanced Configuration

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?
  • tommylight
  • tommylight's Avatar
14 Oct 2025 16:09
  • DerKlotz
  • DerKlotz
14 Oct 2025 15:30 - 14 Oct 2025 18:36

Glade Hal Meter Spindle Speed -> postgui

Category: GladeVCP

Hello,
iḿ still a beginner with glade and today i wanted to add a Hal Meter in Glade that shows the spindle speed. 
Things i did so far:
- I found out that i minimum require a float signal (maybe that on the picture attached?)
- i created a Hal Meter in Glade -> see attached file

I tried to add the call for gladevcp.Spindel in my machine.ini but didn't realize that Glade starts after the machine.ini

My next step was the postgui.hal
net Spindelrpm =>  gladevcp.Spindel <= spindle.0.speed-out
Error --> custom_postgui.hal:9: Pin 'spindle.0.speed-out' was already linked to signal 'spindle-vel-cmd-rpm'

Yesterday i learned that if a signal is linked i can´t use it.... but from here i don´t know further

Please help
 
Displaying 12796 - 12798 out of 12798 results.
Time to create page: 1.823 seconds
Powered by Kunena Forum