Hello I am trying to create some logic for a bigger simulation i am trying to do.
Requirements :
1) I need to produce 9 different product types on my line
2) I have 3 major product types , I have 3 sub product types under every major product.
3) I use the Even trigger ( On creation to assign 3 different major product types )
4) I use the assign label on creation to assign my sub products to the major types so 3X3 = 9
5) I want to create the item colors based on both type and label , not successful
6) I know i can just go ahead and create 9 different item types or labels but I want to use labels and item types so i can use labels later in the process to route the items to different locations in the conveyor.
7) I have used the following expression on the set object color
Color.byNumber(item.Type)+Color.byNumber(item.Subtype)
Can some one tell me how to fix this ??
set-object-color-expression.pngcolor-by-label-and-item-type.fsm
Also I want to know if the expression i am using to process the 9 different items based on the labels on the same processor is right.processor-based-on-label-value.png
1) I use the getlabelnum(item,"labelname") and I use the value by case for the processing time on the processors
Is this the best way to do this or is there some other way where i can do it based on item type too ??
I have attached my model for the set object color and i have attached screen shots for the other questions.
Thanks
Karthik