CN111596573B - Analog quantity processing method, system and automatic processing device - Google Patents

Analog quantity processing method, system and automatic processing device Download PDF

Info

Publication number
CN111596573B
CN111596573B CN202010562599.3A CN202010562599A CN111596573B CN 111596573 B CN111596573 B CN 111596573B CN 202010562599 A CN202010562599 A CN 202010562599A CN 111596573 B CN111596573 B CN 111596573B
Authority
CN
China
Prior art keywords
data
analog
simulation
preset
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010562599.3A
Other languages
Chinese (zh)
Other versions
CN111596573A (en
Inventor
马会明
李健
李雪娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sany Petroleum Intelligent Equipment Co Ltd
Original Assignee
Sany Petroleum Intelligent Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sany Petroleum Intelligent Equipment Co Ltd filed Critical Sany Petroleum Intelligent Equipment Co Ltd
Priority to CN202010562599.3A priority Critical patent/CN111596573B/en
Publication of CN111596573A publication Critical patent/CN111596573A/en
Application granted granted Critical
Publication of CN111596573B publication Critical patent/CN111596573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B17/00Systems involving the use of models or simulators of said systems
    • G05B17/02Systems involving the use of models or simulators of said systems electric

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The application provides a processing method, a system and an automatic processing device for analog quantity, which are characterized in that a plurality of preset analog quantity data input ports corresponding to preset analog quantity input data to be selected by a user and a plurality of preset analog quantity data output ports corresponding to preset analog quantity output data are obtained firstly, then target actual analog quantity input data are determined through a plurality of preset analog quantity data input ports corresponding to preset analog quantity input data selected by the user, then calculation is carried out 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 are required to carry out independent programming for different equipment or different control systems to a certain extent, and further realize program modularization and standardization of the equipment or the control systems.

Description

Analog quantity processing method, system and automatic processing device
Technical Field
The invention relates to the technical field of automatic control, in particular to a method and a system for processing analog quantity and an automatic processing device.
Background
Almost all of the actual products or control systems involve analog quantities, the setting of which includes, but is not limited to: the functions of the analog quantity include, but are not limited to, delay and alarm, and the analog quantity value often needs to be temporarily changed in the simulation test program logic or when the equipment is applied, so as to control the logic trend of the program.
Because the requirements of different devices or different control systems on analog quantity are different and the programming environments of the different devices or the different control systems are different, programmers are required to carry out independent programming on the different devices or the different control systems, so that the efficiency is low and the period is long; because functions and variables are dispersed among various parts of the program, it is difficult to achieve program modularization and standardization of the device or control system.
Disclosure of Invention
The invention aims to provide a processing method, a system and an automatic processing device for analog quantity, which are used for different equipment or different control systems by using a unified analog quantity processing method, so that the technical problem that programmers are required to carry out independent programming for the different equipment or the different control systems can be solved to a certain extent, and the program modularization and standardization of the equipment or the control systems are realized.
In a first aspect, an embodiment of the present application provides a method for processing 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 and a plurality of preset analog quantity data output ports corresponding to each preset analog quantity output data, which are selected by a user;
determining target actual analog input data through a plurality of preset analog data input ports corresponding to each preset analog input data, which are 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 the target actual analog output data to be output to the corresponding preset analog data output port based on a plurality of preset analog data output ports corresponding to the preset analog output data.
Preferably, before the calculating according to the received target actual analog input data and determining the target actual analog output data, the processing method further includes:
the method comprises the steps of obtaining a simulation analog data input port which corresponds to simulation analog input data and is selected by a user, and a simulation analog data output port which corresponds to preset simulation analog output data;
determining target simulation input data through a simulation analog data input port which corresponds to the simulation analog input data and is selected by a user;
calculating according to the received target simulation input data, and determining target simulation output data;
and determining the target simulation output data to be output to the simulation output data based on the simulation output data corresponding to the preset simulation output data.
Preferably, before the obtaining, for user selection, a plurality of preset analog data input ports corresponding to the preset analog input data, a plurality of preset analog data output ports corresponding to the preset analog output data, and the obtaining, for user selection, a simulation analog data input port corresponding to the simulation analog input data, and a simulation analog data output port corresponding to the preset simulation analog output data, the processing method includes:
acquiring a simulation data control port which is selected by a user and corresponds to simulation control data and presetting a simulation control value;
determining target simulation control data through a simulation data control port which corresponds to the simulation control data and is selected by a user;
if the target simulation control data is detected to be the preset simulation control value, determining the target simulation input data to be an algorithm input value;
and if the target simulation control data is detected not to be the preset simulation control value, determining the target actual analog quantity input data to be an algorithm input value.
Preferably, the calculation is performed on the received target actual analog input data by the following steps, or on the received target analog input data by the following steps:
executing one of an upper limit alarm judging sub-step and a lower limit alarm judging sub-step, and then executing the other one of the upper limit alarm judging sub-step and the lower limit alarm judging sub-step;
the upper limit alarm judging substep comprises the following steps: 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 the 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 delay timing and judging whether the upper limit alarm delay time is reached, if yes, outputting an upper limit alarm state value to be true, and if not, repeatedly executing upper limit delay judgment, wherein the algorithm input value is target actual analog quantity input data or target simulation analog input data;
the lower limit alarm judging substep comprises the following steps: 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 a lower limit alarm state value as false; the lower limit delay judgment comprises the following steps: and starting delay timing and judging whether the lower limit alarm delay time is reached, if so, outputting a lower limit alarm state value to be true, and if not, repeatedly executing lower limit delay judgment, wherein the algorithm input value is target actual analog quantity input data or target simulation analog 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 output data includes 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.
In a second aspect, an embodiment of the present application provides a processing system for an analog quantity, and the processing system includes:
the acquisition module is used for acquiring a plurality of preset analog quantity data input ports which correspond to the preset analog quantity input data and are selected to be used, and a plurality of preset analog quantity data output ports which correspond to the preset analog quantity output data;
the input data determining module is used for determining target actual analog input data through a plurality of preset analog data input ports which are selected by a user and correspond to each preset analog input data;
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;
the output determining module is used for determining that the target actual analog output data is output to the corresponding preset analog data output port based on a plurality of preset analog data output ports corresponding to each preset analog output data.
In a third aspect, embodiments of the present application provide an automated processing apparatus comprising a processing system for analog quantities as described in the second aspect.
Preferably, the device further comprises a host computer, and the host computer is used for displaying each preset analog input data to be selected and input 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 for analog quantity, which integrate programming methods of different equipment or different control systems on the same analog quantity processing method, so that a unified analog quantity processing method is used for the different equipment or the different control systems, the technical problem that programmers are required to carry out independent programming for the different equipment or the different control systems can be solved to a certain extent, and further the program modularization and standardization of the equipment or the control systems are realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a first analog processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of a second method for processing analog quantity according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a third method for processing analog quantity according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an analog processing system according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the 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 invention, as 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 made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flow chart of a first analog processing method provided in an embodiment of the present application, as shown in fig. 1, with an analog processing system as an execution main body, the processing method includes:
s110, acquiring a plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data and a plurality of preset analog quantity data output ports corresponding to each preset analog quantity output data, which are selected by a user.
In this embodiment, each preset analog input data includes multiple or all of an analog input signal InDp, an upper limit alarm value inopdp, 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 comprise a plurality of preset analog input data, and correspondingly, the device is provided with a plurality of preset analog data input ports and preset analog data output ports corresponding to each preset analog input data. Therefore, the upper limit alarm value is set up by the upper limit alarm, the lower limit alarm value is set up by the lower limit alarm, the delay time is set up by the delay alarm, and the delay time can be freely set up according to the requirements of different users.
S120, determining target actual analog input data through a plurality of preset analog data input ports corresponding to each preset analog input data, which are selected by a user.
In this step, actual setting is performed according to the user's demand. For example, the user needs to use the upper limit alarm function, that is, the upper limit alarm value inopdp needs to be set in advance, and then the target actual analog input data (the value related to the upper limit alarm) is input into the processing system through the preset analog data input port corresponding to the upper limit alarm value inopdp, so that the target actual analog input data is compared with the upper limit alarm value inopdp set in advance.
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 judging sub-step and a lower limit alarm judging sub-step, and then executing the other one of the upper limit alarm judging sub-step and the lower limit alarm judging sub-step;
the upper limit alarm judging substep comprises the following steps: 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 the 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 delay timing and judging whether the upper limit alarm delay time is reached, if yes, outputting an upper limit alarm state value to be true, and if not, repeatedly executing upper limit delay judgment, wherein the algorithm input value is target actual analog quantity input data;
the lower limit alarm judging substep comprises the following steps: 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 a lower limit alarm state value as false; the lower limit delay judgment comprises the following steps: and starting delay timing and judging whether the lower limit alarm delay time is reached, if so, outputting a lower limit alarm state value to be true, and if not, repeatedly executing lower limit delay judgment, wherein the algorithm input value is target actual analog input data.
Specifically, the upper limit alarm judging sub-step 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, wherein the default value is an upper limit alarm value which is not input), if so, outputting an upper limit alarm state signal Wup to be false; if not, judging whether the value of the target actual analog quantity output signal OutDp is larger than the upper limit alarm value InUpDp, if so, entering upper limit delay judgment, and if not, outputting the value of the upper limit alarm state signal Wup as false; the upper limit delay judgment comprises the following steps: and starting delay timing and judging whether the upper limit alarm delay time TdUp is reached, if so, outputting the value of the upper limit alarm state signal Wup to be true, and if not, repeatedly executing the upper limit delay judgment.
The lower limit alarm judging substep comprises the following steps: judging whether the lower limit alarm value InLowDp is a default value (namely judging whether the lower limit alarm value is input or not, wherein the default value is an upper limit alarm value which is not input), if so, outputting a lower limit alarm state signal Wlow to be false; if not, judging whether the target actual analog output signal OutDp is smaller than a lower limit alarm value Wlow, if so, entering lower limit delay judgment, and if not, outputting a false value of the lower limit alarm state signal Wlow; the lower limit delay judgment comprises the following steps: and starting delay timing and judging whether the lower limit alarm delay time TdLow is reached, if so, outputting a lower limit alarm state signal WLow, and if not, repeatedly executing the lower limit delay judgment.
And finally obtaining the target actual analog quantity output data through the steps.
And S140, determining the target actual analog output data to output to the corresponding preset analog data output port based on a plurality of preset analog data output ports corresponding to the preset analog output data.
In this embodiment of the present application, the target actual analog output data includes multiple or all of a target actual analog output signal, an upper limit alarm state signal, and a lower limit alarm state signal.
In the step, the determined target actual analog output data is output through a preset analog data output port, so that a user can intuitively acquire the target actual analog output data, wherein the target actual analog output data comprises a target actual analog output signal OutDp, an upper limit alarm state signal Wup and a lower limit alarm state signal Wlow.
For example, the target actual analog output signal OutDp outputs a pressure value which can be subsequently engaged in other logic control (e.g., the cooling system is started after the pressure reaches a threshold); the upper limit alarm state signal Wup indicates the pressure upper limit alarm, and can also participate in other logic control (such as stopping when an alarm occurs).
According to the analog quantity processing method, programming methods of different equipment or different control systems are integrated on one analog quantity processing method, so that a unified analog quantity processing method is used for different equipment or different control systems, the technical problem that programmers are required to carry out independent programming for different equipment or different control systems can be solved to a certain extent, and program modularization and standardization of the equipment or the control systems are achieved.
Referring to fig. 2, fig. 2 is a flow chart of a second analog processing method according to an embodiment of the present application, as shown in fig. 2, before step S130, the processing method further includes:
s210, acquiring a simulation analog data input port which corresponds to simulation analog input data and is selected by a user, and a simulation analog data output port which corresponds to preset simulation analog output data.
In this step, the simulated analog input data (the value corresponding to the simulated analog input SDp) is the analog value input by the operator when the system is in the simulated state.
S220, determining target simulation input data through a simulation data input port corresponding to the simulation input data selected by a user.
S230, calculating according to the received target simulation input data, and determining target simulation output data.
When the analog processing system is in a simulation state, real data does not need to be considered in data processing, and the whole simulation processing process is based on simulation data input by a user. For example, when the current room temperature is 20 degrees and the room temperature to be simulated is 18 degrees, the running condition of the system is controlled, and a simulation temperature, such as 18 degrees, is directly set on a page of the analog processing system by using a simulation function, so that the analog processing system processes according to the set simulation temperature.
In step S230, the received target simulation input data may be calculated by:
executing one of an upper limit alarm judging sub-step and a lower limit alarm judging sub-step, and then executing the other one of the upper limit alarm judging sub-step and the lower limit alarm judging sub-step;
the upper limit alarm judging substep comprises the following steps: 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 the 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 delay timing and judging whether the upper limit alarm delay time is reached, if yes, outputting an upper limit alarm state value to be true, and if not, repeatedly executing upper limit delay judgment, wherein the algorithm input value is target simulation input data;
the lower limit alarm judging substep comprises the following steps: 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 a lower limit alarm state value as false; the lower limit delay judgment comprises the following steps: and starting delay timing and judging whether the lower limit alarm delay time is reached, if so, outputting a lower limit alarm state value to be true, and if not, repeatedly executing lower limit delay judgment, wherein the algorithm input value is target simulation input data.
If the upper limit alarm value or the lower limit alarm value is the default value, the upper limit alarm state value or the lower limit alarm state value is output as false, and the upper limit alarm function or the lower limit alarm function is not started at this time.
The specific description can refer to the description of step S130, and the same technical effects can be achieved, which will not be repeated.
S240, determining the target simulation output data to output to the simulation output data based on the simulation output data corresponding to the preset simulation output data.
According to the analog quantity processing method, various processing states can be integrated on one system, for example, the analog quantity processing system can simultaneously comprise a simulation state and a non-simulation state, and at the moment, only a part of the analog quantity processing system is required 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 alarm operation in the non-simulation state, namely the simulation operation and the alarm operation can be performed simultaneously. Therefore, a plurality of functional modules can be formed in the system, and the functional modules are not affected 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 flow chart of a third analog processing method provided in an embodiment of the present application, and as shown in fig. 3, the processing method includes:
s310, acquiring a simulation data control port corresponding to the simulation control data and selected by a user and a preset simulation control value.
S320, determining target simulation control data through a simulation data control port corresponding to the simulation control data selected by a user;
s330, if the target simulation control data is detected to be the preset simulation control value, determining the target simulation input data to be an algorithm input value;
and S340, if the target simulation control data is detected not to be the preset simulation control value, determining the target actual analog quantity input data to be an algorithm input value.
In the step, target simulation control data is input through a simulation data control port which is selected by a user and corresponds to the simulation control data, then the target simulation control data is compared with a preset simulation control value, the state of the system is determined according to the comparison result, and a value is input by a further determination algorithm according to the determined state; when the target simulation control data is the preset simulation control value, the system is in a simulation state, and at the moment, the algorithm input value is the target simulation input data; 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 the target actual analog input data.
In practical application, the analog processing system uses either an actual program or a simulation program to perform operation, so the analog processing system either receives target actual analog input data, where the target actual analog input data may include multiple or all of an analog input signal InDp, an upper limit alarm value inopdp, a lower limit alarm value InLowDp, an upper limit alarm delay time TdUp, and a lower limit alarm delay time TdLow; or receive target simulation input data.
Specifically, the analog input signal InDp may be: the output signal of the pressure sensor is 4-20 mA, which is connected to the analog input channel of the PLC, filtered by a hardware filter circuit (AI hardware filter) of the signal, and then converted into a signal of 0-105 MPa by a linear change algorithm Kennlinie; the method can also be as follows: data transmitted through the RS485 interface.
In addition, the open/close state of the analog-to-analog state switch Off can be used to determine whether the system is in an analog state or an un-analog state, i.e., when Off is on, the system is in an analog state, and when Off, the system is in an un-analog state.
Specifically, judging whether the simulation control input Off is true, if so, taking target simulation input data as an algorithm input value AlgDp; if not, the target actual analog input data is used as an algorithm input value AlgDp.
S350, acquiring a plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data and a plurality of preset analog quantity data output ports corresponding to each preset analog quantity output data, which are selected by a user.
S351, determining target actual analog input data through a plurality of preset analog data input ports corresponding to each preset analog input data, which are selected by a user.
And S352, calculating according to the received target actual analog quantity input data, and determining target actual analog quantity output data.
S353, based on a plurality of preset analog quantity data output ports corresponding to the preset analog quantity output data, determining the target actual analog quantity output data to output to the corresponding preset analog quantity data output ports.
The descriptions of S350 to S353 may refer to the descriptions of S110 to S140, and the same technical effects can be achieved, which will not be described herein.
S360, acquiring a simulation analog data input port which corresponds to simulation analog input data and is selected by a user, and a simulation analog data output port which corresponds to preset simulation analog output data;
s361, determining target simulation input data through a simulation data input port corresponding to simulation input data selected by a user;
s362, calculating according to the received target simulation input data to determine target simulation output data;
s363, determining the target simulation output data to output to the simulation output data based on the simulation output data 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 effects can be achieved, which will not be described herein.
According to the analog quantity processing method, the logic trend of the program can be changed by temporarily changing the analog quantity value. A processing method integrates multiple operation functions and simultaneously comprises two processing states, namely a simulation state and a working state (non-simulation state). Furthermore, by integrating programming methods of different devices or different control systems on one analog processing method, the unified analog processing method is used for the different devices or the different control systems, so that the technical problem that programmers are required to perform independent programming for the different devices or the different control systems can be solved to a certain extent, and the program modularization and standardization of the devices or the control systems are realized. The 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 operators are low, 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 application, as shown in fig. 4, the processing system 400 includes:
the obtaining module 410 is configured to obtain a plurality of preset analog data input ports corresponding to each preset analog input data and a plurality of preset analog data output ports corresponding to each preset analog output data, where the preset analog data input ports are to be selected;
an input data determining module 420, configured to determine target actual analog input data through a plurality of preset analog data input ports corresponding to each preset analog input data selected by a user;
the output data determining module 430 is configured to perform calculation according to the received target actual analog input data, and determine target actual analog output data;
the output determining module 440 is configured to determine, based on a plurality of preset analog output ports corresponding to the preset analog output data, that the target actual analog output data is output to the corresponding preset analog output port.
The processing system for the analog quantity provided by the embodiment of the application implements a unified algorithm for processing analog quantities of different equipment or different control systems, and can implement the unified algorithm for digital quantities, alarms, PID (proportion integration differentiation), control instructions and the like, so that program codes of the process control system can be automatically generated by tool software, system standardization and modularization are realized, the reliability of the system is improved, and the cost of system maintenance is reduced. Specifically, the embodiment of the application covers various fields such as alarm, alarm delay, simulation, upper limit alarm, lower limit alarm and the like, the analog quantity input data only needs manual selection input by operators, different requirements are adapted based on different selections, and the analog quantity data do not need programming consideration by programmers, so that the requirements on the operators 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 therefore has strong adaptability.
Based on the same technical concept, the embodiment of the application also provides an automatic processing device, which comprises the processing system of the analog quantity.
The automatic processing device provided in this embodiment of the present application includes all the technical features of the analog processing system described above, and has the technical effects corresponding to all the technical features of the analog processing system 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 selected and input by a user.
Specifically, the display devices adopted by the apparatus provided by the embodiments of the present application in different application fields are different. When the application environment is more complex and the project is larger, the embodiment of the application can display each preset analog input data to be selected and input by the user through the upper computer; when the device is in a simpler application environment and the items are smaller, the device can be directly connected with a display screen through a man-machine interface on the device, and then, all preset analog input data to be selected and input are displayed through the display screen.
Preferably, each preset analog input data to be selected and input by a user can be displayed in a table form on the upper computer, and a plurality of or all of the target actual analog output signal, the upper limit alarm state signal and the lower limit alarm state signal can also be displayed.
In this embodiment of the present application, data to be input may be selected according to each preset analog input data displayed by the upper computer, for example: if some of the alarm signals need upper limit alarm, inputting an actual upper limit alarm value at an upper limit alarm value InUpDp; if some lower limit alarms are needed, inputting an actual lower limit alarm value at a lower limit alarm value InLowDp; if the alarm is delayed while the upper limit alarm is needed, inputting the upper limit actual delay time at the upper limit alarm delay time TdUp; if the alarm is delayed while the alarm is delayed at the lower limit, the lower limit actual delay time is input at the lower limit alarm delay time TdLow. The common technician or first party can test the product or control system through the upper computer, and the operation of the real equipment is not needed, so that the working efficiency is improved.
Preferably, the operation module of the processing system is a PLC. Furthermore, the efficiency of automatic code generation can be improved to some extent.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for processing an analog quantity, the method comprising:
acquiring a plurality of preset analog quantity data input ports corresponding to each preset analog quantity input data and a plurality of preset analog quantity data output ports corresponding to each preset analog quantity output data, which are selected by a user;
determining target actual analog input data through a plurality of preset analog data input ports corresponding to each preset analog input data, which are selected by a user;
calculating according to the received target actual analog quantity input data, and determining target actual analog quantity output data;
determining the target actual analog output data to be output to a corresponding preset analog data output port based on a plurality of preset analog data output ports corresponding to each preset analog output data;
before the calculation is performed according to the received target actual analog input data and the target actual analog output data is determined, the processing method further comprises the following steps:
the method comprises the steps of obtaining a simulation analog data input port which corresponds to simulation analog input data and is selected by a user, and a simulation analog data output port which corresponds to preset simulation analog output data;
determining target simulation input data through a simulation analog data input port which corresponds to the simulation analog input data and is selected by a user;
calculating according to the received target simulation input data, and determining target simulation output data;
determining the target simulation output data to be output to a simulation output data port based on the simulation output data port corresponding to the preset simulation output data;
before the obtaining of the plurality of preset analog data input ports corresponding to the preset analog input data and the plurality of preset analog data output ports corresponding to the preset analog output data and the obtaining of the simulation analog data input ports corresponding to the simulation analog input data and the simulation analog data output ports corresponding to the preset simulation analog output data, which are selected by the user, the processing method includes:
acquiring a simulation data control port which is selected by a user and corresponds to simulation control data and presetting a simulation control value;
determining target simulation control data through a simulation data control port which corresponds to the simulation control data and is selected by a user;
if the target simulation control data is detected to be the preset simulation control value, determining the target simulation input data to be an algorithm input value;
and if the target simulation control data is detected not to be the preset simulation control value, determining the target actual analog quantity input data to be an algorithm input value.
2. The processing method according to claim 1, wherein the received target actual analog input data is calculated by or by:
executing one of an upper limit alarm judging sub-step and a lower limit alarm judging sub-step, and then executing the other one of the upper limit alarm judging sub-step and the lower limit alarm judging sub-step;
the upper limit alarm judging substep comprises the following steps: 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 the 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 delay timing and judging whether the upper limit alarm delay time is reached, if yes, outputting an upper limit alarm state value to be true, and if not, repeatedly executing upper limit delay judgment, wherein the algorithm input value is target actual analog quantity input data or target simulation analog input data;
the lower limit alarm judging substep comprises the following steps: 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 a lower limit alarm state value as false; the lower limit delay judgment comprises the following steps: and starting delay timing and judging whether the lower limit alarm delay time is reached, if so, outputting a lower limit alarm state value to be true, and if not, repeatedly executing lower limit delay judgment, wherein the algorithm input value is target actual analog quantity input data or target simulation analog input data.
3. The processing method according to claim 1, wherein each of the preset analog input data includes 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.
4. A processing method according to claim 3, wherein the target actual analog output data includes any or all of a target actual analog output signal, an upper alarm state signal, and a lower alarm state signal.
5. An analog processing system, characterized in that it comprises, based on the analog processing method according to any one of claims 1 to 4:
the acquisition module is used for acquiring a plurality of preset analog quantity data input ports which correspond to the preset analog quantity input data and are selected to be used, and a plurality of preset analog quantity data output ports which correspond to the preset analog quantity output data; before the calculation is performed according to the received target actual analog input data and the target actual analog output data is determined, the processing method further comprises the following steps:
the method comprises the steps of obtaining a simulation analog data input port which corresponds to simulation analog input data and is selected by a user, and a simulation analog data output port which corresponds to preset simulation analog output data;
determining target simulation input data through a simulation analog data input port which corresponds to the simulation analog input data and is selected by a user;
calculating according to the received target simulation input data, and determining target simulation output data;
determining the target simulation output data to be output to a simulation output data port based on the simulation output data port corresponding to the preset simulation output data;
before the obtaining of the plurality of preset analog data input ports corresponding to the preset analog input data and the plurality of preset analog data output ports corresponding to the preset analog output data and the obtaining of the simulation analog data input ports corresponding to the simulation analog input data and the simulation analog data output ports corresponding to the preset simulation analog output data, which are selected by the user, the processing method includes:
acquiring a simulation data control port which is selected by a user and corresponds to simulation control data and presetting a simulation control value;
determining target simulation control data through a simulation data control port which corresponds to the simulation control data and is selected by a user;
if the target simulation control data is detected to be the preset simulation control value, determining the target simulation input data to be an algorithm input value;
if the target simulation control data is detected to be not the preset simulation control value, determining the target actual analog quantity input data as an algorithm input value;
the input data determining module is used for determining target actual analog input data through a plurality of preset analog data input ports which are selected by a user and correspond to each preset analog input data;
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;
the output determining module is used for determining that the target actual analog output data is output to the corresponding preset analog data output port based on a plurality of preset analog data output ports corresponding to each preset analog output data.
6. An automated processing unit comprising the analog processing system of claim 5.
7. The apparatus of claim 6, further comprising a host computer or a display screen, wherein the host computer or the display screen is configured to display respective preset analog input data to be selected for input.
8. The apparatus of claim 6, wherein the processing system operation module is a PLC.
CN202010562599.3A 2020-06-18 2020-06-18 Analog quantity processing method, system and automatic processing device Active CN111596573B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010562599.3A CN111596573B (en) 2020-06-18 2020-06-18 Analog quantity processing method, system and automatic processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010562599.3A CN111596573B (en) 2020-06-18 2020-06-18 Analog quantity processing method, system and automatic processing device

Publications (2)

Publication Number Publication Date
CN111596573A CN111596573A (en) 2020-08-28
CN111596573B true CN111596573B (en) 2024-03-26

Family

ID=72186485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010562599.3A Active CN111596573B (en) 2020-06-18 2020-06-18 Analog quantity processing method, system and automatic processing device

Country Status (1)

Country Link
CN (1) CN111596573B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113006757B (en) * 2021-02-25 2022-12-20 三一石油智能装备有限公司 Method and device for controlling auxiliary motor equipment in electrically-driven fracturing sled system and fracturing sled

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0778007A (en) * 1993-06-30 1995-03-20 Mitsubishi Electric Corp Analog signal processor for programmable controller
CN101770214A (en) * 2008-12-26 2010-07-07 中广核工程有限公司 System and method for indicating analog quantity limit value in nuclear power plant
CN102681437A (en) * 2012-05-22 2012-09-19 宁波德曼压缩机有限公司 Multifunctional intelligent controller
CN103529710A (en) * 2013-10-15 2014-01-22 广东电网公司电力调度控制中心 Method and system for realizing backup power automatic switching model of power system
CN103809582A (en) * 2012-11-14 2014-05-21 北京北方微电子基地设备工艺研究中心有限责任公司 Method, system and device for control system simulation testing in semiconductor manufacturing process
CN204044538U (en) * 2014-07-25 2014-12-24 中国石油大学(华东) Based on the control object emulation experiment case of touch screen/PLC all-in-one
CN204270032U (en) * 2014-12-29 2015-04-15 广东电网有限责任公司电力科学研究院 Analog quantity communication interface between RTDS and SimuEngine
CN204576107U (en) * 2015-05-12 2015-08-19 高兴泉 The semi-matter simulating system of Chemical Engineering Process Control
CN105204421A (en) * 2015-09-18 2015-12-30 广州晋宇自动控制设备有限责任公司 Programmable logic controller based on BACNET protocol and control method thereof
CN105302055A (en) * 2015-11-09 2016-02-03 北京工业大学 Safety monitoring system for programmable logic controller in industrial control system and method thereof
CN205563131U (en) * 2016-01-27 2016-09-07 中国人民解放军镇江船艇学院 Marine refrigerating plant operates training simulator
JP2017062297A (en) * 2015-09-24 2017-03-30 株式会社東芝 Simulation device, module thereof, simulation method, and program
CN106681153A (en) * 2017-02-23 2017-05-17 国家电网公司 External physical controller for frequency conversion simulation of self-adaptive power system real-time simulation platform
CN107861459A (en) * 2017-11-09 2018-03-30 山东省计算中心(国家超级计算济南中心) A kind of PLC control system and its control method of configurable aobvious control integration
CN110673509A (en) * 2019-09-19 2020-01-10 中国电力科学研究院有限公司 Electric quantity transmitter simulation system and method for semi-physical simulation platform

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0778007A (en) * 1993-06-30 1995-03-20 Mitsubishi Electric Corp Analog signal processor for programmable controller
CN101770214A (en) * 2008-12-26 2010-07-07 中广核工程有限公司 System and method for indicating analog quantity limit value in nuclear power plant
CN102681437A (en) * 2012-05-22 2012-09-19 宁波德曼压缩机有限公司 Multifunctional intelligent controller
CN103809582A (en) * 2012-11-14 2014-05-21 北京北方微电子基地设备工艺研究中心有限责任公司 Method, system and device for control system simulation testing in semiconductor manufacturing process
CN103529710A (en) * 2013-10-15 2014-01-22 广东电网公司电力调度控制中心 Method and system for realizing backup power automatic switching model of power system
CN204044538U (en) * 2014-07-25 2014-12-24 中国石油大学(华东) Based on the control object emulation experiment case of touch screen/PLC all-in-one
CN204270032U (en) * 2014-12-29 2015-04-15 广东电网有限责任公司电力科学研究院 Analog quantity communication interface between RTDS and SimuEngine
CN204576107U (en) * 2015-05-12 2015-08-19 高兴泉 The semi-matter simulating system of Chemical Engineering Process Control
CN105204421A (en) * 2015-09-18 2015-12-30 广州晋宇自动控制设备有限责任公司 Programmable logic controller based on BACNET protocol and control method thereof
JP2017062297A (en) * 2015-09-24 2017-03-30 株式会社東芝 Simulation device, module thereof, simulation method, and program
CN105302055A (en) * 2015-11-09 2016-02-03 北京工业大学 Safety monitoring system for programmable logic controller in industrial control system and method thereof
CN205563131U (en) * 2016-01-27 2016-09-07 中国人民解放军镇江船艇学院 Marine refrigerating plant operates training simulator
CN106681153A (en) * 2017-02-23 2017-05-17 国家电网公司 External physical controller for frequency conversion simulation of self-adaptive power system real-time simulation platform
CN107861459A (en) * 2017-11-09 2018-03-30 山东省计算中心(国家超级计算济南中心) A kind of PLC control system and its control method of configurable aobvious control integration
CN110673509A (en) * 2019-09-19 2020-01-10 中国电力科学研究院有限公司 Electric quantity transmitter simulation system and method for semi-physical simulation platform

