Flowitems positioning within queue

Flowitems positioning within queue

manuel_alvarez-requejo
Community Visitor Community Visitor
11 Views
2 Replies
Message 1 of 3

Flowitems positioning within queue

manuel_alvarez-requejo
Community Visitor
Community Visitor

[ FlexSim 21.0.3 ]

Hello all!


I am trying to simulate the truck flow within a site. To do so, I am using AGV networks and queues for the waiting areas or parkings. I want a waiting area with trucks parked in parallel an close together. However, whenever the trucks enter the queue they are positioned in two different ways depending on the position in the network with respect to the position they were created in:

1635154546714.png

The trucks on the left are close together, but not in parallel. The trucks on the right are in parallel, but not close together or in the queue. I have tried the different options for "Item Placement" in the queue options, and this is the closest I get to the solution. I think I know why this happens, the space occupied by the object does not rotate with the flowitem, but I don't know how this problem could be solved.

I will post a small model to exemplify my issue.

Thank you very much in advance,

Manuel

Parking_Doubt.fsm

0 Likes
Accepted solutions (1)
12 Views
2 Replies
Replies (2)
Message 2 of 3

manuel_alvarez-requejo
Community Visitor
Community Visitor

I have coded my way around the problem, not sure if there is a simplet solution.

Basically, I created a table with the position of the parking spots (four in the examples) and a column that determines if the spot is occupied or if it is not.

Whenever a truck parks, a "Change visual" is executed and it iterates the table mentioned above looking for available spots. Whenever it finds one, it situates the truck in that spot, it changes the occupied column and it stores the spot where the truck has parked in a token label.

As soon as the truck leaves the parking, another custom code is executed where the occupied column changes using the spot label on the token of the truck.

It is important to remember to put a OnReset trigger on the global table to reset the "occupied" column. I will leave the model bellow, just in case anyone wants to check it out. Sorry for the programming, not my strong point haha :).

If anyone knows a more elegant solution, feel free. Anyway, this solution es pretty solid since I came throu another solution before that didn't take into account the leaving trucks, so sometimes a truck could park in an occupied space.

Thank you very much,

Manuel

Parking_Doubt.fsm

0 Likes
Message 3 of 3

jose_antonio_mad
Not applicable
Accepted solution

Hello @Manuel LRH,

You can do what you want directly if you use a Floor Storage instead of a queue.

I hope I have been helpful.

parking-doubt_1.fsm

0 Likes