![RobotStudio event](https://new.abb.com/images/librariesprovider89/default-album/robotstudio-webinar-arc-welding.jpg)
Task.Start() not working
![botobias](https://secure.gravatar.com/avatar/388208218b5c0948518784686550fc1e/?default=https%3A%2F%2Fus.v-cdn.net%2F5020483%2Fuploads%2Fdefaultavatar%2FK2266OAKOLNC.jpg&rating=g&size=200)
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
- 397 UpFeed
- 18 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 319 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 804 RAPID Programming
- 4 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings