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