knowing program name executing in robot [WebWare SDK]
Comments
-
Do you mean all programs located on the disc or only the program currently beeing executed?
AndersD38296,4490625
One solution to read the current program could be declaring a PERSistent variable at the top of your RAPID programs, containing the information needed. This persistant could then retrieved and would return the current program.
______________________________
Anders Dannberg
ABB Automation Technologies
Support Engineer0 -
Hi Anders,
Ok we will do the solution that you propose
Many thanks for your help
0 -
Don't you need to execute the robotprogram for this variable to be set then, or will it be set as soon as the program is loaded?0
-
Loading the program into the controller is enough if you intend to use persistant variables. This would allow your SDK application to read the value of these variables.
______________________________
Anders Dannberg
ABB Automation Technologies
Support Engineer0 -
But how do you catch that event, I see no other way than catching an event from when the variabel changes when the program executes the first line in the robotprogram which sets this variabel. Or is there an event for a programchange in the robot?0
-
You can check the program state using the Helper control (see previous post on this subject).
However in the proposed case above, the RAPID variable would simply be set in different parts of the RAPID code.
For instanse, if you are calling a function in RAPID called doWeld(), you could in that routine set a variable to something. For instance:
myRAPIDStatusVariable:="Currently welding";And/or you could, as you state above, use the variablechanged event to catch this.
______________________________
Anders Dannberg
ABB Automation Technologies
Support Engineer0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings