question

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

Keyword in queryItems method like puller

Internally I can get every storage item of the storage system and push it onto a global list. Then I can test some of the attributes like color or storage.item.state. Is there a keyword to test or evaluate a FlexScript method or command with the currently queried storage item. If I try to query for or find a slot, then there is the keyword “slot”. I didn’t find a similar keyword for the methods findItem or queryItem.

FlexSim 20.1.3
FlexSim 21.0.0
flexsim 20.1.3finditempullerqueryitems
· 3
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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Joerg Vogel commented

The items keyword works fine - here's the example with the queryItems method of getting those in the slot added.

That seems to be enough to filter out the 3 that are not yet in the slot, however if you wanted to get the state you'd have to use item.storageItem.state since the keyword item refers to the storage.slot.item which doesn't have the state attribute.

  1. WHERE item.slot=$1 AND item.storageItem.state=3

load-unload-gantry3_queryItemsExample.fsm


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