question

kauan pedroso avatar image
0 Likes"
kauan pedroso asked kauan pedroso commented

Piece sequencing

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


FlexSim 23.1.4
task sequenceproces flowsequencing
1715202471172.png (196.5 KiB)
arquivoforum.fsm (41.7 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.

kauan pedroso avatar image kauan pedroso commented ·

@Jeanette F @Felix Möhlmann

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


0 Likes 0 ·
Gustavo Teodoro avatar image
0 Likes"
Gustavo Teodoro answered

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/UsingFlowItemBin.html

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


arquivoforum.fsm (46.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.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

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.

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

kauan pedroso avatar image kauan pedroso commented ·

@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 0 ·
Joerg Vogel avatar image Joerg Vogel kauan pedroso commented ·

@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#Property-first

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