RobotStudio event

Cannot Logon to controller from Add-In

I have developed an Add-In to RobotStudio that is trying to set a robot GroupSignal input. Whenever the application tries to set the signal I get the following exception:

The controller has no authenticated user, call Logon( ) to authenticate a user

However in the code where I connect to the controller if I attempt to logon (aController.Logon(UserInfo.DefaultUser)) then I get this exception:

System.InvalidOperationException: The call was blocked by the current host.

I have exactly the same code in a PC SDK application to logon to the robot and it works fine, however I want to talk to Robot I/O and Station Signals within the same application and therefore developed an add-in to do this.

I need to either understand why i cannot logon to a robot or need some help to find a better way to set robot inputs from an Add-In

I have set the access level to the inputs to "ALL" and if I set a DigitalInput then it works fine.

Comments

  • FYI: I have tried this as a C# and VB add-in and had the same result when trying to log onto the robot. Thanks