CN101082818A - PLC real time multitask control method special for wave crest soldering/refluxing soldering - Google Patents

PLC real time multitask control method special for wave crest soldering/refluxing soldering Download PDF

Info

Publication number
CN101082818A
CN101082818A CN 200610083028 CN200610083028A CN101082818A CN 101082818 A CN101082818 A CN 101082818A CN 200610083028 CN200610083028 CN 200610083028 CN 200610083028 A CN200610083028 A CN 200610083028A CN 101082818 A CN101082818 A CN 101082818A
Authority
CN
China
Prior art keywords
task
soldering
temperature curve
communication
algorithm
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.)
Granted
Application number
CN 200610083028
Other languages
Chinese (zh)
Other versions
CN100538566C (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.)
SHENZHEN TONCEN INTELLIGENCE CONTROL SYSTEM CO Ltd
Original Assignee
SHENZHEN TONCEN INTELLIGENCE CONTROL SYSTEM 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 SHENZHEN TONCEN INTELLIGENCE CONTROL SYSTEM CO Ltd filed Critical SHENZHEN TONCEN INTELLIGENCE CONTROL SYSTEM CO Ltd
Priority to CNB2006100830281A priority Critical patent/CN100538566C/en
Publication of CN101082818A publication Critical patent/CN101082818A/en
Application granted granted Critical
Publication of CN100538566C publication Critical patent/CN100538566C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electric Connection Of Electric Components To Printed Circuits (AREA)

Abstract

The invention discloses a real-time multi-task controlling method of specific PLC of flow soldering/reflow soldering, which is characterized by the following: dividing PLC control task into temperature curve adjusting algorism task, communication task and logic control task according to the flow soldering/reflow soldering technique and control property; controlling the executing priority of temperature curve adjusting algorism task, communication task and logic control task; improving the control efficiency and control precision of specific PLC for flow soldering/reflow soldering greatly.

Description

Wave-soldering/Reflow Soldering PLC real time multitask control method special
[technical field]
The invention belongs to programmable logic controller (PLC) (Programmable Logic Controller; PLC) technical field refers in particular to a kind of real time multitask control method of realizing wave-soldering, reflow soldering process in programmable logic controller (PLC).
[background technology]
First-selected product as discrete control, programmable logic controller (PLC) (below be referred to as PLC) has obtained developing rapidly in the 1980s to the nineties, its with storage carry out interrelated logic computing, sequential control, regularly, the instruction of operations such as counting and computing, and operate the control that realizes all kinds of machineries or production run by digital input and output.The user writes control program according to the technological requirement of production run, and pre-deposits in the user memory of PLC, and the content according to the control program that is deposited in during operation is carried out one by one, to finish the desired operation of the technological process of production.The programmable counter that instruction program step memory address is arranged in the CPU of PLC, in program operation process, in every one step of execution, programmable counter adds 1 automatically, program is carried out the final step (being generally END instructs) successively from the initial step (step sequence number be zero), and then returns initial step loop computation.PLC whenever finishes a required time of cycling and is called a scan period.The state acquisition that existing wave-soldering/Reflow Soldering specific PLC adopts the clock scan of single task or logic instruction that watchdog routine is come handling procedure itself and outside I/O passage mostly with refresh, this processing mode directly caused PLC's " control rate " depend on the size of application program, its undoubtedly with the I/O passage in the control of high real-time require to disagree.In wave-soldering, Reflow Soldering control system, the control accuracy of temperature curve is required very high, control with single-threaded PLC and just to be difficult to reach it temperature curve is controlled high-precision demand.
[summary of the invention]
The object of the present invention is to provide a kind of wave-soldering/Reflow Soldering PLC real time multitask control method special, to improve the control efficiency and the control accuracy of wave-soldering/Reflow Soldering specific PLC.
The object of the present invention is achieved like this: a kind of wave-soldering/Reflow Soldering PLC real time multitask control method special, it is divided into temperature curve with control task and regulates algorithm task, communication task and logic control task three parts, wherein, what temperature curve was regulated the processing of algorithm task is the scene temperature of gathering the wave-soldering/welder of confluxing skill, and scene temperature and the desired temperature that collects carried out combined calculation, then result of calculation is exported to corresponding output port; Communication task is handled is communication request with external unit; What the logic control task was handled is the required handling procedure of wave-soldering/reflow soldering process, and its control method includes following steps:
(1), system initialization;
(2), create the logic control task, and be pressed into the ready task formation;
(3), the sample clock generator of detection system, as time of sample clock generator more than or equal to the default sampling time, then creating temperature curve regulates the algorithm task and is pressed into the ready task formation, execution in step (4) then, as time of sample clock generator less than the default sampling time, direct execution in step (4) then;
(4), check whether temperature curve adjusting algorithm task is arranged, regulate the algorithm task in the ready task formation, then continue step (5), as do not have temperature curve to regulate the algorithm task, then continue step (6) if any temperature curve;
(5), carry out this temperature curve and regulate the algorithm task, regulate the algorithm task as in the system time sheet that distributes, finishing temperature curve, then return step (3) behind the sample clock generator of resetting system, do not regulate the algorithm task as in the system time sheet that distributes, finishing temperature curve, then hang up and return step (3) after this temperature curve is regulated the algorithm task;
(6), check in the ready task formation whether communication task is arranged, the communication request that this communication task is initiated by external unit and creating, communication task is in case create, will be pressed into the ready task formation,, then continue step (7) if any communication task, as there are not communication task, then an execution in step (8);
(7), carry out this communication task, as in the system time sheet that distributes, finishing communication task, then directly return step (3), as in the system time sheet that distributes, not finishing communication task, return step (3) after then hanging up this communication task;
(8), actuating logic control task, as completion logic control task in the system time sheet that distributes, then return execution in step (2),, return execution in step (3) after then hanging up this logic control task as completion logic control task not in the system time sheet that distributes.
Than prior art, beneficial effect of the present invention is: related wave-soldering/Reflow Soldering PLC real time multitask control method special overcomes in the prior art controls with single-threaded PLC that the existing real-time of wave-soldering/reflow soldering process is poor, control efficiency is low and the shortcoming of control accuracy difference, adopt parallel multitask structure, can improve control efficiency and the precision of PLC in wave-soldering/Reflow Soldering is used greatly.
[description of drawings]
The present invention will be further described below in conjunction with drawings and Examples.
Fig. 1 is the process flow diagram of wave-soldering of the present invention/Reflow Soldering PLC real time multitask control method special.
[embodiment]
Wave-soldering disclosed in this invention/Reflow Soldering PLC real time multitask control method special is to overcome in the prior art controls with single-threaded PLC that the existing real-time of wave-soldering/reflow soldering process is poor, control efficiency is low and the shortcoming of control accuracy difference, to improve the control efficiency and the control accuracy of wave-soldering/Reflow Soldering specific PLC.At first, the characteristics according to wave-soldering/reflow soldering process and control are divided into temperature curve adjusting algorithm task, communication task and logic control task three parts with the PLC control task.What temperature curve was regulated the processing of algorithm task is the scene temperature of gathering the wave-soldering/welder of confluxing skill, and scene temperature and the desired temperature that collects carried out combined calculation, then result of calculation is exported to corresponding output port, because of the temperature acquisition frequency directly determines the adjustment precision, so it is defined as the highest task of priority.Communication task is handled is and communication request such as external units such as programmable device, host computer, HMI, frequency converter, intelligence instruments, it is created by the communication request of external unit initiation, and priority is lower than temperature curve adjusting algorithm task but is higher than the logic control task.What the logic control task was handled is the required handling procedure of wave-soldering/reflow soldering process, realize functions such as transmission, scaling powder coating, preheating, soaking, backflow heating, tin stove crest, hot blast cutter and cooling, because of these functions are the logic control task, real-time response requires lower, so its priority is minimum.
In conjunction with shown in Figure 1, control method of the present invention is as described below, behind the system initialization (step S10), at first creates the logic control task, and is pressed into ready task formation (step S11).The sample clock generator of detection system, the time and the default sampling time (step S12) of comparing sample clock generator, as time of sample clock generator more than or equal to the default sampling time, then creating temperature curve regulates the algorithm task and is pressed into ready task formation (S13), carry out following steps then, as time of sample clock generator less than the default sampling time, then directly carry out following steps.Whether check has temperature curve to regulate algorithm task (step S14) in the ready task formation, regulate the algorithm task if any temperature curve, then carry out this temperature curve and regulate algorithm task (step S15), judge that more whether can finish this temperature curve in the system time sheet that distributes regulates algorithm task (step S16), regulate the algorithm task as in the system time sheet that distributes, finishing temperature curve, then return step S12 behind the sample clock generator of resetting system (step S17), do not regulate the algorithm task as in the system time sheet that distributes, finishing temperature curve, then hang up and return step S12 after this temperature curve is regulated algorithm task (S18); As there is not temperature curve to regulate the algorithm task, then check whether communication task (step S19) is arranged in the ready task formation, communication task is created by the communication request of external unit initiation, communication task is in case create, will be pressed into the ready task formation, if any communication task, then carry out this communication task (step S20), can judgement this communication task in back finish (step S21) in the system time sheet that distributes, as in the system time sheet that distributes, finishing communication task, then directly return step S12,, return step S12 after then hanging up this communication task (step S22) as in the system time sheet that distributes, not finishing communication task.In the process of carrying out step S19, there are not communication task, then actuating logic control task (step S23) as in the ready task formation, checking.Judge that can this logic control task finish (step S24) as completion logic control task in the system time sheet that distributes in the system time sheet that distributes, then return execution in step S11, as completion logic control task not in the system time sheet that distributes, return execution in step S12 after then hanging up this logic control task (step S25).
Above-mentioned wave-soldering/Reflow Soldering PLC real time multitask control method special adopts parallel multitask structure, in the technology controlling and process of wave-soldering/Reflow Soldering, can improve control efficiency and control accuracy greatly.

Claims (1)

1. wave-soldering/Reflow Soldering PLC real time multitask control method special, it is characterized in that: it is divided into temperature curve with control task and regulates algorithm task, communication task and logic control task three parts, wherein, what temperature curve was regulated the processing of algorithm task is the scene temperature of gathering the wave-soldering/welder of confluxing skill, and scene temperature and the desired temperature that collects carried out combined calculation, then result of calculation is exported to corresponding output port; Communication task is handled is communication request with external unit; What the logic control task was handled is the required handling procedure of wave-soldering/reflow soldering process, and its control method includes following steps:
(1), system initialization;
(2), create the logic control task, and be pressed into the ready task formation;
(3), the sample clock generator of detection system, as time of sample clock generator more than or equal to the default sampling time, then creating temperature curve regulates the algorithm task and is pressed into the ready task formation, execution in step (4) then, as time of sample clock generator less than the default sampling time, direct execution in step (4) then;
(4), check whether temperature curve adjusting algorithm task is arranged, regulate the algorithm task in the ready task formation, then continue step (5), as do not have temperature curve to regulate the algorithm task, then continue step (6) if any temperature curve;
(5), carry out this temperature curve and regulate the algorithm task, regulate the algorithm task as in the system time sheet that distributes, finishing temperature curve, then return step (3) behind the sample clock generator of resetting system, do not regulate the algorithm task as in the system time sheet that distributes, finishing temperature curve, then hang up and return step (3) after this temperature curve is regulated the algorithm task;
(6), check in the ready task formation whether communication task is arranged, the communication request that communication task is initiated by external unit and creating, communication task is in case create, will be pressed into the ready task formation,, then continue step (7) if any communication task, as there are not communication task, then an execution in step (8);
(7), carry out this communication task, as in the system time sheet that distributes, finishing communication task, then directly return step (3), as in the system time sheet that distributes, not finishing communication task, return step (3) after then hanging up this communication task;
(8), actuating logic control task, as completion logic control task in the system time sheet that distributes, then return execution in step (2),, return execution in step (3) after then hanging up this logic control task as completion logic control task not in the system time sheet that distributes.
CNB2006100830281A 2006-05-29 2006-05-29 Wave-soldering or Reflow Soldering PLC real time multitask control method special Expired - Fee Related CN100538566C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100830281A CN100538566C (en) 2006-05-29 2006-05-29 Wave-soldering or Reflow Soldering PLC real time multitask control method special

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100830281A CN100538566C (en) 2006-05-29 2006-05-29 Wave-soldering or Reflow Soldering PLC real time multitask control method special

