PLC's CAST wastewater treatment system