question

Gokulakrishnan Kandasamy avatar image
0 Likes"
Gokulakrishnan Kandasamy asked Steven Hamoen commented

How do i Change the process time based on label in the pallet item(Same)?

item-sub.fsm

How do I change the item processing time(in pallet) based on labels?

if the material is loaded in the pallet with the label of processing time how do i change the processing time of that pallet based on label on the item?is it possible?

FlexSim 20.0.0
processing time
item-sub.fsm (26.9 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

José Antonio MD avatar image
0 Likes"
José Antonio MD answered Steven Hamoen commented

Hello @Gokulakrishnan K2,

You can read a label in the subnodes of the pallet.

In the Process Time of the Processor you can write:

/**Custom Code*/
Object current = ownerobject(c);
Object item = param(1);

Object Subnode=item.subnodes[1];
double value=Subnode.labels.assert("Process Time").value;

Using this code, you will read a label in the item (subnodes[1]).

I hope I have been helpful.

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

Steven Hamoen avatar image Steven Hamoen commented ·

@Gokulakrishnan K2

If you don't use spaces in the name it can be even shorter and:

double value = Subnode.labelName;

2 Likes 2 ·