Low voltage limit/home switch configuration

More
29 Nov 2025 19:18 #339444 by Autumn Reign
Low voltage limit/home switch configuration was created by Autumn Reign
I have finally gotten my first LinuxCNC machine homing! It is a XXYZA machine. I am quite happy with my progress and everything I have learned. The machine appears to be holding tolerances well while jogging and I am very excited to start running gcode here shortly. 

However, I am getting an oddity with my home switches while homing. It's a low voltage system for signals and having spent a lot more time with all of this I realize that a 12 or 24 volt communication voltage and some daughter cards would have kept some of my troubles in the realm of programming and less in the realm of electrical engineering. I have a 6i25 running to a bank of CL86Y's and 4 functioning home switches (XYZA) from 0V to GPIO pins that are normally closed, one for each axis. I think I am making some sort of pullup/pulldown or other fundamental signal error in my home switches.

With my attached hal/ini configs while homing if I start with switches depressed everything homes great. X and A homing are disabled while I am playing with settings but they work when enabled. Halshow shows my switches working as expected. Diag goes "yellow" when the switch is hit and resumes "red" when released. Sometimes I have seen an unexpected flicker, and the shielded wire is not yet grounded. All other cables are shielded and grounded so I think EMI is minimal, but I will be grounding the shield shortly regardless. However, if I start off of switches the axis will pulse forward and then stop after a move of no even length and throw an error about not being on a switch when backing up, as if it was transitioning from search_vel to latch_vel.

I don't mind starting the machine homing by hand, but I am concerned my home switches are triggering the 6i25 IO while I would be normally operating. This seems like it cannot be a great thing to be doing, but maybe it would not be relevant. 

If you have any suggestions to get more reliable performance, I would appreciate leaning on all of your experience. 

File Attachment:

File Name: Autumn_2025-11-29.ini
File Size:6 KB

File Attachment:

File Name: Autumn_2025-11-29.hal
File Size:15 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
29 Nov 2025 20:41 #339448 by rodw
You have not said what voltage you are using.
The rationale behind 24 volts being more or less standard for industrial systems is that it is more resistant to triggering from noise because a much greater voltage fluctuation is required to trigger false readings.

I think you have already diagnosed the issue.
Also using an industrial power supply like a Meanwell MDR-60-24 won't break the bank. I have lost count of people reporting issues when they use 5 volt plug packs...

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
29 Nov 2025 21:11 #339453 by tommylight
Replied by tommylight on topic Low voltage limit/home switch configuration
some examples form my machines, see on the right side a row of 3 relays, those are for inputs and they isolate the machine part from electronic part, so less interference and no need for good shielded cables (i can no find good cables here):
forum.linuxcnc.org/show-your-stuff/38547...uild?start=30#165873
Or the "arduino" relays as seen here
forum.linuxcnc.org/show-your-stuff/38547...ild?start=110#172157

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum