(*
  GVL: GVL_IO
  Option C relay feedback only. EL2809 DO: map channels directly in the device tree
  to NVL_Out (e.g. NVL_Out.l_masterBedroom.l_1..l_6, ...) and boiler relay.
  Initialize EtherCAT_RelayFeedback to zero at startup (or use default init).
*)
VAR_GLOBAL
    // ---------- Option C: relay feedback (copy of output for next cycle) ----------
    EtherCAT_RelayFeedback: STRUCT
        masterBedroom: struct_room_outs;
        masterBathroom: struct_room_outs;
        bedroom_1: struct_room_outs;
        bedroom_2: struct_room_outs;
        bathroom: struct_room_outs;
        guest_wc: struct_room_outs;
        kitchen: struct_room_outs;
        pantry: struct_room_outs;
        livingRoom: struct_room_outs;
        diningRoom: struct_room_outs;
        entrance: struct_room_outs;
        hallway: struct_room_outs;
        veranda: struct_room_outs;
        front: struct_room_outs;
        back: struct_room_outs;
        side: struct_room_outs;
    END_STRUCT;
END_VAR
