LinuxCNC trips on M6

More
01 Sep 2020 02:35 #180250 by underscore
I've been trying to get manual tool changes to work with linuxcnc, but every time I execute a M6 it switches to the "e-stop tripped" state. If I set a tool change position, it first moves to that position and then trips. That position is definitely within the soft limits. hal_manualtoolchange is configured following the man page.

Could someone point me in the right direction how to debug that problem? DEBUG=0x7FFFFFFF didn't produce anything suspicious looking. One non-standard configuration of my system is that I use XYZACW, maybe related (i.e. soft limits for unused axes)?

P.S.: I'm running the latest version from GitHub.

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

More
01 Sep 2020 10:16 #180295 by tommylight
Replied by tommylight on topic LinuxCNC trips on M6
Are you using a spindle with a VFD?

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

More
01 Sep 2020 11:45 #180314 by underscore
Replied by underscore on topic LinuxCNC trips on M6
No, at this point I’m manually controlling the spindle (I.e. outside of linuxcnc).

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

More
01 Sep 2020 11:50 #180315 by tommylight
Replied by tommylight on topic LinuxCNC trips on M6
Can you please attach the hal and ini files here ?

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

More
01 Sep 2020 13:03 #180327 by underscore
Replied by underscore on topic LinuxCNC trips on M6
Thanks for your assistance. I uploaded all my files, but only the *.ini, taig_mill.hal, tool change.hal and halui.hal should be relevant.

It's my first time using linuxcnc, so please excuse if it is a little messy!

File Attachment:

File Name: buttons_20...9-01.hal
File Size:2 KB

File Attachment:

File Name: pendant_20...9-01.hal
File Size:9 KB

File Attachment:

File Name: serialhal_...9-01.hal
File Size:0 KB

File Attachment:

File Name: halui_2020-09-01.hal
File Size:4 KB

File Attachment:

File Name: toolchange...9-01.hal
File Size:0 KB

File Attachment:

File Name: taig_mill_...9-01.ini
File Size:8 KB

File Attachment:

File Name: taig_mill_...9-01.hal
File Size:19 KB

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

More
02 Sep 2020 02:43 #180385 by underscore
Replied by underscore on topic LinuxCNC trips on M6
Here is the output when running with DEBUG=0x7FFFFFFF. The Tnn and M6 are fairly far down.

I noticed the following line:
emcTaskPlanExecute(M6) returned 2

(In addition I tried some basic remapped M6 and a similar thing happens, except I cannot get out of the e-stop state anymore without restarting. Very odd. The code inside my remapped *.ngc is executed, at least to the point where I'm waiting on a digital input, but emc is already in the e-stop stage...)

File Attachment:

File Name: log.txt
File Size:15 KB
Attachments:

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

More
03 Sep 2020 02:00 #180480 by underscore
Replied by underscore on topic LinuxCNC trips on M6
Ok, quick update:

When I use an external e-stop, e-stop trips on M6:
net estop-out => hm2_5i25.0.7i76.0.0.output-07
net estop-in <= hm2_5i25.0.7i76.0.0.input-07
net estop-out <= iocontrol.0.user-enable-out
net estop-in => iocontrol.0.emc-enable-in

If I bypass that and just loopback the signals from iocontrol it works!
net estop-loop <= iocontrol.0.user-enable-out => iocontrol.0.emc-enable-in

What is going on here?! Some time(out) issue?

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

More
06 Sep 2020 16:38 #181035 by underscore
Replied by underscore on topic LinuxCNC trips on M6
Mystery solved, the estop output and the tool change indicator led wires were physically swapped... such an odd problem. Anyway, works like a charm now!

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

Time to create page: 0.187 seconds
Powered by Kunena Forum