Analog quantity processing method and system and automatic processing device

文档序号:1286353 发布日期:2020-08-28 浏览:2次 中文

阅读说明:本技术 一种模拟量的处理方法、系统及自动处理装置 (Analog quantity processing method and system and automatic processing device ) 是由 马会明 李健 李雪娜 于 2020-06-18 设计创作,主要内容包括:本申请提供了一种模拟量的处理方法、系统及自动处理装置,先获取待用户选择的多个与各个预设模拟量输入数据对应的预设模拟量数据输入口,以及多个与各个预设模拟量输出数据对应的预设模拟量数据输出口,然后通过待用户选择的多个与各个预设模拟量输入数据对应的预设模拟量数据输入口,确定目标实际模拟量输入数据,接着根据接收到的目标实际模拟量输入数据进行计算,确定目标实际模拟量输出数据,最后确定目标实际模拟量输出数据输出至对应的预设模拟量数据输出口。本申请可以在一定程度上解决针对不同设备或者不同控制系统都需要程序员进行单独编程的技术问题,进而实现设备或控制系统的程序模块化和规范化。(The application provides a method, a system and an automatic processing device for processing analog quantity, which are characterized in that a plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data to be selected by a user and a plurality of preset analog quantity data output ports corresponding to each preset analog quantity output data are obtained, then target actual analog quantity input data are determined through the plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data to be selected by the user, calculation is performed according to the received target actual analog quantity input data, target actual analog quantity output data are determined, and finally, the target actual analog quantity output data are determined and output to the corresponding preset analog quantity data output ports. The method and the device can solve the technical problem that programmers need to perform independent programming aiming at different devices or different control systems to a certain extent, and further realize the program modularization and standardization of the devices or the control systems.)

1. A processing method of analog quantity is characterized by comprising the following steps:

acquiring a plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data to be selected by a user and a plurality of preset analog quantity data output ports corresponding to each preset analog quantity output data;

determining target actual analog quantity input data through a plurality of preset analog quantity data input ports corresponding to the preset analog quantity input data to be selected by a user;

calculating according to the received target actual analog quantity input data, and determining target actual analog quantity output data;

and determining that the target actual analog quantity output data is output to the corresponding preset analog quantity data output port based on a plurality of preset analog quantity data output ports corresponding to the preset analog quantity output data.

2. The processing method according to claim 1, wherein before the calculating from the received target actual analog quantity input data and determining the target actual analog quantity output data, the processing method further comprises:

acquiring a simulation data input port corresponding to simulation input data to be selected by a user and a simulation data output port corresponding to preset simulation output data;

determining target simulation input data through a simulation data input port corresponding to the simulation input data to be selected by a user;

calculating according to the received target simulation input data, and determining target simulation output data;

and determining that the target simulation output data is output to the simulation data output port based on a simulation data output port corresponding to preset simulation output data.

3. The processing method according to claim 2, wherein before the acquiring a plurality of preset analog quantity data input ports corresponding to respective preset analog quantity input data to be selected by a user, a plurality of preset analog quantity data output ports corresponding to respective preset analog quantity output data, and the acquiring an artificial analog data input port corresponding to artificial analog input data to be selected by the user, and an artificial analog data output port corresponding to preset artificial analog output data, the processing method comprises:

acquiring an analog data control port corresponding to analog control data to be selected by a user and a preset analog control value;

determining target simulation control data through a simulation data control port corresponding to the simulation control data to be selected by a user;

if the target simulation control data is detected to be the preset simulation control numerical value, determining the target simulation input data as an algorithm input value;

and if the target simulation control data is not the preset simulation control numerical value, determining the target actual analog quantity input data as an algorithm input value.

4. A process according to claim 3, characterized by calculating the received target actual analog input data by:

executing one of an upper limit alarm judgment substep and a lower limit alarm judgment substep first, and then executing the other of the upper limit alarm judgment substep and the lower limit alarm judgment substep;

the upper limit alarm judging substep comprises: judging whether the upper limit alarm value is a default value or not, if so, outputting an upper limit alarm state value as false; if not, judging whether the algorithm input value is larger than the upper limit alarm value, if so, entering upper limit delay judgment, and if not, outputting the upper limit alarm state value as false; the upper limit delay judgment comprises the following steps: starting time delay timing and judging whether the upper limit alarm time delay is reached, if so, outputting an upper limit alarm state value to be true, and if not, repeatedly executing upper limit time delay judgment, wherein the algorithm input value is target actual analog quantity input data or target simulation input data;

