question

Abbas E avatar image
0 Likes"
Abbas E asked tannerp commented

I can not solve this problem in Process Flow

Hi,

I have these two models. the first one is working for 20 quantity. when I have 20 box crossing the convoyer, I have 1 sphere.

But for model 2, I want to use a list or ref the same as in the source. I want to have 1 sphere when 122 box are crossing the convoyer from the column "quantite_plateau" for the Type number 1 or ref 11619144 and when I have the Type number 2, I should have 1 sphere for 118 box passing the convoyer.

thanks

test-sub-flow-1.fsm

quantity.jpg

test-sub-flow-2.fsm

label-with-quantity.jpg

FlexSim 18.2.0
process flow
quantity.jpg (84.8 KiB)
test-sub-flow-1.fsm (729.9 KiB)
test-sub-flow-2.fsm (731.4 KiB)
· 2
5 |100000

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

Sebastian Hemmann avatar image Sebastian Hemmann commented ·

But this does work, what is your question? What does not work?

A thing i don´t understand in your model is, why you are sending the "Order tokens" back to the source (this means they have do to it again)?

0 Likes 0 ·
Abbas E avatar image Abbas E commented ·

Yes, the first one (Test sub flow-1) is working very well. but it works juste for one quantity. or it works for the first ref or Type number 1 for exemple.

Please have a look to the seconde one (test sub flow-2.fsm),I would like it to work for 20 ref or 20 Types (from 1 to 20) and use the "quantit_plateau" liste in the Schedule source.

capture1.jpg

is it possible?

thanks for your reply.

0 Likes 0 ·
capture1.jpg (84.0 KiB)

1 Answer

·
Clair A avatar image
2 Likes"
Clair A answered tannerp commented

Hello Abbas,

When I run your model test-sub-flow-2.fsm, like @sebastian.hemmann I also don't really understand your question since it seems to work correctly.

After 122 boxes left the Processor "Decoupe_automatique", you get one Cylinder:

After 240 boxes left the Processor "Decoupe_automatique", that means 118 boxes later, you get one more Cylinder:

Here are a few tips:

  • do not hesitate to use color codes in your model to better understand what is happening. For example in this model you could use a different color for each batch.
  • play with small quantities before working with large quantities. For example, you could start with 12 boxes for the 1st batch and 11 boxes for the 2nd batch, and then you will be able to validate faster if this is working the way you want.

output-122.png (110.6 KiB)
output-240.png (103.4 KiB)
· 6
5 |100000

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

Abbas E avatar image Abbas E commented ·

Hi, Thank you Clair,

here the the model with small quantities.

test-sub-flow-2.fsm

I have this three references (ItemName) with quantities.

with my subFlow, I want to have one cylinder for 8 plateuax.and for 500 in my Quantity, it should give me 62,5 (500/8 = 62.5) plateaux then, it should start with the next reference and I should have 120 (120/5 = 120) cylinders. then it shoudld start the third reference and have to give me 44,4 (400/9 = 44,4).

I dont know, if, I am clear in my explanation?


Thanks in advance

0 Likes 0 ·
test-sub-flow-2.fsm (836.7 KiB)
subflow1.jpg (99.4 KiB)
subflow2.jpg (58.2 KiB)
Clair A avatar image Clair A Abbas E commented ·

Hello Abbas,

Unless I misunderstood, I think that you could build a much easier Process Flow using the Batch activity.

Here is a sample model 2018-11-12-process-flow-batch.fsm inspired from your problem statement:

At the end, I do have in Queue3:

  • trunc(500/8) = 62 cylinders of reference 11619144
  • trunc(600/5) = 120 cylinders of reference 11629228
  • trunc(400/9) = 44 cylinders of reference 11328259

Note: the table in the dashboard lists references in ascending order.

In the batch activity, you will notice that:

  • as 600/8 = 62.5, there is 0.5*8 = 4 tokens left waiting to complete a batch of reference 11619144
  • as 400/9 = 44.444, there is 0.444*9 = 4 tokens left waiting to complete a batch of reference 11328259

If this model meets your requirements, I advice you to rebuild it from scratch to understand and learn every step in this model.

0 Likes 0 ·
Abbas E avatar image Abbas E Clair A commented ·

Thank you very much Clair.

I have the solution of my first part. But, for the second part, how can I make the last Cylinder for juste 4 tokens left or less from the same reference. (600/8 = 62.5, there is 0.5*8 = 4 tokens).

0 Likes 0 ·
Show more comments
Show more comments
Abbas E avatar image Abbas E commented ·

Thank you very much Clair.

I have the solution of my first part. But, for the second part, how can I make the last Cylinder for juste 4 tokens left or less from the same reference. (600/8 = 62.5, there is 0.5*8 = 4 tokens).

0 Likes 0 ·

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.