Method for writing control program of reciprocating compressor in plain text form

By dividing the compressor control logic into multiple stages and adopting structured text programming, the problem of low writing efficiency of existing ladder diagram languages ​​is solved, cross-platform programming and high-performance processor transplantation are realized, and the programming of compressor control is improved Efficiency and commissioning convenience.

CN119270752APending Publication Date: 2025-01-07SINOPEC OILFIELD EQUIP CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411048959.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

When the existing ladder diagram language writing method handles complex compressor control logic, it leads to low programming efficiency and reduced logic analysis efficiency, and cannot realize cross-platform programming, forming PLC controller dependence.

Method used

The reciprocating compressor control logic is divided into multiple stages in plain text form, and written in a structured text programming language to monitor alarm fault signals and client signals, flexibly control the compressor operation stage, realize cross-platform programming and high-performance processing Device porting.

Benefits of technology

It realizes clear control logic levels and flexible writing of signal processing algorithms, improves programming efficiency and cross-platform writing capabilities, simplifies debugging and fault diagnosis, and avoids the dependence of PLC controllers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119270752A_ABST
    Figure CN119270752A_ABST
Patent Text Reader

Abstract

The invention discloses a reciprocating compressor control program writing method in a plain text form. The reciprocating compressor control program writing method comprises the following steps that control logic of a reciprocating compressor is divided into a pre-starting stage, a starting stage, a no-load operation stage, a loading operation stage, a normal shutdown stage, a fault shutdown stage and an emergency shutdown stage; text language programming is adopted, a compressor control program can be rapidly transplanted to a high-performance processor platform, a control program with complex functions can be written on a higher-performance platform, and the cross-platform writing capability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of reciprocating compressor control program writing method, and more specifically, to a reciprocating compressor control program writing method in plain text form. Background Art

[0002] Commonly used PLC programming methods include "ladder diagram language" and "structured text" programming language. The ladder diagram language is concise and intuitive, suitable for processing relatively simple control logic such as valve switching, oil pump start and stop, and is easy to understand and debug; structured text language uses high-level language programming methods such as C language, which is flexible in implementation and easy to handle complex control logic and write complex analysis algorithms. It has strong portability and is suitable for cross-platform programming.

[0003] Since reciprocating compressors involve a large number of valve controls, motor start and stop operations, etc., PLC controllers are used in most cases, and ladder diagram language is used for programming. As the market demands for more complex functions of compressors, the existing ladder diagram programming methods are increasingly unable to meet usage needs. (1) For complex control logic, the ladder diagram branches will be too large, and the programming method will be redundant and complex, resulting in a significant reduction in programming efficiency and logic analysis efficiency. (2) At the same time, since a ladder diagram language contains the control logic of each stage of the compressor, it will also lead to a lack of program hierarchy. (3) In addition, excessive use of ladder diagram language programming will form a dependence on the PLC controller, and it will not be possible to implement cross-platform programming using microcontrollers, PC controllers, etc. Summary of the invention

[0004] In order to achieve these purposes and other advantages according to the present invention, a preferred embodiment of the present invention provides a method for writing a reciprocating compressor control program in a plain text form, comprising the following steps:

[0005] S1. Divide the control logic of the reciprocating compressor into a pre-starting stage, a starting stage, a no-load operation stage, a loaded operation stage, a normal shutdown stage, a fault shutdown stage, and an emergency shutdown stage;

[0006] S2, control the reciprocating compressor to enter the pre-start phase, complete the pre-start task, and monitor whether there is an alarm fault signal or a shutdown signal issued by the client;

[0007] S3. If there is an alarm fault signal, the reciprocating compressor is controlled to enter a fault shutdown phase or an emergency shutdown phase according to the type of the fault signal. If a shutdown signal sent by the client is received, the reciprocating compressor is controlled to enter a normal shutdown phase;

[0008] If there is no alarm fault signal or shutdown signal, the client start signal is received and the startup phase continues;

[0009] S4. After entering the startup phase, while completing the startup task, monitor whether there is a fault shutdown phase or an emergency shutdown phase;

[0010] S5. If there is an alarm fault signal, the reciprocating compressor is controlled to enter a fault shutdown phase or an emergency shutdown phase according to the type of the fault signal. If a shutdown signal sent by the client is received, the reciprocating compressor is controlled to enter a normal shutdown phase;

[0011] If there is no alarm fault signal or shutdown signal, the machine will continue to enter the no-load operation stage;

[0012] S6. After entering the no-load operation stage, while completing the no-load operation task, monitor whether there is an alarm fault signal or a shutdown signal;

[0013] S7. If there is an alarm fault signal, the reciprocating compressor is controlled to enter a fault shutdown phase or an emergency shutdown phase according to the type of the fault signal. If a shutdown signal sent by the client is received, the reciprocating compressor is controlled to enter a normal shutdown phase;

[0014] If there is no alarm fault signal or shutdown signal, continue to enter the loading operation stage;

