I like to have a workplace (parkslot) in front of a buffer to move parts into a product line (IN).
There will be another buffer with a workplace to retrieve part from the product line (OUT).
FInally 2 parking slots are in front of this product line.
The IN workplace has multiple supported services, it brings raw material (one carrier) and also parts which return to this line (6 carriers).
Currently multiple carrier move to this workplace and stay there to drop their parts.
This is physically not possible on the real installation.
How can I lock this workplace if there is already one carrier waiting to the drop his parts.
Solved! Go to Solution.
thanks for your reply.
I setup a simplified model based on what I am currently working on.
I have parkspot (IN) at PickAndPlace1 (Cell1). The 2 carriers come here.
The orange one (1 device) brings the raw materiel. The blue one (4 devices) returns the part from PickAndPlace2 (Cell2) back to Cell1. Cell1 make a preparation and a finalization work. The robot is used twice.
All carriers will line up at the PS_PP1_IN.
so I add a code like this in the exit of the sending device:
var bParkSlotFree : boolean;
bParkSlotFree := not ParkSlot_PP1_IN.occupied;
waituntil bParkSlotFree prio 1
The system runs this code as long as the received parking slow is free. ( I run using a breakpoint at "@.move')
Once it's occupied, the scan stops. The error is 'Cannot watch expression'.