I'm working on modeling a robot cell with single robot in the centre of 6 stations, I haven't modeled anything like this yet and would like some input. I've read through the forums and see that I should use the exit control on each station to call the robot, and then use the target control to determine where it goes.
I'm not clear on how I should write the methods to accomplish this and how I set priority when 2 or more stations call at the same time.
Thanks in advance for the help
Solved! Go to Solution.
The process is as follows:
only some ideas:
- move in the exit control all trays to the robot, set the destination attributes of the trays to the store, so the robot can select the right exit
adress the trays --> e.g. store.cont.destination:=load_station1 --> move to the robot
exit control of the robot --> wait for tray --> move in the tray --> if tray full --> adress the tray --> move to the next robot --> wait some seconds and move a empty from the store tray to the robot
for set the destination of the robot --> see help: targetControl --> setDestination
So I've been slowly working on my model over the past few weeks and have gotten most things to work and your advise was very helpful.
I'm currently on stuck with the robot picking trays of a pallet. The robot will pick the first tray, place it in another station to be loaded, move the full tray to the store, and then stops there. It won't go back to the station with the pallet and empty trays. I've tried a number of things like forcing the robot to goto that station when its empty and the tray load station is empty, I've tried adding a for loop to the exit method on the empty tray station. I've checked to make sure the exit is unlocked. Not sure where to go with this one..... I'm including the model I use to test new things on a smaller scale before I add them into my actual model.
I think tray_load.OnEntrance is the right place for the control, after removing the filled tray, you need to move the next tray from the pallet to the pickAndPlace (after adressing it)
Thanks that worked. I added that control to the OnEntrance method for the full tray store object.
Now the challenge of scaling this up into my larger model.