RobotStudio event

PC control robot problem(labview, mastership,move)

hi,everyone , I have done c# language to control our robot with sending messaging to rapid for moving robot. But I still have quesitons.Its jsut message method. Is there any other way to control robot move?
 

now I am trying to control robot with Labview. I wish there are someone who can discuss with me.In Labview, there are some funsiton of .net can not be used. For example, 

if we want to control robot, we need to have access of mastership. In c# or vb, its

no problem to using mastership. But when I want to use the .net in Labview, I can not use

the mastership.  There are no structure in mastership.  How can I find the other way? Can anyone or ABB can provide the .net structure. Thank you very very very much.

Comments

  • Hi,
     

    using Messaging for this purpose is the right way to go. There are no methods in PC SDK which lets you execute a movement directly.

     

    About the problems you are facing in LabView, can you tell me more?

    What do you mean with "there is no structure for mastership"?

     

    Are you familiar with taking mastership using C# from a regular PC SDK application.

     

    If you want you can post a screenshot or copy the error message you get from LabView.  

    Best Regards, Niklas Skoglund
    ABB Robotics

    Developer Center
    RobotStudio Blog
  • You have mastership inside the curly brackets ( or an exception )

    try
                {
                    using(master = Mastership.Request(controller.Rapid))
                    {
                        try
                        {
                              YOUR CODE GOES HERE


  • imageimage

    chad su2010-07-15 04:03:55
  • As the photos I post, lets see the networkscanner first. For this funciton , I can use it from our .NET . First we can choose our objects from the list, like ABB.ROBOTICS or ABB.ROBOTCS.CONTROLLERS...,ETC. After you choose the objects, you can use its constructors. So I can use networkscanner.Apparently the button OK can be pressed. So it can excute in Block Diagram. But for mastership,it just show that the class contains no public constructors. So I can not use it , the OK button either. That is what I say.So I really hope someone can help me. Thank you.

  • Hi,
    thanks for the screenshots.
     

    The Masterhip class cannot be created by the client (your code), but is used from the property Controller.Mastership.

     

    You have to try to translate the following lines of C# to LabView

     

    [CODE]IMastershipResource master = Mastership.Request(controller.Rapid);

    // do calls to controller

    master.Release();

    [/CODE]

     

    as Laro said you normally put the call to Request(...) in a using{} clause, which will help you call Release() when the using{} exists. But as this is C# syntactic suger, lets start with the raw functionality which might be easier when you port it to LabView. 

    Best Regards, Niklas Skoglund
    ABB Robotics

    Developer Center
    RobotStudio Blog
  • Hi,

    I have been using Labview 8.6 to interface with ACS550-u1 controller from ABB and can't seem to get it to link up. It keeps stating an 6106 error and says its timing out after its reached a modbus. The vi I'm using now has modbusing in it. Do I need to do that or can I just use a frequency generator vi to control the motor. Do anyone have a program already written for this type of control or know where I can go to find one. I went to NI's forum and the code that they had didn't work either, it stated a similar error. Any help would greatly be appreciated. 
  • hi chad,

     

    have you made some progress?

    Best Regards, Niklas Skoglund
    ABB Robotics

    Developer Center
    RobotStudio Blog

  • Dear, 

    The LabVIEW code to get the mastership of the controller is like this:
    image
    Best regards,
    binbin


  • I'm having the same issues as above - "Mastership" contains no public constructors. It seems binbin has imported it, however. Can anyone provide an update on this?