question

chanclas avatar image
0 Likes"
chanclas asked Jeanette F commented

Pull a demand with different types

Hi, I am new to flexsim and I wanted to make a model which by pull we are going to manufacture a demand. So at the beginning of the week we will have an output that will empty the rack and then the pull will act to make the line work.


I have the process flow created, but I don't know how to make it change reference depending on the demand. I leave the demand in a global table, if someone can join it? Thanks.

pullbystock.fsm

FlexSim 23.0.1
proces flowlist pulldemand
pullbystock.fsm (51.2 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @chanclas, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

Do it much simpler. Build a test model that is around only this special request. You need for such a test only queues in a 3D model. You logic structure reads values of a table. Those values are responsible to move items out of a storage (Queue) to a different place (Queue). This sounds like a loop structure to move one item after another.

  • A for loop structure increments a label value in steps.
  • Another loop like structure calls a subflow as often as a value tells it so.
  • A while loop structure tests a condition to be true to start a cycle, while inside a comparison value changes within.
  • A until loop structure starts a cycle and test at the end a condition to start another cycle or to go on in your logic structure.

If you need assistant to assign label values or increment label values, then you should repeat tutorials in manual about process flow.

If you need support to work with different datatypes and data structures then you find information for this in the manual under Flexscript API classes.

https://docs.flexsim.com/en/23.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Table.html

This link goes to the table class. In Manual content tree you find other datatypes and structures to investigate to work with them.

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.