Automatic generation method and device for compressor control system

The invention relates to the field of compressor control, and discloses an automatic generation method and device for a compressor control system. The method includes the steps that measured point table data of a compressor unit are acquired and recognized; a measured point information base is generated according to the measured point table data, whether the measured point table data are correct and available or not is checked, and otherwise the measured point table data are modified; a graphical interface is configured, the measured point information base serves as a data source to be bound with the control function of the compressor unit, and compressor performance parameters and control parameters are configured; according to the configuration, reserved port variables are written into a PLC template program through PLC data drive, and thus control logic is generated; and according to the configuration, numerical value display in an SCADA picture template is bound with the animation, so that a human-computer interface is generated. The automatic generation method and device for the compressor control system can be applied to various platforms, time and labor are saved, the program error rate is lowered, the development period is shortened, working efficiency is greatly improved, and field service difficulty is lowered.