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.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings