creating a flip flop circuit in the plc