In this paper the structure of natural gas compressor monitoring system was designed. All the register data in PLC could be obtained to meet the real-time requirement by an instruction of PPI protocol. The technical framework of system was introduced simply, and the parameter method for measuring was put forward in fault diagnosis of natural gas compressor.