question

Rahul R avatar image
0 Likes"
Rahul R asked Jeanette F commented

How to find item that is loaded?

I am trying to refer to an item that is loaded on to an operator. I used load activity to load "cart" flow item. How do I refer to this cart? I tried using subnodes[1] but that does not seem to work. Below is the picture of model tree


1676010243890.png



FlexSim 22.2.0
loadsubnode
1676010243890.png (19.1 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 @Rahul R, 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 Jason Lightfoot edited

But this code is correct. You need only combine it with a reference of this operator. The operator is the container or start node of subnodes.

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Your token may have a pointer to the operator already in which case it's:

token.operator.first

which is equivalent to :

token.operator.subnodes[1]

But if you've told the operator to load the cart then you should have already stored a reference to it on a token label too.

Also, in general I would expect the operator unload the cart somewhere (into a fixed resource or the model root) before loading with items, then you can see the operator collect from a rack and place in the cart as two movements.where the cart is stationary. It's up to you though.

0 Likes 0 ·

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.