the lower limit alarm judgment substep comprises: judging whether the lower limit alarm value is a default value or not, if so, outputting a lower limit alarm state value as false; if not, judging whether the algorithm input value is smaller than the lower limit alarm value, if so, entering lower limit delay judgment, and if not, outputting the lower limit alarm state value as false; the lower limit delay judgment comprises the following steps: and starting time delay timing and judging whether the lower limit alarm time delay is reached, if so, outputting a lower limit alarm state value to be true, otherwise, repeatedly executing the lower limit time delay judgment, wherein the algorithm input value is target actual analog quantity input data or target simulation input data.

5. The processing method according to claim 1, wherein each preset analog input data comprises a plurality of or all of an analog input signal, an upper limit alarm value, a lower limit alarm value, an upper limit alarm delay time and a lower limit alarm delay time.

6. The processing method according to claim 5, wherein the target actual analog quantity output data includes a plurality of or all of a target actual analog quantity output signal, an upper limit alarm state signal, and a lower limit alarm state signal.

7. A processing system of analog quantity, based on the processing method of analog quantity according to any one of claims 1 to 6, the processing system comprising:

the acquisition module is used for acquiring a plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data to be selected by a user and a plurality of preset analog quantity data output ports corresponding to each preset analog quantity output data;

the input data determining module is used for determining target actual analog quantity input data through a plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data to be selected by a user;

the output data determining module is used for calculating according to the received target actual analog quantity input data and determining target actual analog quantity output data;

and the output determining module is used for determining that the target actual analog quantity output data is output to the corresponding preset analog quantity data output port based on a plurality of preset analog quantity data output ports corresponding to the preset analog quantity output data.

8. An automatic processing apparatus, characterized by comprising a processing system of analog quantities according to claim 7.

9. The device according to claim 8, further comprising an upper computer or a display screen, wherein the upper computer or the display screen is used for displaying each preset analog input data to be input by a user.

10. The apparatus of claim 8, wherein the computing module of the processing system is a PLC.

Technical Field

The invention relates to the technical field of automation control, in particular to a method and a system for processing an analog quantity and an automatic processing device.

Background

In actual products or control systems, analog quantities are almost always involved, and the setting of the analog quantities includes but is not limited to: the analog quantity value is set to be temporarily changed in the logic of a simulation test program or in the application of equipment, so that the logic trend of the program is controlled.

Because different equipment or different control systems have different requirements on the analog quantity and different programming environments of the different equipment or different control systems, programmers are required to perform separate programming aiming at the different equipment or different control systems, so that the efficiency is low and the period is long; since functions and variables are dispersed among various parts of a program, it is difficult to implement program modularization and normalization of a device or a control system.

Disclosure of Invention

The invention aims to provide a method, a system and an automatic processing device for processing analog quantity, wherein a unified analog quantity processing method is used for different equipment or different control systems, so that the technical problem that programmers are required to independently program for the different equipment or the different control systems can be solved to a certain extent, and further the modularization and the standardization of programs of the equipment or the control systems are realized.

In a first aspect, an embodiment of the present application provides a processing method for an analog quantity, where the processing method includes:

acquiring a plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data to be selected by a user and a plurality of preset analog quantity data output ports corresponding to each preset analog quantity output data;

determining target actual analog quantity input data through a plurality of preset analog quantity data input ports corresponding to the preset analog quantity input data to be selected by a user;

calculating according to the received target actual analog quantity input data, and determining target actual analog quantity output data;

and determining that the target actual analog quantity output data is output to the corresponding preset analog quantity data output port based on a plurality of preset analog quantity data output ports corresponding to the preset analog quantity output data.

Preferably, before the calculating according to the received target actual analog quantity input data and determining the target actual analog quantity output data, the processing method further includes:

acquiring a simulation data input port corresponding to simulation input data to be selected by a user and a simulation data output port corresponding to preset simulation output data;

determining target simulation input data through a simulation data input port corresponding to the simulation input data to be selected by a user;

calculating according to the received target simulation input data, and determining target simulation output data;

and determining that the target simulation output data is output to the simulation data output port based on a simulation data output port corresponding to preset simulation output data.

Preferably, before the obtaining of a plurality of preset analog quantity data input ports corresponding to respective preset analog quantity input data to be selected by a user, a plurality of preset analog quantity data output ports corresponding to respective preset analog quantity output data, and the obtaining of an analog data input port corresponding to analog simulation input data to be selected by the user, and an analog data output port corresponding to preset analog simulation output data, the processing method includes:

acquiring an analog data control port corresponding to analog control data to be selected by a user and a preset analog control value;

determining target simulation control data through a simulation data control port corresponding to the simulation control data to be selected by a user;

if the target simulation control data is detected to be the preset simulation control numerical value, determining the target simulation input data as an algorithm input value;

and if the target simulation control data is not the preset simulation control numerical value, determining the target actual analog quantity input data as an algorithm input value.

Preferably, the received target actual analog input data is calculated by the following steps, or the received target simulation input data is calculated by the following steps:

executing one of an upper limit alarm judgment substep and a lower limit alarm judgment substep first, and then executing the other of the upper limit alarm judgment substep and the lower limit alarm judgment substep;

the upper limit alarm judging substep comprises: judging whether the upper limit alarm value is a default value or not, if so, outputting an upper limit alarm state value as false; if not, judging whether the algorithm input value is larger than the upper limit alarm value, if so, entering upper limit delay judgment, and if not, outputting the upper limit alarm state value as false; the upper limit delay judgment comprises the following steps: starting time delay timing and judging whether the upper limit alarm time delay is reached, if so, outputting an upper limit alarm state value to be true, and if not, repeatedly executing upper limit time delay judgment, wherein the algorithm input value is target actual analog quantity input data or target simulation input data;

the lower limit alarm judgment substep comprises: judging whether the lower limit alarm value is a default value or not, if so, outputting a lower limit alarm state value as false; if not, judging whether the algorithm input value is smaller than the lower limit alarm value, if so, entering lower limit delay judgment, and if not, outputting the lower limit alarm state value as false; the lower limit delay judgment comprises the following steps: and starting time delay timing and judging whether the lower limit alarm time delay is reached, if so, outputting a lower limit alarm state value to be true, otherwise, repeatedly executing the lower limit time delay judgment, wherein the algorithm input value is target actual analog quantity input data or target simulation input data.

Preferably, each preset analog input data includes multiple or all of an analog input signal, an upper limit alarm value, a lower limit alarm value, an upper limit alarm delay time and a lower limit alarm delay time.

Preferably, the target actual analog quantity output data includes a plurality of or all of a target actual analog quantity output signal, an upper limit alarm state signal and a lower limit alarm state signal.

In a second aspect, an embodiment of the present application provides an analog processing system, based on the analog processing method in the first aspect, the processing system includes:

the acquisition module is used for acquiring a plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data to be selected by a user and a plurality of preset analog quantity data output ports corresponding to each preset analog quantity output data;

the input data determining module is used for determining target actual analog quantity input data through a plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data to be selected by a user;

the output data determining module is used for calculating according to the received target actual analog quantity input data and determining target actual analog quantity output data;

and the output determining module is used for determining that the target actual analog quantity output data is output to the corresponding preset analog quantity data output port based on a plurality of preset analog quantity data output ports corresponding to the preset analog quantity output data.

In a third aspect, an embodiment of the present application provides an automatic processing apparatus, which includes the processing system for analog quantity according to the second aspect.

Preferably, the device further comprises an upper computer, and the upper computer is used for displaying each preset analog input data to be selected and input by the user in a table form.

Preferably, the operation module of the processing system is a PLC.

The embodiment of the application provides a processing method, a system and an automatic processing device of analog quantity, and by integrating programming methods of different devices or different control systems on one analog quantity processing method, a uniform analog quantity processing method is used for different devices or different control systems, the technical problem that programmers are required to perform independent programming for different devices or different control systems can be solved to a certain extent, and further program modularization and standardization of the devices or the control systems are achieved.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.

Fig. 1 is a schematic flowchart of a first analog quantity processing method according to an embodiment of the present disclosure;

fig. 2 is a schematic flowchart of a second analog quantity processing method according to an embodiment of the present application;

fig. 3 is a schematic flowchart of a third method for processing an analog quantity according to an embodiment of the present application;

fig. 4 is a schematic structural diagram of an analog processing system according to an embodiment of the present disclosure.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.

Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1, fig. 1 is a schematic flow chart of a first analog quantity processing method according to an embodiment of the present application, and as shown in fig. 1, the processing method includes:

s110, a plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data to be selected by a user and a plurality of preset analog quantity data output ports corresponding to each preset analog quantity output data are obtained.

In this embodiment of the application, each preset analog input data includes multiple or all of an analog input signal InDp, an upper limit alarm value InUpDp, a lower limit alarm value InLowDp, an upper limit alarm delay time TdUp, and a lower limit alarm delay time TdLow.

The embodiment of the application can include a plurality of preset analog quantity input data, and correspondingly, the embodiment of the application has a plurality of preset analog quantity data input ports and preset analog quantity data output ports corresponding to each preset analog quantity input data. Therefore, an upper limit alarm value is set when upper limit alarm is needed, a lower limit alarm value is set when lower limit alarm is needed, delay time is set when delay alarm is needed, and the upper limit alarm value and the lower limit alarm value can be freely set according to requirements of different users.

And S120, determining target actual analog quantity input data through a plurality of preset analog quantity data input ports corresponding to the preset analog quantity input data to be selected by the user.

In this step, actual setting is performed according to the needs of the user. For example, if the user needs to use the upper limit alarm function, an upper limit alarm value inppdp needs to be set in advance, and then target actual analog input data (a value related to the upper limit alarm) is input into the processing system through a preset analog data input port corresponding to the upper limit alarm value inppdp so as to be compared with the upper limit alarm value inppdp set in advance.

And S130, calculating according to the received target actual analog quantity input data, and determining target actual analog quantity output data.

In step S130, the received target actual analog input data may be calculated by:

executing one of an upper limit alarm judgment substep and a lower limit alarm judgment substep first, and then executing the other of the upper limit alarm judgment substep and the lower limit alarm judgment substep;

the upper limit alarm judging substep comprises: judging whether the upper limit alarm value is a default value or not, if so, outputting an upper limit alarm state value as false; if not, judging whether the algorithm input value is larger than the upper limit alarm value, if so, entering upper limit delay judgment, and if not, outputting the upper limit alarm state value as false; the upper limit delay judgment comprises the following steps: starting time delay timing and judging whether the upper limit alarm time delay is reached, if so, outputting an upper limit alarm state value as true, and if not, repeatedly executing upper limit time delay judgment, wherein the algorithm input value is target actual analog quantity input data;

the lower limit alarm judgment substep comprises: judging whether the lower limit alarm value is a default value or not, if so, outputting a lower limit alarm state value as false; if not, judging whether the algorithm input value is smaller than the lower limit alarm value, if so, entering lower limit delay judgment, and if not, outputting the lower limit alarm state value as false; the lower limit delay judgment comprises the following steps: and starting time delay timing and judging whether the lower limit alarm time delay is reached, if so, outputting a lower limit alarm state value to be true, otherwise, repeatedly executing the lower limit time delay judgment, wherein the algorithm input value is target actual analog quantity input data.

Specifically, the upper limit alarm judgment substep includes: judging whether the upper limit alarm value InUpDp is a default value (namely judging whether the upper limit alarm value is input or not, and the default value is a non-input upper limit alarm time value), if so, outputting an upper limit alarm state signal Wup, wherein the value of the upper limit alarm state signal Wup is false; if not, judging whether the value of the target actual analog quantity output signal OutDp is larger than an upper limit alarm value InUpDp, if so, entering upper limit delay judgment, and if not, outputting an upper limit alarm state signal Wup to be false; the upper limit delay judgment comprises the following steps: and starting time delay timing and judging whether the upper limit alarm delay time TdUp is reached, if so, outputting the value of an upper limit alarm state signal Wup to be true, and if not, repeatedly executing upper limit delay judgment.

The lower limit alarm judgment substep comprises: judging whether the lower limit alarm value InLowDp is a default value (namely judging whether the lower limit alarm value is input or not, and the default value is a non-input upper limit alarm time value), if so, outputting a lower limit alarm state signal Wlow with a value of false; if not, judging whether the target actual analog quantity output signal OutDp is smaller than a lower limit alarm value Wlow, if so, entering lower limit delay judgment, and if not, outputting a lower limit alarm state signal Wlow with a false value; the lower limit delay judgment comprises the following steps: and starting time delay timing and judging whether the lower limit alarm delay time TdLow is reached, if so, outputting the value of a lower limit alarm state signal Wlow to be true, and if not, repeatedly executing the lower limit delay judgment.

