Advanced Search

Search Results (Searched for: )

  • robert0423
  • robert0423
19 May 2026 18:03
Replied by robert0423 on topic hm2_eth Connection refused

hm2_eth Connection refused

Category: General LinuxCNC Questions

That solved the issue.
  1. Configured the jumpers on the MESA 7i96S (FPGA card) to Down/Up which set the IP address to 10.10.10.10. This placed it on a separate subnet isolated from my 192.168.1.x main network.
  2. Set the IP address of the RPi wired ethernet (ETH0) (Settings/Advanced networking) to the static manual address 10.10.10.1. This placed the RPi ethernet on the same subnet as the MESA.
  3. Set the IP address for the WIFI on the RPi to use DHCP. This received an IP address for the main network (192.168.1.110).
  4. In Pncconf, set the IP address for the Card (i.e. the MESA FPGA 7i96S) to match the IP address set by the jumper configuration, 10.10.10.10.
Everything now works as expected.

Thanks
Bob
  • andypugh
  • andypugh's Avatar
19 May 2026 11:44 - 19 May 2026 11:45

Best way to sync collinear Spindles (running as step/gen signal)?

Category: Advanced Configuration

As these are both step-dir I think you could simply set the scales the same in the drives and send them both the same step and direction pulses (at the hardware level)

I feel that I am missing something, though, why are the two parts driven separately if they always rotate as-one?
  • PCW
  • PCW's Avatar
19 May 2026 05:01
Replied by PCW on topic hm2_eth Connection refused

hm2_eth Connection refused

Category: General LinuxCNC Questions

It looks like you  have set the card IP address in the hal file to the host address
rather than the FPGA card address:

hm2_eth: ERROR: Could not retrieve hardware address (MAC) of 10.10.10.1: Connection refused
 
  • PCW
  • PCW's Avatar
19 May 2026 04:58
Replied by PCW on topic Mill Retrofit with Fanuc DC Drives

Mill Retrofit with Fanuc DC Drives

Category: HAL

The runaway suggests that possibly  one of the feedback loops is reversed.
  • fully_defined
  • fully_defined's Avatar
19 May 2026 03:23
Replied by fully_defined on topic ELO touchscreen driver and interface install.

ELO touchscreen driver and interface install.

Category: Computers and Hardware

I vibecoded it with Claude Code. Works a treat!
  • kb9ydn
  • kb9ydn
19 May 2026 02:21
Replied by kb9ydn on topic Remora for RP2040

Remora for RP2040

Category: Computers and Hardware

I had a quick look at the PortingPlan.md. Am I right to presume that this was AI assisted coding? It's insane how this thing is a game changer for non coder; I have some understanding of coding, read a lot of source code, but am not able to write more than a couple of functions to adapt an existing code (and even that part is mainly copy-pasting form existing libraries). Yet, within three days had a CANopen motor connected to a RPi spinning smoothly in CSP mode. I wouldn't say with Claude-code's help, but rather than Claude-code had it working with some of my contribution for hradware connection and debugging. 


It is AI assisted, Claude in fact!  And yes, Claude did basically all of the actual coding based on existing work.  I did have to do a fair bit of flashing binaries and scoping pins for voltages and timing.  And it does need some guidance for how to fix issues that come up.  It seems very good at writing code given enough direction.  But it doesn't necessarily know which way to do things when there are multiple options available.  It can also go off on tangents when troubleshooting complex problems.  That said, it saves an unbelievable amount of time.  I do have quite a few years of hobby programming experience in a number of contexts, but I've never been a professional programmer.  I'm more into hardware hacking.  So indeed, AI assisted coding is literally game changing for less than great programmers!

C|
  • tbrasselle
  • tbrasselle
19 May 2026 01:38
Replied by tbrasselle on topic Mill Retrofit with Fanuc DC Drives

Mill Retrofit with Fanuc DC Drives

Category: HAL

I did have the motor disconnected from the ballscrew initially. I've now connected it back and the problem has not gone away. I've attached a halscope screenshot showing the current status. when i enable the drive it oscillates, starts to smooth out, then runs away. 

I can adjust the velocity loop gain on the drive but i have been hesitant to do that. the drive and motor were working as is with the Fanuc controller before I disconnected them. 
  • robert0423
  • robert0423
19 May 2026 00:20
hm2_eth Connection refused was created by robert0423

hm2_eth Connection refused

Category: General LinuxCNC Questions

I get a 'Connection refused' error shown below when I try to start linuxcnc using a Raspberry Pi 4B and a new MESA 7i96S card.
I can successfully ping the MESA card from the RPi
  • I can get card information using mesaflash --readhmid
  • iptables is configured to accept all packets and not drop any.
  • The yellow and green LEDs are on for both the RPi and the MESA.
I've tried multiple RPis, MESA cards (both are new), power supplies, network cables, Linuxcnc versions, RPi imagers, ip configurations, disabling WIFI and setting the IP address on the MESA to both 10.10.10.10 and 192.168.1.121.  
The results are the same; Connection refused.

Any thoughts or information on how to resolve this issue is greatly appreciated.

Found file(REL): ./cncmill.hal
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: ERROR: Could not retrieve hardware address (MAC) of 10.10.10.1: Connection refused
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
hm2_eth: rtapi_app_main: Connection refused (-111)
./cncmill.hal:9: waitpid failed /usr/bin/rtapi_app hm2_eth
./cncmill.hal:9: /usr/bin/rtapi_app exited without becoming ready
./cncmill.hal:9: insmod for hm2_eth failed, returned -1
1509
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

 


 
  • COFHAL
  • COFHAL
18 May 2026 22:29
Replied by COFHAL on topic Qtvcp GUI and hal pins

Qtvcp GUI and hal pins

Category: Qtvcp

Yes, I already tested it and those new HAL pins work.Thanks.
  • Dudelbert
  • Dudelbert
18 May 2026 19:17
Replied by Dudelbert on topic Schaublin 125-CNC retrofit.

Schaublin 125-CNC retrofit.

Category: Turning

I have a few points.

First: you refer to the fan multiple times. If your machine is like mine, and I have no reason to believe otherwise, the motor has no fan where you think the fan is, the thing there is the brake.

Second: regarding your solution 2, I can make a simple op-amp for you. Scaling to 24 V is easy, as you already have 24 V, and it would have 2.5 times the resolution of the system that gives satisfactory results for me. Yes, it has way less resolution than an encoder, but you do not need it. This would be the fastest and least invasive route.

Marti
  • spumco
  • spumco
18 May 2026 19:15
Replied by spumco on topic Schaublin 125-CNC retrofit.

Schaublin 125-CNC retrofit.

Category: Turning

1/ pull the motor fan, and use the shaft stud to drive an encoder, and then mount an electric cooling fan on the shround for the motor.

I vote encoder.

An encoder separate fan will allow:
  • lower continuous motor speed without overheating
  • higher continuous motor speed without the chance of a 45-year old fan leaving the chat
  • you and LCNC not to guess what the motor speed is, adding confidence you aren't going to send the motor in to orbit

All giving you a wider safe frequency/speed range for your VFD/motor - and thus making each 'step' in the CVT more useful (wider range).

Actually, I vote for getting rid of the CVT.  Do what CNC mfgrs have been doing since the 80's & 90's and stick a big a$$ spindle-servo in there with an 8kRPM top end and appropriate-ratio single-speed belt drive.  Just horse the thing.  Simplify your control loop and save your sanity.

But I digress...
  • PCW
  • PCW's Avatar
18 May 2026 16:22
Replied by PCW on topic Mill Retrofit with Fanuc DC Drives

Mill Retrofit with Fanuc DC Drives

Category: HAL

Are the motors connected to the linear axis?

This will affect the loop stability

Can you change the velocity loop gain on the drives?
  • PedPEx
  • PedPEx
18 May 2026 15:38

Retrofitting an old industrial CNC mill with EtherCAT components - MAHO MH400E

Category: EtherCAT

Hello guys, 

a friend and i have planned a retrofit of an old industrial CNC Mill - a MAHO MH400E - since many years, after scoring it back in 2020 and driving it through Bavaria while the very first Corona wave hit the whole world.

The first intention was to retrofit the machine with Mesa hardware and LinuxCNC. After destroying two Mesa boards in another machine build, we decided to use propper industrial components. Therefore the desire to use EtherCAT with reliable Beckhoff hardware arose. After gathering all the necessary components over the years, it was finally time to implement drivers and everything in order to install the accumalted hardware into the Maho CNC mill. The whole process can also be found in my bachelors thesis and is publicly available on GitHub .
The thesis is intentionally written in a way, that beginners have all necessary EtherCAT commands, instructions on how to build the repos from source and CiA402 related information centralized in one place. 

The retrofit is not finished at the moment and the process of implementing every component into the CNC mill will be shared here. We aim to execute this retrofit to the highest possible standard, drawing on our professional backgrounds in electronics and mechanics.

Starting from 05/2026, the hardware is mounted inside the control cabinet - which is subject to change, all spindle motor speed controll with contactors will be removed and all the 400V components will be replaced with newer Siemens safety hardware and contactors. The machine is able to read the axes position with an accuracy of 2µm (1µm was planned). The root cause of this problem is subject of the future posts. I'll keep you posted. 

All machine files can be found in this GitHub Repo (Maho400E-LinuxCNC) , the custom interpolator PCB is also avaliable on GitHub (SinCosEnc-Conv_EP5101) , the custom EtherCAT drivers can be found in the seperate "linuxcnc-ethercat" repo and in the long shot, the Siemens Machine Keyboard ( Siemens-LinuxCNC-Interface ) is also planned for implementation as a seperate EtherCAT device. 

If you have any questions, just join the conversation

Best Regards
Patrick
 
  • RotarySMP
  • RotarySMP's Avatar
18 May 2026 15:12 - 18 May 2026 16:38
Replied by RotarySMP on topic Schaublin 125-CNC retrofit.

Schaublin 125-CNC retrofit.

Category: Turning

I have taken many false starts at attempting this over the years. It is nice to finally do something about it.

I would love to know how Schaublin did this with no feedback other than the encoder, and less compute than a toaster. I am not sure if it did real CSS, or just lots of fixed, open loop timed steps. I will let you know how my last change software solution with such open loop, actually works (or not).

Assuming I fail... (good assumption :) ... and need to add a sensor...

Please share your argument for CVT lever feedback vs motor encoder.
I don't really see the advantage of feedback of the CVT positioning lever, given the non-linear relationship of position verses ratio, which would require an equation or LUT,  and have all the inaccuracies and slop in those linkages. That whole drive unit is beautifully engineered and made. Pulling that little 3ph CVT positioning  motor and replacing it with a servo (I have no step gens) adds a fairly complex  mechanical project, and the need for another servo driver (I dont have space for). 

A motor encoder would allow for a highly accurate, real time reduction ratio signal, which can be installed with just a mod to the motor cooling duct, a single cable (okay plus one for the electric fan), and connected to an existing spare 7i85 encoder channel. The back gear is only shifted stationary, so the ratio is only adjusted when running by the CVT. 
Cheers,
Mark
 
  • tommylight
  • tommylight's Avatar
18 May 2026 13:34
Replied by tommylight on topic Schaublin 125-CNC retrofit.

Schaublin 125-CNC retrofit.

Category: Turning

My first idea was same as SMC.Collins with a stepper motor instead of the existing AC one on the variator, the second idea would be a linear potentiometer bolted to variator, and analog reading on a Mesa input, low resolution yes, but more that enough for this case.
Set some ranges in hal and be done with it, let the VFD do the fine adjustments.
Displaying 61 - 75 out of 15887 results.
Time to create page: 0.422 seconds
Powered by Kunena Forum