Advanced Search

Search Results (Searched for: )

  • PCW
  • PCW's Avatar
07 Aug 2025 16:05

Custom M codes don't work on Rasberry Pi 5 + Messa 7i95

Category: G&M Codes

pin 'hm2_7i95.0.ssr.00.out-01' is connected to a signal

Is the error, you cannot change the state of a pin that's already drive by a signal in hal
You would need to delete (or comment out) the net command that connects
hm2_7i95.0.ssr.00.out-01 to a signal in your hal file for the MXXX script to work.
 
  • seuchato
  • seuchato
07 Aug 2025 15:09

M1xx: Controlling Relays (solenoids) from within axis MDI

Category: Advanced Configuration

langdons
Thx for you pointing this out and your hint on 5V relay.
I do have a parport based router. All pins are used, and still I want my vacuum clamping, dust extraction, myst (maybe) etc. to be operable from within axis (in my case).

greez
chris
  • Pashtet
  • Pashtet
07 Aug 2025 15:06

Custom M codes don't work on Rasberry Pi 5 + Messa 7i95

Category: G&M Codes

Tried it two ways, still doesn't work. In the first case it gives an error.

pi@raspberrypi5:~/linuxcnc/nc_files $ ./M101
bash: ./M101: cannot execute: required file not found
pi@raspberrypi5:~/linuxcnc/nc_files $ bash M101
<commandline>:0: pin 'hm2_7i95.0.ssr.00.out-01' is connected to a signal
: numeric argument required
  • PCW
  • PCW's Avatar
07 Aug 2025 14:04 - 07 Aug 2025 14:05

Custom M codes don't work on Rasberry Pi 5 + Messa 7i95

Category: G&M Codes

Does the script work if run from the command line?

 That is, does:

./M101

work?
 
  • Todd Zuercher
  • Todd Zuercher's Avatar
07 Aug 2025 13:46

Custom M codes don't work on Rasberry Pi 5 + Messa 7i95

Category: G&M Codes

Does the command you are trying to use in the M-code, work in a terminal from the command line?

Do you get any error messages in the terminal when you try to run the M-code if you start Linuxcnc from the command line?
  • Todd Zuercher
  • Todd Zuercher's Avatar
07 Aug 2025 13:25

Retrofitting a 3-axis VMC with DC servos - guidance needed

Category: Driver Boards

Sounds like it should be a straight forward analog system conversion. What about things like the spindle controls, does it have a tool changer?

Best advice, is first thing e-stop circuits, then get encoder feedback working, then the servo drive enable\disable, then add safeties (limits etc), then confirm directions are correct, finally tune your position loops.
  • Japoo_Ness
  • Japoo_Ness
07 Aug 2025 11:07

Retrofitting a 3-axis VMC with DC servos - guidance needed

Category: Driver Boards

Hi everyone,

I'm currently working on the retrofit of a 3-axis vertical machining center (from 1995) and have decided to use LinuxCNC with Mesa boards. The machine is in excellent mechanical condition, but the original controller (Fagor 8025M) is beginning to fail. I’m still evaluating whether it’s worth repairing, but I’m leaning toward fully modernizing it instead.

Here are the key technical details of the system:
  •  **Machine type**: 3-axis vertical milling machine
  •  **Original controller**: Fagor 8025M
  •  **Motors**: SEM MT30R4-46 brushed DC servos, each with internal tachometers
  •  **Drives**: Axor analog drives (Miniclamp 140, Minispeed, Minispeed 140, Minispeed 200) with ±10 V control input
  •  **Spindle drive**: Fanuc A06B-6060-H003#H503 (also analog control)
  •  **Feedback**:
  •  **Main feedback**: KA300 linear scales (Extent 570D), 5 µm resolution, differential outputs (A/B/Z, A-/B-/Z-)
  •  **Velocity loop** is handled inside the servo drives via tachometers
  •  **Planned control strategy**: Full closed-loop position control via linear scales in LinuxCNC
  •  **I/O needs**: At least 18 digital inputs for limits, emergency stop, lubrication pump, coolant, etc.
  •  **Desired precision**: Hundredths of a millimeter (0.01 mm) or better
  •  **Budget**: About $1500 or less
  •  **Planned Mesa boards**: Leaning toward a 5i25 (PCIe) + 7i77 for analog servo control and I/O

The machine will be used for both production and toolmaking, so reliability and precision are key. The current system performs interpolation and achieves 0.01 mm precision, and I’d like to match or improve upon that.

I’d like to ask:

