question

Edwin Purwanto avatar image
1 Like"
Edwin Purwanto asked David Chan commented

How to address an item inside container?

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

Choose One
address item
address.png (446.6 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.

David Chan avatar image
3 Likes"
David Chan answered sachin tandulkar commented
@Edwin Purwanto

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

David

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

Edwin Purwanto avatar image Edwin Purwanto commented ·

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

0 Likes 0 ·
jing.c avatar image jing.c Edwin Purwanto commented ·

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

3 Likes 3 ·
sachin tandulkar avatar image sachin tandulkar commented ·

@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 0 ·
David Chan avatar image
0 Likes"
David Chan answered David Chan commented
@sachin tandulkar

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

David

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

David Chan avatar image David Chan commented ·

@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 0 ·