defcon.klaxon
Lifetime Supporting Member
Hi guys,
Quick question for you; I am working on some MSGs between PLCs at the water treatment plant I'm working on (no produce/consume tags, MSG only). When I first created the MSGs between the well pumps and the tank sites, I was brand new to AB so I manually packed and unpacked all the data, but now that I know more I'm thinking a UDT might be more efficient; was wondering what you guys would suggest; do I spend the time setting up the UDT, or should I just manually pack my BOOL, DINT, and REAL manually? It's probably not going to matter but the reason I ask is for efficiency; I use UDTs for all the equipment in the PLCs (pumps, sensors, etc) and I usually only need one or two BOOLs for each piece of equipment to be sent (pump run bits, alarm bits, etc). It seems rather wasteful to send all that data back and forth when only a few bits are typically needed (each pump is 304 bytes for example). Would it be worth manually packing the MSGs to save comms time, or am I overthinking this?
Thanks!
Quick question for you; I am working on some MSGs between PLCs at the water treatment plant I'm working on (no produce/consume tags, MSG only). When I first created the MSGs between the well pumps and the tank sites, I was brand new to AB so I manually packed and unpacked all the data, but now that I know more I'm thinking a UDT might be more efficient; was wondering what you guys would suggest; do I spend the time setting up the UDT, or should I just manually pack my BOOL, DINT, and REAL manually? It's probably not going to matter but the reason I ask is for efficiency; I use UDTs for all the equipment in the PLCs (pumps, sensors, etc) and I usually only need one or two BOOLs for each piece of equipment to be sent (pump run bits, alarm bits, etc). It seems rather wasteful to send all that data back and forth when only a few bits are typically needed (each pump is 304 bytes for example). Would it be worth manually packing the MSGs to save comms time, or am I overthinking this?
Thanks!
Last edited: