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.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings