How can I pull a variable from the module/routine with pc sdk?

I set up a variable in my module - var time. How can I pull this variable info from that module/routine with pc sdk?


  • scottMHAscottMHA Luton, United Kingdom
     This should do what you want, it will return all rob targets for each task.
    RsTaskCollection tasks = irc5controller.Tasks;
                foreach (RsTask task in tasks)
                    RsDataDeclaration[] datadecls = task.FindDataDeclarationsByType(typeof(RsRobTarget));
    You just need to change the RsRobTarget for what ever data type your variable is.
  • EugeneBEugeneB USA
    RsTaskCollection is ABB.Robotics.RobotStudio.Stations class and irc5controller is an instance of the Controller class correct? It given me an error in this line: RsTaskCollection tasks = irc5controller.Tasks - problem with Tasks - "irc5controller" does not contain a definition for the Tasks. How can I do this without of using RobotStudio classes?
  • DenisFRDenisFR FRANCE ✭✭✭
    Here what I've post to EugeneB for other:
    You can found in GetModule() how I do to find data.
    //First prepare search

    In GetGfxShapeData I pull data, it's more complicated as it's a record type.
                        RapidData rd = module.GetRapidData(sDataName);
    Here a simple example to get a PERS bool bTest:=FALSE; value:
                        RapidData test = module.GetRapidData("bTest");

    Bool is on namespace ABB.Robotics.Controllers.RapidDomain.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!