Advanced Search

Search Results (Searched for: )

  • Mr. Mass
  • Mr. Mass's Avatar
01 Feb 2025 18:29
Replied by Mr. Mass on topic qtdragon additonal buttons

qtdragon additonal buttons

Category: Qtvcp

Yes, the G5x button works when long pressed, thanks.

Well, I thought you could call up a calculator-like window, something like that:

 
  • Aciera
  • Aciera's Avatar
01 Feb 2025 18:23 - 01 Feb 2025 18:28
Replied by Aciera on topic caxis.comp - How to freewheel axis/spindle?

caxis.comp - How to freewheel axis/spindle?

Category: HAL

As for the component (Bit of a rushed job as I'm short on time right now):
Save this as 'unhome_comp.py' in a folder named 'python' in your machine config and mark as 'executable':
#!/usr/bin/env python3
import hal
import linuxcnc

h = hal.component("unhome-comp")
h.newpin("unhome-rotary", hal.HAL_BIT, hal.HAL_IN)
h.ready()
c = linuxcnc.command()
joint = 0
homed = 1
try:
    while 1:
        if homed == 1 and h['unhome-rotary'] == 1:
            c.teleop_enable(0)
            c.wait_complete()
            c.unhome(joint)
            homed = 0
        if homed == 0 and h['unhome-rotary'] == 0:
            homed = 1

except KeyboardInterrupt:
    raise SystemExit

add this line to the [HAL] section of your ini file:
HALCMD = loadusr ./python/unhome_comp.py

Start your config and open the 'Show HAL configuration' tool and 'watch' the 'unhome-comp.unhome-rotary' pin, setting it to TRUE should unhome the joint number set in the python script in the line 'joint = 0'.

 
  • beauxnez
  • beauxnez
01 Feb 2025 17:46

ESP32/S2/S3 LinuxCNC Controller (6 axis hardware step gen), USB plug-and-play

Category: Computers and Hardware

I succeeded, I am at the part "sudo halcompile --install esp32udp.comp" what should I do?
  it's not very clear for a novice

 
  • PCW
  • PCW's Avatar
01 Feb 2025 17:46

caxis.comp - How to freewheel axis/spindle?

Category: HAL

You might use a different PID (with different tuning) during the "recovery" period
so the correction is gentle, that and a 'near' component to determine when to go
back into full servo mode.

So

hand mode: drive disabled, LinuxCNC motor position feedback looped
back from motor position command (via mux)

recover mode: drive enabled,  LinuxCNC motor position feedback looped
back from motor position command (via mux) Special PID used with bounded
error and no FF so correction velocity is limited

exit from recover mode when encoder feedback is "near" position command
  • my1987toyota
  • my1987toyota's Avatar
01 Feb 2025 17:32
Replied by my1987toyota on topic good day to all (in some gtp languages)

good day to all (in some gtp languages)

Category: Off Topic and Test Posts

Hello from Florida. What is this snow you speak of? LOL
  • gardenweazel
  • gardenweazel's Avatar
01 Feb 2025 17:13

QTDragon HD spindle incrementally increase/decrease speed

Category: Qtvcp

It doesn't work for me by using the mouse. Were you using the keyboard?
  • spumco
  • spumco
01 Feb 2025 16:37 - 01 Feb 2025 16:38
Replied by spumco on topic caxis.comp - How to freewheel axis/spindle?

caxis.comp - How to freewheel axis/spindle?

Category: HAL

@Aciera,

LCNC manual on the python module is, I'm sure, adequate for someone with coding experience, but like many other manual sections it assumes a certain level of familiarity with the subject.  The explanations are meaningless without some sort of foundation:

Import the linuxcnc module.

What does 'import' mean? What is the linuxcnc module and where is it?

If you've got the patience, could you walk me through creating a python component, or pointing me towards a resource with novice-level explanations?

Or just directing me to a complete example of a python component and how to get LCNC to use it?

Thanks, I feel like I'm back at Day 1 with LCNC.
  • cmorley
  • cmorley
01 Feb 2025 16:35
Replied by cmorley on topic qtdragon additonal buttons

qtdragon additonal buttons

Category: Qtvcp

Press and hold the G54 button, the menu will show.
I don;t understand how you would use a pop up calculator for the G5x button - can you explain?
  • royka
  • royka
01 Feb 2025 16:28
Replied by royka on topic Crush Linuxcnc 9.3

Crush Linuxcnc 9.3

Category: General LinuxCNC Questions

Perhaps the drivers aren't fully isolated from the computer?
Some VFDs create a lot of noise too, mine turned on the lights (with touch sensor) in the living room before I placed a filter for example.

Have you tried to dry run the NC?
Did the PC really crash or just the USB port doesn't work?
Can you reach it vias SSH?
Replugging the keyboard/mouse?
  • langdons
  • langdons's Avatar
01 Feb 2025 16:16
Replied by langdons on topic Homing an axis moves away from home switch!

Homing an axis moves away from home switch!

Category: StepConf Wizard

But opening up stepconf every time gets really old really fast.

(ask how I know)
  • 3404gerber
  • 3404gerber
01 Feb 2025 15:46 - 06 Feb 2025 17:38

Anyone figured out how to get Trinamic's TMC5160 drivers working with LinuxCNC?

Category: Driver Boards

I did some tests and ended up with a working comp. All it does is sending the registers to the drivers and then taking a velocity command as input and giving a position feedback as output. For now the settings are set by defining registers values as parameters, which isn't the easiest way to do it. It would probably not be too difficult to code a GUI to change the registers values according to more "readable" parameters. The comp also uses the bcm2835 library, which isn't compatible with RPI5 as far as I know. I'd like to change the code to directly write to spidev one day.

Here is a short video showing 3 motors moving: Link to youtube video
Edit: added a second video with physical axis attached to the drivers: Link to youtube video

The 4 drivers are connected in daisy chained mode and communicate with the Pi at 3.125MHz. All the read, write and PID stuff is done in the servo thread set at 1ms. Just using 4 pins for SPI and 1 as enable, there are plenty left for the other functions.

But there is more to explore; the TMC5160 has an encoder input and rather than reading the internal step counter, one could read the encoder counter as position feedback. There are also reference inputs that can be used directly on the board, and the possibility to do sensorless homing. A 50$ RPi, a couple of 15$ stepper driver and some cheap 3.3V->24V level shifter; could become a interesting poor man's closed-loop-stepper CNC controller.
  • Mr. Mass
  • Mr. Mass's Avatar
01 Feb 2025 15:34
Replied by Mr. Mass on topic qtdragon additonal buttons

qtdragon additonal buttons

Category: Qtvcp

The pan/rotate button works like a charm, thank you very much!

G5x button only show G54, no drop down menu at all. And when the program is running, if you press ABS or DTG button, G54 becomes inactive.

About the REF button - if the calculator window will be called - that would be very handy.

Btw, if there is a way for the G5x button to also call something like a calculator with big buttons, that would be perfect!
  • 10K
  • 10K's Avatar
01 Feb 2025 15:18
Replied by 10K on topic Spindle Pulses Lost in System

Spindle Pulses Lost in System

Category: General LinuxCNC Questions

Yes, changing the sign on the scale flips over the following PINs:
   (all begin with hm2_7i92.0.encoder.00.)
   position
   velocity-rpm
   velocity
the change has no effect on:
   count
   rawcounts

As it turned out, I fixed it another way. I had the ESD button connected to the encoder-B  DB-25 P11 (14) input. I moved the ESD to my BOB #2 and left no input for encoder-B. This flipped the encoder.00 inputs to all positive and I was able to leave the encoder scale at +180..

Now I can thread again, so problem solved! Thanks for the help!
  • 1240
  • 1240's Avatar
01 Feb 2025 15:01
Replied by 1240 on topic Crush Linuxcnc 9.3

Crush Linuxcnc 9.3

Category: General LinuxCNC Questions

Hi,
Before this, I just updated Linuxcnc, and it started working normally.

But after a few days, the problem came back.

Now the computer freezes after running the first NC.
The NC runs completely correctly.
After that, the entire computer freezes. I can't even restart it properly, as it doesn't respond to the keyboard or mouse.
  • noqui
  • noqui
01 Feb 2025 14:39

Source code to send instructions to the joints through the parallel port

Category: General LinuxCNC Questions

Thanks a lot, you are very valuable here. The best for you. I use my CNC also as a laser graver, and with the 6 motor steppers working I can make a arm robot of 6 degrees, that means 6 joints what it can in the entire space approaching any location in the space where is the object from any angle with the tool. It would be wonderful if there would be in the stepConf an option to select 6 labels XYZABC or XZYUVW. I don´t know why in the AXIS appears ABC, and where you configure the pins in UVW (step V, Dir V, etc). How do i should compile the source code copied from the GIT to my repository if I make a change (what compiler should i use) ? Many Thanks
Displaying 18586 - 18600 out of 21679 results.
Time to create page: 0.381 seconds
Powered by Kunena Forum