Link Button with variable
Options
I want to link a button to a variable. The variable should be 1 if the button is pressed and 0 when it is not. Using the variable (in my case a boolean variable) I want you to light up an LED, or simply not.
How do I connect the variable with the button? Which properties-subitem should I connect?
Funnily , it works perfectly for any other button, only with the classic "normal", there are problems. Or doesnt work a button if a RunRoutine(Button) is working?
Have a nice start of the week
How do I connect the variable with the button? Which properties-subitem should I connect?
Funnily , it works perfectly for any other button, only with the classic "normal", there are problems. Or doesnt work a button if a RunRoutine(Button) is working?
Have a nice start of the week
0
Comments
-
Hello,Looks like its a really late replyTo answer your question. You could use a normal Button control for the same. The functionality of the RunRoutine Button control is call a rapid routine.The ideal way may be to link a signal to the text property of button control. On click of the button control you could define an action to invert the signal.The same signal is also linked with the LED control so that the state changes.Thus, on button click signal value toggles between 1 and 0 and also reflects the state in LED.Thanks,Abhishek0
Categories
- All Categories
- 5.4K RobotStudio
- 385 UpFeed
- 15 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 285 IRC5
- 47 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 748 RAPID Programming
- 15 Wizard Easy Programming
- 110 Collaborative Robots
- 3 Job listings