Advanced Search

Search Results (Searched for: )

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

Secondary PWM Output for LASER

Category: Advanced Configuration

let’s be more specific and in this topic announce the parameters necessary for working in hal?
my current version is this -


#раздел шпинделя
loadrt pwmgen output_type=1,0  
    addf pwmgen.make-pulses base-thread
    addf pwmgen.update servo-thread
    
    #net spindle-pwm  => parport.0.pin-14-out #при работе с лазером отключить
    #setp parport.0.pin-14-out-invert 1 #при работе с лазером отключить
    net spindle-pwm <= pwmgen.0.pwm
    
    net spindle-cmd-rpm => pwmgen.0.value
    net spindle-on <= spindle.0.on => pwmgen.0.enable
    
    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
#лазерный блок
    net laserpwm => parport.0.pin-14-out
    net  laserpwm <= pwmgen.1.pwm 
    net analogout motion.analog-out-00 => pwmgen.1.value
    
    setp pwmgen.1.enable TRUE
    setp pwmgen.1.pwm-freq 1000
    setp pwmgen.1.scale 6.0
    setp pwmgen.1.offset 0.1
    setp pwmgen.1.dither-pwm true
    
  • tommylight
  • tommylight's Avatar
14 Oct 2025 18:13
Replied by tommylight on topic Secondary PWM Output for LASER

Secondary PWM Output for LASER

Category: Advanced Configuration

Pretty sure mine does not use M68, but M67.
The included dmap2gcode can open an image and output gcode you can test with, it creates a depth map of the image so it also varies the laser PWM as needed.
You can use my config as is, but:
-you have to edit the hal file parallel port pins for your hardware
-maybe also edit the ini file velocities and accelerations for your machine as mine are set very high on acceleration and slow for velocity
-it also has a PyVCP panel that shows the PWM/laser power
-my config is alos limited to roughly 80% of max PWM to prevent pressure servo motor from triggering protection, you do not need that so you can push 100%.
  • jmp97
  • jmp97
14 Oct 2025 18:04
Replied by jmp97 on topic LinuxCNC installation + 7I96S

LinuxCNC installation + 7I96S

Category: Installing LinuxCNC

With the LinuxCNC test configuration, when I select the 7I96S table option, the interface allows me to exit emergency mode. However, I cannot find a way to move the motors (there are no jogs).
  • Dave3891
  • Dave3891
14 Oct 2025 17:42 - 14 Oct 2025 17:43
Replied by Dave3891 on topic FlexGui custom buttons

FlexGui custom buttons

Category: Other User Interfaces

For anyone else with this question, this seems to work
parent.command passes the connection to emc
from functools import partial
import hal

def startup(parent):
    parent.JetOnBtn.clicked.connect(jet_on)
    parent.JetOffBtn.clicked.connect(partial(jet_off, parent))

def jet_on():
    hal.set_p("lcec.0.4.out-01", "True")
    print('Jet On')
    
def jet_off(parent):
    hal.set_p("lcec.0.4.out-01", "False")
    parent.command.abort()
    print('Jet Off')
  • Ul
  • Ul
14 Oct 2025 17:17
Replied by Ul on topic Probleme WIFI Rasperry Pi5 mit 2.9.6

Probleme WIFI Rasperry Pi5 mit 2.9.6

Category: Deutsch

Falsches Tastaturlayout, somit falsches WLAN-Passwort?
  • abs32
  • abs32
14 Oct 2025 17:15 - 14 Oct 2025 17:56
Replied by abs32 on topic Secondary PWM Output for LASER

Secondary PWM Output for LASER

Category: Advanced Configuration

Download the archive file. I see lines there in the pwm part -
loadrt pwmgen output_type=1
addf pwmgen.make-pulses base-thread 
addf pwmgen.update servo-thread
net pwmdhez motion.teleop-mode => not.0.in
setp pwmgen.0.pwm-freq 1000.0
setp pwmgen.0.scale 6.0
setp pwmgen.0.offset 0.1

specific, not for me -

setp pwmgen.0.dither-pwm true
net jasht logic.0.and pwmgen.0.enable
net dout-00 <= pwmgen.0.pwm
net dout-00 => parport.0.pin-02-out

