Task.Start() not working
botobias
✭
Hi,
my first try on the PC sdk and I just wanted to copy the simple program given in the RAB manual (I use IPython).
Basically I have:
scanner = ABB.Robotics.Controllers.Discovery.NetworkScanner()
scanner.Scan()
controllers = scanner.Controllers
ci=controllers[0]
if ci.Availability==ABB.Robotics.Controllers.Availability.Available:
#print "is available"
c=ABB.Robotics.Controllers.ControllerFactory.CreateFrom(ci)
c.Logon(ABB.Robotics.Controllers.UserInfo.DefaultUser)
try:
if c.OperatingMode==ABB.Robotics.Controllers.ControllerOperatingMode.Auto:
print "inside"
print c.Rapid.GetTasks()
tasks = c.Rapid.GetTasks()
m=ABB.Robotics.Controllers.Mastership.Request(c.Rapid)
print m
tasks[0].Start()
#c.Rapid.Start()
m.Release()
now everything seems to work, taking mastership etc. but task[0].Start() has no effect. After trying around a bit I found that c.Rapid.Start() does the trick.
My questuion, what is the difference between starting a task and controller.rapid start and why does starting the task not work?
Thanks,
tobias
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings