question

Darwin S avatar image
0 Likes"
Darwin S asked Matt Long commented

Query Pull and Push with Where Type doesn,t work

Trial_autosave.fsm

I am trying to combine item with the same item type using combiner then i used pull and push from list to try to pull the same type from the list but it doesn't work here is the model

The Pull and Push are in Queue 1 and Queue 2

Thank you

FlexSim 19.0.9
combinerflexsim 19.0.9query pull
trial-autosave.fsm (66.7 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.

1 Answer

Matt Long avatar image
1 Like"
Matt Long answered Matt Long commented

First off, somehow your Queue1 Pull Strategy field was set to C++. If you open the code field and click on the S button at the bottom, that will change it back to flexscript.

The next issue has to do with timing. When you reset the model, Queue1 will fire its Pull code and create a backorder on the FanList. (Open the FanList properties and in the General tab and click View Back Orders..) This backorder is waiting for Type 0. You would need the pull from list to not happen until variable1 has been changed. I'm not exactly sure why you're trying to use a list to send the write itemtypes to the combiner. The standard pull requirement of
Specific Label would work better in this case.

And then change Queue2 to use First Available in the Send To Port (which will just notify Queue1 to reevaluate its pull requirement).

Hopefully this helps!


1595087069179.png (66.5 KiB)
1595087297805.png (33.8 KiB)
1595087385601.png (19.1 KiB)
· 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.