Hello Guest it is April 29, 2024, 04:30:35 AM

Author Topic: Change State of Soft limit Button  (Read 360 times)

0 Members and 1 Guest are viewing this topic.

Change State of Soft limit Button
« on: February 22, 2023, 12:19:47 PM »
Hi all,

So my current set up has the tool holder outside of the soft limits. I turn the limits off to complete the tool change and turn them back on again at the end of the tool change. Ideally, I would like to update the state of the SoftLim button on the home screen along side this switching as a visual aid. I think one way to do this would be to use mc.SoftLimGetState in the PLC and update the state of the button based on this value. However, I'm not sure of the button's handle?

Any ideas/suggestions would be much appreciated.

Cheers

GOOMBA

*
Re: Change State of Soft limit Button
« Reply #1 on: February 22, 2023, 01:22:53 PM »
Hello,
https://www.machsupport.com/forum/index.php?topic=47078.0
The above post I replied and explained almost the same thing.
You need a flag, use a register and just check the value of the register with a plc function.
Then you can use the scr.set calls to change the button
Re: Change State of Soft limit Button
« Reply #2 on: February 22, 2023, 03:42:02 PM »
Hello,
Thanks for that. This is kind of along the lines of what I was thinking. However, I could not find anything in documentation about scr.set calls, do you have something perhaps I have not seen? Also I dont think I can assign a register to the SoftLim On/Off button because I did try this before, so I was under the impression that maybe I could not edit the buttons that were core functions of Mach4, is this not correct?

Cheers