Page 1 of 1

edit button and limit machine

PostPosted: Fri Dec 02, 2022 1:50 pm
by Mindustrys
Hello everyone
I'm finishing setting up my cnc machines and I wanted to make some small changes:
- I would like to set the cycle start button (screen button and real button on the electrical panel) to be operable only if the home LEDs are true!
otherwise I send a message on the screen. The only idea that came to my mind is to create a MXXXXX macro and assign it to the onscreen button, but doing so when I press the
button from the control panel the macro is not taken into consideration as the inputXX button is linked to the CycleStart(128) function.
Does anyone know a better way to do this?
- I have an ATC system with tool magazine in Y1000 X0-X500 across the width
I would like to set the soft limits so as not to include the tool magazine in the work area, but by doing so I cannot access the tool magazine from my M6 macro
is there a way to use that workspace only via script in macros?
do you have any ideas about it?

Thank you all. I look forward to your support

Re: edit button and limit machine

PostPosted: Fri Dec 02, 2022 2:16 pm
by dezsoe
1. Set your input trigger to call the same macro. Just set the number of the macro instead of the Cycle start button code.
2. In you M6 turn off and at the end turn back on soft limits using exec.Callbutton(). Use 519 to turn off and 518 to turn on.

Re: edit button and limit machine

PostPosted: Sat Dec 03, 2022 3:49 pm
by Mindustrys
thank you very much
your advice has been very helpful.
everything worked out great!