
IS controler started in VB

Klaus
✭✭
How can i in VB check if a controler is started or not.
Have read the API doc but can't find anything under proberties to ActiveStation.Mechanisms
Best regards Klaus
Best Regards
Klaus Soenderhegn
www.cadalysator.dk
Klaus Soenderhegn
www.cadalysator.dk
0
Comments
-
Hi Klaus
Here comes an example how to check if controller is started.
Sub ControllerStatus()
Dim m As Mechanism
Dim c As ABBS4Controller
On Error Resume Next
Set m = ActiveMechanism
Set c = m.Controller
If c Is Nothing Then
MsgBox "Controller not Started"
Else
MsgBox "Controller Started"
End If
End SubPer Svensson
Company Specialist
ABB Automation Technology Products0 -
Here is another example
Function isTheControllerStarted(irb As Mechanism) As Boolean
Dim c As ABBS4Controller
isTheControllerStarted = False
On Error GoTo errController:
Set c = irb.Controller
isTheControllerStarted = True
Exit Function
errController:
End Function/Martin Lundh
Product manager
ABB Robotics0
Categories
- All Categories
- 5.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings