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.
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.
Thanks in advance.