citizen423
Member
I have created a UDT (profile) it consists of 59 elements one of which is a string that contains the name of the profile that can be changed via the HMI duriing the recipe profile set up. I have used this UDT in an array of 10 for
RecipeSet[0]
...
...
...
RecipeSet[9]
When the user presses a recipe select button on the HMI all of the data in the selected recipe should be moved to
ReceipeInQue
This data type is the same.
Then when the current profile is finished running and the user presses a load button i then should move
RecipeInQue
to
RecipeRun
Same data type again.
This in my mind should be easy but for some reason the proccessor wants to fault out when I move this data and I find negative values in some timers that are unrelated to these tags. Im guessing I have some data rolling over. Am I making a mistake by moving all the data at once including the string from one UDT to another?
RecipeSet[0]
...
...
...
RecipeSet[9]
When the user presses a recipe select button on the HMI all of the data in the selected recipe should be moved to
ReceipeInQue
This data type is the same.
Then when the current profile is finished running and the user presses a load button i then should move
RecipeInQue
to
RecipeRun
Same data type again.
This in my mind should be easy but for some reason the proccessor wants to fault out when I move this data and I find negative values in some timers that are unrelated to these tags. Im guessing I have some data rolling over. Am I making a mistake by moving all the data at once including the string from one UDT to another?