Piece sequencing

Piece sequencing

Kauan
Not applicable
749 Views
5 Replies
Message 1 of 6

Piece sequencing

Kauan
Not applicable

[ FlexSim 23.1.4 ]

Hello !

I am running a simulation to represent a sequencing, and at a certain point in the simulation, depending on the piece that passes a certain point, I have a source that will create a kit according to the piece that passed. For example, I have a product A that, when it passes through my processor, creates a kit for model A.

1715202471172.pngHere, to make it clearer, I would like that when my product passes through processor 4, my source2 produces the kit for my model.

arquivoforum.fsm


0 Likes
Accepted solutions (1)
750 Views
5 Replies
Replies (5)
Message 2 of 6

joerg_vogel_HsH
Mentor
Mentor

A source object is an enclosed entity. It does not react on anything outside.

You can only create in a source an amount of items that you store in a queue. Then you hold them in this queue. Whenever you need to process an item, you release it from this queue for example by command releaseitem. You edit properties and attributes of this item to match your conditions.

OR you create items like an object event driven in a Process Flow.

0 Likes
Message 3 of 6

Kauan
Not applicable

@Joerg Vogel I understood what you said, however what wasn't clear to me is how I can trigger the activation based on the product type, which in this case are 3 models. I created 3 queues for each type of product and I would like it so that if it's product A, it releases the queue for product A. That's my doubt. Thank you in advance.

0 Likes
Message 4 of 6

Kauan
Not applicable

@Jeanette F @Felix Möhlmann

Guys, if anyone can help me, I would greatly appreciate it. I have doubts about this.


0 Likes
Message 5 of 6

joerg_vogel_HsH
Mentor
Mentor

@kauan pedroso. You know which queue holds items of a type. You address an available item in this queue by subnode rank or any other access of subnodes. Please look for item access in manual.

treenode objQ = Model.find(“Queue1”);
treenode item1st = objQ.first;
releaseitem(item1st,1);

https://docs.flexsim.com/en/24.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html...

please look also for command like releaseitem to understand how this works in relation to hold items in an object.

in Process Flow you can release items, too. Or you simply move them into another object.

0 Likes
Message 6 of 6

gustavo_teodoroD8NVF
Advocate
Advocate
Accepted solution

I made an example using Process flow. I removed the source from the queue and created the items using a trigger. Every time an item enters Processor 4, there is an activation in the process flow and a token is created. In assign Label it is possible to get the item's label Type. This way, the kit is created in Queue 2 according to the item that enters processor 4. This can be done in Trigger Object/Flow By Case.Be aware that Flexsim understands which item to create by number. This can be looked up in the tree in the FlowItem Bin For more information on item ranks, see:

https://docs.flexsim.com/en/24.0/Using3DObjects/WorkingWithFlowItems/UsingFlowItemBin/UsingFlowItemB...

Be aware in the Combiner connections, port 1 means the base of your kit. In the model, the item that comes from processor 5 was moved to port 1.

arquivoforum.fsm

0 Likes