I created a UDT with recipe parameters and have created several Recipe tags using that UDT as a data type, as well as an "Active_Recipe" tag.
if RunMode_Active_Trigger = 1 & Production_Selection = 1 then
COP(RecipeParameter_1,Active_Recipe,1);
elsif RunMode_Active_Trigger = 1 & Production_Selection = 2 then
COP(RecipeParameter_2,Active_Recipe,1);
elsif RunMode_Active_Trigger = 1 & Production_Selection = 3 then
COP(RecipeParameter_3,Active_Recipe,1);
….. and so on.
Is the COP legth correct? Will that COP all of the UDT's member values?
if RunMode_Active_Trigger = 1 & Production_Selection = 1 then
COP(RecipeParameter_1,Active_Recipe,1);
elsif RunMode_Active_Trigger = 1 & Production_Selection = 2 then
COP(RecipeParameter_2,Active_Recipe,1);
elsif RunMode_Active_Trigger = 1 & Production_Selection = 3 then
COP(RecipeParameter_3,Active_Recipe,1);
….. and so on.
Is the COP legth correct? Will that COP all of the UDT's member values?