M100 on subroutine hangs

  • Martin.L
  • Away
  • Senior Member
  • Senior Member
More
05 Sep 2025 17:51 #334504 by Martin.L
M100 on subroutine hangs was created by Martin.L
I'm trying to execute an M100 from this toolchange subroutine, whithout M100 works. Here is the M100 and it works in MDI, what can cause the hang? 

#!/bin/bash
# M100 Orient Spindle (Homing function)
halcmd sets s-index-zero-for-ATC true
exit 0

 

File Attachment:

File Name: toolchange...05-2.ngc
File Size:5 KB

 

File Attachment:

File Name: TC201_2025...05-2.ini
File Size:9 KB
Attachments:

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

  • langdons
  • Away
  • Platinum Member
  • Platinum Member
More
05 Sep 2025 21:01 - 05 Sep 2025 21:02 #334517 by langdons
Replied by langdons on topic M100 on subroutine hangs
Maybe try #!/usr/bin/env bash

(never hurts to try)
Last edit: 05 Sep 2025 21:02 by langdons.

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

More
05 Sep 2025 21:17 #334518 by PCW
Replied by PCW on topic M100 on subroutine hangs
Did the subroutine execute?

You could run

halcmd show signal s-index-zero-for-ATC

From the command line to check

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

  • Martin.L
  • Away
  • Senior Member
  • Senior Member
More
06 Sep 2025 10:34 - 06 Sep 2025 12:10 #334544 by Martin.L
Replied by Martin.L on topic M100 on subroutine hangs
I have tryed both, unfortunately #!/usr/bin/env bash makes no difference. Also halcmd show signal s-index-zero-for-ATC stays false. I also tryed to call M100 from a remapped M19 but it's totally ignored, meanwhile the same sintax for similar commands like M10 or M21 works fine.

UPDATE: somehow in toolchange.ngc M1xx doesn't work, just hang the M6Tx called BUT I noticed it works inside the subroutines called by toolchange.ngc, like M10 (remapped) so I temporarly solved.  What it could be the cause?
Last edit: 06 Sep 2025 12:10 by Martin.L.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum