Yep Gerry, I used also UDT. It is so common in RSL5K that I did not bother to mention it.
So, I used similar approach just yesterday.
1) Create UDT, by opening "Data Types" folder in Program tree (or however they call it)
2) Right click on "User-Define" and select "New Data Type"
3) Give name for your data type (I my excample it was ValveErrors)
4) Add member(s) for your new data type (I added "ValveClosed" and "ValveOpen", bot BOOL type). Save
5) Then edit controller (or program) tags. Add new tag (I used Valve_Errors) and define datatype (so it is in that case "ValveErrors")
6) Define also array (I used 64)
If you vant to clear all bits just "FLL 0 Valve_Errors[0] 50". 50 is number of members in this area you want to reset.
Hope it was little more precise description and I did not miss anything
BR
Lauri