CN110058551B - Process controller group control method - Google Patents

Process controller group control method Download PDF

Info

Publication number
CN110058551B
CN110058551B CN201910372440.2A CN201910372440A CN110058551B CN 110058551 B CN110058551 B CN 110058551B CN 201910372440 A CN201910372440 A CN 201910372440A CN 110058551 B CN110058551 B CN 110058551B
Authority
CN
China
Prior art keywords
circuit
input
output
determining
turning
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
CN201910372440.2A
Other languages
Chinese (zh)
Other versions
CN110058551A (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.)
Shijiazhuang Dekun Electronic Technology Co ltd
Original Assignee
Shijiazhuang Dekun Electronic Technology 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 Shijiazhuang Dekun Electronic Technology Co ltd filed Critical Shijiazhuang Dekun Electronic Technology Co ltd
Priority to CN201910372440.2A priority Critical patent/CN110058551B/en
Publication of CN110058551A publication Critical patent/CN110058551A/en
Application granted granted Critical
Publication of CN110058551B publication Critical patent/CN110058551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Feedback Control In General (AREA)

Abstract

The invention discloses a grouping control method of a process controller, which comprises an input circuit, an AD conversion circuit, a control circuit and an output circuit of at least one loop, wherein the input circuit comprises a resistance input circuit, a first voltage input circuit, a second voltage input circuit, a current input circuit, a thermocouple input circuit and a thermal resistance input circuit; the control method comprises the following steps: s1, determining a loop; s2, AD conversion is carried out; s3, determining a measuring range and obtaining a measuring value; s4, determining a set value corresponding to the type of the input signal by adopting a single-point or program segment control mode; and S5, performing PID operation in a grouping or default mode to obtain a control output value. The method and the device realize detection and control of multiple input signal types, and improve the efficiency of automatic control.

Description

Process controller group control method
Technical Field
The invention relates to the technical field of industrial automation control, in particular to a process controller group control method.
Background
In the field of industrial control, various signals are often required to be controlled, a PID controller is a common feedback loop component in industrial control application, and most of the current industrial PID controllers are compatible with a few input signal types; signals such as nonlinear thermocouples, thermal resistors and the like are realized by adopting an analog curve fitting technology, so that the precision is low, the setting of range parameters is relatively complicated, the input range setting does not support a nonlinear processing function, and the method cannot be applied to special application occasions; the existing classic controllers have poor disturbance control effect in the actual production process, the output mode is single, the selectable schemes in the design of control loops are limited, one controller only has one control loop, and the loop mode is single; in addition, no feed power supply is provided, and a transmitter needing to be provided with the power supply needs to be additionally provided with the power supply, so that an external circuit is added; in addition, most of the existing controllers are limited in application occasions, functions cannot be well expanded, prompt information of display interfaces is less, and state parameter information is not visual enough.
Therefore, it is an urgent need to design a controller capable of realizing multi-channel input, multi-signal input, high display precision, and multi-output.
Disclosure of Invention
The invention aims to provide a grouping control method of a process controller, which can input various types of input signals on the same controller by acquiring signals of different types of sensors, converting measuring ranges, determining set values, grouping parameters, PID (proportion integration differentiation) operation, judging output amplitude limits and determining output values, thereby realizing the measurement diversity of the controller, and meanwhile, outputting calculation results in various modes and expanding output channels.
The above object of the present invention is achieved by the following technical solutions:
the control circuit controls and realizes the switching of a multi-input circuit, different coefficients are selected in an AD conversion chip to realize the processing of collected data to obtain a measured value, a single-point set value mode or a program segment control set value mode is adopted to determine a set value, the measured value is compared with the set value to obtain an error value, a grouping PID parameter or default PID parameter mode is selected, PID operation is carried out based on the error value to obtain a final output value, then a control output value is obtained according to upper and lower limit amplitude values, the action of a corresponding device is controlled to keep related parameters within a certain range, automatic control is realized, and meanwhile, liquid crystal display is adopted to output working state information.
Compared with the prior art, the invention has the beneficial technical effects that:
1. the invention integrates the signals of a plurality of types of sensors together for grouping processing, and outputs amplitude limiting in groups, thereby reducing the processing time of the controller and improving the integration level of the controller;
2. furthermore, the packet output of the application controls various types of control so as to be suitable for various applications, and the application range is expanded;
3. furthermore, the AD conversion is carried out in a differential mode, the anti-interference capability is improved, the programmable gain adjusting function in the AD chip is fully utilized, external devices are reduced, the circuit design is simplified, and the measurement precision is improved.
Drawings
FIG. 1 is a flow chart illustrating the overall control of an embodiment of the present invention;
FIG. 2 is a flow diagram of the analog to digital conversion of an embodiment of the present invention;
FIG. 3 is a flow chart illustrating range conversion according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a control mode of program segments according to an embodiment of the present invention;
FIG. 5 is a flow diagram of a single point mode of an embodiment of the present invention;
FIG. 6 is a flow chart illustrating PID calculation according to an embodiment of the invention;
FIG. 7 is a flow diagram of a packet slicing output according to an embodiment of the present invention;
FIG. 8 is a flow chart of the output of an embodiment of the present invention;
FIG. 9 is a flow chart illustrating display control according to an embodiment of the present invention;
FIG. 10 is a flow chart of the control output of an embodiment of the present invention;
FIG. 11 is a flow chart illustrating interrupt control according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
Detailed description of the invention
The invention relates to a process controller circuit, which comprises an input circuit with at least one loop, a plurality of loop input circuits with the same structure and used for increasing the detection type and the detection range, an input circuit, an AD conversion circuit, a control circuit and an output circuit, wherein the control circuit is respectively connected with the input circuit, the AD conversion circuit and the output circuit; the input circuit comprises a resistance input circuit, a voltage input circuit with the upper limit of input voltage less than or equal to 2V, a voltage input circuit with the upper limit of input voltage less than or equal to 10V, a current input circuit, a thermocouple input circuit and a thermal resistance input circuit, and the input circuits are respectively used for measuring data of resistance, voltage, current, a thermocouple and a thermal resistance.
The output circuit comprises an alarm output circuit, a control output circuit, a transmission output circuit, a communication output circuit and a display output circuit, wherein the transmission output circuit comprises a DA conversion circuit, a voltage-current conversion circuit and a voltage output range conversion circuit; the control output circuit comprises a relay output circuit, a transistor output circuit, an analog linear signal output circuit and a silicon controlled output circuit; the communication output circuit is used for outputting a communication signal; the display output circuit is used for driving the display screen to display, preferably, the liquid crystal display screen to display.
Furthermore, the process controller circuit further comprises a feed circuit, a storage circuit and a temperature compensation circuit, wherein the feed circuit is used for providing power, the storage circuit is used for storing data, and the temperature compensation circuit is used for carrying out temperature compensation on the cold end.
The input circuit also includes a digital DI input circuit.
The AD conversion circuit comprises two input ends and performs differential processing on input signals in a differential mode; the control circuit receives the data conversion result of the AD conversion circuit, processes the data conversion result by adopting a PID algorithm to obtain control output, and simultaneously sends a control signal to the AD conversion circuit, the input circuit and the DA conversion circuit.
The circuit comprises a resistance input circuit, a voltage input circuit with the upper limit of input voltage being less than or equal to 2V, an input circuit with the upper limit of input voltage being less than or equal to 10V, a current input circuit, a thermocouple input circuit and a thermal resistance input circuit which share part of circuits.
The common part circuit includes: the output of different sensors is connected with the filter circuit 1; the output of the filter circuit 1 is connected with the input end of the switching circuit; the different sensors comprise at least one of a resistance sensor, a voltage sensor, a current sensor, a thermocouple sensor and a thermal resistance sensor, and the switching circuit is connected with the control circuit and used for switching different voltage input ranges.
The thermocouple input circuit comprises a thermocouple sensor 5, a filter circuit 1, a switching circuit, a filter circuit 2 and a thermocouple signal open-circuit detection circuit, and the output of the current sensor is connected with the filter circuit 1; the input end of the switching circuit is connected with the output end of the filter circuit 1, the output end of the switching circuit is connected with the input end of the filter circuit 2 and the output end of the thermocouple signal open-circuit detection circuit, the output and input ends of the thermocouple signal open-circuit detection circuit are connected with the control circuit, and the output end of the filter circuit 2 is connected with the AD conversion circuit.
The current input circuit comprises a current sensor, a filter circuit 1, a switching circuit, a filter circuit 2 and a sampling resistor switching circuit, wherein the output of the current sensor 1 is connected with the filter circuit 1; the input end of the switching circuit is connected with the output of the filter circuit 1 and the output of the sampling resistance switching circuit, the output end of the switching circuit is connected with the input of the filter circuit 2, and the input of the sampling resistance switching circuit is connected with the control circuit.
The voltage input circuit with an input voltage upper limit less than or equal to 2V comprises: the device comprises a voltage sensor 2, a filter circuit 1, a switching circuit and a filter circuit 2, wherein the output of the voltage sensor 2 is connected with the filter circuit 1; the input end of the switching circuit is connected with the filter circuit 1, and the output end of the switching circuit is connected with the input end of the filter circuit 2.
The input voltage upper limit is not more than 10V voltage input circuit includes: the voltage sensor 3, the filter circuit 1, the switching circuit and the voltage dividing circuit, wherein the output of the second voltage sensor is connected with the filter circuit 1; the input end of the switching circuit is connected with the output of the filter circuit 1, the output end of the switching circuit is connected with the input of the voltage division circuit, and the output of the voltage division circuit is connected with the AD conversion circuit.
The input circuit of the resistor or the thermal resistor includes: the resistance sensor or thermal resistance sensor 4, the filter circuit 1, the switching circuit, the filter circuit 2, the switching circuit 1 and the resistance signal input open circuit detection circuit, wherein the output of the resistance sensor or thermal resistance sensor is connected with the input of the filter circuit 1 and the input of the resistance signal input open circuit detection circuit; the input of the switching circuit is connected with the output of the switching circuit 1 and the output of the filter circuit 1; the input of the filter circuit 2 is connected with the output of the switching circuit, and the output of the filter circuit is connected with the AD conversion circuit; the input of the switching circuit 1 is connected with the current source output end of the AD conversion circuit, and the switching circuit, the switching circuit 1 and the resistance signal input open circuit detection circuit are controlled by the control circuit.
The control circuit controls and realizes the switching of a multi-input circuit, different coefficients are selected in an AD conversion chip to realize the processing of collected data to obtain a measured value, a single-point set value mode or a program segment control set value mode is adopted to determine a set value, the measured value is compared with the set value to obtain an error value, a grouping PID parameter or default PID parameter mode is selected to carry out PID operation based on the error value to obtain a final output value, then a control output value is obtained according to upper and lower limit amplitude values, the action of a corresponding device is controlled to keep related parameters within a certain range to realize automatic control, and meanwhile, liquid crystal display is adopted to output working state information.
Detailed description of the invention
For a process controller with multiple loop input circuits, as shown in FIG. 1, the control method includes the following steps:
s1, starting up, and initializing the system;
s2, determining a first loop;
s3, determining the type of the input signal, performing analog-to-digital conversion processing on the input signal, and converting the input analog signal into a digital signal;
s4, determining the range of input signal range according to the type and size of the input signal, and obtaining the measured value;
s5, determining the set value of the input signal by adopting a single-point or program segment control mode;
s6, performing PID operation in a grouping or default mode, determining a final output value, and obtaining a control output value according to the final output value and the upper and lower limit amplitude values;
s7, outputting a control output value and related data;
s8, judging whether the last loop is present, if yes, turning to S2, and if not, entering the next step;
s9, switching to the next loop;
s10, turn S3.
Specifically, a step explanation is made.
In step S1, the first loop is determined, and if there is only one input circuit, it is directly determined, and if there are multiple input circuits, after initialization, measurement and control are performed from the input circuit of the first loop, then the second loop is performed until the input circuit of the last loop, and then the first loop and the input circuits are performed in a loop.
In step S2, as shown in fig. 2, the method performs an input signal analog-to-digital conversion process according to the type of the input signal, and includes the following steps:
a1, judging whether the input signal is voltage input with the upper limit larger than 2V, if so, turning to A5, and if not, entering the next step;
a2, judging whether the input signal is thermocouple signal input, if so, turning to A6, and if not, entering the next step;
a3, judging whether the input signal is a current signal input, if so, turning to A8, and if not, entering the next step;
a4, judging whether the input signal is a resistance signal input, if so, turning to A9, and if not, turning to A10;
a5, switching on a voltage division circuit, and turning to A10;
a6, reading the measured value of the temperature sensor;
a7, switching on the thermocouple open-circuit detection circuit, turning to A10;
a8, switching on a sampling resistor, converting a current signal into a voltage signal, and converting into A10;
a9, switching on a current source, and converting the resistance signal into a voltage signal;
a10, selecting an input channel of an AD conversion chip;
a11, setting a programmable gain amplification factor of an AD conversion chip;
a12, starting AD conversion;
and A13, outputting the AD conversion result.
For different input signal types, because the numerical values are different in size, the signals are input from different channels of the AD conversion chip, one signal is input by adopting two channels, differential operation is carried out during AD conversion, the anti-interference capability can be improved, the programmable gain adjustment function in the AD chip is fully utilized, external devices are reduced, the circuit design is simplified, and the measurement precision is improved.
For different detection signals, the amplification factors adopted during AD conversion are different, the invention adopts a programmable AD conversion chip, realizes the conversion of the amplification factors through programs, and further realizes the acquisition of multiple input signals, and the method comprises the following steps:
h1, start;
h2, judging whether the input signal type is a thermocouple signal, if so, turning to H9, and if not, entering the next step;
h3, judging whether the input signal type is a resistance signal or a thermal resistance signal, if so, turning to H12, and if not, entering the next step;
h4, judging whether the type of the input signal is a current signal, if so, turning to H15, and if not, entering the next step;
h5, judging whether the input signal type is a voltage signal with the upper limit of the measurement range larger than 2V, if so, turning to H18, and if not, entering the next step;
h6, determining the type of the input signal as a voltage signal with the upper limit of the measurement range less than or equal to 2V;
h7, controlling to switch on an AD input end circuit;
h8, determining the PGA coefficient of the AD chip as E, and converting to H21;
h9, controlling to switch on a thermocouple open circuit detection circuit;
h10, controlling and connecting the AD input end circuit;
h11, determining the PGA coefficient of the AD chip to be A, and converting to H21;
h12, controlling to switch on a current source power supply circuit;
h13, controlling to switch on an AD input end circuit;
h14, determining the PGA coefficient of the AD chip as B, and converting to H21;
h15, a sampling resistance circuit for controlling the on-state of the current conversion voltage;
h16, controlling to switch on an AD input end circuit;
h17, determining the PGA coefficient of the AD chip to be C, and converting to H21;
h18, a resistance voltage divider circuit for controlling the on-voltage;
h19, controlling to switch on an AD input end circuit;
h20, determining the PGA coefficient of the AD chip as D;
h21, determining the final PGA coefficient of the AD chip;
h22, end.
In step S4, as shown in fig. 3, the method for performing range conversion by using different ranges for different input signal types or sizes according to the input signal type includes the following steps:
c1, converting the AD conversion result into a voltage value again according to the reference voltage;
c2, judging whether the input signal type is a linear signal, if not, turning to C15, and if so, entering the next step;
c3, judging whether the input signal type is a current signal, if so, turning to C6, and if not, entering the next step;
c4, judging whether the input signal type is a resistance signal, if so, turning to C7, and if not, entering the next step;
c5, judging whether the input signal type is a voltage signal with the upper limit larger than 2V, if not, turning to C9, and if so, turning to C8;
c6, converting the voltage signal into a current signal, and converting into C9;
c7, converting the voltage signal into a resistance signal, and converting into C9;
c8, carrying out amplification calculation on the voltage value;
c9, determining the input value of the input signal;
c10, judging whether a user-defined nonlinear segmented input function is started or not, if so, turning to C12, and if not, entering the next step;
c11, selecting a system setting parameter mode, determining a range upper and lower limit parameter, and turning to C13;
c12, selecting a self-defined parameter mode, and determining an upper and lower range limit parameter;
c13, determining upper and lower limit parameters of the measuring range;
c14, converting data according to the measuring range and the input value, and turning to C20;
c15, judging whether the nonlinear input type is a thermocouple or a thermal resistor, if the nonlinear input type is the thermocouple, turning to C17, and if the nonlinear input type is the thermal resistor, entering the next step;
c16, converting the voltage signal into a resistance signal, and converting into C19;
c17, calculating a compensation voltage according to the cold end temperature value;
c18, calculating the voltage value after the temperature compensation of the thermocouple;
c19, calculating a temperature value by table lookup;
and C20, determining the measured value.
In steps S5 and S6, a single-point setting value mode or a control section setting value mode is adopted to determine a setting value, and a PID calculation is performed by selecting a packet PID parameter determination or default PID parameter mode, wherein the PID parameter determination in the single-point mode, as shown in fig. 5, includes the following steps:
d1, determining a measured value;
d2, judging whether the program segment control set value mode is started, if so, entering the program segment control mode, and if not, entering the next step;
d3, entering a single-point set value mode and determining a set value;
d4, calculating an error value according to the measured value and the set value;
d5, judging whether the packet amplitude limiting output function is started, if so, turning to D9, and if not, entering the next step;
d6, selecting default parameters of the system;
d7, determining upper and lower limit amplitude values of the output value;
d8, selecting default PID parameters of the system, and turning to D20;
d9, comparing the measured value with the packet amplitude limiting set value to determine the packet amplitude limiting group number;
d10, determining the upper and lower limiting amplitude values of the output value according to the limiting group number;
d11, determining calling packet PID parameters according to the amplitude limiting group number, and converting to D20;
d12, determining PID parameters.
The program segment control mode determines the PID parameters and control output values, as shown in fig. 4, including the steps of:
f1, determining the control mode as a program segment control set value mode;
f2, judging the current running state of the program section, if the current running state is a reset state, turning to F11, if the current running state is an end state, turning to F12, and if the current running state is a running or pause state, entering the next step;
f3, determining the number of the program segment currently running;
f4, determining the current set value according to the running state time parameter;
f5, calculating an error value according to the measured value and the set value;
f6, selecting the packet PID parameter group number and the packet amplitude limiting output group number set in the segment according to the current operation segment number;
f7, determining the upper and lower limiting amplitude values of the output value according to the grouping limiting output group number parameter;
f8, calling the packet PID parameters according to the packet PID group number;
f9, determining PID parameters;
f10, carrying out PID operation to obtain a final output value, and turning to F13;
f11, setting the output value for the reset state, and turning to F13;
f12, setting an output value for the end state;
and F13, determining a control output value.
In step S6, a final output value is obtained according to the final output value and the upper and lower limiter values, as shown in fig. 6, including the following steps:
p1, determining PID parameters;
p2, setting an incremental PID algorithm, if a differential advance algorithm is adopted, turning to P4, if a proportional differential advance algorithm is adopted, turning to P5, and if a normal PID algorithm is adopted, entering the next step;
p3, the error value is used as an input value, and the batch is transferred to P6;
p4, taking the measured value as the input value of a differential term, and turning to P6;
p5, measured values as input values for proportional and differential terms;
p6, calculating an incremental output value;
p7, calculating a final output value;
p8, comparing the final output value with the upper and lower limit limiting values, and carrying out overrun judgment;
p9, determining the control output value.
In step S6, the output control output values may be output in groups, as shown in fig. 7, including the steps of:
g1, calculating a final output value;
g2, judging whether the packet amplitude limiting output function is started, if so, turning to G4, and if not, entering the next step;
g3, selecting default parameters of the system;
g4, selecting a limiting output parameter;
g5, determining the upper limit and the lower limit of the final output value;
g6, carrying out overrun judgment according to the final output value and the upper and lower limiting values of the amplitude limit;
g7, determining a control output value;
g8, and finishing.
The output in step S7, including control output, transmission output, alarm output, and display output, as shown in fig. 8, includes the following steps:
t1, sending a control output value to a control output circuit;
t2, judging whether the control output value exceeds the preset limit, if yes, turning to T5, and if not, entering the next step;
t3, judging whether a transmitting function is set, if not, turning to T6, and if so, entering the next step;
t4, carrying out transmission output according to the control output value and the related parameters;
t5, sending alarm information to an alarm circuit;
and T6, sending display data to the display circuit.
The outputting of the relevant parameters in step S7 includes outputting the relevant parameters of the liquid crystal display, and the liquid crystal display control is controlled by the display chip, as shown in fig. 9, including the following steps:
k1, starting, and initializing parameters;
k2, the display chip receives the control circuit data;
k3, analyzing the key state data;
k4, judging whether the parameters are modified by the keys, if not, turning to K7, and if so, entering the next step;
k5, determining a display mode as a parameter setting interface;
k6, displaying relevant data of the parameter setting interface, and turning to K2;
k7, determining that the display mode is a normal display interface;
k8, judging whether the alarm state data gives an alarm or not, if yes, turning to K10, and if not, entering the next step;
k9, setting the font of the measured value as a normal color, and turning to K11;
k10, setting the font of the measured value as a prominent color;
k11, displaying measured value data;
k12, displaying set value data;
k13, displaying control output value data;
k14, displaying alarm state information;
k15, displaying the state information of the process controller, including manual and automatic state information, self-setting information, digital input information, relay information and communication indicator light information;
k16, K2.
In step S7, the control output is executed to control the actuator to operate and to control the detection parameter within a certain limited range, as shown in fig. 10, and the control includes the following steps:
y1, reading the relevant parameters of the control output function of the system;
y2, reading a control output value;
y3, judging a control output mode, if the control output mode is a linear analog signal, entering the next step, and if the control output mode is a duty ratio switching mode, turning to Y7;
y4, determining the upper limit and the lower limit of the electric output range according to the linear output type;
y5, determining a DA value according to the calculation output value and the upper and lower limit values of the electric output range;
y6, SPI communication sends DA numerical value to control output circuit, realize DA conversion output, change Y14;
y7, judging whether the control output is the controlled silicon control output, if so, turning to Y10, and if not, entering the next step;
y8, judging whether the control output is the transistor control output, if so, turning to Y11, and if not, entering the next step;
y9, determining that the control output type is a relay, determining the control output period of the relay according to the parameters, and turning to Y12;
y10, determining the control output period of the controllable silicon according to the parameters, and turning to Y12;
y11, determining the control output period of the transistor according to the parameters;
y12, calculating the conduction time according to the output value and the control output period;
y13, controlling the conduction of the output control end according to the conduction time;
and Y14, finishing.
The control method also comprises an interrupt control method, wherein interrupt control can be performed at any node in the control process so as to timely process some problems according to actual conditions, and the method comprises the following steps:
m1, start of interrupt;
m2, judging the interrupt type, if the interrupt type is DI interrupt, turning to M6, if the interrupt type is key interrupt, turning to M8, and if the interrupt type is communication interrupt, entering the next step;
m3, receiving communication data;
m4, entering data processing;
m5, transmitting communication data, and turning to M10;
m6, judging the DI state;
m7, executing the DI definition function;
m8, judging the state of the key;
m9, executing key functions;
m10, interrupt return.
In the control process of the process controller, the data are grouped and then processed, so that the control efficiency is improved.
The embodiments of the present invention are preferred embodiments of the present invention, and the scope of the present invention is not limited by these embodiments, so: all equivalent changes made according to the structure, shape and principle of the invention are covered by the protection scope of the invention.

Claims (8)

1. A method of group control of a process controller, characterized by: the device comprises an input circuit, an AD conversion circuit, a control circuit and an output circuit of at least one loop, wherein the input circuit of each loop has the same structure, the input circuit comprises a resistance input circuit, a first voltage input circuit, a second voltage input circuit, a current input circuit, a thermocouple input circuit and a thermal resistance input circuit, the second voltage input circuit, the first voltage input circuit, the current input circuit, the thermocouple input circuit and the thermal resistance input circuit are respectively used for measuring data of a resistor, a voltage, a current, a thermocouple and a thermal resistance, the resistance input circuit, the second voltage input circuit, the first voltage input circuit, the current input circuit, the thermocouple input circuit and the thermal resistance input circuit share a part of circuits, the shared part of circuits comprises a first filter circuit and a switching circuit, the output of each sensor is respectively connected with the input of the first filter circuit, and the output of the first filter circuit is connected with the input of the switching circuit; the thermocouple input circuit, the current input circuit, the first voltage input circuit, the resistance input circuit and the current input circuit also share a second filter circuit, the input of the second filter circuit is connected with the switching circuit, and the output of the second filter circuit is connected with the AD conversion circuit; the input of the voltage division circuit in the second voltage input circuit is connected with the output of the switching circuit, and the output of the voltage division circuit is connected with the AD conversion circuit; the control circuit is connected with the switching circuit;
the control method comprises the following steps:
s1, starting up, and initializing the system;
s2, determining a first loop;
s3, determining the type of an input signal, controlling the switching of an input circuit according to the type of the input signal, determining the programmable gain amplification factor during AD conversion, performing analog-to-digital conversion processing on the input signal, and converting the input analog signal into a digital signal;
s4, acquiring signals, determining the range of the input signals according to the types and the sizes of the input signals, performing range conversion, and performing range conversion calculation according to the types of the input signals, the voltage value of the input end of the AD conversion chip and the parameter setting of the upper limit and the lower limit of the range to obtain the measured values;
s5, determining the set value of the input signal by adopting a single-point or program segment control mode;
s6, performing PID operation by selecting a grouping or default mode, determining a final output value, and obtaining a control output value according to the final output value and upper and lower limit amplitude values;
s7, outputting a control output value and related data;
s8, judging whether the last loop is present, if yes, turning to S2, and if not, entering the next step;
s9, switching to the next loop;
s10, turning to S3;
in step S5, determining the set value of the input signal in a single-point or program segment control mode, where determining the PID parameter in the single-point mode includes the following steps:
h1, determining a measured value; h2, judging whether the program section control set value mode is started, if so, entering the program section control mode, and if not, entering the next step;
h3, entering a single-point set value mode and determining a set value;
h4, calculating an error value according to the measured value and the set value;
h5, judging whether the packet amplitude limiting output function is started, if so, turning to H9, and if not, entering the next step;
h6, selecting default parameters of the system;
h7, determining upper and lower limit amplitude values of the output value;
h8, selecting default PID parameters of a system, and turning to H12;
h9, comparing the measured value with the packet amplitude limiting set value to determine the packet amplitude limiting group number;
h10, determining the upper and lower limiting amplitude values of the output value according to the limiting group number;
h11, determining calling packet PID parameters according to the amplitude limiting group number, and converting to H12;
h12, determining PID parameters;
the program segment control mode determines PID parameters and control output values, and comprises the following steps:
f1, determining the control mode as a program segment control set value mode;
f2, judging the current running state of the program section, if the program section is in a reset state, turning to F11, if the program section is in an end state, turning to F12, and if the program section is in a running or pause state, entering the next step;
f3, determining the number of the program segment currently running;
f4, determining the current set value according to the running state time parameter; f5, calculating an error value according to the measured value and the set value;
f6, selecting the packet PID parameter group number and the packet amplitude limiting output group number set in the segment according to the current operation segment number;
f7, determining the upper and lower limiting amplitude values of the output value according to the grouping limiting output group number parameter;
f8, calling the packet PID parameters according to the packet PID group number;
f9, determining PID parameters;
f10, carrying out PID operation to obtain a final output value, and turning to F13;
f11, setting the output value for the reset state, and turning to F13;
f12, setting an output value for the end state;
f13, determining a control output value.
2. The process controller group control method of claim 1, wherein: the input signal processing analog-to-digital conversion in step S3 includes the steps of:
a1, judging whether the input signal is voltage input with the upper limit larger than 2V, if so, turning to A5, and if not, entering the next step;
a2, judging whether the input signal is the thermocouple signal input, if so, turning to A6, otherwise, entering the next step;
a3, judging whether the input signal is a current signal input, if so, turning to A8, and if not, entering the next step;
a4, judging whether the input signal is a resistance signal input, if so, turning to A9, and if not, turning to A10;
a5, switching on a voltage division circuit, and turning to A10;
a6, reading the measured value of the temperature sensor;
a7, switching on the thermocouple open-circuit detection circuit, turning to A10;
a8, switching on a sampling resistor, converting a current signal into a voltage signal, and converting into A10;
a9, switching on a current source, and converting the resistance signal into a voltage signal;
a10, selecting an input channel of an AD conversion chip;
a11, setting a programmable gain amplification factor of an AD conversion chip;
a12, starting AD conversion;
and A13, outputting the AD conversion result.
3. The process controller group control method of claim 1, wherein: in step S4, the method for performing range conversion and determining a measurement value by using different ranges for different input signal types or sizes includes the following steps:
c1, converting the AD conversion result into a voltage value again according to the reference voltage;
c2, judging whether the input signal type is a linear signal, if not, turning to C15, and if so, entering the next step;
c3, judging whether the input signal type is a current signal, if so, turning to C6, and if not, entering the next step;
c4, judging whether the input signal type is a resistance signal, if so, turning to C7, and if not, entering the next step;
c5, judging whether the input signal type is a voltage signal with the upper limit larger than 2V, if not, turning to C9, and if so, turning to C8;
c6, converting the voltage signal into a current signal, and converting into C9;
c7, converting the voltage signal into a resistance signal, and converting into C9; c8, carrying out amplification calculation on the voltage value;
c9, determining the input value of the input signal;
c10, judging whether a user-defined nonlinear segmented input function is started or not, if so, turning to C12, and if not, entering the next step;
c11, selecting a system setting parameter mode, determining upper and lower range limit parameters, and turning to C13;
c12, selecting a self-defined parameter mode, and determining an upper and lower range limit parameter;
c13, determining the upper and lower limit parameters of the measuring range;
c14, converting data according to the measuring range and the input value, and turning to C20;
c15, judging whether the nonlinear input type is a thermocouple or a thermal resistor, if the nonlinear input type is the thermocouple, turning to C17, and if the nonlinear input type is the thermal resistor, entering the next step;
c16, converting the voltage signal into a resistance signal, and converting into C19;
c17, calculating a compensation voltage according to the cold end temperature value;
c18, calculating the voltage value after the thermocouple temperature compensation;
c19, calculating a temperature value by table lookup;
and C20, determining the measured value.
4. The process controller group control method of claim 1, wherein: carrying out PID operation to obtain a final output value, and comprising the following steps:
p1, determining PID parameters;
p2, judging the setting of the incremental PID algorithm, if adopting a differential advance algorithm, switching to P4, if adopting a proportional differential advance algorithm, switching to P5, and if adopting a normal PID algorithm, entering the next step;
p3, taking the error value as an input value, and turning to K6;
p4, taking the measured value as the input value of a differential term, and turning to K6;
p5, measured values as input values for proportional and differential terms;
p6, calculating an incremental output value;
p7, calculating a final output value;
p8, comparing the final output value with the upper and lower limit limiting values, and carrying out overrun judgment;
p9, determining the control output value.
5. The process controller group control method of claim 1, wherein: carrying out PID operation and grouping output control output values, and comprising the following steps:
g1, calculating a final output value;
g2, judging whether the packet amplitude limiting output function is started, if so, turning to G4, and if not, entering the next step;
g3, selecting default parameters of the system;
g4, selecting a limiting output parameter;
g5, determining the upper limit and the lower limit of the final output value;
g6, carrying out overrun judgment according to the final output value and the upper and lower limiting values of the amplitude limit;
g7, determining a control output value;
g8, and finishing.
6. The process controller group control method of claim 1, wherein: the output in step S7, including control output, transmission output, alarm output, display output, includes the following steps:
t1, sending the control output value to the control output circuit;
t2, judging whether the control output value exceeds the preset limit, if yes, turning to T5, and if not, entering the next step;
t3, judging whether a transmitting function is set, if not, turning to T6, and if so, entering the next step;
t4, carrying out transmission output according to the control output value and the related parameters; t5, sending alarm information to an alarm circuit;
and T6, sending display data to a display circuit.
7. The process controller group control method of claim 6, wherein: the display output is controlled by a display chip, and the method comprises the following steps:
k1, starting, and initializing parameters;
k2, the display chip receives control circuit data;
k3, analyzing the key state data;
k4, judging whether the parameters are modified by the keys, if not, turning to K7, and if so, entering the next step;
k5, determining a display mode as a parameter setting interface;
k6, displaying related data of a parameter setting interface, and turning to K2;
k7, determining that the display mode is a normal display interface;
k8, judging whether the alarm state data gives an alarm or not, if yes, turning to K10, and if not, entering the next step;
k9, setting the font of the measured value as normal color, and turning to K11;
k10, setting the font of the measured value as a prominent color;
k11, displaying measured value data;
k12, displaying set value data;
k13, displaying control output value data;
k14, displaying alarm state information;
k15, displaying the state information of the process controller, including manual and automatic state information, self-setting information, digital input information, relay information and communication indicator light information;
k16, K2.
8. The process controller group control method of claim 1, wherein: in step S7, the control output is executed, and the control includes the steps of:
y1, reading the relevant parameters of the control output function of the system;
y2, reading the control output value;
y3, judging a control output mode, if the control output mode is a linear analog signal, entering the next step, and if the control output mode is a duty ratio switching mode, turning to Y7;
y4, determining the upper limit and the lower limit of the electric output range according to the linear output type;
y5, determining a DA value according to the calculation output value and the upper and lower limit values of the electric output range;
y6, SPI communication sends DA numerical value to control output circuit, realize DA conversion output, change Y14;
y7, judging whether the control output is the controlled silicon control output, if so, turning to Y10, and if not, entering the next step;
y8, judging whether the control output is the transistor control output, if so, turning to Y11, and if not, entering the next step;
y9, determining that the control output type is a relay, determining the control output period of the relay according to the parameters, and turning to Y12;
y10, determining the control output period of the controlled silicon according to the parameters, and turning to Y12;
y11, determining the control output period of the transistor according to the parameters; y12, calculating the conduction time according to the output value and the control output period;
y13, controlling the conduction of the output control end according to the conduction time;
and Y14, finishing.
CN201910372440.2A 2019-05-06 2019-05-06 Process controller group control method Active CN110058551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910372440.2A CN110058551B (en) 2019-05-06 2019-05-06 Process controller group control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910372440.2A CN110058551B (en) 2019-05-06 2019-05-06 Process controller group control method

Publications (2)

Publication Number Publication Date
CN110058551A CN110058551A (en) 2019-07-26
CN110058551B true CN110058551B (en) 2022-08-19

Family

ID=67322274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910372440.2A Active CN110058551B (en) 2019-05-06 2019-05-06 Process controller group control method

Country Status (1)

Country Link
CN (1) CN110058551B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111856985A (en) * 2020-03-18 2020-10-30 石家庄德堃电子科技有限公司 Advanced algorithm intelligent PID process controller

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298149A (en) * 2014-09-22 2015-01-21 北京工业大学 Self-adaptive range signal collecting circuit of chromatographic instrument

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7113834B2 (en) * 2000-06-20 2006-09-26 Fisher-Rosemount Systems, Inc. State based adaptive feedback feedforward PID controller
CN101119115B (en) * 2006-08-03 2011-06-01 深圳达实智能股份有限公司 Multi-channel A/D conversion device and method
CN201926890U (en) * 2011-01-24 2011-08-10 山东省科学院海洋仪器仪表研究所 Field monitoring equipment for ocean parameters
CN201993599U (en) * 2011-03-25 2011-09-28 大连经济技术开发区山海电子有限公司 Self-turning PID (piping and instruments diagram) controller
CN206440957U (en) * 2016-03-08 2017-08-25 石家庄德堃电子科技有限公司 A kind of four loops position formula Controlling Apparatus for Processes
CN106227072B (en) * 2016-08-31 2018-08-10 福建顺昌虹润精密仪器有限公司 A kind of Intelligence Regulator and its adjusting method
CN106527121A (en) * 2016-12-20 2017-03-22 上海华林工业气体有限公司 PID control device with amplitude limiter and control method
CN108227481A (en) * 2018-01-27 2018-06-29 石家庄德堃电子科技有限公司 A kind of multi-functional process procedures controllers of PID and its control flow of band feed

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298149A (en) * 2014-09-22 2015-01-21 北京工业大学 Self-adaptive range signal collecting circuit of chromatographic instrument

Also Published As

Publication number Publication date
CN110058551A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
CN101257331B (en) Gain automatic correction method and transmitter
CN101592961B (en) Temperature control module and method thereof
CN110058551B (en) Process controller group control method
CN103606812B (en) A kind of laser optical power self-adaptation control method based on MCU
CN109859702A (en) A kind of 3D lookup table generating method, display color calibrating method, display color correction system
CN110333747B (en) Temperature and humidity control method for drying room
CN110007634A (en) A kind of process controller control method
CN219087157U (en) Conversion device and information interaction system comprising same
CN115770930A (en) Welding machine equipment and voltage calibration method and device thereof
CN114546688A (en) Temperature control algorithm
CN110069031A (en) A kind of high temperature sensitive type pressure sensing control system and method
CN202382355U (en) Temperature detection and control system for air-conditioner
EP2871545B1 (en) Multiple alternative automation input system and method
CN202533755U (en) Sampling circuit for paperless recording instrument
CN113867438A (en) Method and system for measuring and controlling temperature of electric heating furnace of lubricating oil evaporation loss tester
US10917104B2 (en) ADC sampling and resource usage optimization method using active variable sampling and active variable phase control
US8738313B2 (en) Measurement apparatus
CN108390599A (en) A kind of insulator climbing robot multijaw driving motor synchronous control system and method
CN217640039U (en) Temperature controller
CN215813884U (en) Constant current source device and system
CN103792969A (en) Multi-loop intelligent temperature control module
CN102541023A (en) High-precision control system for digital and analog combination
US9785135B2 (en) Multiple alternative automation input system and method
CN115047775A (en) Equipment adjusting method and device, electronic equipment and storage medium
CN105628094A (en) Temperature and humidity acquisition terminal based on temperature complementation and acquisition method thereof

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