FindItem does not work

FindItem does not work

WooS
Not applicable
135 Views
5 Replies
Message 1 of 6

FindItem does not work

WooS
Not applicable

[ FlexSim 23.0.2 ]

I am going to make piece picking simulation.

There is a shelf rack with tote boxes and each tote box has some stock.

If there is an order, worker finds item and load picking tote box and pick exact quantity from one or more tote boxes.

I tried to use FIndItem by setting process flow properties and script both.

but both do not work correctly.

In case of script, worker picks wrong items.

In case of properties, worker couldn't find stock and do not continue anymore.

Please see my model and find the reason.

[model] homework v0.4 0126.fsm

[properties setting]

finditem-properties.png

[script]

finditem-script.png

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

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

Add SKU to the storage system's item labels.

Then you'll find that P004 is marked as outbound so is not found by the findItem activity and the model stops.

If you want to see the list of pickable stock, run this script:

Storage.system.queryItems("SELECT SKU,Stock").as(Array).as(Table).cloneTo("GlobalTable1")
0 Likes
Message 3 of 6

WooS
Not applicable
Yes, as you said I guess last one was locked.

Would you please update sample know how to solve it?

I've just studied FlexSim weeks ago, so I don't know how to solve it.

0 Likes
Message 4 of 6

jason_lightfoot_adsk
Autodesk
Autodesk

I expect the Find Item activity should not be marking the found item as outbound.

1675009122344.png

0 Likes
Message 5 of 6

WooS
Not applicable
Yes. it works.

Thank you.

and I found a critical mistake using your script.

I used processFlow variables and labels to pick stocks.

It's OK for one picker. but for more than 1 pickers, they shared this value, so they picked mixed SKU and qty.

I changed from processFlow to token, so it works well.

Thank you very much.

0 Likes
Message 6 of 6

jason_lightfoot_adsk
Autodesk
Autodesk
As you'd used 'current' to reference the process flow, you could copy the process to an Object Process Flow with the operators as instances with the labels - but I think the labels are better places on the tokens. What you're describing also works.
0 Likes