PLC Code for a Membrane Filtration Plant