Dual IN, plc and comparator, feedback OUT, AND, OUT