RobotStudio event

knowing program name executing in robot [WebWare SDK]

is there any variable or function inside the robot to know the program that has been loaded to executed?

Many thanks

Comments

  • Do you mean all programs located on the disc or only the program currently beeing executed?

    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 Engineer

    AndersD38296,4490625
  • Hi Anders,

    Ok we will do the solution that you propose

    Many thanks for your help

     

  • 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?
  • 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 Engineer

  • 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?
  • 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 Engineer

     

     

    AndersD38443,4835763889