NEW BUILD, need help with e-stop in tklinuxcnc

More
1 year 3 weeks ago #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

Please Log in to join the conversation.

More
1 year 3 weeks ago #336188 by Todd Zuercher
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 to join the conversation.

More
1 year 2 weeks ago #336202 by Dragan
thank you for the quick answer it is not working i tried everything its super strange.

Please Log in to join the conversation.

More
1 year 2 weeks ago #336205 by Aciera
Have you clicked on the 'ESTOP' button in the tklinuxcnc gui to set 'Estop off' and 'Machine on'?

Please Log in to join the conversation.

More
1 year 2 weeks ago #336206 by Dragan
i did and its not working, when i start sim tklinuxcnc its working

Please Log in to join the conversation.

More
1 year 2 weeks ago #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 to join the conversation.

More
1 year 2 weeks ago #336209 by Dragan

Please Log in to join the conversation.

More
1 year 2 weeks ago #336223 by andypugh

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:
Code:
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 to join the conversation.

More
1 year 2 weeks ago #336224 by andypugh
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 to join the conversation.

More
1 year 2 weeks ago #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 to join the conversation.

Time to create page: 0.094 seconds
Powered by Kunena Forum