M100 on subroutine hangs

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.

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.

Time to create page: 0.056 seconds
Powered by Kunena Forum