AnswerHub Upload Issue
Our AnswerHub community currently has a bug that prevents you from attaching your model or other files to your questions. AnswerHub is aware of this issue and they are working on a fix. Until we receive their patch, you can upload your models and other files to FlexSim's file share site. Include the file name in your question so that we know which upload to reference.

question

Oscar C13 avatar image
0 Likes"
Oscar C13 asked Oscar C13 commented

Initial inventory with process flow

Hello, I just want to have a starting inventory in my racks that I can modify.
I want 4 different types of objects with different appearances, based on a global table. I have been looking similar questions but I don´t reallly undertand the process.
The point is that then I want to treat those objects from the process flow to work wich each of them.
How can I do this?

question2.fsm

FlexSim 21.2.1
processflowinventory
question2.fsm (50.4 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.

Hi @Oscar C13, 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 Oscar C13 commented

Any inventory of a warehouse is a result of entering items in it. You can transport items slowly to a rack by Taskexecuters or you put them in by a move object command or a process flow activity.
I suggest you try to let enter a single item in your warehouse in a slot of a rack object. You find a warehouse demo model, example models to fill racks by label, level, bay or other conditions already demonstrated here at this answers site.
If you get one Item into a rack, then you do this method several times for the amount of items you want to have as an initial stock. The initial stock is a result of actions done at the runtime of 0.0000. That is central point.
Sometimes you must let finish a code sequence before you proceed to another sequence then you insert a delay process flow activity by 0 time units. This delay of 0 resolves all pending source code actions. You find it often as a breathe activity in example models.
Working with initial stock later depends on the fact if you want to store any data in an own global list or to store any relevant data in labels on your items in the warehouse.
if you prefer a global list then you push the item reference of the token which created the item onto the list with all your intended data.
If you have stored all relevant data in labels at your items, then you can query this data later to identify your items.
Warehouse Demo Model

Fill rack by condition painted slot / level

· 5
5 |100000

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

Based on those model, i made a model with what i woullike to implement.

-In the decide, I know that i have to put int variables, and I cannot put a string. Is there a way to put a string? (A,B,C,D)

-The program does not interpret the destination.

I attach the model

question2.fsm


0 Likes 0 ·
question2.fsm (55.3 KiB)

If you give the connectors coming from the decide activity names that match the possible label values you can use the string label. FlexSim will match it with the connector of the same name.

1634115810261.png

Your table holds the name of the racks, not a pointer to the actual object. Either use "Model.find(token.Destino)" in the move activity.

Or change the values in the table to pointers (Right click on column -> Assign Data -> Assign Pointer Data). Then either use the pipette tool or write the object name with a "/" at the start.

1634115992543.pngquestion2_1.fsm

1 Like 1 ·
1634115810261.png (22.1 KiB)
question2-1.fsm (57.2 KiB)

I have donde this and:

Only creates type A and give me an error

1634118931544.png

question2_autosave.fsm

0 Likes 0 ·
Show more comments

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.