And finally obtaining target actual analog quantity output data through the steps.

And S140, determining that the target actual analog quantity output data are output to the corresponding preset analog quantity data output ports based on a plurality of preset analog quantity data output ports corresponding to the preset analog quantity output data.

In the embodiment of the present application, the target actual analog quantity output data includes a plurality of or all of a target actual analog quantity output signal, an upper limit alarm state signal, and a lower limit alarm state signal.

In this step, the determined target actual analog quantity output data is output through a preset analog quantity data output port, so that a user can visually obtain the target actual analog quantity output data, wherein the target actual analog quantity output data includes a target actual analog quantity output signal outp, an upper limit alarm state signal Wup and a lower limit alarm state signal Wlow.

For example, the target actual analog output signal OutDp output pressure value may subsequently participate in other logic control (e.g., the cooling system is started after the pressure reaches a threshold); the upper limit alarm state signal Wup represents a pressure upper limit alarm and can also participate in other logic control (such as shutdown when an alarm occurs, etc.) in the future.

According to the analog quantity processing method provided by the embodiment of the application, programming methods of different devices or different control systems are integrated on one analog quantity processing method, so that a uniform analog quantity processing method is used for different devices or different control systems, the technical problem that programmers are required to perform independent programming for different devices or different control systems can be solved to a certain extent, and further program modularization and standardization of the devices or the control systems are achieved.

Referring to fig. 2, fig. 2 is a flowchart illustrating a second analog quantity processing method according to an embodiment of the present application, and as shown in fig. 2, before step S130, the processing method further includes:

s210, acquiring a simulation data input port corresponding to simulation input data to be selected by a user and a simulation data output port corresponding to preset simulation output data.

In this step, the simulation input data (the value input by the simulation input SDp) is the simulation value input by the operator when the system is in the simulation state.

And S220, determining target simulation input data through a simulation data input port corresponding to the simulation input data to be selected by the user.

And S230, calculating according to the received target simulation input data, and determining target simulation output data.

When the processing system of the analog quantity is in a simulation state, real data does not need to be considered during data processing, and the whole simulation processing process is subject to simulation data input by a user. For example, if the current room temperature is 20 degrees, but the room temperature to be simulated is 18 degrees, the operation of the system is controlled, and a simulation function is used to directly give a simulation temperature, such as 18 degrees, on the page of the analog processing system, so that the analog processing system processes according to the given simulation temperature.

In step S230, the received target simulation input data may be calculated by the following method:

executing one of an upper limit alarm judgment substep and a lower limit alarm judgment substep first, and then executing the other of the upper limit alarm judgment substep and the lower limit alarm judgment substep;

the upper limit alarm judging substep comprises: judging whether the upper limit alarm value is a default value or not, if so, outputting an upper limit alarm state value as false; if not, judging whether the algorithm input value is larger than the upper limit alarm value, if so, entering upper limit delay judgment, and if not, outputting the upper limit alarm state value as false; the upper limit delay judgment comprises the following steps: starting time delay timing and judging whether the upper limit alarm time delay is reached, if so, outputting an upper limit alarm state value to be true, and if not, repeatedly executing upper limit time delay judgment, wherein the algorithm input value is target simulation input data;

the lower limit alarm judgment substep comprises: judging whether the lower limit alarm value is a default value or not, if so, outputting a lower limit alarm state value as false; if not, judging whether the algorithm input value is smaller than the lower limit alarm value, if so, entering lower limit delay judgment, and if not, outputting the lower limit alarm state value as false; the lower limit delay judgment comprises the following steps: and starting time delay timing and judging whether the lower limit alarm time delay is reached, if so, outputting a lower limit alarm state value to be true, otherwise, repeatedly executing the lower limit time delay judgment, wherein the algorithm input value is target simulation input data.

It should be noted that, if the upper limit alarm value or the lower limit alarm value is a default value, the upper limit alarm state value or the lower limit alarm state value is output to be false, and at this time, the upper limit alarm function or the lower limit alarm function is not enabled.

For specific description, refer to the description of step S130, and the same technical effect can be achieved, which is not described again.

S240, determining that the target simulation output data are output to the simulation data output port based on the simulation data output port corresponding to the preset simulation output data.

