Home› Programming
Discussion
Back to discussions page
mkoester2
Posts: 7 Apprentice
Flashing Output light inside the program |
154 views
|
Answered | |
/ Most recent by matthewd92
in Programming
|
3 comments |

in Programming
I am programming a UR10 Universal Robot. A panel box has been fabricated, and includes a green LED-lit push button and a red LED light. On the 'Installation' tab on the teach pendant, there are 4 actions outputs can take inside the program. I am wanting to set up a constant pulse for the green pushbutton inside the program itself instead of having it set to 'Continuous Pulse While Running'. I am wanting to make the green light flash before the program is executed, make an operator push that green pushbutton when ready, then set it ON constant while the robot is executing its program. Is there anyway to do this inside of the program?
Thanks
Thanks
Tagged:
Here is an example thread that you could use in the program
In your main program when you get to the point you are waiting on the operator to push the button you would have something like this
Then when you are waiting for the operator to press the button, line 2 above, you would trigger the thread to flash the light, as soon as the button is pressed the flag would be set low and the thread would advance to the else condition and then wait for the input to be needed again.
In the new polyscope versions you can actually now set an output to flash using the set command so that could simplify the code as well.
This worked as needed. Thanks again