Connect to controller
Options
Klaus
✭✭
HI.
scn = New NetworkScanner
robGuid = New System.Guid(RobotSytemGUID)
robot1 = scn.Find(robGuid)
robotController = New Controller(robot1)
robotController.Logon(UserInfo.DefaultUser)
Any idears???
BR Klaus
I have a minor problem with connecting to controller.
If my HMI is opened before the robot is started up it won't connect, but if my HMI has got connection to controller and i reboot th controller it will connect again afted the reboot. Strange??
I use a timer with 2 sek to see
If robotController.Connected = FALSE Then
If robotController.Connected = FALSE Then
scn = New NetworkScanner
robGuid = New System.Guid(RobotSytemGUID)
robot1 = scn.Find(robGuid)
robotController = New Controller(robot1)
robotController.Logon(UserInfo.DefaultUser)
Any idears???
BR Klaus
Best Regards
Klaus Soenderhegn
www.cadalysator.dk
Klaus Soenderhegn
www.cadalysator.dk
0
Comments
-
Does it make any difference if you call scan before you call find?Have you tried the overloaded version of Find that has WaitTime and Retries parameters?Or maybe you could use the NetworkWatcher class to notify you when your controller(s) connect or disconnect?Russell Drown0
Categories
- All Categories
- 5.4K RobotStudio
- 382 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 281 IRC5
- 48 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 739 RAPID Programming
- 16 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings