Abstract:In order to reduce the difficulty and cost of the PLC control of the single tank liquid level system, The system uses STM32 and STC89C51 as the host computer and the slave computer, The liquid level monitoring system based on Modbus-RTU protocol has been developed, which realizes the function of real-time data collection, display and alarm. The PID algorithm is used to realize the constant value control of the condensate tank level, which meets the design requirements. At last, the physical diagram and test results of the system are given. Experimental results show that the system is economical and practical and has strong anti disturbance ability and can be widely used in industrial control field.