(* === DECLARATION === *) FUNCTION_BLOCK fb_switch VAR_INPUT switches: struct_switches; END_VAR VAR_OUTPUT lights: struct_lights; END_VAR VAR all_off: fb_toogleButton; all_on: fb_toogleButton; sw_1: fb_toogleButton; sw_2: fb_toogleButton; sw_3: fb_toogleButton; sw_4: fb_toogleButton; sw_5: fb_toogleButton; sw_6: fb_toogleButton; END_VAR (* === IMPLEMENTATION === *)