Also Published As

Publication number Publication date
CN111596573A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
US6618630B1 (en) User interface that integrates a process control configuration system and a field device management system
CN111596573B (en) Analog quantity processing method, system and automatic processing device
TWI650705B (en) System module and method for constructing customized display screen of non-intrusive data capture system
KR102116064B1 (en) Plant diagnosis method using the same system
CN103092732B (en) Utilize the system of the dynamic monitoring device of script
US4829380A (en) Video processor
US7757209B2 (en) Display and edit device, display method and program product
US6760630B2 (en) Method and implementation of process control
US20190242787A1 (en) Failure diagnosis system
CN105652841A (en) Intelligent programmable logic controller
EP2911026B1 (en) Implementing alarm presentation standardized behaviors in a hosting device
CN101202027B (en) Control system and control method for display screen
CN110361051A (en) Intelligent environment monitoring method and system
CN103201686A (en) Method and system for monitoring an industrial process
CN116558278A (en) Sintering furnace control method and device, storage medium and terminal
GB2550600A (en) Fume extraction systems
US5113359A (en) Method for selecting inputs for a pc in which a ladder program is simulated
CN110998515B (en) Field device interface in industrial control system
US11036617B2 (en) Sequence program processor used for tracing of sequence program
CN113220345A (en) Instruction block processing method, device, equipment and storage medium
WO2018114183A1 (en) Operator control unit for a field device used in automation technology
CN221507343U (en) Reusable data acquisition terminal
JPS6194483A (en) Process monitor device
Robert et al. The importance of PLC in the predictive maintenance of electronic equipment
CN213843818U (en) Excavator online debugging system and excavator

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant