CN108762185B - Color steel tile fixed-length cutting algorithm based on PLC program control - Google Patents
Color steel tile fixed-length cutting algorithm based on PLC program control Download PDFInfo
- Publication number
- CN108762185B CN108762185B CN201810472104.0A CN201810472104A CN108762185B CN 108762185 B CN108762185 B CN 108762185B CN 201810472104 A CN201810472104 A CN 201810472104A CN 108762185 B CN108762185 B CN 108762185B
- Authority
- CN
- China
- Prior art keywords
- length
- pulse
- speed
- color steel
- fixed
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/054—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/11—Plc I-O input output
- G05B2219/1105—I-O
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Numerical Control (AREA)
- Control Of Metal Rolling (AREA)
Abstract
The invention discloses a color steel tile fixed-length cutting algorithm based on PLC program control, which can realize the batch cutting production of color steel tiles with different lengths by acquiring a high-speed pulse signal through a high-speed counter and carrying out high-speed operation and interruption output, effectively solves the accumulated error in the color steel tile cutting process by adopting a method of fixed-length error rate, inputs information such as set length, cut number and the like through a human-computer interface, ensures the stability of continuously cutting color steel tiles through actual test and correction of length, can effectively control the cut length, number and precision of the color steel tiles, and realizes the accurate fixed-length batch cutting of any length of the color steel tiles on a roof.
Description
Technical Field
The invention belongs to the technical field of color steel tile cutting, and particularly relates to a color steel tile fixed-length cutting algorithm based on PLC program control.
Background
In the process of building a factory building, the color steel tiles are required to be used for capping according to construction standards and requirements, a common operation method is to compress a color steel tape on the ground into the color steel tiles with required lengths and then convey the color steel tiles to a roof from the ground manually, multiple persons need to be arranged for cooperation in the method, and ground workers and roof workers must be skillfully and privately matched to transfer the color steel tiles to relevant stations for laying, so that the labor intensity is high, the production efficiency is low, and potential safety hazards exist in high-altitude operation of the workers. The traditional tile making equipment can not effectively and accurately measure the output length of the color steel tiles, so that the length of the cut color steel tiles is inconsistent, the color steel tiles are required to be continuously adjusted in the laying process, and the laying efficiency of the color steel tiles is greatly influenced, so that a cutting method for improving the cutting precision of the color steel tiles is urgently needed.
Disclosure of Invention
In order to solve the problems, the invention provides a color steel tile fixed-length cutting algorithm based on PLC program control, which collects a high-speed pulse signal through a high-speed counter, performs high-speed operation interrupt output, can realize batch cutting production of color steel tiles with different lengths and ensures cutting precision.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a color steel tile fixed-length cutting algorithm based on PLC program control comprises the following processes:
1) calculating PLC intermediate parameters: according to the encoder pulse P, the encoding perimeter C, the set length L1, the measured length L2 and the deceleration distance L4, a wheel diameter original coefficient C1= P/C, a high speed segment length L5= L1-L4, a fixed length error rate E = L1/L2 and a wheel diameter new coefficient C2= E C1 are calculated;
2) calculation of set length pulse P1: when the fixed-length error rate E =1, setting the length pulse P1= L1 × C1; when the fixed-length error rate E ≠ 1, set the length pulse P1= L1 × C2;
3) calculation of high-speed length pulse P2: when the fixed-length error rate E =1, the high-speed-length pulse P2= L5 × C1; when the fixed-length error rate E ≠ 1, the high-speed-length pulse P2= L5 × C2;
4) the fixed-length primary cutting process: inputting encoder pulses P, an encoding perimeter C, a set length L1 and a deceleration distance L4 through a human-machine interface (HMI), initializing an actual measurement length L2 to be a set length L1, calculating according to steps 1) -3) to obtain set length pulses P1 and high-speed length pulses P2, respectively transmitting the set length pulses P1 and the high-speed length pulses P2 to a high-speed counter, and initializing current length pulses P3 to be zero and transmitting the current length pulses P3 to the high-speed counter; after the PLC program is operated, the current length pulse P3 is continuously increased along with the increase of the cutting length of the color steel tile, and the current length pulse P3 is respectively compared with the set length pulse P1 and the high-speed length pulse P2 in real time:
if the current length pulse P3 is smaller than the high-speed length pulse P2, the high-speed counter outputs high-speed operation, and the color steel tile is cut at high speed; if the current length pulse P3 is greater than or equal to the high-speed length pulse P2, the high-speed counter outputs low-speed operation, and the color steel tile is cut at low speed; if the current length pulse P3 is greater than or equal to the set length pulse P1, the output of the high-speed counter stops running, and the color steel tile is stopped being cut;
after the PLC program finishes the fixed-length primary cutting of the color steel tile, the actual measurement length L2 is obtained by measuring the length of the color steel tile cut for the first time;
5) and (3) fixed-length subsequent cutting process: the process is the same as the fixed-length primary cutting process, except that the initialized measured length L2 is the measured length L2 obtained after the fixed-length primary cutting.
Further, the algorithm also comprises the steps of inputting the set number of sheets N2 through a human-computer interface, initializing the current number of sheets N1 to be zero, and finishing the batch cutting of the color steel tiles when the output of the high-speed counter stops running and the current number of sheets N1= N1+1 until the current number of sheets N1 is larger than or equal to the set number of sheets N2.
Further, the human-computer interface can also display the current length L3= P3/C1 and the current sheet number N1 in real time.
The color steel tile fixed-length cutting algorithm based on PLC program control adopts a method of fixed-length error rate, effectively solves the accumulated error in the color steel tile cutting process, inputs information of set length, number of cut pieces and the like through a human-computer interface, ensures the stability of continuous cutting of color steel tiles through actual test and correction of length, can effectively control the cutting length, number and precision of the color steel tiles, and realizes accurate fixed-length batch cutting of any length of the color steel tiles on roofs.
Drawings
FIG. 1 is a flow chart of the calculation of PLC intermediate parameters of the present invention;
FIG. 2 is a flow chart of the calculation of the set length pulse P1 according to the present invention;
FIG. 3 is a flow chart of the calculation of the high speed length pulse P2 of the present invention;
FIG. 4 is a flow chart of the cut-to-length of the present invention;
FIG. 5 is a flow chart of the batch cutting of the present invention.
Detailed Description
In order to further understand the technical scheme of the invention, the invention is further explained by combining the drawings in the specification.
As shown in fig. 1-5, the invention provides a color steel tile fixed-length cutting algorithm based on PLC program control, comprising the following processes:
1) calculating PLC intermediate parameters: according to the encoder pulse P, the encoding perimeter C, the set length L1, the measured length L2 and the deceleration distance L4, a wheel diameter original coefficient C1= P/C, a high speed segment length L5= L1-L4, a fixed length error rate E = L1/L2 and a wheel diameter new coefficient C2= E C1 are calculated;
2) calculation of set length pulse P1: when the fixed-length error rate E =1, the set-length pulse P1= L1 × C1 is converted into a double integer by REAL _ TO _ DINT, and then transmitted TO the% hsc0.s1d of the high-speed counter; when the fixed length error rate E ≠ 1, the set length pulse P1= L1 × C2, is converted into a double integer by REAL _ TO _ DINT, and is transmitted TO% hsc0.s1d of the high-speed counter;
3) calculation of high-speed length pulse P2: when the fixed length error rate E =1, the high-speed length pulse P2= L5 × C1, the high-speed length pulse is converted into a double integer by REAL _ TO _ DINT, and then transmitted TO% hsc0.s0d of the high-speed counter; when the fixed-length error rate E ≠ 1, the high-speed length pulse P2= L5 × C2, converts the high-speed length pulse into a double integer through REAL _ TO _ DINT, and then transmits the double integer TO% hsc0.s0d of the high-speed counter;
4) the fixed-length primary cutting process: inputting an encoder pulse P, an encoding perimeter C, a set length L1 and a deceleration distance L4 through a human-machine interface (HMI), initializing an actual measurement length L2 to be a set length L1, calculating according to steps 1) -3) to obtain a set length pulse P1, transmitting the set length pulse P1 to a high-speed counter of% HSC0.S1D and a high-speed length pulse P2 to a high-speed counter of% HSC0.S0D, and initializing a current length pulse P3 to be zero and transmitting the current length pulse P3 to a high-speed counter of% HSC0.VD; after the PLC program is operated, the% HSC0.VD value of the pulse with the current length is continuously increased along with the increase of the cutting length of the color steel tile, and the% HSC0.VD value of the pulse with the current length is respectively compared with the% HSC0.S1D value of the pulse with the set length and the% HSC0.S0D value of the pulse with the high speed length in real time:
if the% HSC0.VD value of the current length pulse is smaller than the% HSC0.S0D value of the high-speed length pulse, the high-speed counter outputs high-speed operation, and the color steel tile is cut at high speed; if the% HSC0.VD value of the current length pulse is more than or equal to the% HSC0.S0D value of the high-speed length pulse, the high-speed counter outputs low-speed operation, and the color steel tile is cut at low speed; if the% HSC0.VD value of the pulse with the current length is more than or equal to the% HSC0.S1D value of the pulse with the set length, the output of the high-speed counter stops running, and the color steel tile is stopped to be cut;
after the PLC program finishes the fixed-length primary cutting of the color steel tile, the actual measurement length L2 is obtained by measuring the length of the color steel tile cut for the first time;
5) and (3) fixed-length subsequent cutting process: the process is the same as the fixed-length primary cutting process, except that the initialized measured length L2 is the measured length L2 obtained after the fixed-length primary cutting.
The algorithm further comprises the steps of inputting the set number N2 through a human-computer interface, initializing the current number N1 to be zero, when the output of the high-speed counter stops running, the current number N1= N1+1, and completing batch cutting of the color steel tiles until the current number N1 is larger than or equal to the set number N2, wherein the human-computer interface can also display the current length L3= P3/C1 and the current number N1 in real time.
The above description is only exemplary of the present invention and should not be taken as limiting, and any modifications, equivalents, improvements and the like that are within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (3)
1. The utility model provides a various steel tile fixed length cutting algorithm based on PLC program control which characterized in that: the method comprises the following steps:
1) calculating PLC intermediate parameters: according to the encoder pulse P, the encoding perimeter C, the set length L1, the measured length L2 and the deceleration distance L4, a wheel diameter original coefficient C1= P/C, a high speed segment length L5= L1-L4, a fixed length error rate E = L1/L2 and a wheel diameter new coefficient C2= E C1 are calculated;
2) calculation of set length pulse P1: when the fixed-length error rate E =1, setting the length pulse P1= L1 × C1; when the fixed-length error rate E ≠ 1, set the length pulse P1= L1 × C2;
3) calculation of high-speed length pulse P2: when the fixed-length error rate E =1, the high-speed-length pulse P2= L5 × C1; when the fixed-length error rate E ≠ 1, the high-speed-length pulse P2= L5 × C2;
4) the fixed-length primary cutting process: inputting an encoder pulse P, an encoding perimeter C, a set length L1 and a deceleration distance L4 through a human-computer interface, initializing an actual measurement length L2 to be a set length L1, calculating according to steps 1) -3) to obtain a set length pulse P1 and a high-speed length pulse P2, respectively transmitting the set length pulse P1 and the high-speed length pulse P2 to a high-speed counter, and initializing a current length pulse P3 to be zero and transmitting the current length pulse P3 to the high-speed counter; after the PLC program is operated, the current length pulse P3 is continuously increased along with the increase of the cutting length of the color steel tile, and the current length pulse P3 is respectively compared with the set length pulse P1 and the high-speed length pulse P2 in real time:
if the current length pulse P3 is smaller than the high-speed length pulse P2, the high-speed counter outputs high-speed operation, and the color steel tile is cut at high speed; if the current length pulse P3 is greater than or equal to the high-speed length pulse P2, the high-speed counter outputs low-speed operation, and the color steel tile is cut at low speed; if the current length pulse P3 is greater than or equal to the set length pulse P1, the output of the high-speed counter stops running, and the color steel tile is stopped being cut;
after the PLC program finishes the fixed-length primary cutting of the color steel tile, the actual measurement length L2 is obtained by measuring the length of the color steel tile cut for the first time;
5) and (3) fixed-length subsequent cutting process: the process is the same as the fixed-length primary cutting process, except that the initialized measured length L2 is the measured length L2 obtained after the fixed-length primary cutting.
2. The color steel tile fixed-length cutting algorithm based on PLC program control according to claim 1, characterized in that: the algorithm further comprises the steps of inputting the set number N2 through a human-computer interface, initializing the current number N1 to be zero, and finishing batch cutting of the color steel tiles when the output of the high-speed counter stops running and the current number N1= N1+1 until the current number N1 is larger than or equal to the set number N2.
3. The color steel tile fixed-length cutting algorithm based on PLC program control according to claim 2, characterized in that: the human-computer interface can also display the current length L3= P3/C1 and the current sheet number N1 in real time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810472104.0A CN108762185B (en) | 2018-05-17 | 2018-05-17 | Color steel tile fixed-length cutting algorithm based on PLC program control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810472104.0A CN108762185B (en) | 2018-05-17 | 2018-05-17 | Color steel tile fixed-length cutting algorithm based on PLC program control |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108762185A CN108762185A (en) | 2018-11-06 |
CN108762185B true CN108762185B (en) | 2021-02-02 |
Family
ID=64008207
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810472104.0A Active CN108762185B (en) | 2018-05-17 | 2018-05-17 | Color steel tile fixed-length cutting algorithm based on PLC program control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108762185B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010009189A (en) * | 2008-06-25 | 2010-01-14 | Nippon Steel & Sumikin Metal Products Co Ltd | Method for managing steel pipe product information |
CN102063085A (en) * | 2010-10-15 | 2011-05-18 | 深圳市伟创电气有限公司 | Fixed-length cutting control device and method |
CN206819143U (en) * | 2017-06-15 | 2017-12-29 | 河南卫华特种车辆有限公司 | A kind of color steel tile fixed-length cutting control device based on PLC controls |
CN107599036A (en) * | 2017-08-17 | 2018-01-19 | 唐山三友集团兴达化纤有限公司 | A kind of guipure silk customized cut-off control method, apparatus and system |
-
2018
- 2018-05-17 CN CN201810472104.0A patent/CN108762185B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010009189A (en) * | 2008-06-25 | 2010-01-14 | Nippon Steel & Sumikin Metal Products Co Ltd | Method for managing steel pipe product information |
CN102063085A (en) * | 2010-10-15 | 2011-05-18 | 深圳市伟创电气有限公司 | Fixed-length cutting control device and method |
CN206819143U (en) * | 2017-06-15 | 2017-12-29 | 河南卫华特种车辆有限公司 | A kind of color steel tile fixed-length cutting control device based on PLC controls |
CN107599036A (en) * | 2017-08-17 | 2018-01-19 | 唐山三友集团兴达化纤有限公司 | A kind of guipure silk customized cut-off control method, apparatus and system |
Non-Patent Citations (1)
Title |
---|
型材定长切割***研究与设计;吴仑;《中国优秀硕士学位论文全文数据库 工程科技Ⅰ辑》;20150315(第3期);B022-394 * |
Also Published As
Publication number | Publication date |
---|---|
CN108762185A (en) | 2018-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201760574U (en) | Continuous casting fixed-length detection cutter | |
CN103616018B (en) | Based on the circular arc rapid setting-out method of non-home position | |
CN101941063A (en) | Steelmaking square billet encoding and sizing method | |
CN101934358B (en) | Casting flow tracking system of continuous casting machine | |
CN108762185B (en) | Color steel tile fixed-length cutting algorithm based on PLC program control | |
CN104117554A (en) | Automatic control system and method for high-precision straightening machine | |
CN105068032A (en) | Photovoltaic convergence box current acquisition channel temperature drift coefficient calibration method | |
CN108151721B (en) | Ship lock deformation automatic monitoring system based on water level working condition identification and measuring and weather correcting method thereof | |
CN104070067B (en) | A kind of control method adopting torque feedback to demarcate shift motion | |
CN104502628A (en) | Method and device for handheld ultrasonic measurement of channel flow speed | |
CN115816164B (en) | Pipe fitting fixed length cutting system of pipe fitting assembly machine | |
CN110793589B (en) | Data analysis-based shield construction grouting consumption real-time calculation method | |
CN208805133U (en) | A kind of high-precision flexible measuring ruler | |
CN111060081A (en) | Tunnel section lofting method | |
CN107716804A (en) | A kind of fixed-length reinforcement cutting shears | |
CN201050976Y (en) | An angle ruler | |
CN103521830A (en) | Control method of mode flying shears | |
CN205341576U (en) | Elevator guide rail coalignment | |
CN211035688U (en) | Broken sucking disc device is broken off with fingers and thumb in apron glass crosscut | |
CN213195610U (en) | Automatic control device for steelmaking converter buggy ladle | |
CN204724760U (en) | Box-like bar straightening mechanism slapped by a kind of single line | |
CN103266880B (en) | A kind of oil well load measurement method | |
CN103336881A (en) | Risk assessment method of building plastic conduit based on segmentation fitting | |
CN202963076U (en) | Automatic control feedback system of aluminum extrusion machine | |
CN204255410U (en) | A kind of glass tempering furnace measure and control device |
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 |