- Has anyone here done a similar retrofit with SEM DC motors and Axor drives?
- Is it reasonable to expect similar or better precision from LinuxCNC using KA300 scales and Mesa hardware?
- Are there any specific concerns when using analog ±10 V control with older servo amplifiers?
- Any advice or experience you could share with full closed-loop systems based on linear feedback?
- I’m also interested in your thoughts on encoder scaling, latency tuning, and best practices for safety inputs and interlocks.

Info:
digital-readout.com/wp-content/uploads/2...stallation-guide.pdf
www.axorindustries.com/wp-content/upload...ce-Manual-MS-Eng.pdf
www.mroelectric.com/static/app/product/p...a06b-6044-manual.pdf
forum.linuxcnc.org/media/kunena/attachme...17/MT30R4Extract.pdf

Thanks in advance for any help or tips you can share! I’ve already started digging into the documentation but would really value input from those who’ve done similar projects.

Best regards,  
Santiago
 
  • Pashtet
  • Pashtet
07 Aug 2025 10:37

Custom M codes don't work on Rasberry Pi 5 + Messa 7i95

Category: G&M Codes

Yes, of course. Without permission, Linuxcnc gives an error message.
  • rodw
  • rodw's Avatar
07 Aug 2025 10:30
Replied by rodw on topic Using a 7i95T for 3 axis + handwheels

Using a 7i95T for 3 axis + handwheels

Category: Advanced Configuration

The distance a 100 ppr encoder moves per step is determined by the scaling in hal. So it can do whatever accuracy you want
There is a good example in the docs
linuxcnc.org/docs/stable/html/examples/mpg.html
Easy to use on Mesa, 
Use a Mux8 instead of mux4 to get up to 8 scaling steps...
 
  • rodw
  • rodw's Avatar
07 Aug 2025 10:21

Custom M codes don't work on Rasberry Pi 5 + Messa 7i95

Category: G&M Codes

Does your script have execute permissions?
  • rodw
  • rodw's Avatar
07 Aug 2025 10:14
Replied by rodw on topic Interfaces & linear scale for LinuxCNC

Interfaces & linear scale for LinuxCNC

Category: General LinuxCNC Questions

Some errors here, anything over 4Gb of RAM is wasted on Linuxcnc. (2gb is probably enough if you can buy it today!)
Disk access has no impact on latency.

A more extensive real time latency test suite is included as standard in Debian (and most distros): sudo apt install rt-tests
and nothing in it mentions HDD or SSD
wiki.linuxfoundation.org/realtime/docume...howto/tools/rt-tests
  • Pashtet
  • Pashtet
07 Aug 2025 09:39 - 07 Aug 2025 10:38

Custom M codes don't work on Rasberry Pi 5 + Messa 7i95

Category: G&M Codes

Hello everyone! This is my first post on the forum. I have a problem with setting up custom M codes on Raspberry + 7i95. I need additional outputs to control the equipment. Just turn on and off some outputs on the 7i95.
In principle, nothing complicated, but when executing custom M code, linuxcnc does not display error messages and the pin states on the 7i95 outputs do not change.
There are no changes in halshow either.

I use this image www.linuxcnc.org/iso/rpi-5-debian-bookwo...25-01-27-0140.img.xz

Here is one of the commands (M101)
#!/bin/bash
halcmd setp hm2_7i95.0.ssr.00.out-01 True
exit 0

Even if you intentionally make a mistake in the M command file, linuxcnc still does not give any error messages.
Has anyone encountered this problem on Rasberry Pi?
  • Giovanni
  • Giovanni
07 Aug 2025 08:58
Replied by Giovanni on topic NativeCam on LinuxCNC 2.9.3

NativeCam on LinuxCNC 2.9.3

Category: NativeCAM

I have tried it (embedded) in a virtual machine and it seems to work.

Regards
Giovanni
  • Kieran
  • Kieran
07 Aug 2025 08:07
Replied by Kieran on topic 6i25 encoder not working right.

6i25 encoder not working right.

Category: General LinuxCNC Questions

edit... im a nitwhit and was not flashing the firmware into the mesa. it had who knows what firmware from the factory. now im jogging XYZ no worries. trying to add A and B axis.
  • Hakan
  • Hakan
07 Aug 2025 07:23

Lichuan LC10E Ethercat Absolute - 10mm following error

Category: EtherCAT

Yes, the 2 cycle ethercat delay will give a following error of 0.17 mm after 1 ms.
But since you are not using the position feedback inside linuxcnc for more than calculating a following error, it really doesn't matter that the delay is there. A since there is no feedback used by linuxcnc you need to look in the drive for that behavior.
Displaying 10441 - 10455 out of 17899 results.
Time to create page: 0.302 seconds
Powered by Kunena Forum