Stop and Pp-to-main one robot on a 2-robot-single-controller system
Hello,
I have two robots connected to one controller.
There are 2 system input to "start_at_main" each robot.
I want to stop robot 1 and send PP to main without stopping robot 2.
Right now I'm using two Di to throw interrupts and stop each robot independently. Inside the trap routine I stop the corresponding robot. Yet it seems I cannot "start at main" with system input; it says "start at main rejected"; task must be in stop; but I'm sure I'm calling "Stop" within the trap routine; do both robots need to be stopped in order to PP_to_main only one of them? Can I send "Start at main" from within trap? What's the best way to Stop only one robot and be able to send its PP to main? Maybe a ExitCycle and forget system "Start at main"?
Also, one of the robots' main routine is just reading an AI and call a program with that name (with call by name); Is there a way to return from that called routine whenever a given Di is set? My PLC tells me which program to run but also needs to tell me to abort that program. Any straightforward way of doing this?
Thanks in advance,
Best regards
Tagged:
0
Answers
-
MarcosFerreira said:I want to stop robot 1 and send PP to main without stopping robot 2.MarcosFerreira said:
Right now I'm using two Di to throw interrupts and stop each robot independently. Inside the trap routine I stop the corresponding robot. Yet it seems I cannot "start at main" with system input; it says "start at main rejected"; task must be in stop; but I'm sure I'm calling "Stop" within the trap routine;Also, one of the robots' main routine is just reading an AI and call a program with that name (with call by name); Is there a way to return from that called routine whenever a given Di is set? My PLC tells me which program to run but also needs to tell me to abort that program. Any straightforward way of doing this?
Not so sure what you're trying to do here. Send us some code so it's clearer.0 -
MarcosFerreira said:Also, one of the robots' main routine is just reading an AI and call a program with that name (with call by name); Is there a way to return from that called routine whenever a given Di is set? My PLC tells me which program to run but also needs to tell me to abort that program. Any straightforward way of doing this?0
Categories
- All Categories
- 5.5K RobotStudio
- 391 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 305 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 773 RAPID Programming
- 17 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings