Method for calculating length of rolled piece by using CPU (Central Processing Unit) scanning time
Through the cycle scan time and calculus method of Siemens CPU, the length of the rolled piece is calculated, which solves the problems of too much equipment, high cost and insufficient accuracy in the existing technology, and achieves high-precision measurement and cost reduction of the length of the rolled piece.
Patent Information
- Application Number
- CN202410902511.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-07
- Publication Date
- 2024-10-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, the method for measuring the length of rolling stock in the steel rolling industry involves many equipments, high cost, high failure rate, and difficulty in meeting accuracy requirements.
The cycle scan time of Siemens 300/400 CPU is used, and the calculus method is used to calculate the length of the rolled piece using program algorithm to reduce the investment cost of hardware facilities.
It achieves accurate measurement of the length of the rolled piece, with an error range within ±0.01m-0.03m, meeting process requirements and reducing equipment costs and failure rates.
Smart Images

Figure QLYQS_1
Abstract
Description
Technical Field
[0001] The invention relates to a method for calculating the length of a rolled piece by using CPU scanning time. Background Art
[0002] At present, in the rolling of bar products in the steel rolling industry, 150*150*12000mm square billets are generally used. After being heated to 1200℃-1300℃ in a heating furnace, they are rolled into bars with a diameter of φ12mm-φ45mm through multiple rolling mills. The length of the entire bar is about 600-700m. Since the length of the cooling bed is generally 100m, in order to facilitate the bar to be put on the cooling bed, it is necessary to use a flying shear 3 to cut it into multiple bars with a length of 70m-80m (the sheared bars are called multiple lengths at this time), so the length of the rolled piece needs to be measured in real time. The multiple lengths after cutting are cut into fixed lengths of 8-12m according to user needs for user use. If the fixed length is less than the user's needs, it will produce non-size, which will affect the yield rate and directly affect the cost. Therefore, the accuracy of the length measurement of the rolled piece is required to be high. The existing method of measuring the length of rolled pieces generally configures hardware facilities such as incremental encoders, high-speed counter modules, CPUs, hot metal detectors, and then realizes length measurement by compiling and debugging programs. This method has a large amount of equipment, large capital investment, and a high failure rate due to the large number of component points. Summary of the invention
[0003] The purpose of the present invention is to provide a method for calculating the length of rolled pieces by using CPU scanning time, using calculus method and program algorithm to complete the calculation of the length of rods and high-speed wire rolled pieces in the metallurgical industry, thereby reducing the investment cost of hardware facilities.
[0004] The technical solution adopted by the present invention is a method for calculating the length of rolled pieces by using the CPU scanning time, and proposes to use the cycle scanning time in the Siemens 300 / 400 CPU, through integration and accumulation, according to the distance = the product of speed and time, to achieve the measurement of the length of the bar and wire;
[0005] 1) The Scan Cycle Time of Siemens S7 300 / 400 CPU is 0-6000ms. After the program is compiled and called, the scan time is generally 10ms-30ms. The specific value can be found through the CPU module information;
[0006] 2) Open the library Stand Library-System function Blocks in the Siemens program OB block. When condition 1 is met, call SFC1 Read CLK FUNC to read the current CPU system time as the start time start_time. When condition 2 is met, call SFC1 Read CLK FUNC to read the current system time as the measurement end time end_time. Then call the time subtraction instruction SFC 34 SB_DT_DT IEC, start_time minus end_time as the red steel running time scan_time.
[0007] 3) The internal time relay of Siemens S7 300 / 400 CPU adopts S5T# format: such as S5T#1h1m0s0ms, which is not the unified standard of IEC International Electrotechnical Commission: such as T#1h1m0s0ms. Therefore, the value of the internal time relay cannot be directly converted into the value required to calculate the length of the rolled piece in the program, and the output value of the S5T# time format is converted into a binary BCD code into a real-time number;
[0008] 4) The linear speed of the rolled piece is calculated by the roll speed r / min and the roll diameter, and the linear speed of the rolled piece at the exit stand remains constant during the rolling of the same product. The linear speed calculation formula is ν=πDn / 60; where ν is the rolling speed, m / s; D is the roll working diameter, m; n is the roll speed, r / min; the time integration principle is: t=t+Δt, the t integration is started after the head of the rolled piece enters the rolling mill, and the integration is stopped after the tail of the rolled piece leaves the rolling mill. Δt is the fixed scanning time of the CPU, in ms, and the initial value of t is 0ms, that is, ; Based on the relationship between length s, speed v, and time t, s=v*t, the length of the rolled piece can be calculated.
[0009] Compared with the traditional encoder measurement and calculus measurement method to measure the length of the rolled piece, the error range is within ±0.01m-0.03m, which meets the process requirements.
[0010] Rolling specifications Rolling mill exit line speed CPU Model Encoder measuring length The present invention measures Deviation value Worker 14 3.05m / s Siemens 416-2DP 48.67m 48.64m 0.03m Worker 14 3.05m / s Siemens 416-2DP 49.05m 49.06m 0.01m Worker 14 3.05m / s Siemens 416-2DP 49.54m 49.52m 0.02m DETAILED DESCRIPTION
[0011] A method for calculating the length of rolled products by using CPU scanning time is proposed. The cycle scanning time in Siemens 300 / 400 CPU is used to measure the length of bars and wires by integrating and accumulating, according to the equation distance = product of speed and time.
[0012] 1) The Scan Cycle Time of Siemens S7 300 / 400 CPU is 0-6000ms. After the program is compiled and called, the scan time is generally 10ms-30ms. The specific value can be found through the CPU module information;
[0013] 2) Open the library Stand Library-System function Blocks in the Siemens program OB block. When condition 1 is met, call SFC1 Read CLK FUNC to read the current CPU system time as the start time start_time. When condition 2 is met, call SFC1 Read CLK FUNC to read the current system time as the measurement end time end_time. Then call the time subtraction instruction SFC 34 SB_DT_DT IEC, start_time minus end_time as the red steel running time scan_time.
[0014] 3) The internal time relay of Siemens S7 300 / 400 CPU adopts S5T# format: such as S5T#1h1m0s0ms, which is not the unified standard of IEC International Electrotechnical Commission: such as T#1h1m0s0ms. Therefore, the value of the internal time relay cannot be directly converted into the value required to calculate the length of the rolled piece in the program, and the output value of the S5T# time format is converted into a binary BCD code into a real-time number;
[0015] 4) The linear speed of the rolled piece is calculated by the roll speed r / min and the roll diameter, and the linear speed of the rolled piece at the exit stand remains constant during the rolling of the same product. The linear speed calculation formula is ν=πDn / 60; where ν is the rolling speed, m / s; D is the roll working diameter, m; n is the roll speed, r / min; the time integration principle is: t=t+Δt, the t integration is started after the head of the rolled piece enters the rolling mill, and the integration is stopped after the tail of the rolled piece leaves the rolling mill. Δt is the fixed scanning time of the CPU, in ms, and the initial value of t is 0ms, that is, ; Based on the relationship between length s, speed v, and time t, s=v*t, the length of the rolled piece can be calculated.
[0016] Example:
[0017] 1. Open the library Stand Library-System function Blocks in the Siemens program OB block. When the hot metal detector detects red steel, call SFC1 Read CLK FUNC to read the current CPU system time as the start time start_time. When the hot metal detection signal disappears, call SFC1 Read CLK FUNC to read the current system time as the measurement end time end_time; then call the time subtraction instruction SFC 34 SB_DT_DT IEC, start_time minus end_time as the red steel running time scan_time.
[0018] 2. The internal time relay of Siemens S7 300 / 400 CPU uses the S5T# format to output the parameter BCD -> time S5Time -> library function FC33 (S5TI_TIM) -> time Time -> double integer DI -> floating point number Real -> divide by 1000.0 and convert to floating point number Real in seconds.
[0019] 3. After actual measurement, when rolling No. 14 I-beam, the exit speed of the rolling mill is 3.05m / s, and the measuring time is 15.95s. According to the relationship between length s, speed v, and time t, s=v*t, the length of the rolled piece is calculated to be 15.95*3.05=48.64m.
Claims
1. A method for calculating the length of rolled product by using CPU scanning time, which proposes to use the cycle scanning time in Siemens 300 / 400 CPU, through integration and accumulation, according to the distance = the product of speed and time, to achieve the measurement of the length of rod and wire; it is characterized by: 1) The Scan Cycle Time of Siemens S7 300 / 400 CPU is 0-6000ms. After the program is compiled and called, the scan time is generally 10ms-30ms. The specific value can be found through the CPU module information; 2) Open the library Stand Library-System function Blocks in the Siemens program OB block. When condition 1 is met, call SFC1 Read CLK FUNC to read the current CPU system time as the start time start_time. When condition 2 is met, call SFC1 Read CLK FUNC to read the current system time as the measurement end time end_time. Then call the time subtraction instruction SFC 34 SB_DT_DT IEC, start_time minus end_time as the red steel running time scan_time. 3) The internal time relay of Siemens S7 300 / 400 CPU adopts S5T# format: such as S5T#1h1m0s0ms, which is not the unified standard of IEC International Electrotechnical Commission: such as T#1h1m0s0ms. Therefore, the value of the internal time relay cannot be directly converted into the value required to calculate the length of the rolled piece in the program, and the output value of the S5T# time format is converted into a binary BCD code into a real-time number; 4) The linear speed of the rolled piece is calculated by the roll speed r / min and the roll diameter, and the linear speed of the rolled piece at the exit stand remains constant during the rolling of the same product. The linear speed calculation formula is ν=πDn / 60; where ν is the rolling speed, m / s; D is the roll working diameter, m; n is the roll speed, r / min; the time integration principle is: t=t+Δt, the t integration is started after the head of the rolled piece enters the rolling mill, and the integration is stopped after the tail of the rolled piece leaves the rolling mill. Δt is the fixed scanning time of the CPU, in ms, and the initial value of t is 0ms, that is, ; Based on the relationship between length s, speed v, and time t, s=v*t, the length of the rolled piece can be calculated.