Doesn't work. I checked the electrician. With command M68 E0 Q 0.0 voltage per pin 14 = -0.4v, M68 E0 Q 1 voltage 4.7. I won't tell you the frequency.
  • tommylight
  • tommylight's Avatar
14 Oct 2025 16:50
Replied by tommylight on topic LinuxCNC installation + 7I96S

LinuxCNC installation + 7I96S

Category: Installing LinuxCNC

1. you are selecting stuff you do not need, like parallel port
2. might also be the "locale" thing where the wizard has issues with other languages than English.
To test, boot the PC from the USB you used to install LinuxCNC in LIVE mode, use the wizard to make a new configuration and save it to hard drive or another USB, then reboot to normal install and test the config.
  • tommylight
  • tommylight's Avatar
14 Oct 2025 16:47
Replied by tommylight on topic Secondary PWM Output for LASER

Secondary PWM Output for LASER

Category: Advanced Configuration

Open the hal file attached at that link, somewhere lower in the thread, it is named Graveri kuq as zip file, compare your hal to mine till you get it working, then add the safety stuff with some signal names in Albanian.
  • jmp97
  • jmp97
14 Oct 2025 16:31
Replied by jmp97 on topic LinuxCNC installation + 7I96S

LinuxCNC installation + 7I96S

Category: Installing LinuxCNC

Would it be possible to download the INI and HAL files for my Mesa and LinuxCNC version?

I have made many configurations and I still cannot control the machine.
  • abs32
  • abs32
14 Oct 2025 16:30
Replied by abs32 on topic Secondary PWM Output for LASER

Secondary PWM Output for LASER

Category: Advanced Configuration

I’m on that topic (at the same time I express my admiration for the design shown there) but I didn’t see anything on my question. 
Clearly I'm doing something wrong in the hal file.

But what exactly?
  • tommylight
  • tommylight's Avatar
14 Oct 2025 16:20
Replied by tommylight on topic Secondary PWM Output for LASER

Secondary PWM Output for LASER

Category: Advanced Configuration

Have a look at this, there is also the complete config attached there, it is the same thing as laser as it uses PWM to control the grinding bit pressure, and it also should have provisions for turning off the laser when canceling or pausing or stopping a job, that is normally not done with normal configs.
forum.linuxcnc.org/show-your-stuff/46752...er-scratcher?start=0
  • nikopoli@live.it
  • nikopoli@live.it
14 Oct 2025 16:14 - 14 Oct 2025 16:16
Replied by nikopoli@live.it on topic Repair Servodrive Yaskawa CACR

Repair Servodrive Yaskawa CACR

Category: Off Topic and Test Posts

        ​Hello everyone,​I'm working on repairing a Yaskawa CACR-SR20BE12G-E servo drive. I initially had to replace all the capacitors as two of them had incorrect values, which was causing the A.02 error. After installing the board, everything worked fine for about 30 minutes, but then the auxiliary power supply errors A.03 and A.40 appeared.​I've isolated the critical components after the transformer T3076, specifically D20 (code C3) and AVR4 (code 8C E4), which now appear to be faulty.​I need help confirming the identity and replacement parts for these components.​1. D20 (Code C3) - Raddrizzatore Schottky​I have traced the pinout of D20 and have the following connections:​CENTER PIN: Connects to the positive pole of capacitor C41 33uf 25v​TOP LEFT PIN: Connects to the transformer output, passing through diode D32.​RIGHT PIN: Goes to the negative side of the board (or where the letter 'N' is marked).​Question: Can anyone who has successfully repaired this confirm if the correct replacement is indeed the BAT54C (Dual Common Cathode, SOT-23)?​2. AVR4 (Code 8C E4) -​dimension(approx. 3x2mm). The marking on my faulty board is 8C E4, while a known working board shows 8C E8 (I assume the last digit is just a batch code).​Pinout/Measurements:​I'm using the following numbering: Pin 1 (Top Left), Pin 2 (Center), Pin 3 (Top Right), and Pin 4 (Bottom). Note that Pin 4 is common with Pin 2 on the board.​Using the diode function on my multimeter:​Black probe on Pin 2 or 4, Red probe on Pin 1 or 3 Reads 2.3v- 2.4V​Inverting the probes Reads 0.5 - 0.6V

Can you help me please? 
  • 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 136 - 150 out of 22754 results.
Time to create page: 0.652 seconds
Powered by Kunena Forum