question

Varun Rawal avatar image
0 Likes"
Varun Rawal asked Joshua S commented

Use a combiner or processor to send parts according to quantity put a delay

conceptpn-rev-1.fsm

I am trying to use two ports 1 and 2 to connect to a single port downstream.

Right now I have a photo eye which when block would send parts to an accumulation bed(eventually Port 2). Soon the above happens I want my Gate2(we can use combiner or a processor) to send 20 parts via Port 1 then wait for 2 seconds to switch to Port 2 and send 20 parts via Port 2, looping this until all the content on Port 2 (i.e accumulation bed) is clear, soon the content is clear it should be a normal operation i.e my Gate 1 should send parts via port 1. And when I back up again until photo eye PE 1, the above process should kick in.

As you see I am trying to use process flow. I want to understand a best way to approach this. Let me know if any further explanation. Thank you.

FlexSim 18.1.1
send to portinput portsend to port by percentageprocessor different times according to rework and normal
· 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.

1 Answer

Joshua S avatar image
0 Likes"
Joshua S answered Joshua S commented

@Varun Rawal

The way the process works now is Gate2 is not deciding which port it will pull items from now. Items reach the 2 decision points, are stopped, and are pushed to a list. In process flow, these items are pulled off that list and then are moved to Gate 2. I have a loop happening where it tries to listen if there is anything to pull from Port 2, and if not, pull items from Port 1. There will always be a token seeming to sit at the second pull from list because there is nothing to pull from Port 2 then, and if there is nothing to pull from Port 2, then anything to pull will be from Port 1. f there is something to pull from Port 2, then the token follows a whole different path that does the switching from Port 1 to Port 2 every 2 seconds till there is nothing left in Port 2 and the accumulation bed.

So would you like the process to change so that much of the logic is triggered based on the photo eye?

· 11
5 |100000

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