tool change manual control

If you have a question about the software please ask it here.

tool change manual control

Postby mark4 » Wed Jun 15, 2022 2:27 am

hello
i am programming a toolchange manual page.
the object of this page is in case the tool changer gets lost.
I have a box with two leds that are direct from input pin to indicate if the drum is at the park or spindle position
I have two buttons with user macro buttons one for out and one for back.
what I dont know how to do is look at the inputs

When the button park is pressed then the output turns on until the input comes on then turns off the output.
When the button spindle is pressed the same in the other direction.

This is what i know how to do. Or think I do. I do not know how to get the input pin
M20306txt notepad
bool buttonstate = AS3.Getbuttonstate(20306);

if (!buttonstate)
{
AS3.Switchbutton(true,20306);
exec.Setoutpin(3, 06);
}
else

{
AS3.Switchbutton(false,20306);
exec.Clroutpin(3, 06);
}

Thank you
mark4
 
Posts: 26
Joined: Tue May 24, 2022 3:55 am

Re: tool change manual control

Postby ger21 » Wed Jun 15, 2022 11:49 am

I do not know how to get the input pin


Use GetLED to check the input state. I think you want to use it in a While... loop
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 38 guests