lunenburger
Member
I am using Studio 5000 Version 30 and Compactlogix.
I have a recipe created in a UDT structure, with a string value called name.
There are 50 Recipes in the RecipeList array
I want to take a string value called "ScannedRecipe" and have the PLC go down the list of 50 Recipes and find the name that matches, and load the recipe number into the CurrentRecipe list (see pic 1)
I am trying to use the find instruction, and there are no errors but it is also not working. (see pic 2)
I feel that i may need to use a wildcard or something instead of the zero in the search tag (RecipeList[0].Name but nothings working.
If anyone knows a better way i am open to other options.....
Thanks in advance
I have a recipe created in a UDT structure, with a string value called name.
There are 50 Recipes in the RecipeList array
I want to take a string value called "ScannedRecipe" and have the PLC go down the list of 50 Recipes and find the name that matches, and load the recipe number into the CurrentRecipe list (see pic 1)
I am trying to use the find instruction, and there are no errors but it is also not working. (see pic 2)
I feel that i may need to use a wildcard or something instead of the zero in the search tag (RecipeList[0].Name but nothings working.
If anyone knows a better way i am open to other options.....
Thanks in advance