Automatic control system based on PLC

By using the autoregressive moving average model and correlation analysis in the PLC automation control system, key parameters can be quickly identified and adjusted, which solves the problem of long error calculation time caused by too many parameters or high computational complexity, and improves the efficiency and accuracy of the system. Spend.

CN118760046AInactive Publication Date: 2024-10-11ANHUI SANLIAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410935896.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In an automated control system, when there are many parameters or the calculation complexity is high, it may take a lot of time to modify and recalculate the errors one by one, resulting in low efficiency.

Method used

An automated control system based on PLC is used to periodically scan input signals through autoregressive moving average models and correlation analysis to generate statistical data and prediction information, quickly identify key parameters that affect errors, and adjust model parameters to reduce errors.

Benefits of technology

Through weight coefficient sorting and correlation analysis, parameters that may affect the error can be quickly identified, saving time and improving the efficiency and accuracy of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760046A_ABST
    Figure CN118760046A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic control system based on a PLC, and relates to the technical field of data acquisition and processing, the input end of a PLC central processing module is used for receiving a signal from a sensor, the input end converts the signal into a digital signal, and the digital signal is transmitted to a processing unit of the PLC central processing module for processing; the programming module is used for receiving error data of the PLC central processing module and prediction information of the prediction module and modifying parameters of an autoregressive moving average model, and the sensor module is used for sensing and acquiring various physical quantities and signals in real time, converting the physical quantities and the signals into analog signals and outputting the analog signals. And the output end of the PLC central processing module converts an output signal of the PLC and sends the output signal to the execution module. The problems that some automatic control systems judge which parameter in a formula can influence an error through sensitivity analysis, and if the parameters are more or the calculation complexity is higher, a large amount of time is possibly needed for modifying the parameters one by one and recalculating the error are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data acquisition and processing, in particular to an automatic control system based on PLC. Background Art

[0002] PLC-based automation control system is a common industrial automation control system. PLC is a digital electronic device specially used to control and monitor industrial processes. It can automatically perform various control tasks according to pre-written programs. Higher-performance PLCs usually have shorter scan cycles to achieve higher response speed and accuracy. To achieve higher response speed and accuracy, high-speed input or output modules can be used.

[0003] At present, some automatic control systems use sensitivity analysis to modify each parameter one by one and observe the change of the error to determine which parameter in the formula can affect the error. If there are many parameters or the calculation complexity is high, it may take a lot of time to modify the parameters one by one and recalculate the error.

[0004] Therefore, an automatic control system based on PLC is proposed. Summary of the invention

[0005] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes an automatic control system based on PLC, which solves the problem that some automatic control systems use sensitivity analysis to determine which parameter in a formula can affect the error. If there are many parameters or the calculation complexity is high, it may take a lot of time to modify the parameters one by one and recalculate the error.

[0006] To achieve the above object, the present invention proposes an automatic control system based on PLC, comprising: a PLC central processing module, a programming module, a sensor module, a prediction module, an execution module, and an experience analysis module, wherein information is exchanged between the modules based on digital signals;

[0007] The PLC central processing module includes an input terminal, an output terminal, a statistical unit, and a processing unit;

[0008] The processing unit processes the input signal received from the output end by periodic scanning, and the statistical unit is used to count the number of input signals processed by periodic scanning in different time periods, generate statistical data and store them, and the statistical unit sends the statistical data to the prediction module;

[0009] The prediction module generates prediction information based on the analysis of the previous day’s statistical data and sends the prediction information to the PLC central processing module and programming module;

[0010] After the input end receives the prediction information, the processing unit allocates the number of periodic scans in different time periods, and the statistical unit compares the number of input signals received in each time period in the prediction information with the number of input signals actually received in this time period, calculates the error, generates error data, and sends it to the programming module;

[0011] The programming module is used to receive the error data, the prediction information of the prediction module, and modify the parameters of the autoregressive moving average model. The process of the programming module modifying the parameters of the autoregressive moving average model includes the following steps:

[0012] S1: List all the parameters of the autoregressive moving average model and set a weight coefficient for each parameter. The weight coefficient is an indicator to determine whether the parameter can cause error. The initial weight coefficient of each parameter is 0. The greater the influence of the parameter on the error, the greater the weight coefficient.

[0013] S2: Based on the empirical analysis module, we first preliminarily determine which parameters will affect the error, and add 1 to the weight coefficient of the relevant parameters. For example, based on the physical background of the problem and previous research, we can infer that there is a correlation between certain parameters and the error.

[0014] S3: Use correlation analysis to evaluate the relationship between each parameter and the error;

[0015] S4: Count the weight coefficients of all parameters and arrange them in order from large to small, and send the parameter with the largest weight coefficient to the prediction module.

[0016] As a further solution of the present invention: the input end of the PLC central processing module is used to receive the signal of the sensor, and the output end of the PLC central processing module sends the output signal to the execution module. The scanning cycle is the time interval for the processing unit to perform a complete scan.

[0017] As a further solution of the present invention: the prediction module predicts how many input signals will be received in each time period of the day based on the analysis of the statistical data of the previous day, and generates prediction information.

[0018] As a further solution of the present invention: predicting how many receiving signals will be received in each time period of the day is based on the autoregressive moving average model: N(t)=c+Σ(φ(i)*X(ti))+Σ(θ(j)*ε(tj)), wherein N(t) represents the number of receiving signals received in time period t, c represents the constant term, φ(i) represents the autoregressive coefficient, X(ti) represents the historical data of the number of receiving signals received in the past time period ti, θ(j) represents the moving average coefficient, and ε(tj) represents the error term.

[0019] As a further solution of the present invention: the sensor module is used to sense and acquire various physical quantities and signals in real time, convert them into analog signals, and transmit the analog signals to the processing unit.

[0020] As a further aspect of the present invention, the process of evaluating the relationship between each parameter and the error using correlation analysis comprises the following steps:

[0021] S3-1: Collect the data sets of parameters and errors, draw a scatter plot between parameters and errors, and visually observe the relationship between them;

[0022] S3-2: Calculate the correlation coefficient between the parameter and the error. The correlation coefficient is a statistic used to measure the degree of correlation between two variables. The strength of the relationship between the parameter and the error is determined based on the calculated correlation coefficient. The value range of the correlation coefficient is -1 to 1. A correlation coefficient close to 1 indicates a positive correlation, a correlation coefficient close to -1 indicates a negative correlation, and a correlation coefficient close to 0 indicates no correlation.

[0023] S3-3: Add 1 to the weight coefficient of the parameter whose correlation coefficient is close to 1 or -1.

[0024] As a further solution of the present invention: the experience analysis module predicts which parameters will affect the error based on the professional knowledge and experience in this field.

[0025] As a further solution of the present invention: the process of reducing the error calculated by the statistical unit includes the following steps:

[0026] P1: The prediction module regenerates the autoregressive moving average model according to the parameters. The specific steps of generating a new autoregressive moving average model are as follows: if the received parameter is φ(i), the parameter φ(i) of the original autoregressive moving average model is increased or decreased to generate a new autoregressive moving average model. The prediction information is regenerated according to the new autoregressive moving average model and sent to the PLC central processing module;

[0027] P2: After the input end receives the signal, the number of periodic scans in different time periods is reallocated according to the prediction information. The statistical unit of the PLC central processing module compares the number of signals received in each time period in the prediction information with the number of signals actually received in this time period, calculates the error again, generates new error data, and sends it to the programming module;

[0028] P3: The programming module monitors the effect of the new autoregressive moving average model. If the error decreases, the new parameters will continue to be used. If the error does not decrease, the parameters with the second highest weight coefficient will be sent to the prediction module.

[0029] P4: Repeat steps P1-P3 until the error decreases.

[0030] As a further solution of the present invention: the output end sends an output signal to the execution module, and the execution module performs a corresponding operation.

[0031] Compared with the prior art, the present invention has the following beneficial effects:

[0032] By listing all the parameters of the autoregressive moving average model and setting a weight coefficient for each parameter, based on experience or domain knowledge, first preliminarily determine which parameters will affect the error, and add 1 to the weight coefficient of the relevant parameters, use correlation analysis to evaluate the relationship between each parameter and the error, count the weight coefficients of all parameters, and arrange them in order from large to small, and send the parameter with the largest weight coefficient to the prediction module. The prediction module regenerates the autoregressive moving average model based on the parameters; the parameter with the largest weight coefficient obtained in the above manner is most likely to be the parameter that can affect the error, saving time. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a schematic diagram of the structure of the present invention. DETAILED DESCRIPTION

[0034] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] like Figure 1 As shown, the PLC-based automatic control system includes: PLC central processing module, programming module, sensor module, prediction module, execution module, and experience analysis module. The modules exchange information based on digital signals.

[0036] The PLC central processing module includes an input terminal, an output terminal, a statistical unit, and a processing unit;

[0037] The input end of the PLC central processing module is used to receive sensor signals, which can be of various types, such as switch signals, pressure sensor signals, temperature sensor signals, etc.

[0038] The output end of the PLC central processing module sends output signals to the execution module. These output signals can be control signals, voltage signals, current signals, etc.

[0039] The processing unit processes the input signal received from the output end by a periodic scanning method. The scanning period is the time interval for the processing unit to perform a complete scan. The scanning period of each time period is different. The number of received signals processed by the periodic scanning in different time periods in one scanning period is also different. The statistical unit is used to count the number of input signals processed by the periodic scanning in different time periods, generate statistical data, and store the statistical data.

[0040] The statistical unit sends the statistical data to the prediction module. The prediction module predicts how many input signals will be received in each time period of the day based on the statistical data of the previous day, generates prediction information, and the prediction information includes the number of input signals received in different time periods. The prediction information is sent to the PLC central processing module and programming module;

[0041] The prediction of how many reception signals will be received in each time period of the day is based on the autoregressive moving average model: N(t) = c + Σ(φ(i)*X(ti)) + Σ(θ(j)*ε(tj)), where N(t) represents the number of reception signals received in time period t, c represents the constant term, φ(i) represents the autoregressive coefficient, X(ti) represents the historical data of the number of reception signals received in the past time period ti, θ(j) represents the moving average coefficient, and ε(tj) represents the error term;

[0042] The sensor module is used to sense and obtain various physical quantities and signals in real time, convert them into analog signals, and transmit the analog signals to the processing unit;

[0043] After the input end receives the prediction information, the processing unit allocates the number of periodic scans in different time periods, and the statistical unit compares the number of input signals received in each time period in the prediction information with the number of input signals actually received in this time period, calculates the error, generates error data, and sends it to the programming module;

[0044] The programming module is used to receive the error data, the prediction information of the prediction module, and modify the parameters of the autoregressive moving average model. The process of the programming module modifying the parameters of the autoregressive moving average model includes the following steps:

[0045] S1: List all the parameters of the autoregressive moving average model and set a weight coefficient for each parameter. The weight coefficient is an indicator to determine whether the parameter can cause error. The initial weight coefficient of each parameter is 0. The greater the influence of the parameter on the error, the greater the weight coefficient.

[0046] S2: Based on the empirical analysis module, we first preliminarily determine which parameters will affect the error, and add 1 to the weight coefficient of the relevant parameters. For example, based on the physical background of the problem and previous research, we can infer that there is a correlation between certain parameters and the error.

[0047] The empirical analysis module predicts which parameters will affect the error based on the professional knowledge and experience in this field.

[0048] S3: Use correlation analysis to evaluate the relationship between each parameter and the error;

[0049] S4: Count the weight coefficients of all parameters and arrange them in order from large to small, and send the parameter with the largest weight coefficient to the prediction module;

[0050] Using correlation analysis, the process of evaluating the relationship between each parameter and the error consists of the following steps:

[0051] S3-1: Collect the data sets of parameters and errors, draw a scatter plot between parameters and errors, and visually observe the relationship between them;

[0052] S3-2: Calculate the correlation coefficient between the parameter and the error. The correlation coefficient is a statistic used to measure the degree of correlation between two variables. The strength of the relationship between the parameter and the error is determined based on the calculated correlation coefficient. The value range of the correlation coefficient is -1 to 1. A correlation coefficient close to 1 indicates a positive correlation, a correlation coefficient close to -1 indicates a negative correlation, and a correlation coefficient close to 0 indicates no correlation.

[0053] S3-3: Add 1 to the weight coefficient of the parameter whose correlation coefficient is close to 1 or -1;

[0054] The process of reducing the error of the statistical unit calculation includes the following steps:

[0055] P1: The prediction module regenerates the autoregressive moving average model according to the parameters. The specific steps of generating a new autoregressive moving average model are as follows: if the received parameter is φ(i), the parameter φ(i) of the original autoregressive moving average model is increased or decreased to generate a new autoregressive moving average model. The prediction information is regenerated according to the new autoregressive moving average model and sent to the PLC central processing module;

[0056] P2: After the input end receives the signal, the number of periodic scans in different time periods is reallocated according to the prediction information. The statistical unit of the PLC central processing module compares the number of signals received in each time period in the prediction information with the number of signals actually received in this time period, calculates the error again, generates new error data, and sends it to the programming module;

[0057] P3: The programming module monitors the effect of the new autoregressive moving average model. If the error decreases, the new parameters will continue to be used. If the error does not decrease, the parameters with the second highest weight coefficient will be sent to the prediction module.

[0058] P4: Repeat steps P1-P3 until the error decreases;

[0059] The output end sends an output signal to the execution module, and the execution module performs the corresponding operation.

[0060] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.

Claims

