Advanced Search

Search Results (Searched for: )

  • spumco
  • spumco
22 May 2025 16:50

Developments on my Home built 5C CNC Lathe - Polar interp. and Live tooling

Category: Advanced Configuration

It seems quite complicated. Has anyone done it with +-10v control? I want to try it on my lathe.


It's been a while since that post, and my lathe project has been stalled for a few months... but I had to give up on C-axis.comp.  I didn't get far enough to try the polar kinematics.

The insurmountable problem I encountered with caxis.comp was that it interfered with synchronized spindle moves (threading).  I wasn't able to figure out how/why it was causing problems, but once I abandoned it for a spindle/axis scheme proposed by @Aciera and @PCW, threading started working properly.

There is still an issue with threading in LCNC - thread start point varies with RPM - but that's not related to caxis.comp.
  • besriworld
  • besriworld
22 May 2025 16:37

Developments on my Home built 5C CNC Lathe - Polar interp. and Live tooling

Category: Advanced Configuration

It seems quite complicated. Has anyone done it with +-10v control? I want to try it on my lathe.
  • ihavenofish
  • ihavenofish
22 May 2025 16:00
Replied by ihavenofish on topic New ethercat / probe basic control for minimonster

New ethercat / probe basic control for minimonster

Category: CNC Machines

Ok, time to get back to this.

What am I doing again? :P
  • SanzuiWorks
  • SanzuiWorks's Avatar
22 May 2025 15:58 - 22 May 2025 16:06
Replied by SanzuiWorks on topic Manual Toolchange + Abs Z Probe (QtDragon)

Manual Toolchange + Abs Z Probe (QtDragon)

Category: Qtvcp

I’ve managed to detect WCS (G54–G59) from a loaded .ngc file and output it to the terminal.
To be precise, it prints the WCS to the terminal log.
But I haven’t yet succeeded in sending it to MDI to change the GUI WCS.

Code implemented inside qt5_graphics.py > StatCanon:
def set_g5x_offset(self, index, x, y, z, a, b, c, u=None, v=None, w=None):
    g5x = {
        1: "G54", 2: "G55", 3: "G56", 4: "G57",
        5: "G58", 6: "G59", 7: "G59.1", 8: "G59.2", 9: "G59.3"
    }
    print(f"[DEBUG] {g5x.get(index)} on line {self.lineno}")
    super().set_g5x_offset(index, x, y, z, a, b, c, u, v, w)

Sample G-code:
G21
G90
G55
G0 X10 Y10
M2

Terminal output:
[DEBUG] G54 on line 0
[DEBUG] G55 on line 3
[DEBUG] G54 on line 5

As you can see, G54 appears at both the top and bottom.
This needs further filtering to ensure only the first actual WCS used in the program is considered.
  • byunchov
  • byunchov's Avatar
22 May 2025 15:58

Interpolation accuracy with Delta ASD-B3 EtherCAT servo drives

Category: EtherCAT

Greetings fellow machinists!
Back in 2023, I did a reconstruction of my old CNC router for my woodshop. I have decided to use EherCAT hardware as my main communication interface tween LCNC and the main build components. A friend that makes CNC machinery advised me that I use Delta servo system, as it is the best option for my budget. I have decided to go for Delta ASD-B3 drives with 1kW motors. The setup in LCNC for the drives was rather easy. I had to use generic driver for lcec and couple it with dominik’s hal-cia402 component.

Everything seemed to work fine until last week when I have noticed that the circles turn out to be slightly oval. This is especially prominent on semi- and quarter-circles. I see this effect while doing interpolation in XY, XZ and YZ. The error seems to be of the same size and in the same position in the 3 planes.

I have also noticed that when I make a slot it is slightly wider than the tool diameter and slightly shorter than programmed. What is more the depth pattern is visible and alternating on the sides. This is depending on the cut direction. I usually use ramp plunging along the whole length of the slot and this effect is not visible then but when doing single line slot milling with small ramp plunge then the score lines are visible.I have tried few things like tuning the servo drives, changing LCNC configuration parameters like axis acceleration, speed; arc blending settings in [TRAJ] section but nothing seems to work. I have tried both slow and fast work feeds but the effect is prominent no matter the speed.

