question

sara S2 avatar image
0 Likes"
sara S2 asked Matthew Gillespie commented

Why the operator cannot load the changed number of boxes?

Hello,

When I change the number of boxes in the table 'QuantityFor Each Type' (Fig1) to a number that is small than 8 - which is the total number of boxes in a tote – I get the error in Fig2. I really can't understand this error ! Please help me to solve this.

Original model

model1.fsm

Model with change

model1-with-change.fsm

FlexSim 19.0.0
itemlist and processflow
model1.fsm (72.3 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Matthew Gillespie commented

The custom code you wrote in the Quantity field of the Run Sub Flow1 activity is returning a negative number and so the Load subflow never fires. I don't really understand what you're trying to do with that code, but you should look at it and make sure it's doing what you want it to.

· 10
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

sara S2 avatar image sara S2 commented ·

Hi @Matthew Gillespie, thank you for your reply.

I tried to perform some changes in the concerned code (Fig1), and it works when I change the number of boxes from 8 to 5 in row 1. But, at row 3, the simulation stops and I get the error in Fig 2. Would you please help me to fix this code correctly?

fig1.png

fig2.png

model1.fsm

0 Likes 0 ·
fig1.png (84.7 KiB)
fig2.png (150.7 KiB)
model1.fsm (72.2 KiB)
Matthew Gillespie avatar image Matthew Gillespie ♦♦ sara S2 commented ·

Can you explain what you're trying to do? What are you trying to do in this block of code? And what are you trying to do in general in this model?

0 Likes 0 ·
sara S2 avatar image sara S2 commented ·

I want to model a 'Two-bin replenishment system'; where the operator picks items from the first bin (tote1) according to the replenishment planning and when the first bin is empty, the operator picks Items from the second bin (tote2). Items quantities that must be picked are figuring in the global table "QuantityFor Each Type" column 2. The itemlist and the process flow are insuring the achievement of the described process. The custom code in the quantity field of the Run Sub Flow1 activity is telling the operator how much boxes he has to pick. For this, I wrote two cases: Case 1 when value1 (which is the number of boxes to pick) is small than value2 (which is the current tote's boxes amount plus the picked number of boxes) and Case 2 when value1>=value2. In case 2 (exp: number of boxes=9, 9>value2 – value2=8), when the operator picks 8 boxes (loop1) it’s still 1 box to pick. In this time we use loop 2 to add one box. Value4= Value3 =1 and we return 1 box that has also to be picked. Cases and Loops are identified in Figure 1.

When I run this, I get an error in Figure 2. I really don’t know what is the problem in this code !

I hope I clarified what I am trying to do here. I would be grateful if you @Matthew Gillespie could help.

figure-1.png

figure-2.png

model1.fsm

0 Likes 0 ·
figure-1.png (88.0 KiB)
figure-2.png (149.9 KiB)
model1.fsm (72.3 KiB)
Matthew Gillespie avatar image Matthew Gillespie ♦♦ sara S2 commented ·

Take a look at this model. I simplified your flow significantly by pushing the individual items to a list instead of the totes. That way the operator just pulls the number of items he need to pick up and then he grabs those items from the right tote.

model1-simplified.fsm

1 Like 1 ·
sara S2 avatar image sara S2 commented ·

@Matthew Gillespie Thank you very much for your help. This model works perfectly.

0 Likes 0 ·
sara S2 avatar image sara S2 commented ·

Hi @Matthew Gillespie.

I performed some changes in your proposed model (the attached model below) in order to keep empty totes on the rack, according to the replenishment ‘Two-bin’ system that I am trying to model. In fact, I want just to insure that you have already included this two conditions in this model (because I couldn’t see them in the code, but when I run the model below they are taken into consideration):

  • 1- totes of type 1 (tote1) are placed in the front of the rack (in the side of the conveyor).
  • 2- the operator picks items from tote1 first and the rest is picked from tote2.

Thank you again for your help.

24061-model1-simplified-2.fsm

0 Likes 0 ·
sara S2 avatar image sara S2 commented ·

Hi @Matthew Gillespie would you please reply to the above question, I really need your answer to continue working on this model. Thank you.

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ sara S2 commented ·

What is your question? You said you made some changes to the model to fulfill your two conditions and the model seems to do them.

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.