Advanced Search

Search Results (Searched for: )

  • PCW
  • PCW's Avatar
14 Oct 2025 21:06

M19 for Indexing a Spindle using Stepper Motors

Category: General LinuxCNC Questions

www.linuxcnc.org/docs/html/gcode/m-code.html#mcode:m19

Says:

Spindle orientation requires a quadrature encoder with an index to sense the spindle shaft position and direction of rotation.

The need for an encoder can be worked around by using a StepGen with the index feature but that would still require
a once per turn signal for initial alignment.
  • Doc_emmet
  • Doc_emmet
14 Oct 2025 20:53 - 14 Oct 2025 20:56
6th axis for ATC was created by Doc_emmet

6th axis for ATC

Category: General LinuxCNC Questions

Hello, I use QtDragon with 5 axes (X, Y, Z, B, C) and have expanded and flashed my Mesa 7i76EU with a 7I85s. The additional 4 axes are also displayed with sudo mesaflash --device 7i76eu --addr 192.168.1.121 --readhmid. As far as I know, QtDragon can only handle 5 axes. I need an additional axis for the ATC that doesn't need to be displayed in QtDragon. Can I control it via G-code, e.g., G0 W100, or if G-code isn't possible, via HAL commands?

I read that you can customize the xyzbc-trt-kins file, but I can't find it?
  • richcolvin
  • richcolvin's Avatar
14 Oct 2025 20:13

M19 for Indexing a Spindle using Stepper Motors

Category: General LinuxCNC Questions

I am trying to use the M19 command:

m19 r90 q10 p1 $0

The m3 & m4 commands work as expected, but m19 does not.  Any guidance would be greatly appreciated.

My HAL and INI files are attached (Spindle0.inc renamed to be Spindle.inc.ini so that it could be attached).
  • JT
  • JT's Avatar
14 Oct 2025 19:39 - 14 Oct 2025 19:41
Replied by JT on topic FlexGui custom buttons

FlexGui custom buttons

Category: Flex GUI

If you use partial and pass the parent then you have access to everything.

There is a #flex-dev channel on the Libera.Chat which I monitor usually.

JT
  • DerKlotz
  • DerKlotz
14 Oct 2025 19:13
Replied by DerKlotz on topic Glade Hal Meter Spindle Speed -> postgui

Glade Hal Meter Spindle Speed -> postgui

Category: GladeVCP

Unfortunately, I'm still stuck, even with the additional link.
My thoughts:
Where can I get the spindle speed (float)? Would that be the value “spindle.0.speed-out,” for example, which can be seen in the attachment?
How do I transfer the float value to gladevcp.Spindel?

My favorite code doesn't work. 
net Spindelrpm =>  gladevcp.Spindel <= spindle.0.speed-out
Error "custom_postgui.hal:9: Pin 'spindle.0.speed-out' was already linked to signal 'spindle.0.speed-out'"
 
  • jmp97
  • jmp97
14 Oct 2025 18:50
Replied by jmp97 on topic LinuxCNC installation + 7I96S

LinuxCNC installation + 7I96S

Category: Installing LinuxCNC

OK, I've managed to get the motor moving. The two +/- buttons now move the motor, although I'd like to have an interface with arrows. (More user-friendly)

I'm using the default LinuxCNC configuration for my 7I96S card. I need to modify the parameters for my CNC machine. How can I do this to ensure that the changes are correct?



Thank you.
  • PCW
  • PCW's Avatar
14 Oct 2025 18:27
Replied by PCW on topic LinuxCNC installation + 7I96S

LinuxCNC installation + 7I96S

Category: Installing LinuxCNC

Can you post the complete hal  file so that cause of the issue can be determined?
  • abs32
  • abs32
14 Oct 2025 18:16 - 01 Nov 2025 10:37
  • 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: Flex GUI

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.
Displaying 9076 - 9090 out of 16360 results.
Time to create page: 0.294 seconds
Powered by Kunena Forum