I have had multiple projects recently where I am tasked with creating system platform objects that reflect an array of UDT's in a Control Logix. Arrays are easy, UDT's are easy, but an array of UDT's is always the biggest pain. Hoping someone here has come up with a good solution.
Example basic UDT for some recipe data:
IgredientData[50]
- Ingredient Number:(Int)
- Quantiy Required:(Real)
- Quantity Actual:(Real)
Values are being pulled out of a client's custom database and being passed down to the PLC to be auto weighed and transferred.
Data is variable in length and occasionally up to 30 ingredients, PLC team has it in array of 50. There will be over a hundred instances of this for my current project, so creating Templates, with child object templates for so many items seems like a ridiculous and unorganized mess to me. This is like one line of code in C# so I feel like there has to be a better way to do this.
Any experiences appreciated, thanks!