NEW BUILD, need help with e-stop in tklinuxcnc

More
10 Oct 2025 09:55 #336186 by Dragan
For weeks, I've been working on my own CNC machine and have made good progress, but I need help with some small details from experts.The machine is a MicroCarve MV3 with 3x 23-305-DS8A steppers in bipolar parallel mode, connected to a TB6600, which is connected to a Raspberry Pi 4. I don’t have a stop button yet.I’ve managed to wire the motors and Pi to test the axes with a Python script. I also created a minimalist INI and HAL file and started TkLinuxCNC. However, I can’t move the motors because the software shows an E-stop, and despite my efforts, I can’t get the machine to move.I access the Pi via VNC without a connected monitor. The image used is rpi-4-debian-bookworm-6.1.54-rt15-arm64-ext4-2023-11-17-1731.img.xz, updated to LinuxCNC 2.9.6.Friends, I need help. I’ve spent many hours on this and am close to getting the machine running.My test script works; HAL and INI files are attached.Thanks,
Dragan
Attachments:

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

More
10 Oct 2025 10:36 #336188 by Todd Zuercher
Replied by Todd Zuercher on topic NEW BUILD, need help with e-stop in tklinuxcnc
If your test machine has no external e-stop circuit you shouild simply connect the e-stop out signal to the estop in signal in your hal file. Something like this:

net estop-out <= iocontrol.0.user-enable-out
net estop-in => iocontrol.0.emc-enable-in

Then the e-stop buttons on the userinterface will work. and you will need to toggle them when starting Linuxcnc.

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

More
10 Oct 2025 17:25 #336202 by Dragan
thank you for the quick answer it is not working i tried everything its super strange.

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

More
10 Oct 2025 17:34 #336205 by Aciera
Have you clicked on the 'ESTOP' button in the tklinuxcnc gui to set 'Estop off' and 'Machine on'?

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

More
10 Oct 2025 17:37 #336206 by Dragan
i did and its not working, when i start sim tklinuxcnc its working

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

More
10 Oct 2025 18:26 #336208 by Aciera
If you select 'Utilities' > 'HalMeter' in the tklinux menu and select 'iocontrol.0.emc-enable-in' does it show TRUE ?

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

More
10 Oct 2025 18:45 #336209 by Dragan
yes

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

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
10 Oct 2025 20:10 #336223 by andypugh
Replied by andypugh on topic NEW BUILD, need help with e-stop in tklinuxcnc

net estop-out =>iocontrol.0.user-enable-out
net estop-in => iocontrol.0.emc-enable-in

 

I think these need to be the same signal name to work as described. Try:
net estop-loop =>iocontrol.0.user-enable-out
net estop-loop => iocontrol.0.emc-enable-in

(note that the signal name is nothing special, there is no significance in changing it to loop, other than clarity. The important thing is that it should be the same name on both lines) 
 

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

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
10 Oct 2025 20:16 #336224 by andypugh
Replied by andypugh on topic NEW BUILD, need help with e-stop in tklinuxcnc
Oh, and why tklinuxcnc? There's nothing wrong with it, but it's rather outmoded and hasn't had a lot of developer attention for a while.

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

More
10 Oct 2025 20:19 #336225 by Dragan
axis not working over vnc in my setup,

net estop-loop =>iocontrol.0.user-enable-out
net estop-loop => iocontrol.0.emc-enable-in

this is resulting in tklinuxcnc not starting, maybe its working with older software versions.

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

Time to create page: 0.084 seconds
Powered by Kunena Forum