L D[AR2P#0.0]
Lifetime Supporting Member
Next phase is to use a global DB to specify which I/O to use for the roller door.
Start with InPEC - move InPEC boolean from the input section to the stat section. Add two more inputs called iInPECByte and iInPECBit both of type integer (this is for ease of monitoring)
Create a DB (say DB100) with an array[1..3] of structures called DoorConfig containing iInPECByte and iInPECBit
Update the calls to the doors using the byte/bit numbers from the DB
Start with InPEC - move InPEC boolean from the input section to the stat section. Add two more inputs called iInPECByte and iInPECBit both of type integer (this is for ease of monitoring)
Create a DB (say DB100) with an array[1..3] of structures called DoorConfig containing iInPECByte and iInPECBit
Update the calls to the doors using the byte/bit numbers from the DB