question

Grant M2 avatar image
0 Likes"
Grant M2 asked Grant M2 commented

How to create a process count?

test4-22.fsm

I am currently evaluating FlexSim for our company and wanted to build a simple robotic line that would pick and place parts. I have stumbled my way through and got a time base system working which is okay but not ideal. I want to carry out a set of process flows for a defined count. I am using an event-triggered source to start the tasks which are the picking and placing of 9 parts from a list. After completing 9 places I want to wait for the event trigger to be true again before continuing. I'm hoping I am missing something simple. Thank you for your help

FlexSim 20.0.2
process flow tasksequence
test4-22.fsm (204.9 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.

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Grant M2 commented

The easiest way to do this I think would be to use a Run Sub Flow activity and have it create 9 child tokens and run them one at a time:

subflows.fsm

Otherwise you would need to increment a label on the token after every time through the loop and then put a decide activity at the end of the loop that routes the token to a sink after its been through 9 times.


subflows.fsm (204.4 KiB)
· 1
5 |100000

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

Grant M2 avatar image Grant M2 commented ·

Thank you both for your speedy response. Working perfectly now!

0 Likes 0 ·
Benjamin W2 avatar image
0 Likes"
Benjamin W2 answered

Hi @Grant M2,

I think the easiest way to do this is by having your event-triggered source lead to a sub-flow that creates 9 tokens. It should look something like this:

Just make sure that the "Run Sub Flow" activity will generate 9 sub-tokens and check the box "Run One at a time"

subflow.fsm


sub-flow.png (7.6 KiB)
subflow.fsm (203.8 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.

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.