1. The PLC-based automatic control system is characterized by: include: PLC central processing module, programming module, sensor module, prediction module, execution module, and experience analysis module, each module exchanges information based on digital signals; The PLC central processing module includes an input terminal, an output terminal, a statistical unit, and a processing unit; The processing unit processes the input signal received from the output end by periodic scanning, and the statistical unit is used to count the number of input signals processed by periodic scanning in different time periods, generate statistical data and store them, and the statistical unit sends the statistical data to the prediction module; The prediction module generates prediction information based on the analysis of the previous day’s statistical data and sends the prediction information to the PLC central processing module and programming module; After the input end receives the prediction information, the processing unit allocates the number of periodic scans in different time periods, and the statistical unit compares the number of input signals received in each time period in the prediction information with the number of input signals actually received in this time period, calculates the error, generates error data, and sends it to the programming module; The programming module is used to receive the error data, the prediction information of the prediction module, and modify the parameters of the autoregressive moving average model. The process of the programming module modifying the parameters of the autoregressive moving average model includes the following steps: S1: List all the parameters of the autoregressive moving average model and set a weight coefficient for each parameter. The weight coefficient is an indicator to determine whether the parameter can cause error. The initial weight coefficient of each parameter is 0. The greater the influence of the parameter on the error, the greater the weight coefficient. S2: Based on the empirical analysis module, we first preliminarily determine which parameters will affect the error, and add 1 to the weight coefficient of the relevant parameters. For example, based on the physical background of the problem and previous research, we can infer that there is a correlation between certain parameters and the error. S3: Use correlation analysis to evaluate the relationship between each parameter and the error; S4: Count the weight coefficients of all parameters and arrange them in order from large to small, and send the parameter with the largest weight coefficient to the prediction module.

2. The PLC-based automatic control system according to claim 1, characterized in that: The input end of the PLC central processing module is used to receive the signal from the sensor, and the output end of the PLC central processing module sends the output signal to the execution module. The scanning cycle is the time interval for the processing unit to perform a complete scan.

3. The PLC-based automatic control system according to claim 2 is characterized in that: The prediction module predicts how many input signals will be received in each time period of the day based on the analysis of the statistical data of the previous day and generates prediction information.

4. The PLC-based automatic control system according to claim 3 is characterized in that: The prediction of how many reception signals will be received in each time period of the day is based on the autoregressive moving average model: N(t)=c+Σ(φ(i)*X(ti))+Σ(θ(j)*ε(tj)), where N(t) represents the number of reception signals received in time period t, c represents the constant term, φ(i) represents the autoregressive coefficient, X(ti) represents the historical data of the number of reception signals received in the past time period ti, θ(j) represents the moving average coefficient, and ε(tj) represents the error term.

5. The PLC-based automatic control system according to claim 1 is characterized in that: The sensor module is used to sense and acquire various physical quantities and signals in real time, convert them into analog signals, and transmit the analog signals to the processing unit.

6. The PLC-based automatic control system according to claim 1, characterized in that: Using correlation analysis, the process of evaluating the relationship between each parameter and the error consists of the following steps: S3-1: Collect the data sets of parameters and errors, draw a scatter plot between parameters and errors, and visually observe the relationship between them; S3-2: Calculate the correlation coefficient between the parameter and the error. The correlation coefficient is a statistic used to measure the degree of correlation between two variables. The strength of the relationship between the parameter and the error is determined based on the calculated correlation coefficient. The value range of the correlation coefficient is -1 to 1. A correlation coefficient close to 1 indicates a positive correlation, a correlation coefficient close to -1 indicates a negative correlation, and a correlation coefficient close to 0 indicates no correlation. S3-3: Add 1 to the weight coefficient of the parameter whose correlation coefficient is close to 1 or -1.

7. The PLC-based automatic control system according to claim 1, characterized in that: The empirical analysis module predicts which parameters will affect the error based on the professional knowledge and experience in this field.

8. The PLC-based automatic control system according to claim 1, characterized in that: The process of reducing the error of the statistical unit calculation includes the following steps: P1: The prediction module regenerates the autoregressive moving average model according to the parameters. The specific steps of generating a new autoregressive moving average model are as follows: if the received parameter is φ(i), the parameter φ(i) of the original autoregressive moving average model is increased or decreased to generate a new autoregressive moving average model. The prediction information is regenerated according to the new autoregressive moving average model and sent to the PLC central processing module; P2: After the input end receives the signal, the number of periodic scans in different time periods is reallocated according to the prediction information. The statistical unit of the PLC central processing module compares the number of signals received in each time period in the prediction information with the number of signals actually received in this time period, calculates the error again, generates new error data, and sends it to the programming module; P3: The programming module monitors the effect of the new autoregressive moving average model. If the error decreases, the new parameters will continue to be used. If the error does not decrease, the parameters with the second highest weight coefficient will be sent to the prediction module. P4: Repeat steps P1-P3 until the error decreases.

9. The PLC-based automatic control system according to claim 1, characterized in that: The output end sends an output signal to the execution module, and the execution module performs the corresponding operation.