Assigning Consecutive Task Order Rows as Packages to Multiple AGVs in FlexSim

Assigning Consecutive Task Order Rows as Packages to Multiple AGVs in FlexSim

2000746384
Participant Participant
146 Views
8 Replies
Message 1 of 9

Assigning Consecutive Task Order Rows as Packages to Multiple AGVs in FlexSim

2000746384
Participant
Participant

In my FlexSim model I have a Task Order table with 16 rows. Each real transport job consists of two entries: one for the outbound trip and one for the return trip. This means the 16 rows actually represent 8 logical packages, each package consisting of two rows.

What I want to achieve is that these packages are always processed completely by a single AGV (first outbound, then return). The assignment should not be strictly alternating, but instead follow the rule “the next available AGV takes the next free package in the list.” In other words, the sequence of packages in the Task Order table should remain intact, and each package should be assigned exclusively to exactly one AGV as soon as that AGV becomes available.

The current problem is that the table only contains the 16 individual orders, and the AGVs just process them chronologically. This way there is no clear bundling into packages and no exclusive assignment, which means both AGVs could potentially work on the same routes. What I am looking for is a solution to extend the Task Order table and/or the ProcessFlow so that every two consecutive rows are grouped into a package and assigned to only one AGV, while the AGVs dynamically share the list by always taking the next available package.

 

Thank You

(Model is in FlexSim 2022)

0 Likes
147 Views
8 Replies
Replies (8)
Message 2 of 9

hbg4857MXY4
Community Visitor
Community Visitor

I’m not sure if I understood it correctly, but I hope this helps.

  1. Store the values of Table Row 1 (Outbound) and Row 2 (Return) into labels.

  2. Immediately move Table Row 1 and Row 2 to the last rows.

0 Likes
Message 3 of 9

2000746384
Participant
Participant

Thank you for the solution. As I mentioned earlier, I unfortunately only have access to FlexSim version 22, so I’m unable to open the model you sent.

Would it be possible for you to send the model in a version compatible with FlexSim 22?

Kind regards

0 Likes
Message 4 of 9

hbg4857MXY4
Community Visitor
Community Visitor

It seems that there is no function to save in a lower version. Instead, I will share the method I tried:

  1. Set an AGV label in the Source.

  2. In the Create TS Task Executer, assign token.AGV.

  3. Create a ZONE (if two tokens pass through simultaneously, the TABLE order gets corrupted).

  4. Assign Row 1 and Row 2 as labels for outbound and return values.

  5. Then, move Row 1 and Row 2 to the last rows of the table.

  6. I also added code in the Table On Reset event to sort the rows based on the values in Col3 when the simulation resets.

 

hbg4857MXY4_0-1757576601354.png

hbg4857MXY4_2-1757576678759.png

hbg4857MXY4_3-1757576697356.png

hbg4857MXY4_4-1757576746203.png

 

 

 

 

0 Likes
Message 5 of 9

hbg4857MXY4
Community Visitor
Community Visitor

@moehlmann_fe  Is there no function to save in a lower version?

0 Likes
Message 6 of 9

2000746384
Participant
Participant

I'm sorry — unfortunately, I wasn't able to implement it in a way that works. I'm also not sure if you fully understood what I meant.

I want to simulate a scenario where AGVs are called on demand to the location where something needs to be transported (TaskOrder rows 1, 3, 5, ...). They should then handle both the outbound and return transport (TaskOrder rows 2, 4, 6, 8, ...).

However, they shouldn't follow the same route again, but instead move on to the next transport task. If it makes more sense to use two separate Process Flows, or if it can be done more effectively with two TaskOrders, I'm absolutely open to that.

Kind regards,

0 Likes
Message 7 of 9

hbg4857MXY4
Community Visitor
Community Visitor

Create a group and add the AGVs, then put token.AGV.first in the UNLOAD ITEM.

 

hbg4857MXY4_2-1757580663123.png

 

hbg4857MXY4_0-1757580618142.png

 

 

0 Likes
Message 8 of 9

hbg4857MXY4
Community Visitor
Community Visitor

Changes the quantity as shown in the figure in the source, and removes [token. row] from the target and return labels.

hbg4857MXY4_4-1757580919681.png

 

 

hbg4857MXY4_3-1757580904020.png

 

hbg4857MXY4_5-1757581158912.png

 

0 Likes
Message 9 of 9

2000746384
Participant
Participant

thank you

0 Likes