[0015] S8, after entering the loading operation stage, while completing the loading operation task, monitor whether there is a fault shutdown stage or an emergency shutdown stage;

[0016] S9: If there is an alarm fault signal, the reciprocating compressor is controlled to enter the fault shutdown stage according to the fault signal type.

[0017] Or in the emergency shutdown stage, if a shutdown signal from the client is received, the reciprocating compressor is controlled to enter the normal shutdown stage.

[0018] According to a technical solution of the present invention, if there is an alarm fault signal or a shutdown signal sent by the client, the alarm fault information content and the shutdown information content are displayed on the display screen.

[0019] According to a technical solution of the present invention, the client can input control signals in the pre-startup phase, startup phase, no-load operation phase, loaded operation phase, normal shutdown phase, fault shutdown phase, and emergency shutdown phase.

[0020] According to a technical solution of the present invention, the alarm fault signals include motor speed not meeting the standard, oil pump oil pressure not meeting the standard, bearing temperature being too high, vibration not meeting the standard, and intake pressure not meeting the standard.

[0021] The present invention has at least the following beneficial effects:

[0022] (1) The program control stage in the present invention is divided into 7 stages, and the control logic level is clear. When the reciprocating compressor is running in which stage, just check the code of that stage, which is convenient for debugging and problem finding.

[0023] (2) The present invention adopts text-based programming, which can conveniently and flexibly program various signal processing algorithms, including FFT transformation, Kalman filter algorithm, etc.

[0024] (3) The present invention adopts text language programming, which can quickly transplant the compressor control program to such a high-performance processor platform, and can write complex control programs on a higher-performance platform, with strong cross-platform writing capabilities.

[0025] Other advantages, objectives and features of the present invention will be embodied in part through the following description, and in part will be understood by those skilled in the art through study and practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A flow chart of the steps of the method for writing a control program for a reciprocating compressor in plain text form in the present invention. DETAILED DESCRIPTION

[0027] The present invention is further described in detail below in conjunction with the accompanying drawings so that those skilled in the art can implement the invention with reference to the description.

[0028] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art can think of other obvious variations. The basic principles of the present invention defined in the following description can be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not deviate from the spirit and scope of the present invention.

[0029] Those skilled in the art should understand that, in the disclosure of the present invention, the orientation or position relationship indicated by the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. are based on the orientation or position relationship shown in the drawings, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the above terms should not be understood as limiting the present invention.

[0030] It is to be understood that the term "one" should be understood as "at least one" or "one or more", that is, in one embodiment, the number of an element may be one, while in another embodiment, the number of the element may be multiple, and the term "one" should not be understood as a limitation on the quantity.

[0031] like Figure 1 As shown, a preferred embodiment of the present invention provides a method for writing a reciprocating compressor control program in a plain text form, comprising the following steps:

[0032] S1. Divide the control logic of the reciprocating compressor into a pre-starting stage, a starting stage, a no-load operation stage, a loaded operation stage, a normal shutdown stage, a fault shutdown stage, and an emergency shutdown stage;

[0033] S2, control the reciprocating compressor to enter the pre-start phase, complete the pre-start task, and monitor whether there is an alarm fault signal or a shutdown signal issued by the client;

[0034] S3. If there is an alarm fault signal, the reciprocating compressor is controlled to enter a fault shutdown phase or an emergency shutdown phase according to the type of the fault signal. If a shutdown signal sent by the client is received, the reciprocating compressor is controlled to enter a normal shutdown phase;

[0035] If there is no alarm fault signal or shutdown signal, the client start signal is received and the startup phase continues;

[0036] S4. After entering the startup phase, while completing the startup task, monitor whether there is a fault shutdown phase or an emergency shutdown phase;

[0037] S5. If there is an alarm fault signal, the reciprocating compressor is controlled to enter a fault shutdown phase or an emergency shutdown phase according to the type of the fault signal. If a shutdown signal sent by the client is received, the reciprocating compressor is controlled to enter a normal shutdown phase;

[0038] If there is no alarm fault signal or shutdown signal, the machine will continue to enter the no-load operation stage;

[0039] S6. After entering the no-load operation stage, while completing the no-load operation task, monitor whether there is an alarm fault signal or a shutdown signal;

[0040] S7. If there is an alarm fault signal, the reciprocating compressor is controlled to enter a fault shutdown phase or an emergency shutdown phase according to the type of the fault signal. If a shutdown signal sent by the client is received, the reciprocating compressor is controlled to enter a normal shutdown phase;

[0041] If there is no alarm fault signal or shutdown signal, continue to enter the loading operation stage;

[0042] S8, after entering the loading operation stage, while completing the loading operation task, monitor whether there is a fault shutdown stage or an emergency shutdown stage;

[0043] S9. If there is an alarm fault signal, the reciprocating compressor is controlled to enter a fault shutdown phase or an emergency shutdown phase according to the type of the fault signal. If a shutdown signal sent by the client is received, the reciprocating compressor is controlled to enter a normal shutdown phase.

