I need to read the Flex Pendant speed and send it out to the PLC.

in RobotStudio
I need to read out Flex Pendant speed and send it out to the PLC, can anyone share the sample code.
Thanks
Thanks
0
Answers
-
VAR num nSpeedOride;nSpeedOride:=CSpeedOverride();
SetGO goSpeedOverride, nSpeedOride;
You will need to map a group output if you have not already done so.Lee Justice0 -
Hi,
Thanks for the reply.
This is working but need to read the speed continuously as of now getting only when this command read in the loop at that time only getting the speed of flex pendant.
need to read the Speed of flex pendant continuously (Background need to run the code), what command need to use?
Thanks0 -
You are welcome. Does this robot even have the mutitasking option? Even with or without this option you could just make a timed interrupt in the main task.Lee Justice0
-
Hallo, depending on the complexety of your program you can define an interrupt on your variable (see IPers) or you use ITimer for a cyclic check.
0
Categories
- All Categories
- 5.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 14 RobotApps
- 300 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 828 RAPID Programming
- 12 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings