mainstreetmark
Member
This is kind of a best-practice question. This is the first time i've made significant use of UDT's in a project. Whereas in the past, I've used actual IO (local:1:I.data.1), this time around, I'm using UDTs (U1.is_full).
So, I notice I can't alias a member of a UDT in any easy way, so I set up a huge routine that just maps things around:
--| local:1:I.data.1 |------( U1.is_full )
and
--| U1.start_pump |-------( local:2:O.data.1)
This method will also work well for data living on the MCM card. The rung count in this routine is going to be huge however, so the question is:
Is this "best practice" for wiring up a UDT to the physical world?
So, I notice I can't alias a member of a UDT in any easy way, so I set up a huge routine that just maps things around:
--| local:1:I.data.1 |------( U1.is_full )
and
--| U1.start_pump |-------( local:2:O.data.1)
This method will also work well for data living on the MCM card. The rung count in this routine is going to be huge however, so the question is:
Is this "best practice" for wiring up a UDT to the physical world?