This paper presents a thought of utilizing PLC to realize numeric simulation in complex control system. A example of simulation of disinfection process control system is introduced in detail to show the hardware and software structure of the supervisory control system.