Read and Write var without permission

Hello,
I have an application in C # that communicates with an ABB robot, I use PC SDK 6.03.

I am looking for a solution to write to a variable (PERS num myVar := 0) in automatic mode and manual mode without asking the user permission (without Mastership.Request).
Is it possible ?

Thank you in advance.

In both cases you have to request mastership in your C# application. But only in manual mode, you have to ask for user permission…

You can look into using the IPCommands - where you send a command to a queue and the robot can handle that in a trap rutine to set the variable. This doesn’t require mastership - but its more like at message parsing setup. Hence you need to send a command back if you change your value in the robot :slight_smile:

You can read more here http://developercenter.robotstudio.com/Index.aspx?DevCenter=RobotCommunication&OpenDocument&Url=html/9356e876-116f-4894-964d-0977bc7880a0.htm

Hi,Danlars. I’m trying to IPCommands, but the creation of IpcQueue has encountered an exception.The code that causes the exception is “IpcQueue queue = MyController.Ipc.CreateQueue(“RMQ_OtherTask”, 5, Ipc.MaxMessageSize);” Exception is “‘System.ArgumentException’ occurred in ABB.Robotics.Controllers.PC.dll”. Thanks very much.


Variable controller already initialized, I am a bit do not understand why this is so.

Hi,pbe56.

I recently encountered the same problem as you, reading RAPID global var does not need access to mastership permissions, but the need to write variables, and the program at run time to request permission will cause exception.