Flexpendant SDK to change signal on release of button

Zanquis
✭
in RobotStudio
Is it possible when using the Flexpendant SDK to set a signal when pushing a button and reset on release?
I have been looking at my options but it does not seem to support this for me.
I see option for click, focus or keyup/down but none of these seem to make it work for me.
0
Comments
-
that is simple enough attach 2 click event in visual studio the keyup and keydown. you do need to have the signal attached to the rapid signal though. so there need to be an declaration: public static Signal aSignal = null; you also need the robot controller object; public static Controller aController = new Controller(); in the load of the screen an attachment: aSignal = aController.IOSystem.GetSignal("Signal Name as in Rapid"); and to avoid memory leaks straight after above line. aController.IOSystem.GetSignal("##").Dispose(); now the signal is ready for use so in the clickdown event: aSignal.Value = 1; and the clickup event: aSignal.Value = 0;0
Categories
- All Categories
- 5.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 829 RAPID Programming
- 13 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings