Palletizing PowerPac - how to control / synchronize 2 flows?
Hello,
I have a station with 2 robots. The first robot puts bags in a box, and the second robot picks the boxes and puts them on a pallet.
I set everything up with Palletizing PowerPac, and it works, but both flows start immediately and work at the same time. What I want to happen is that when the simulation is started, only Flow 1 is working and once Flow 1 is finished, then Flow 2 should start automatically.
How can I do this? There doesn't seem to be an option to set it up with Palletizing PowerPac, so I'm trying to do it with RAPID code but I can't figure out how. I checked the manual and on page 269 it says:
Stopping a flow:
1 Set pmFlow_giSelection to select flow.
The I/O value for the flow is set in the Flow editor. See Flow on page 184.
2 Set pmFlow_giStopOption to select stop option.
3 Pulse pmFlow_diStop to stop the project.
4 Wait until the flow is stopped, which occurs when the flow’s status signal,
pmFlowX_goStatus, goes to 0.
The I/O value for the flow is set in the Flow editor. See Flow on page 184.
2 Set pmFlow_giStopOption to select stop option.
3 Pulse pmFlow_diStop to stop the project.
4 Wait until the flow is stopped, which occurs when the flow’s status signal,
pmFlowX_goStatus, goes to 0.
But I don't know how to do these things, I tried to "Set pmFlow_giSelection" using the following RAPID code:
pmFlow_giSelection:=2;
But that gives me an error. I don't know how else to do it.
I would very much appreciate any help with this.
0
Categories
- All Categories
- 5.4K RobotStudio
- 375 UpFeed
- 15 Tutorials
- 12 RobotApps
- 286 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 241 ScreenMaker
- 2.7K Robot Controller
- 266 IRC5
- 38 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 717 RAPID Programming
- 15 Wizard Easy Programming
- 107 Collaborative Robots
- 3 Job listings