The method for processing the analog quantity provided by the embodiment of the application can integrate multiple processing states on one system, for example, the processing system of the analog quantity can simultaneously comprise a simulation state and a non-simulation state, and at the moment, only one part of the processing system of the analog quantity needs to be ensured to be in the simulation state, so that corresponding simulation actions are executed; and the other part of the processing system is in a non-simulation state, and can execute the alarm operation in the non-simulation state, namely the simulation operation and the alarm operation can be simultaneously carried out. Therefore, a plurality of functional modules can be formed in the system, and the functional modules do not influence each other when executing actions, so that the standardization of the system is improved, the processing time of the system is saved, and the cost is reduced.

Referring to fig. 3, fig. 3 is a schematic flow chart of a third analog quantity processing method according to an embodiment of the present application, and as shown in fig. 3, the processing method includes:

s310, acquiring an analog data control port corresponding to the analog control data to be selected by the user and a preset analog control value.

S320, determining target simulation control data through a simulation data control port corresponding to the simulation control data to be selected by a user;

s330, if the target simulation control data is detected to be the preset simulation control numerical value, determining the target simulation input data to be an algorithm input value;

s340, if the target simulation control data is not the preset simulation control numerical value, determining the target actual analog quantity input data as an algorithm input value.

Inputting target simulation control data through a simulation data control port corresponding to simulation control data to be selected by a user, comparing the target simulation control data with a preset simulation control value, determining a system state according to a comparison result, and further determining an algorithm input value according to the determined state; when the target simulation control data is the preset simulation control numerical value, the system is in a simulation state, and at the moment, the algorithm input value is the target simulation input data; and when the target simulation control data is not the preset simulation control value, the system is in an un-simulation state, namely an actual working state, and at the moment, the algorithm input value is target actual analog quantity input data.

In practical application, the processing system of the analog quantity uses either an actual program or a simulation program to perform operation, so the processing system of the analog quantity receives target actual analog quantity input data, wherein the target actual analog quantity input data may include a plurality of or all of an analog quantity input signal InDp, an upper limit alarm value InUpDp, a lower limit alarm value InLowDp, an upper limit alarm delay time TdUp and a lower limit alarm delay time TdLow; or receive target analog input data.

Specifically, the analog input signal InDp may be: the method comprises the following steps that 4-20 mA of an output signal of a pressure sensor is connected to an analog quantity input channel of a PLC (programmable logic controller), filtered by an AI (AI) hardware filtering circuit of the signal, and changed into a signal of 0-105 MPa by a linear variation algorithm Kennlinie; the following steps can be also included: and data transmitted through an RS485 interface.

In addition, the on-Off state of the simulated analog state switch Off can be used to determine whether the system is in the simulated state or the non-simulated state, that is, when the Off is on, the system is in the simulated state, and when the Off is Off, the system is in the non-simulated state.

Specifically, whether the simulation control input Off is true is judged, and if yes, the target simulation input data is used as an algorithm input value AlgDp; if not, the target actual analog quantity input data is used as an algorithm input value AlgDp.

And S350, acquiring a plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data to be selected by a user and a plurality of preset analog quantity data output ports corresponding to each preset analog quantity output data.

S351, determining target actual analog quantity input data through a plurality of preset analog quantity data input ports corresponding to the respective preset analog quantity input data to be selected by the user.

And S352, calculating according to the received target actual analog quantity input data, and determining target actual analog quantity output data.

And S353, determining the target actual analog quantity output data to be output to the corresponding preset analog quantity data output port based on a plurality of preset analog quantity data output ports corresponding to the preset analog quantity output data.

The descriptions of S350 to S353 may refer to the descriptions of S110 to S140, and the same technical effects can be achieved, which are not described again.

S360, acquiring a simulation data input port corresponding to simulation input data to be selected by a user and a simulation data output port corresponding to preset simulation output data;

s361, determining target simulation input data through a simulation data input port corresponding to the simulation input data to be selected by a user;

s362, calculating according to the received target simulation input data, and determining target simulation output data;

and S363, determining that the target simulation output data are output to the simulation data output port based on the simulation data output port corresponding to the preset simulation output data.

The descriptions of S360 to S363 may refer to the descriptions of S210 to S240, and the same technical effect can be achieved, which is not described again.

The analog quantity processing method provided by the embodiment of the application can change the logic trend of a program by temporarily changing the analog quantity value. A processing method integrates various operation functions and simultaneously comprises two processing states, namely a simulation state and a working state (non-simulation state). Furthermore, programming methods of different devices or different control systems are integrated on one analog quantity processing method, so that a uniform analog quantity processing method is used for different devices or different control systems, the technical problem that programmers are required to perform independent programming for different devices or different control systems can be solved to a certain extent, and further program modularization and standardization of the devices or the control systems are achieved. Analog input data corresponding to each function only needs to be manually selected and input by an operator, different requirements are met based on different selections, and programming consideration is not needed by programmers for the analog input data, so that the requirements on the operator are not high, the labor cost is low, the coding efficiency is high, the maintenance is easy, and the simulation is convenient; in addition, the method can be used in various scenes, and has strong adaptability.

Referring to fig. 4, fig. 4 is a schematic structural diagram of an analog processing system according to an embodiment of the present disclosure, and as shown in fig. 4, the processing system 400 includes:

an obtaining module 410, configured to obtain a plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data to be selected by a user, and a plurality of preset analog quantity data output ports corresponding to each preset analog quantity output data;

an input data determining module 420, configured to determine target actual analog quantity input data through a plurality of preset analog quantity data input ports corresponding to respective preset analog quantity input data to be selected by a user;

an output data determining module 430, configured to perform calculation according to the received target actual analog input data, and determine target actual analog output data;

and an output determining module 440, configured to determine, based on a plurality of preset analog quantity data output ports corresponding to the preset analog quantity output data, that the target actual analog quantity output data is output to the corresponding preset analog quantity data output port.

The analog quantity processing system provided by the embodiment of the application implements a unified algorithm for processing the analog quantities of different devices or different control systems, and similarly, implements a unified algorithm for digital quantities, alarms, PID (proportion integration differentiation), control instructions and the like, can realize that program codes of a process control system are automatically generated by tool software, realizes system standardization and modularization, improves the reliability of the system, and reduces the cost of system maintenance. Specifically, the embodiment of the application covers various fields of alarming, alarming delay, simulation, upper limit alarming, lower limit alarming and the like, the analog input data only needs to be manually selected and input by an operator, different requirements are met based on different selections, and programming consideration is not needed by programmers for the analog data, so that the requirements on the operator are not high, the labor cost is low, the coding efficiency is high, the maintenance is easy, and the simulation is convenient; in addition, the method can be used in various scenes, so that the adaptability is strong.

Based on the same technical concept, the embodiment of the present application further provides an automatic processing apparatus, which includes the processing system of the analog quantity as described above.

The automatic processing apparatus provided in the embodiment of the present application includes all technical features of the processing system of the analog quantity as described above, and has the technical effects corresponding to all technical features of the processing system of the analog quantity as described above, which are not described in detail herein.

Preferably, the device further comprises an upper computer or a display screen, wherein the upper computer or the display screen is used for displaying each preset analog input data to be selected and input by a user.

Specifically, the display devices adopted by the apparatus provided by the embodiment of the application are different in different application fields. When the device is in a more complex application environment and has a larger project, the embodiment of the application can display each preset analog input data to be selected and input by a user through the upper computer; when the device is in a simpler application environment and has smaller projects, the embodiment of the application can be directly connected with the display screen through the human-computer interface on the device, and then, the preset analog input data to be selected and input by a user is displayed through the display screen.

Preferably, each preset analog input data to be selected and input by a user can be displayed on the upper computer in a form of a table, and a plurality of or all of a target actual analog output signal, an upper limit alarm state signal and a lower limit alarm state signal can also be displayed.

In this application embodiment, the data that need input can be selected according to each preset analog input data that the host computer shows, for example: if the upper limit alarm is needed, inputting an actual upper limit alarm value at the upper limit alarm value InUpDp; if lower limit alarm is needed, inputting an actual lower limit alarm value at a lower limit alarm value InLowDp; if the alarm needs to be delayed while the upper limit alarm is given, the actual upper limit delay time is input at the upper limit alarm delay time TdUp; and if the alarm needs to be delayed while the alarm is given at the lower limit, the lower limit actual delay time is input at the lower limit alarm delay time TdLow. Ordinary technicians or first-party personnel can test products or control systems through the upper computer without relying on the operation of real equipment, and the working efficiency is improved.

Preferably, the operation module of the processing system is a PLC. Furthermore, the efficiency of code automatic generation can be improved to a certain extent.

The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于物联网的公厕管理方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!