Publications (2)

Publication Number Publication Date
CN101082818A true CN101082818A (en) 2007-12-05
CN100538566C CN100538566C (en) 2009-09-09

Family

ID=38912415

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100830281A Expired - Fee Related CN100538566C (en) 2006-05-29 2006-05-29 Wave-soldering or Reflow Soldering PLC real time multitask control method special

Country Status (1)

Country Link
CN (1) CN100538566C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103203511A (en) * 2013-04-24 2013-07-17 无锡市崇安区科技创业服务中心 Intelligent wave soldering system
CN103399798A (en) * 2013-07-29 2013-11-20 深圳市汇川控制技术有限公司 Multitask control method and multitask control device of PLC (programmable logic controller)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103203511A (en) * 2013-04-24 2013-07-17 无锡市崇安区科技创业服务中心 Intelligent wave soldering system
CN103399798A (en) * 2013-07-29 2013-11-20 深圳市汇川控制技术有限公司 Multitask control method and multitask control device of PLC (programmable logic controller)

Also Published As

Publication number Publication date
CN100538566C (en) 2009-09-09

Similar Documents

Publication Publication Date Title
CN105718257B (en) Timer arrangement and timing method based on embedded system
CN104932463B (en) A kind of standardized designs method of the robust controller in thermal power plant's coordination system
TWI567526B (en) Adjusting clock frequency
CN100538566C (en) Wave-soldering or Reflow Soldering PLC real time multitask control method special
CN105677593A (en) Self-adaption adjustment method and device for write operation timing path of chip storage
CN103823404A (en) Handle signal processing method, device and system
CN106873444A (en) Control device
CN102708079B (en) Be applied to the method and system of the control data transmission of microcontroller
Xia et al. Feedback scheduling: an event-driven paradigm
CN100380316C (en) hardware loop
CN112963899B (en) Precise control method and system for multi-valve multi-mode adjustment
US20160077509A1 (en) Programmable logic controller having low latency
CN112051751B (en) Semi-physical simulation control system for multistage series flash evaporation industrial process
CN109635330A (en) A kind of complex optimization control problem based on direct method accurately and quickly method for solving
CN115251446A (en) Cut tobacco dryer dynamic optimization control method and device based on edge computing unit
CN105022647B (en) A kind of control method and terminal of application installation
CN112579279B (en) Boiler controller serial communication method, storage device and mobile terminal
CN102591200A (en) Field programmable gate array (FPGA) control system development platform
CN111538305A (en) Thermal power generating unit water supply and fuel control intelligent optimization method, system and medium based on demand diagnosis
CN103558762A (en) Method for implementing immune genetic PID controller based on graphic configuration technology
CN202548562U (en) PLC (Programmable Logic Controller) experiment system
CN206270718U (en) Parameter adjustment controls and system
Zhang et al. Energy‐aware scheduling with uncertain execution time for real‐time systems
Qin et al. Design of fuzzy adaptive PID temperature Controller based on FPGA
Santriaji et al. Formalin: Architectural Support for Power & Performance Aware GPU

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090909

Termination date: 20140529