[Process modeling] Assign Product Name to user defined variable

Hi,

I want to model the setup time for machine so that I need to record the name of current product and previous product.
I found that print statement can print ProductIn.Name but assign statement cannot assign the ProductIn.Name to the variable I defined.
[print statement]
image
[Assign statement]
image

The question is how can I assign the product name to the variable I defined.
Or there is any easier way to model setup time.

Below is the setup time, it means if the previous product machine 1 works on is product 1 and next product is product 2, then before machine 1 start to work it take 5 second to setup.
image

Thanks in advance.

Angel

Product instances don’t have names, only product types do.
So ProductIn.ProductType.Name would be a valid expression in this case.

1 Like