Temperature control device combining logical operation and PID control and method thereof
By combining logical operations and PID control in the molding and foaming device, the problem of low temperature control accuracy is solved, the precise control of the temperature of the mold cavity is achieved, and the molding quality and production efficiency of foamed products are improved. .
Patent Information
- Application Number
- CN202411105837.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-11-22
AI Technical Summary
The temperature control accuracy in the molded foaming device is not high, especially when heating components with high power and high temperature hysteresis, the problem of excessive overshoot is prone to occur, and the lack of intelligent processing is limited, which limits the high-quality and efficient production of lightweight products.
Using a temperature control device that combines logic operations and PID control, the PID algorithm of the cast copper heater and the logic algorithm of the heating plate are controlled by PLC, combined with temperature sensors and relays, precise control of the temperature cavity of the mold cavity is achieved, and temperature control is overcome. The problem of excessive overshoot of the instrument temperature.
It improves the molding quality of foamed products, realizes precise control of the temperature of the mold cavity, enhances the accuracy and stability of temperature control, and is suitable for heaters and heating plates with different temperature attributes, improving production efficiency and stability.
Smart Images

Figure CN118990918A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of compression molding, and specifically relates to a temperature control device and a method thereof which combine logic operation with PID control. Background Art
[0002] The compression foaming device heats and pressurizes the foaming sample through the upper and lower molds. After the gas reaches a saturated state in the sample, it releases the pressure to foam and cools to shape, and finally opens the mold to obtain the desired foam product. The compression foaming device has a simple structure and is easy to operate. The processing cost is lower than that of injection molding and continuous extrusion molding. It has unique advantages in improving the surface quality of foaming materials and preparing foaming materials of different geometric shapes and sizes.
[0003] The temperature control accuracy of the mold cavity in the compression foaming device directly affects the molding quality of lightweight products. At present, the lower computer control system in the temperature control mechanism of the compression foaming device mainly adopts the temperature control method of the temperature control instrument, that is, the built-in instructions of the temperature control instrument are used to control the on and off time of the solid-state relay (SSR), and then control the average heating power of each heating element, and finally achieve the purpose of controlling the temperature of the mold cavity. However, this temperature control method has low control accuracy, and it is easy to have a large overshoot problem when controlling high-power and temperature-lagging heating elements. At the same time, the current temperature control mechanism lacks the corresponding upper computer monitoring system to intelligently process the main data of the compression foaming device, which has certain limitations when it is necessary to conduct in-depth research on the main process parameters of the foaming process, which is not conducive to the high-quality and efficient production of lightweight products. Summary of the invention
[0004] In view of the technical defects existing in the background technology, the present invention proposes a temperature control device and method combining logical operation with PID control, which solves the above technical problems and meets the actual needs. The specific technical solution is as follows: A temperature control device combining logic operation and PID control is applied to compression foaming equipment, comprising a heating mechanism, a cooling mechanism, a temperature control mechanism and a mold, wherein the temperature control mechanism is electrically connected to the heating mechanism, the cooling mechanism and the mold; The heating mechanism comprises a lower heating plate arranged at the bottom, an upper heating plate arranged at the top, and an upper cast copper heater and a lower cast copper heater arranged between the upper heating plate and the lower heating plate and arranged opposite to each other; the mold comprises an upper mold and a lower mold; the upper heating plate and the upper cast copper heater are respectively used to increase the temperature of the upper mold; the lower heating plate and the lower cast copper heater are respectively used to increase the temperature of the lower mold; and the cooling mechanism is used to reduce the temperature of the mold; The temperature control mechanism includes an upper computer monitoring system and a lower computer control system. The upper computer monitoring system is used to collect PLC data and upload it to realize data monitoring, storage, printing and parameter setting functions; the lower computer control system controls the temperature of the upper cast copper heater and the lower cast copper heater through a PID algorithm, and the lower computer control system controls the temperature of the upper heating plate and the lower heating plate through a logic algorithm.
[0005] As a further technical solution of the present invention, the lower computer control system includes a temperature sensor, a PLC, a temperature control instrument and a relay. One end of the temperature control instrument is electrically connected to the heating mechanism and the mold through the temperature sensor, and the other end is electrically connected to the PLC. The PLC controls the heating mechanism and the cooling mechanism through the relay.
[0006] As a further technical solution of the present invention, the lower computer control system also includes an HMI and an Ethernet communication processor, the RS422 serial port of the PLC is fixedly connected to the Ethernet communication processor, another RS422 serial port of the Ethernet communication processor is fixedly connected to the HMI, and the Ethernet interface of the Ethernet communication processor is fixedly connected to the upper computer monitoring system.
[0007] As a further technical solution of the present invention, the cooling mechanism includes a coolant circulation pipeline, a machine tool cooling pump, a waste liquid recovery water tank and a machine tool cooling water tank. One end of the coolant circulation pipeline is connected to the machine tool cooling water tank through the machine tool cooling pump, and the other end is connected to the waste liquid recovery water tank. The coolant circulation pipeline runs through the upper mold and the lower mold.
[0008] As a further technical solution of the present invention, a mold cavity is provided in the lower mold, and the temperature sensor is a spring-type Pt100 temperature sensor.
[0009] As a further technical solution of the present invention, the relay includes an intermediate relay and a solid-state relay, one end of the intermediate relay is connected to the PLC, and the other end is connected to the positive pole of the DC control end of the solid-state relay, the negative pole of the DC control end of the solid-state relay is fixedly connected to the PLC, and the AC end of the solid-state relay is electrically connected to the heating mechanism and the cooling mechanism.
[0010] A temperature control method combining logic operation and PID control, comprising: The cast copper heater uses PID algorithm to control temperature: SA: Set the target temperature of the cast copper heater; SB: The temperature of the copper heater is detected in real time by the temperature sensor and used as a feedback signal; SC: Compare the target temperature described in SA with the temperature detected in real time by SB and calculate the deviation value; SD: Perform PID calculation, including proportional term (P) to directly calculate the proportional control amount according to the size of the deviation value of SC; integral term (I) to integrate the deviation value to eliminate the long-term deviation and calculate the integral control amount; differential term (D): predict the change trend of the deviation value and calculate the differential control amount; SE: The three control quantities of proportion, integration and differentiation are weighted summed to obtain the final control quantity; SF: According to the final control quantity, the PLC is used to control the on and off time of the cast copper heater through a solid-state relay to change the temperature of the cast copper heater; SG: SA to SE are continuously repeated to form a closed-loop control until the temperature of the copper heater is stabilized near the target temperature; The heating plate uses a logic algorithm to control the temperature: S1: first enter the front heating mode; S2: Divide the difference between the mold cavity set temperature and the mold cavity initial temperature into three intervals, namely greater than 28°C, 0-28°C, and less than or equal to 0°C, and determine the interval of the difference between the mold cavity set temperature and the mold cavity initial temperature to obtain a determination result; S3: giving corresponding output values to the heating mechanism and the cooling mechanism according to different determination results; S3.1: When the difference between the set temperature of the mold cavity and the initial temperature of the mold cavity is greater than 28°C; S3.1.1: Give the heating mechanism an output value of 2700; S3.1.2: Determine whether the difference between the set temperature of the mold cavity and the actual temperature of the mold cavity is less than 28°C. If so, proceed to the next step. Otherwise, return to S3.1.1; S3.1.3: The output value of the heating mechanism is 0, and the actual temperature of the mold cavity reaches the set temperature of the mold cavity by relying on the thermal inertia of the heating plate; S3.1.4: Determine whether the set temperature of the mold cavity is less than or equal to the actual temperature of the mold cavity. If so, proceed to the next step. Otherwise, return to S3.1.3; S3.2: When the difference between the set temperature of the mold cavity and the initial temperature of the mold cavity is 0-28°C; S3.2.1: Give the heating mechanism an output value of 600; S3.2.2: Determine whether the set temperature of the mold cavity is less than or equal to the actual temperature of the mold cavity. If so, proceed to the next step. Otherwise, return to S3.2.1; S3.3: When the difference between the set temperature of the mold cavity and the initial temperature of the mold cavity is less than or equal to 0°C; S3.3.1: The output value of the heating mechanism is 0, and the cooling mechanism is started; S3.3.2: Determine whether the set temperature of the mold cavity is greater than the actual temperature of the mold cavity. If so, proceed to the next step. Otherwise, return to S3.3.1; S4: When the actual temperature of the mold cavity reaches the set temperature of the mold cavity, the insulation mode is started immediately; S4.1: Determine whether the set temperature of the mold cavity is less than or equal to the actual temperature of the mold cavity; S4.2: When the set temperature of the mold cavity is less than or equal to the actual temperature of the mold cavity, the output value of the heating mechanism is 0, and the cooling mechanism is started; S4.3: When the set temperature of the mold cavity is not less than or equal to the actual temperature of the mold cavity, the output value of the heating mechanism is 600, and the cooling mechanism is turned off; S5: Accurately control the actual temperature of the mold cavity to reach the set temperature of the mold cavity.
[0011] As a further technical solution of the present invention, the PID parameter tuning in the PID algorithm temperature control adopts a method of obtaining the average value of the PID parameters after multiple self-tuning: under the same initial temperature and set temperature, multiple experiments are carried out using the step response method-self-tuning program action, and the average value is obtained to obtain the PID parameters in the manual tuning mode.
[0012] The beneficial effects of the present invention are: The present invention uses PLC as the core module of temperature control, and designs traditional PID algorithm temperature control programs and logic algorithm temperature control programs simulating manual control for the upper and lower cast copper heaters and upper and lower heating plates with different temperature properties. Through the combination of these two algorithm programs, PLC is used to control the on and off time of the solid-state relay, and then the average power of the heating mechanism and the cooling mechanism is adjusted, and finally the precise control of the mold cavity temperature is achieved, overcoming the problem of excessive overshoot of temperature control using temperature control instruments, which is beneficial to improving the molding quality of foamed products. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a structural schematic diagram of a temperature control device that combines logical operation with PID control.
[0014] Figure 2 The figure is a structural diagram of the heating mechanism and cooling mechanism of a temperature control device which combines logical operation with PID control.
[0015] Figure 3 It is a system diagram of the control mechanism of a temperature control device that combines logical operation with PID control.
[0016] Figure 4 This is a general diagram of a cooling unit system of a temperature control device that combines logical operations with PID control.
[0017] Figure 5This is a temperature control method that combines logical operations with PID control and is a schematic diagram of the fuzzy PID control algorithm for the upper and lower cast copper heaters.
[0018] Figure 6 This is a temperature control method that combines logical operations with PID control, and is a flow chart of the heating plate logic temperature control program.
[0019] Figure 7 This is a PLC peripheral wiring and I / O address allocation diagram for a temperature control device that combines logical operations with PID control.
[0020] Figure 8 It is a temperature control method that combines logical operation with PID control and a PID algorithm control program diagram.
[0021] Fig. 9 It is a temperature control method that combines logical operation with PID control, including the logic temperature control program of the heating plate part and the ladder diagram of the cooling unit system part.
[0022] Among them: heating mechanism 1, upper heating plate 11, lower heating plate 12, upper cast copper heater 13, lower cast copper heater 14, cooling mechanism 2, coolant circulation pipeline 21, machine tool cooling pump 22, machine tool cooling water tank 23, waste liquid recovery water tank 24, mold 3, upper mold 31, lower mold 32, temperature sensor 41, PLC 42, temperature control instrument 43, intermediate relay 44, solid-state relay 45, HMI 46, Ethernet communication processor 47, and compression foaming molding equipment 5. DETAILED DESCRIPTION
[0023] The following is combined with Figures 1 to 9 The implementation modes of the present invention are described with relevant embodiments, but the implementation modes of the present invention are not limited to the following embodiments, and the present invention relates to relevant necessary components in this technical field, which should be regarded as the known technology in this technical field and can be known and mastered by the technicians in this technical field.
[0024] Example 1
[0025] The present invention provides a temperature control device that combines logic operation with PID control and is applied to a compression foaming molding device 5, such as Figure 1 As shown, it includes a heating mechanism 1, a cooling mechanism 2, a temperature control mechanism and a mold 3, and the temperature control mechanism is electrically connected to the heating mechanism 1, the cooling mechanism 2 and the mold 3.
[0026] like Figure 2As shown, the heating mechanism 1 includes a lower heating plate 12 disposed at the bottom, an upper heating plate 11 disposed at the top, and an upper cast copper heater 13 and a lower cast copper heater 14 disposed between the upper heating plate 11 and the lower heating plate 12 and arranged opposite to each other. The mold 3 includes an upper mold 31 and a lower mold 32, and a mold cavity is provided in the lower mold 32. The upper heating plate 11 and the upper cast copper heater 13 are respectively used to increase the temperature of the upper mold 31, the lower heating plate 12 and the lower cast copper heater 14 are respectively used to increase the temperature of the lower mold 32, and the cooling mechanism 2 is used to reduce the temperature of the mold 3.
[0027] like Figure 3 As shown, the temperature control mechanism includes a host computer monitoring system and a slave computer control system. The host computer monitoring system is used to collect PLC42 data and upload it to realize data monitoring, storage, printing and parameter setting functions; the slave computer control system controls the temperature of the upper cast copper heater 13 and the lower cast copper heater 14 through a PID algorithm, and the slave computer control system controls the temperature of the upper heating plate 11 and the lower heating plate 12 through a logic algorithm.
[0028] like Figure 7 As shown, the lower computer control system includes a temperature sensor 41, a PLC 42, a temperature control instrument 43 and a relay. Preferably, the temperature sensor 41 is a spring-loaded Pt100 temperature sensor. One end of the temperature control instrument 43 is electrically connected to the heating mechanism 1 and the mold 3 through the temperature sensor 41, and the other end is electrically connected to the PLC 42, and the PLC 42 controls the heating mechanism 1 and the cooling mechanism 2 through the relay. The upper cast copper heater 13, the lower cast copper heater 14, the upper heating plate 11, the lower heating plate 12 and one side of the mold 3 mechanism are fixedly connected with a spring-loaded Pt100 temperature sensor.
[0029] The temperature control instrument 43 realizes data exchange with PLC42 through RS485 serial communication, and the other end of the temperature control instrument 43 is fixedly connected with a spring-type Pt100 temperature sensor for reading the real-time temperature of each heating mechanism 1 and the cavity of the mold 3. The peripheral wiring of PLC42 adopts the output end leakage wiring method, that is, the output end of PLC42 is fixedly connected with the negative pole of the DC control end of the solid-state relay 45, and the on-off time of each solid-state relay 45 is adjusted through the built-in temperature control program of PLC42, so as to control the average power of the heating mechanism 1 and the cooling mechanism 2, and finally achieve the purpose of accurately controlling the cavity temperature.
[0030] The relay includes an intermediate relay 44 and a solid-state relay 45. The 24V positive terminal of the PLC 42 is fixedly connected to one end of the intermediate relay 44, which is fixedly connected to the positive DC control terminal of the solid-state relay 45. The negative DC control terminal of the solid-state relay 45 is fixedly connected to the output terminal of the PLC 42. The two AC terminals of the solid-state relay 45 are respectively fixedly connected to the live wire and the power terminals of the upper heating plate 11, the lower heating plate 12, the upper cast copper heater 13, the lower cast copper heater 14 and the machine tool cooling pump 22.
[0031] The lower computer control system also includes HMI46 and Ethernet communication processor 47, the RS422 serial port of PLC42 is fixedly connected to Ethernet communication processor 47, another RS422 serial port of Ethernet communication processor 47 is fixedly connected to HMI46, and the Ethernet interface of Ethernet communication processor 47 is fixedly connected to the upper computer monitoring system. The upper computer monitoring system is composed of a computer and monitoring configuration software. By adopting configuration monitoring technology, the data of PLC42 is collected and uploaded to the computer, so as to realize the functions of monitoring, viewing, printing, storing and parameter setting of the key data of the device on the computer side. The Ethernet interface of Ethernet communication processor 47 is fixedly connected to the computer, and one end of the computer is fixedly connected to a printer.
[0032] Furthermore, the host computer monitoring system uses ForceControl V7.1 configuration software to develop process monitoring interface, data recording interface, mold temperature curve interface, and each heating element and cavity temperature curve interface. The process monitoring interface can monitor the real-time value of the main data of the mold compression foaming device and set the cavity temperature. The main data changes every 30 seconds on the data recording interface, and the main data of the corresponding time can be queried. The "Refresh", "Query", "Print" and "Export CSV" function buttons can respectively realize the latest data query, historical data tracing within the set time period, historical data printing, and historical data EXCEL file format export functions.
[0033] The mold temperature curve interface consists of a real-time mold cavity temperature change curve and a historical mold cavity temperature change curve, which realizes the hyperbolic monitoring of the actual mold cavity temperature value change trend and the set mold cavity temperature. This interface can intuitively reflect the approach of the actual mold cavity temperature to the set mold cavity temperature. Each heating element and mold cavity temperature curve interface fits the real-time collected upper and lower heating plate temperature values, upper and lower cast copper heater temperature values, and mold 3 cavity temperature values into a curve, reflecting their real-time change trend on the computer side, which is convenient for real-time monitoring of changes in the main process parameters of the foaming process.
[0034] like Figure 4As shown, the cooling mechanism 2 includes a coolant circulation pipe 21, a machine tool cooling pump 22, a waste liquid recovery water tank 24 and a machine tool cooling water tank 23. One end of the coolant circulation pipe 21 is connected to the machine tool cooling water tank 23 through the machine tool cooling pump 22, and the other end is connected to the waste liquid recovery water tank 24. The machine tool cooling water tank 23 is provided with coolant, and the waste liquid recovery water tank 24 is provided with waste coolant. The coolant circulation pipe 21 runs through the upper mold 31 and the lower mold 32.
[0035] PLC42 uses GX WORKS2 programming software on the computer to import the program, and adopts the traditional PID algorithm to control the temperature of the upper cast copper heater 13 and the lower cast copper heater 14 with smaller thermal inertia, and adopts the logic algorithm simulating manual control to control the temperature of the upper heating plate 11 and the lower heating plate 12 with larger thermal inertia.
[0036] The present invention uses PLC42 as the core module of temperature control, and designs traditional PID algorithm temperature control programs and logic algorithm temperature control programs simulating manual control for the upper and lower cast copper heaters and upper and lower heating plates with different temperature properties. Through the combination of these two algorithm programs, PLC42 is used to control the on and off time of the solid-state relay 45, and then the average power of the heating mechanism 1 and the cooling mechanism 2 is adjusted, and finally the precise control of the cavity temperature of the mold 3 is achieved, overcoming the problem of excessive overshoot of temperature control using the temperature control instrument 43, which is beneficial to improving the molding quality of foamed products.
[0037] More specifically, the previous temperature control system uses a thermostat to control the temperature, that is, the thermostat adjusts the output value in real time to control the on-off time of the solid-state relay 45, so as to achieve the purpose of controlling the average power of the heating element over a period of time. However, this temperature control method is prone to the disadvantages of delayed response and excessive overshoot when controlling a system with large temperature lag and large inertia. Therefore, the designed real-time temperature control program uses PLC42 as the central control core, and designs a targeted PLC42 internal program algorithm for the different temperature characteristics of the upper and lower heating plates, upper and lower cast copper heaters, and mold 3 in the system to achieve the purpose of precise temperature control.
[0038] By programming, PLC42 can output pulse signals with different pulse widths according to the set temperature of the mold cavity. The duty cycle of the pulse sequence is modulated in conjunction with the built-in real-time temperature control program algorithm of PLC42 to control the time of the pulse signal. The time when the solid-state relay 45 is powered on and off can be controlled, thereby controlling the average power of the heating unit system over a period of time, controlling the temperature of the heating element, and ultimately achieving the purpose of controlling the mold cavity temperature.
[0039] The upper and lower cast copper heaters and the upper and lower heating plates have different temperature characteristics: the upper and lower cast copper heaters are made of brass, which has a higher thermal conductivity, smaller temperature inertia, and weaker temperature hysteresis, and is easily affected by the external environment. The upper and lower heating plates have larger temperature inertia and stronger temperature hysteresis, and are not easily affected by the external environment. Therefore, different temperature control strategies should be adopted for the upper and lower cast copper heaters and the upper and lower heating plates according to their different temperature characteristics.
[0040] Its temperature control method, such as Figure 5 and Figure 6 As shown, including: The upper and lower cast copper heaters adopt the fuzzy PID algorithm temperature control strategy. The schematic diagram of the fuzzy PID control algorithm of the upper and lower cast copper heaters is as follows: Figure 5 shown.
[0041] The cast copper heater uses PID algorithm to control temperature: SA: Set the target temperature of the cast copper heater; SB: The temperature of the copper casting heater is detected in real time by the temperature sensor 41 and used as a feedback signal; SC: Compare the target temperature in SA with the temperature detected in real time by SB and calculate the deviation value; PID controller is a linear controller that is based on the given value The actual output value The deviation value of the control signal .
[0042] SD: Perform PID calculation, including the proportional term (P) to directly calculate the proportional control amount according to the size of the SC deviation value; the integral term (I) to integrate the deviation value to eliminate the long-term deviation and calculate the integral control amount; the differential term (D): predict the change trend of the deviation value and calculate the differential control amount; SE: The three control quantities of proportion, integration and differentiation are weighted summed to obtain the final control quantity; The PID control algorithm is in the form of
[0043] in, is the output value of the PID controller; is the control signal deviation value; is the proportional gain coefficient; is the integration time constant; is the differential time constant; t is the time.
[0044] The PID algorithm transfer function is in the form of ; SF: According to the final control quantity, the PLC 42 is used to control the on and off time of the cast copper heater through the solid-state relay 45 to change the temperature of the cast copper heater; SG: Repeat SA to SE continuously to form a closed-loop control until the temperature of the copper heater stabilizes near the target temperature.
[0045] The PID parameter tuning of this design adopts a parameter setting method that first obtains the PID parameters through multiple self-tuning, and then uses the manual self-tuning mode to adjust the PID parameter size. In the action setting of the PID parameter self-tuning mode, there are two self-tuning action modes: step response method self-tuning and limit cycle method self-tuning.
[0046] Since the present application uses a solid-state relay 45 actuator to control the on and off duration of the cast copper heater, it belongs to the on and off circuit. Therefore, the step response method is used in the self-tuning link to obtain the PID related parameters. Under the same initial temperature and set temperature, the program action of the PID self-tuning step response method was used to conduct multiple experiments and calculate the average value. The PID parameters of the upper and lower cast copper heaters are self-tuned as shown in Table 1.
[0047] Table 1 Upper and lower copper casting heating self-tuning PID parameters
[0048] After the four-step response method - self-tuning and calculating the average value, it is found that the parameters of the upper copper heater 13 KP, TI, KD, and TD are 5556, 476, 0, and 1190 respectively, and the parameters of the lower copper heater 14 KP, TI, KD, and TD are 5063, 476, 0, and 1190 respectively. Taking the upper copper heater 13 as an example, its PID algorithm control program is as follows Figure 8 As shown, Figure 8 (a) is the ladder diagram of the PID controller parameter setting program of the upper copper heater 13, and (b) is the ladder diagram of the PID algorithm execution program. The PID control program is divided into the PID controller parameter setting part and the PID algorithm execution part.
[0049] The implementation of the PID algorithm execution part is mainly completed by coordinating the built-in timer T246 soft element of PLC42 and the real-time changing output value D7 of the PID algorithm. That is, when the accumulated time value of timer T246 is less than the output value D7, the output point Y22 is closed, PLC42 outputs a pulse signal, the DC control end of the solid-state relay 45 drives the AC end to turn on, and the cast copper heater is powered on for heating; when the accumulated time value of timer T246 is greater than or equal to the output value D7, the output point Y22 is disconnected, the DC control end of the solid-state relay 45 drives the AC end to disconnect, and the cast copper heater is powered off. The action time period of the cast copper heater is set to 3s. When the 3s time is up, the timer T is reset to zero through the reset instruction and the timing is restarted. After this program design, the PID algorithm temperature control of the upper and lower cast copper heaters by PLC42 is realized.
[0050] Because the upper and lower heating plates have large temperature inertia and strong temperature hysteresis, the conventional PID temperature control method is prone to excessive oscillation of the cavity temperature curve, slow response speed, and excessive temperature overshoot, which will cause the PID algorithm temperature control to "fail". Therefore, combined with the temperature characteristics of the upper and lower heating plates and a lot of field experience, this design uses a logical temperature control method that simulates manual control to program the upper and lower heating plates.
[0051] like Figure 6 As shown, the heating plate uses a logic algorithm to control the temperature: S1: first enter the front heating mode; S2: Divide the difference between the mold cavity set temperature and the mold cavity initial temperature into three intervals, namely greater than 28°C, 0-28°C, and less than or equal to 0°C, and determine the interval of the difference between the mold cavity set temperature and the mold cavity initial temperature to obtain a determination result; S3: giving corresponding output values to the heating mechanism 1 and the cooling mechanism 2 according to different determination results; S3.1: When the difference between the mold cavity set temperature and the mold cavity initial temperature is greater than 28°C, the mold cavity initial temperature deviates too much from the set temperature; S3.1.1: PLC42 gives the upper and lower heating plates a larger heating output value of 2700 (heating for 2.7 seconds within a 3-second heating cycle), starts the rapid heating mode, and helps the mold cavity temperature quickly rise to the set temperature; S3.1.2: Determine whether the difference between the set cavity temperature and the actual cavity temperature is less than 28°C. If so, proceed to the next step. Otherwise, return to S3.1.1. S3.1.3: At this time, PLC42 has neither heating output nor cooling output, that is, the output value of heating mechanism 1 is 0, and the temperature inertia of the upper and lower heating plates helps the mold cavity temperature reach the set temperature; S3.1.4: Determine whether the set temperature of the mold cavity is less than or equal to the actual temperature of the mold cavity. If it reaches the set temperature, the insulation mode is immediately started. Otherwise, return to S3.1.3; S3.2: When the difference between the mold cavity set temperature and the mold cavity initial temperature is 0~28℃; S3.2.1: PLC42 gives the upper and lower heating plates a small heating output value of 600 (0.6s heating in a 3s heating cycle) to help the mold cavity temperature rise to the set temperature; S3.2.2: Determine whether the set temperature of the mold cavity is less than or equal to the actual temperature of the mold cavity. If it is heated to above the set temperature, the real-time temperature control system insulation mode is immediately started, and PLC42 starts the cooling unit system to cool the mold cavity temperature to below the set temperature value. Otherwise, return to S3.2.1; S3.3: When the difference between the mold cavity set temperature and the mold cavity initial temperature is less than or equal to 0°C, that is, the mold cavity initial temperature is higher than the set temperature; S3.3.1: Stop heating and start cooling mechanism 2 to cool the mold cavity; S3.3.2: Determine whether the set temperature of the mold cavity is greater than the actual temperature of the mold cavity. If it cools below the set temperature, the real-time temperature control system insulation mode is immediately started, and PLC42 gives the heating unit system a minimum output value of 2700 (2.7s heating within a 3s heating cycle) to restore the mold cavity temperature to above the set temperature value. Otherwise, return to S3.3.1; S4: When the actual temperature of the mold cavity reaches the set temperature of the mold cavity, the insulation mode is started immediately; S4.1: Determine whether the set temperature of the mold cavity is less than or equal to the actual temperature of the mold cavity; S4.2: When the set temperature of the mold cavity is less than or equal to the actual temperature of the mold cavity, the output value of the heating mechanism 1 is 0, and the cooling mechanism 2 is started; S4.3: When the set temperature of the mold cavity is not less than or equal to the actual temperature of the mold cavity, the output value of the heating mechanism 1 is 600, and the cooling mechanism 2 is turned off; S5: Accurately control the actual temperature of the mold cavity to reach the set temperature of the mold cavity.
[0052] The rapid heating mode is used when the difference between the mold cavity temperature and the set temperature is too large, such as heating from room temperature to a higher temperature. The rapid heating mode enables the mold cavity temperature to quickly reach the set temperature. The insulation mode is used when the difference between the mold cavity temperature and the set temperature is small. For example, when the mold cavity temperature needs to be maintained near a certain set value, the insulation mode enables the mold cavity temperature to be precisely controlled. In the two different constant temperature control modes, the logical temperature control algorithm can achieve both rapid heating of the mold cavity and precise temperature control, which improves the production efficiency and stability of the mold compression foaming device.
[0053] According to the design idea of the logic temperature control algorithm, the heating unit system and the cooling unit system are designed with automatic programs. The logic temperature control program of the upper heating plate 11 and the ladder diagram of the cooling unit system are shown in the figure. Fig. 9 As shown, Fig. 9 (a) is the ladder diagram of the program for the front heating mode of the upper heating plate 11, (b) is the ladder diagram of the program for the insulation mode of the upper heating plate 11, (c) is the ladder diagram of the program for the temperature control execution of the upper heating plate 11, and (d) is the ladder diagram of the program for the cooling unit system control. Since the program for the upper heating plate 11 is the same as the program for the lower heating plate 12, this program design takes the program for the upper heating plate 11 as an example.
[0054] The logic temperature control algorithm program is divided into a temperature determination module and a temperature control execution module. When the heating / cooling start input point X3 is connected, the temperature determination module starts to execute. This module calculates the cavity temperature D310 at which the upper heating plate 11 should stop heating when heating starts from a lower temperature through the SUB subtraction instruction, and uses the program language of the comparison instruction to describe the above three major working conditions. For different initial working conditions, the MOV instruction is used to give different upper heating plate output values D5, and the comparison instruction is used to determine whether the output point of the cooling unit system is turned on. Taking advantage of the large temperature inertia of the upper heating plate 11, in the case of rapid heating mode, when the difference between the set cavity temperature and the actual cavity temperature is 28°C, the auxiliary relay switch M22 is turned on, and the MOV instruction is used to make the upper heating plate output value D5 0, and the insulation mode is started at the same time.
[0055] In the insulation mode, the set cavity temperature value and the actual cavity temperature value are compared again: if the set cavity temperature is higher than the actual cavity temperature, the output value D5 of the upper heating plate 11 is 0, the upper heating plate 11 stops working, the output point of the cooling unit system is turned on, and the cooling function is started; if the set cavity temperature is lower than the actual cavity temperature, the output value D5 of the upper heating plate 11 is 600, that is, the working time of the upper heating plate 11 is 0.6s within the 3s heating cycle, the output point of the cooling unit system is disconnected, and the cooling function stops.
[0056] The temperature control execution module is similar to the PID temperature control execution module of the upper and lower copper heaters, and is also completed by using a timer with a cycle of 3s and the heating output value D5 of the upper heating plate 11. The execution of the cooling action is controlled by comparing the instructions to control the on and off of the output point of the cooling unit system.
[0057] The following are experimental data of the present invention.
[0058] When in use, the platinum thermal resistor PT100 probe is directly inserted into the mold cavity and placed, and the mold is closed. The time required for the mold cavity to heat to 144°C is recorded under the two heating methods of heating the mold 3 using only the upper and lower heating plates and heating the mold 3 using the cast copper heater and the upper and lower heating plates. The average heating rate of the mold cavity in each case is calculated, and the results are shown in Table 2.
[0059] Table 2 Average heating rate of the chamber under two heating methods with or without cast copper heater
[0060] Among them, in these two heating methods, the heating temperature of the upper and lower heating plates is set to 144°C, the heating temperature in the mold cavity is set to 144°C on the computer, and the computer controls the copper casting heater to start heating by controlling the FX3U-24M programmable logic control module. The upper and lower heating plates and the copper casting heater are all running at full power. After the mold cavity is heated to the temperature required for the material to foam, the mold is kept in the closed state, and the mold 3 is cooled by natural cooling and coolant cooling respectively. The time required from the beginning of cooling to cooling to 120°C (the temperature for demolding and sampling of foamed products) is recorded, and the average cooling rate of the mold cavity under various conditions is calculated respectively. The results are shown in Table 3. The room temperature is 13°C under both cooling methods.
[0061] Table 3 Average cooling rate of the mold cavity under natural cooling and coolant cooling
[0062] From the experimental data analysis in Table 2, it can be seen that after the present invention uses the cast copper heater and the upper and lower heating plates to heat the mold 3, the average heating rate of the mold cavity is significantly improved. Compared with only using the upper and lower heating plates to heat the mold 3, the average heating rate of using the cast copper heater and the upper and lower heating plates to heat the mold 3 is increased by about 1°C / min. This verifies the feasibility of the designed cast copper heater.
[0063] From the experimental data analysis of Table 3, it can be learned that the present invention cools the mold cavity by introducing coolant into the circulating coolant pipeline in the mold 3. Compared with the average cooling rate of natural cooling, this cooling method has significantly improved the average cooling rate, which is beneficial to the rapid cooling, demolding and sampling of the foamed product, and improves the production efficiency of molded foaming.
[0064] The above is only a preferred embodiment of the present invention. It should be pointed out that ordinary technicians in this technical field can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A temperature control device combining logic operation and PID control, applied to a compression foaming molding device (5), characterized in that: It comprises a heating mechanism (1), a cooling mechanism (2), a temperature control mechanism and a mould (3), wherein the temperature control mechanism is electrically connected to the heating mechanism (1), the cooling mechanism (2) and the mould (3); The heating mechanism (1) comprises a lower heating plate (12) arranged at the bottom, an upper heating plate (11) arranged at the top, and an upper cast copper heater (13) and a lower cast copper heater (14) arranged between the upper heating plate (11) and the lower heating plate (12) and arranged opposite to each other; the mold (3) comprises an upper mold (31) and a lower mold (32); the upper heating plate (11) and the upper cast copper heater (13) are respectively used to increase the temperature of the upper mold (31); the lower heating plate (12) and the lower cast copper heater (14) are respectively used to increase the temperature of the lower mold (32); and the cooling mechanism (2) is used to reduce the temperature of the mold (3); The temperature control mechanism comprises an upper computer monitoring system and a lower computer control system. The upper computer monitoring system is used to collect data from a PLC (42) and upload the data to realize data monitoring, storage, printing and parameter setting functions. The lower computer control system controls the temperature of an upper cast copper heater (13) and a lower cast copper heater (14) by means of a PID algorithm. The lower computer control system controls the temperature of an upper heating plate (11) and a lower heating plate (12) by means of a logic algorithm.
2. The temperature control device combining logic operation and PID control according to claim 1 is characterized in that: The lower computer control system comprises a temperature sensor (41), a PLC (42), a temperature control instrument (43) and a relay. One end of the temperature control instrument (43) is electrically connected to the heating mechanism (1) and the mold (3) via the temperature sensor (41), and the other end is electrically connected to the PLC (42). The PLC (42) controls the heating mechanism (1) and the cooling mechanism (2) via the relay.
3. The temperature control method combining logical operation and PID control according to claim 2 is characterized in that: The lower computer control system also includes an HMI (46) and an Ethernet communication processor (47), the RS422 serial port of the PLC (42) is fixedly connected to the Ethernet communication processor (47), another RS422 serial port of the Ethernet communication processor (47) is fixedly connected to the HMI (46), and the Ethernet interface of the Ethernet communication processor (47) is fixedly connected to the upper computer monitoring system.
4. The temperature control device combining logic operation and PID control according to claim 1 is characterized in that: The cooling mechanism (2) comprises a coolant circulation pipeline (21), a machine tool cooling pump (22), a waste liquid recovery water tank (24) and a machine tool cooling water tank (23); one end of the coolant circulation pipeline (21) is connected to the machine tool cooling water tank (23) via the machine tool cooling pump (22), and the other end is connected to the waste liquid recovery water tank (24); the coolant circulation pipeline (21) runs through the upper mold (31) and the lower mold (32).
5. The temperature control device combining logic operation and PID control according to claim 1 is characterized in that: A mold cavity is provided in the lower mold (32), and the temperature sensor (41) is a spring-loaded Pt100 temperature sensor.
6. The temperature control device combining logic operation and PID control according to claim 2 is characterized in that: The relay comprises an intermediate relay (44) and a solid-state relay (45); one end of the intermediate relay (44) is connected to the PLC (42), and the other end is connected to the positive pole of the DC control end of the solid-state relay (45); the negative pole of the DC control end of the solid-state relay (45) is fixedly connected to the PLC (42); and the AC end of the solid-state relay (45) is electrically connected to the heating mechanism (1) and the cooling mechanism (2).
7. A temperature control method combining logical operation and PID control, characterized in that: The temperature control method uses the temperature control device according to any one of claims 1 to 6, comprising: The cast copper heater uses PID algorithm to control temperature: SA: Set the target temperature of the cast copper heater; SB: The temperature of the copper casting heater is detected in real time by a temperature sensor (41) and used as a feedback signal; SC: Compare the target temperature described in SA with the temperature detected in real time by SB and calculate the deviation value; SD: Perform PID calculation, including proportional term (P) to directly calculate the proportional control amount according to the size of the deviation value of SC; integral term (I) to integrate the deviation value to eliminate the long-term deviation and calculate the integral control amount; differential term (D): predict the change trend of the deviation value and calculate the differential control amount; SE: The three control quantities of proportion, integration and differentiation are weighted summed to obtain the final control quantity; SF: Based on the final control quantity, the PLC (42) is used to control the on / off time of the cast copper heater through the solid-state relay (45) to change the temperature of the cast copper heater; SG: SA to SE are continuously repeated to form a closed-loop control until the temperature of the copper heater is stabilized near the target temperature; The heating plate uses a logic algorithm to control the temperature: S1: first enter the front heating mode; S2: Divide the difference between the mold cavity set temperature and the mold cavity initial temperature into three intervals, namely greater than 28°C, 0-28°C, and less than or equal to 0°C, and determine the interval of the difference between the mold cavity set temperature and the mold cavity initial temperature to obtain a determination result; S3: providing corresponding output values to the heating mechanism (1) and the cooling mechanism (2) according to the different determination results; S3.1: When the difference between the set temperature of the mold cavity and the initial temperature of the mold cavity is greater than 28°C; S3.1.1: Give the heating mechanism (1) an output value of 2700; S3.1.2: Determine whether the difference between the set temperature of the mold cavity and the actual temperature of the mold cavity is less than 28°C. If so, proceed to the next step. Otherwise, return to S3.1.1; S3.1.3: The output value of the heating mechanism (1) is 0, and the actual temperature of the mold cavity reaches the set temperature of the mold cavity by relying on the thermal inertia of the heating plate; S3.1.4: Determine whether the set temperature of the mold cavity is less than or equal to the actual temperature of the mold cavity. If so, proceed to the next step. Otherwise, return to S3.1.3; S3.2: When the difference between the set temperature of the mold cavity and the initial temperature of the mold cavity is 0-28°C; S3.2.1: giving the heating mechanism (1) an output value of 600; S3.2.2: Determine whether the set temperature of the mold cavity is less than or equal to the actual temperature of the mold cavity. If so, proceed to the next step. Otherwise, return to S3.2.1; S3.3: When the difference between the set temperature of the mold cavity and the initial temperature of the mold cavity is less than or equal to 0°C; S3.3.1: The output value of the heating mechanism (1) is 0, and the cooling mechanism (2) is started; S3.3.2: Determine whether the set temperature of the mold cavity is greater than the actual temperature of the mold cavity. If so, proceed to the next step. Otherwise, return to S3.3.1; S4: When the actual temperature of the mold cavity reaches the set temperature of the mold cavity, the insulation mode is started immediately; S4.1: Determine whether the set temperature of the mold cavity is less than or equal to the actual temperature of the mold cavity; S4.2: When the set temperature of the mold cavity is less than or equal to the actual temperature of the mold cavity, the output value of the heating mechanism (1) is 0, and the cooling mechanism (2) is started; S4.3: When the set temperature of the mold cavity is not less than or equal to the actual temperature of the mold cavity, the output value of the heating mechanism (1) is 600, and the cooling mechanism (2) is turned off; S5: Accurately control the actual temperature of the mold cavity to reach the set temperature of the mold cavity.
8. The temperature control method combining logical operation and PID control according to claim 7 is characterized in that: The PID parameter tuning in the PID algorithm temperature control adopts the method of obtaining the average value of the PID parameters obtained through multiple self-tuning: under the same initial temperature and set temperature, multiple experiments are carried out using the step response method-self-tuning program action, and the average value is obtained to obtain the PID parameters in the manual tuning mode.
