How to address an item inside container?

How to address an item inside container?

edwin_purwanto
Not applicable
90 Views
6 Replies
Message 1 of 7

How to address an item inside container?

edwin_purwanto
Not applicable

Hello,

So, I wish to by percentage delete the item inside container (say 30% will be lost, but container will remain).

How do we address the item inside container? "item" only address the container.

Best regards,

Edwin

1804-address.png

Accepted solutions (1)
91 Views
6 Replies
Replies (6)
Message 2 of 7

chanykE2WUT
Enthusiast
Enthusiast
Accepted solution
@Edwin Purwanto

You can use rank(obj, rank_number) to point at any item inside the obj (e.g.item) at the rank.

David

Message 3 of 7

edwin_purwanto
Not applicable

Hi David, thanks for your help. Furthermore, is there any command to selectively delete flowitem?

0 Likes
Message 4 of 7

jing_chen
Not applicable

Use rank() to find out the object you want to delete and use destroyobject() or moveobject()(to a sink) to delete it.

Message 5 of 7

sachin_tandulkar
Not applicable

@david.chan

I am trying to access the part inside the container as the cycletime for the machine is based on the part inside the container.

So i used this as per the suggestion you made.

treenode Part=rank(item,1);

This is returning "NULL" value. Is there any other way to do it, or I did something wrong.

0 Likes
Message 6 of 7

chanykE2WUT
Enthusiast
Enthusiast
@sachin tandulkar

I am not sure when went wrong, unless you can attached a small model to illustrate it.

David

0 Likes
Message 7 of 7

chanykE2WUT
Enthusiast
Enthusiast

@sachin tandulkar

I have added an example here. One just using 3D and another with PF.

David

read-cycle-time-from-an-item-inside-a-pallet.fsm

0 Likes