[0044] If a shutdown signal (DI digital input or AI analog input) is received from the client, the reciprocating compressor is controlled to enter the normal shutdown stage.

[0045] During the entire loading process, the built-in unloading tasks in the loading phase can be executed at any time according to the unit operation requirements, switching to the no-load phase.

[0046] In the above technical solution, the control logic of the reciprocating compressor can be divided into stages. The control logic of each stage is written separately in a program file, and only the component control of this stage is completed without mutual interference. A separate process control variable is set. After the task of each stage is completed, it jumps to the next stage. This writing method fully conforms to the sequential execution characteristics of structured text and effectively solves the problem of execution differences between ladder diagram language and text language.

[0047] When the control logic of one stage is modified, it will not have any adverse effects on other stages, effectively solving the problem of large coupling.

[0048] The independent writing feature can divide the work tasks and assign them to multiple engineers, each of whom is responsible for writing one stage, greatly shortening the completion time of the engineering task. In addition, when the compressor is running at a certain stage, you only need to check the code of that stage, which is convenient for quick debugging and problem finding. From the perspective of independent writing, the structured text writing method also meets the needs of fault diagnosis program writing.

[0049] From the perspective of portability, the structured text writing method also fully meets the needs of fault diagnosis program algorithm writing.

[0050] In another technical solution, if there is an alarm fault signal or a shutdown signal issued by the client, the DI digital output or AI analog input will display the alarm fault information content and the shutdown information content on the display screen.

[0051] In another technical solution, the client can input control signals in the pre-startup phase, startup phase, no-load operation phase, loaded operation phase, normal shutdown phase, fault shutdown phase, and emergency shutdown phase.

[0052] For the output of each control stage, only the AO and DO interfaces that need to be controlled in that stage need to be changed, and the interfaces that do not need to be controlled can remain unchanged.

[0053] In another technical solution, the alarm fault signals include motor speed not meeting the standard, oil pump oil pressure not meeting the standard, bearing temperature being too high, vibration not meeting the standard, and intake pressure not meeting the standard.

[0054] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation modes, and they can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.

Claims

1. A method for writing a reciprocating compressor control program in plain text form, characterized in that: The following steps are involved: S1. Divide the control logic of the reciprocating compressor into a pre-starting stage, a starting stage, a no-load operation stage, a loaded operation stage, a normal shutdown stage, a fault shutdown stage, and an emergency shutdown stage; S2, control the reciprocating compressor to enter the pre-start phase, complete the pre-start task, and monitor whether there is an alarm fault signal or a shutdown signal issued by the client; S3. If there is an alarm fault signal, the reciprocating compressor is controlled to enter a fault shutdown phase or an emergency shutdown phase according to the type of the fault signal. If a shutdown signal sent by the client is received, the reciprocating compressor is controlled to enter a normal shutdown phase; If there is no alarm fault signal or shutdown signal, the client start signal is received and the startup phase continues; S4. After entering the startup phase, while completing the startup task, monitor whether there is a fault shutdown phase or an emergency shutdown phase; S5. If there is an alarm fault signal, the reciprocating compressor is controlled to enter a fault shutdown phase or an emergency shutdown phase according to the type of the fault signal. If a shutdown signal sent by the client is received, the reciprocating compressor is controlled to enter a normal shutdown phase; If there is no alarm fault signal or shutdown signal, the machine will continue to enter the no-load operation stage; S6. After entering the no-load operation stage, while completing the no-load operation task, monitor whether there is an alarm fault signal or a shutdown signal; S7. If there is an alarm fault signal, the reciprocating compressor is controlled to enter a fault shutdown phase or an emergency shutdown phase according to the type of the fault signal. If a shutdown signal sent by the client is received, the reciprocating compressor is controlled to enter a normal shutdown phase; If there is no alarm fault signal or shutdown signal, continue to enter the loading operation stage; S8, after entering the loading operation stage, while completing the loading operation task, monitor whether there is a fault shutdown stage or an emergency shutdown stage; S9. If there is an alarm fault signal, the reciprocating compressor is controlled to enter a fault shutdown phase or an emergency shutdown phase according to the type of the fault signal. If a shutdown signal sent by the client is received, the reciprocating compressor is controlled to enter a normal shutdown phase.

2. The method for writing a reciprocating compressor control program in plain text form according to claim 1, characterized in that: If there is an alarm fault signal or a shutdown signal sent by the client, the alarm fault information and shutdown information will be displayed on the display screen.

3. The method for writing a reciprocating compressor control program in plain text form according to claim 1, characterized in that: The client can input control signals in the pre-start phase, start phase, no-load operation phase, loaded operation phase, normal shutdown phase, fault shutdown phase, and emergency shutdown phase.

4. The method for writing a reciprocating compressor control program in plain text form according to claim 1, characterized in that: The alarm fault signals include motor speed not meeting the standard, oil pump oil pressure not meeting the standard, bearing temperature being too high, vibration not meeting the standard, and intake pressure not meeting the standard.