
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
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings