bbishop108
Member
Ok, I am having a tough time with an application and figuring out how the best way would be for me. So here is what I would like to accomplish:
I created a UDT(Part_Recipe), and inside this UDT I am storing a String Tag, SINT Tag, and an INT Tag. Then I created my new tag using the UDT as the data type(Part_Recipe[50]) so I will 50 files with the same info.
Now I am trying to figure out how I can do a search within each of the 50 files and just look for the String Tag(Part_Number)in each one of the files. This would be me entering a part number on an HMI (String Entry) but having the logic search for the matching part number in each of the 50 files of the Part_Recipe. I'm not feeling confident it can be done this way as the FSC instruction really only likes the String data type, NOT the UDT type I created.
The goal here is to search for the part number, then load all values for that part (Example: Part Number, Pack Quantity, Camera Program Number...etc. Then all this data will be copied over to another tag (Current_Recipe) where I then display the loaded part number, send pack quantity value to an internal counter preset, and send camera program number to the camera.
I feel this is something that can be done, but I am kinda stuck at the search portion which happens at the beginning. Any and all assistance would be greatly appreciated, Thanks!!!
I created a UDT(Part_Recipe), and inside this UDT I am storing a String Tag, SINT Tag, and an INT Tag. Then I created my new tag using the UDT as the data type(Part_Recipe[50]) so I will 50 files with the same info.
Now I am trying to figure out how I can do a search within each of the 50 files and just look for the String Tag(Part_Number)in each one of the files. This would be me entering a part number on an HMI (String Entry) but having the logic search for the matching part number in each of the 50 files of the Part_Recipe. I'm not feeling confident it can be done this way as the FSC instruction really only likes the String data type, NOT the UDT type I created.
The goal here is to search for the part number, then load all values for that part (Example: Part Number, Pack Quantity, Camera Program Number...etc. Then all this data will be copied over to another tag (Current_Recipe) where I then display the loaded part number, send pack quantity value to an internal counter preset, and send camera program number to the camera.
I feel this is something that can be done, but I am kinda stuck at the search portion which happens at the beginning. Any and all assistance would be greatly appreciated, Thanks!!!