View Single Post
Old October 9th, 2019, 01:56 PM   #5
Lifetime Supporting Member
United States

JOLTRON is offline
JOLTRON's Avatar
Join Date: Aug 2006
Location: MI
Posts: 682
Instead of an array of 8 bits you could use a UDT/PDT for the 6 bits you need then have an array of the UDTs.

Or have your "Interface"."01V1" be of the UDT type. Then you pass the UDT arround as needed and your bit 0 would now have the symbolic name of "Interface"."01V1".Open

Or something along those lines, if that is what you are looking for.

I think a UDT would be more clear than an array and you don't need to worry about having a typo in a comment...
  Reply With Quote