Advanced Search

Search Results (Searched for: )

  • Sternfox
  • Sternfox
17 May 2025 11:38 - 17 May 2025 11:49
Mill as lathe with probebasic was created by Sternfox

Mill as lathe with probebasic

Category: QtPyVCP

Hey peeps.

I have A couple of questions. I want to use my mill as a cnc lathe.

Can I have pb turn and mill on seperate profiles? 
And can pb turn utilise 3 axis? I need the third to line up the work and to change tools which I will have in the vice.

The other option is using a custom post in fusion but im guessing thats way more complicated.

Thoughts? 

Much appreciated 
  • rodw
  • rodw's Avatar
17 May 2025 11:28
Replied by rodw on topic Linuxcnc wood lathe insufficient torque

Linuxcnc wood lathe insufficient torque

Category: General LinuxCNC Questions

48 volt power supply and DM542A stepper drivers would almost quadruple torque you have now with your same Nema 23's
  • Hakan
  • Hakan
17 May 2025 11:14
Replied by Hakan on topic el5151 reseting counts

el5151 reseting counts

Category: EtherCAT

Yes that would be a problem. Linuxcnc asks the encoder to reset the counter to zero and count continuously up/down from there. I don't know any details of this encoder so I guess it is reading the manual to find how that can be done. Luckily Beckhoff has ok manuals.
For velocity you can try the ddt hal function, generate velocity as the derivative of the position. Taking the encoder pin values is limited by the servo loop time and EtherCAT cycle time, anything faster than some hundred Hz will fail.
  • SanzuiWorks
  • SanzuiWorks's Avatar
17 May 2025 09:40 - 21 May 2025 03:45
Replied by SanzuiWorks on topic Manual Toolchange + Abs Z Probe (QtDragon)

Manual Toolchange + Abs Z Probe (QtDragon)

Category: Qtvcp

This requires QtDragon to support parsing (MDI_COMMAND, Gxx) output from FILTERs and executing it as an MDI command.  


load_wsc_from_ngc.py
import re
import linuxcnc
import os

def on_button_detect_wcs(self):
    filename = STATUS.file  
    if not os.path.exists(filename):
        print("G-code file not found.")
        return

    try:
        with open(filename, 'r') as f:
            for line in f:
                m = re.search(r'\bG5(4|5|6|7|8|9)(\.\d)?\b', line.upper())
                if m:
                    g_code = m.group(0)
                    print(f"Detected WCS: {g_code}")

                    c = linuxcnc.command()
                    s = linuxcnc.stat()
                    s.poll()
                    if s.task_state == linuxcnc.STATE_ON and s.interp_state == linuxcnc.INTERP_IDLE:
                        c.mode(linuxcnc.MODE_MDI)
                        c.wait_complete()
                        c.mdi(g_code)
                    else:
                        print("Interpreter not idle. Cannot send MDI.")
                    return
        print("No WCS (G54~G59.3) found.")
    except Exception as e:
        print(f"Error: {e}")

.ini
[FILTER]
PROGRAM_EXTENSION = .ngc G-Code File
FILTER = load_wsc_from_ngc.py .ngc


When you run the program directly, you can obtain the WSC, but it does not run automatically during the NGC loading.
Displaying 16051 - 16054 out of 16054 results.
Time to create page: 0.333 seconds
Powered by Kunena Forum