tool change manual control
Posted: 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
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