question

Jacob Leto avatar image
0 Likes"
Jacob Leto asked Jeff Nordgren commented

Building to a buffer

I'm trying to find a way to make a source create items (with two different itemtypes) based on the content of two conveyors that are downqueue (I also want to make the max content of these conveyors be 8 without changing the conveyor's length). For example, if a robot pulls an item with type 1 from a conveyor, I want a source to create another item with type 1 to send through the system in its place. The concept I'm trying to simulate is "build to buffer" if that helps clarify what I am seeking to do. Is there a way I could have the robot send a message to the source on what it is pulling and have the source create an item based on that? Thanks in advance

FlexSim 17.0.0
itemtypemax contentmessage triggeritem creation
5 |100000

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

Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Jeff Nordgren commented
@Jacob Leto

Attached is your model with the changes that I've made to it. I'm hoping that I am understanding what you are wanting it to do. Rather than have a Source create the flowitems, I have a Queue that handles the creation of the necessary flowitems.

In your model you were not assigning an itemtype to the flowitems, like you mentioned in your question. So I was a little confused as to how you wanted the flowitem types to work. I just created one flowitem type for each conveyor. I hope that will work for you.

In the OnReset trigger of Queue1 and Queue2, I send a message back to the queue to create the ConveyorMax number of flowitems for each conveyor. That takes care of the initial loading of the conveyors. Then in the OnUnload trigger of the Robots, I send a message back to the queue to create another flowitem of that same itemtype. I colored the flowitems, by itemtype, so that you could see clearly what the itemtype is of the flowitems. Not sure if that is necessary or not but helps with the visualization.

Take a look at the model and see if something like this would work for your situation.

build2buffer-jn1.fsm


build2buffer-jn1.fsm (216.3 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.

Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered Jacob Leto commented

@Jacob Leto you could use the onexit trigger from the conveyor or the onload of the robot to send a message to the source. On this message you open the source and on the onexit of the source you close the source again.

· 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.