RobotStudio event

FPSDK 5.12 - Rapid data

Hi all
how can I read rapid data from controller?
I read many helps in FP SDK and RAB but I think there are many "errors"
Example: Dim rd As RapidData = Me.AController........
where is RapidData declared and how
where is AController declared and how
etc. etc.

I try somethink but my method "trial and error" is very slow and expensive!

Please help, do somebody any WORK example PLEASE write me.

Many thanx for any help
John Wiberg2011-06-07 14:39:56

Comments



  • Hi ACE,
    are you working with a PC SDK or FlexPendant SDK project?

    Best Regards, Niklas Skoglund
    ABB Robotics

    Developer Center
    RobotStudio Blog
  • Hi
    I worked on FlexPendant SDK, RAB 5.12 & VisualStudio Prof 2008
    Do you have any idea? :)




  • Now I saw in the topic header that you are using flexPendant SDK. Sorry for asking Smile.
     
    In the Application Manual under topic Using the Controller API/Accessing the Controller"
     
    you can see how you create the controller object.
     
    [code]Private AController As Controller
    AController = New Controller [/code]
     
    and then you can use it to get some data:
    [code] Dim Rd As RapidData =
    Me.AController.Rapid.GetRapidData("reg100")[/code]
     
    I dont not have VB.NET installed so I havent tried it out. Are you familiar with C#?
     
    When writing about code in a manual it is quite difficult to include all varaible declarations etc every time you want to explain something.
     
    Would it be better to have longer more complete snippets of source code?

    Best Regards, Niklas Skoglund
    ABB Robotics

    Developer Center
    RobotStudio Blog
  • Hi
    What is it that you want to do exactly? What type of RAPID do you want to read? Do you want to do something more with it once you have read it?

    As a generic advice I'd say use the FpRapidData dialog. That ususally reduces the amount of work for the programmer.
    See the FlexPendant SDK Application Manual : "Using the FlexPendant SDK - Launching other views - Using standard dialog box to modify data" topic.



  • Hi
     
    I agree with John.
    But if you later need to use methods like GetRapidData(), I just want to tell you that the Application Manual has been updated in release 5.13 compared to 5.12, where a few typos in the code snippets were corrected.

    Best Regards, Niklas Skoglund
    ABB Robotics

    Developer Center
    RobotStudio Blog