Something interesting I have found is that when squaring a piece of wood (hardwood like oak, beech or soft materials like pine, MDF, chipboard) one corner is seemingly sharp and the opposing corner is rounded and then this is mirrored diagonally. The radius seems to around 1mm. When squaring I have created a subroutine that uses arcs at corners so that the tool is not chipping the piece at the corners and sometimes to avoid burns.

Y- and Z-axis are ball screw with 5 and 10 mm pitch and are belt driven with 1:1 ratio. X-axis is helical rack and pinion with 1:10 gearbox. I have checked for mechanical issues and none is present or apparent. The gantry and the axes in general are square, as far as I can measure. X-axis is 4100 mm of travel but along that distance, I get like 0.02mm deviation from the zero point. Y-axis is around 1600 mm and Z-axis is around 560 mm. I have enabled E-Gear option in the servo drives as 10000 PPR.

I have attached pictures of the interpolation errors I get. I am open to discussion of what might be the cause of this - communication lag, drive parameters, LCNC config. I will also attach my INI and EC configuration files.
  • mc_cubus
  • mc_cubus
22 May 2025 15:20
Probe tripped during non-probe move was created by mc_cubus

Probe tripped during non-probe move

Category: Basic Configuration

Hi everyone,
I am pretty new to LinuxCNC and currently working on a setup where a light distance sensor is mounted on a XYZ stage. My goal is to approach an object along z-axis until the sensor reading enters a defined window (26 – 27 mm) and then scan the object along the x-axis, stopping the moment the sensor reading exits that same window.

My current approach was to use probe mechanism with G.38 moves.
The .hal file:
# — threshold generator at 26.5 mm (window center) —
loadrt constant    count=1
addf   constant.0  servo-thread
setp   constant.0.value    26.5
# — “near” comparator: output HIGH when |sensor-mm – 26.5| ≤ 0.5 —
loadrt near        count=1
addf   near.0      servo-thread
setp   near.0.difference  0.5
# — feed the threshold and the actual distance into near.0 —
net ref-26p5      constant.0.out  near.0.in1
net sensor-mm     scale.0.out     near.0.in2
# map the “in-window” bit to the probe input
net in-window  near.0.out  motion.probe-input

The G-code:
(Move to initial coordinates before probing)
G21
G90
G1 X357 Y31 Z-118 F4800
(Z-approach – stops instantly on entering 26…27 mm)
F600
G38.3 Z-190 F600   ; probe toward, stop on motion.probe-input=1 (no error)
(Dwell 1 s)
G4 P1
(X-scan – stops instantly on exiting 26…27 mm)
F600
G38.5 X300 F600   ; probe away, stop on motion.probe-input=0 (error)
M2             

When running the G-code, the probing along Z-axis works just fine and the movement stops the moment we enter the window. When probing along X-Axis starts, it moves for just a tiny bit (~0.2s) and then throws an error: Probe tripped during non-probe move.

The motion.motion-type has value 5 (which is Probing) during both G38 movements, so I don't know where the error comes from.

I'd greatly appreciate any insights into this issue!
Thanks in advance.
  • PCW
  • PCW's Avatar
22 May 2025 15:03
Replied by PCW on topic Index homing Heidenhain ls 403/exe602

Index homing Heidenhain ls 403/exe602

Category: Basic Configuration

If the machine has no built in home switches, it really makes no sense to
have multiple index marks on the scale.

It it possible there is an electrical issue causing false index detection?

Is there documentation on the scale types?
  • unknown
  • unknown
22 May 2025 14:10
Replied by unknown on topic LinuxCNC 2.9.4 Released

LinuxCNC 2.9.4 Released

Category: Installing LinuxCNC

That's a well known issue, has been around for years and has been discussed quite a few times.
I'd be careful running dist-upgrade as it can mess kernels up.
If you want to upgrade packages a simple apt upgrade will suffice.
To be honest all I run on my desktops, laptops and servers is apt upgrade.
But if dist-upgrade works for you that's great.
  • langdons
  • langdons
22 May 2025 13:19 - 21 Jun 2025 14:11
Replied by langdons on topic Bridgeport VMC760 retrofit

Bridgeport VMC760 retrofit

Category: Milling Machines

Reply based on misread image.
  • PCW
  • PCW's Avatar
22 May 2025 13:10

Smart Serial Comms Error - Since upgrade to 2.9.4

Category: General LinuxCNC Questions

The root issue is not sserial related but latency related
(notice that the first error is a watchdog bite)

I would

1. Run a latency test

2. Check the network latency with:

sudo chrt 99 ping -i .001 -q -c 60000 10.10.10.10

or

sudo chrt 99 ping -i .001 -q -c 60000 192.168.1.121

(depending on 7I80 IP address setting)


 
  • Finngineering
  • Finngineering
22 May 2025 12:31
Replied by Finngineering on topic Un-lobotomizing a Maho MH600T

Un-lobotomizing a Maho MH600T

Category: CNC Machines

My apologies for the late reply. I was travelling and forgot about this.

It appears I had forgotten to update the pdf schematic to match the rest of the files. I have now done that. This includes an improved crowbar circuit that I mentioned some posts back. The new circuit should be less sensitive to which components are used. Otherwise I only rotated the RJ45 jacks from the previous version.

I have had and and still have a few other projects that have taken priority, so not much progress on the Maho.
  • SanzuiWorks
  • SanzuiWorks's Avatar
22 May 2025 12:29 - 22 May 2025 12:55
Replied by SanzuiWorks on topic Manual Toolchange + Abs Z Probe (QtDragon)

Manual Toolchange + Abs Z Probe (QtDragon)

Category: Qtvcp

MennilTossFlykune

Thank you for your advice.

I've been focusing on incorporating this all day today, but I still can't get out of the error. To be honest, I don't even know where I am now.
  • oddwick
  • oddwick's Avatar
22 May 2025 12:27

[SOLVED] MesaCT problems with 7i96 pwm spindle

Category: Configuration Tools

thanks tom, i tried some changes in this section and those didnt work, but later on last evening i finally got it working, but i dont remember exactly which ones i changed. when i get back to the shop later today, i will log all the keys i modified and put a list together for anyone with this model of vfd. also, there was some keys where i could adjust the scale of the pwm so at the anything under 5v gives me 12k rpm and i get 400mhz at 9.45v
  • MARTCENT
  • MARTCENT
22 May 2025 11:35
Retrofit SODICK A320D was created by MARTCENT

Retrofit SODICK A320D

Category: General LinuxCNC Questions

Hello, good day. I'd like to know if anyone has been able to help replace the original computer on the Sodick A320D machine.
Thank you very much.
  • Todd Zuercher
  • Todd Zuercher's Avatar
22 May 2025 11:26
Replied by Todd Zuercher on topic Read the S-Command in the HAL

Read the S-Command in the HAL

Category: HAL

To do the above suggestion to get a hal pin that shows the commanded S speed even when the spindle is stopped. The link gives instructions for creating a python script that reads what the commanded S speed settinging is from the Gstat python module and then creates a hal pin and writes the value to it.

You will need to create at python script with the following, and save it as a file in your config directory named "spindle.py" and make that file executable.
#!/usr/bin/env python3

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import GObject
from gi.repository import GLib
import hal
from hal_glib import GStat
GSTAT = GStat()

# callback to change HAL pin state
def mode_changed(obj, data):
        h['speed'] = data

# Make a component and pins
h = hal.component("spindle_setting")
h.newpin("speed", hal.HAL_FLOAT, hal.HAL_OUT)
h.ready()

# connect a GSTAT message to a callback function
GSTAT.connect("s-code-changed",mode_changed)

# force GSTAT to initialize states
GSTAT.forced_update()

# loop till exit
try:
    GLib.MainLoop().run()
except KeyboardInterrupt:
    raise SystemExit

Then load/run that python script when you start Linuxcnc by adding this line to your hal file for your config. (Replacing YOUR_CONFIG with the name of your config dir.)
loadusr python3 ~/linuxcnc/configs/YOUR_CONFIG/spindle.py

You can even test this before adding it to your hal file by simply running the python script from command line while Linuxcnc is running. Just type "python3 ~/linuxcnc/configs/YOUR_CONFIG/spindle.py" and hit enter. (After first creating the spindle.py file, saving it to your config dir.)
Displaying 2536 - 2550 out of 25483 results.
Time to create page: 0.277 seconds
Powered by Kunena Forum