Folks, I have a project working whereby I need to write up to 100 part numbers into a ControlLogix array from a database read for HMI consumption. Yep, I know there are simple ways to use arrays in Windows based HMI’s, but this uses Automation Direct CMore panels.
Ignition, like many powerful software tools, probably has multiple ways to do this. What would be your suggested approach?
Thanks for the reply, Kevin, I was thinking about using a bulk transaction group. My Python skills with Ignition are growing daily but if you could provide an example of your option 1 I’d much appreciate it!
It’s hard to provide an example without knowing more about how the data is stored, but really you’re just stringing together 2 built-in scripting function calls.
Kevin didn’t mention it, but if the data packs together in the PLC, writes to consecutive addresses within a single .writeValues() call will be optimized into a single message. Very efficient.
Thank you, Phil. This would ideally write to a CLX UDT and transfer part numbers perhaps other query derived info. I thought I saw somewhere that IA’s driver would write the entire UDT array regardless of specific addressing. Is that true?