[go: up one dir, main page]

TWI559108B - Correction control method, controller and correction control system - Google Patents

Correction control method, controller and correction control system Download PDF

Info

Publication number
TWI559108B
TWI559108B TW103135625A TW103135625A TWI559108B TW I559108 B TWI559108 B TW I559108B TW 103135625 A TW103135625 A TW 103135625A TW 103135625 A TW103135625 A TW 103135625A TW I559108 B TWI559108 B TW I559108B
Authority
TW
Taiwan
Prior art keywords
value
voltage
coefficient
actual
linear equation
Prior art date
Application number
TW103135625A
Other languages
Chinese (zh)
Other versions
TW201604668A (en
Inventor
周玲燕
Original Assignee
寧波弘訊科技股份有限公司
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 寧波弘訊科技股份有限公司 filed Critical 寧波弘訊科技股份有限公司
Publication of TW201604668A publication Critical patent/TW201604668A/en
Application granted granted Critical
Publication of TWI559108B publication Critical patent/TWI559108B/en

Links

Landscapes

  • Control Of Linear Motors (AREA)
  • Other Investigation Or Analysis Of Materials By Electrical Means (AREA)
  • Control Of Position Or Direction (AREA)

Description

糾偏控制方法、控制器及糾偏控制系統 Correction control method, controller and correction control system

本發明涉及檢測控制技術領域,尤其涉及一種糾偏控制方法、控制器及糾偏控制系統。 The invention relates to the field of detection control technology, in particular to a correction control method, a controller and a correction control system.

糾偏控制,是工藝控制中的一項重要技術,應用在包裝、印刷、標籤、成衣、金屬加工等多個卷材加工行業,涉及到的卷材包括塑膠、線纜、紙張、紡布等多種類型的材料。卷材的加工過程,包括對卷材本身的處理,如噴塗、印刷、沖切、層合,還可以包括將卷材加工成品,如加工成袋。 Correction control is an important technology in process control. It is applied in many coil processing industries such as packaging, printing, labeling, garment, metal processing, etc. The coils involved include plastic, cable, paper, textile and so on. Type of material. The processing of the web, including the processing of the web itself, such as spraying, printing, die cutting, laminating, may also include processing the web into finished products, such as into bags.

具體地,卷材加工過程中,卷材需要在固定軌道中移動以完成一系列的加工工藝,如果卷材在傳輸過程中出現跑偏,即卷材邊緣並未整齊一致地在軌道中運行,則會造成後續工步的出錯,從而導致材料的浪費或者停工調整。因此,需要一種糾偏控制方法,調整跑偏卷材的位置,以保證卷材加工過程的正常進行。 Specifically, during the processing of the coil, the coil needs to be moved in a fixed track to complete a series of processing processes. If the web is deflected during the transfer, that is, the edge of the web does not run neatly in the track, This will cause errors in subsequent steps, resulting in material waste or downtime adjustments. Therefore, a correction control method is needed to adjust the position of the deflecting web to ensure the normal processing of the coil.

需要說明的是,申請號為CN201310625155.X的專利前案係公開有一種基於最小二乘法提供AD採集精度的方 法,該方法與本發明提供的技術方案至少存在以下區別特徵: It should be noted that the patent application file with the application number CN201310625155.X discloses a method for providing AD acquisition accuracy based on the least squares method. The method has the following distinguishing features from the technical solution provided by the present invention:

1、該專利前案藉由輸入電壓與輸出電壓曲線擬合來計算零偏,而本發明提供的技術方案直接利用位置與電壓的關係計算誤差。 1. The patent preamble calculates the zero offset by fitting the input voltage to the output voltage curve, and the technical solution provided by the present invention directly uses the relationship between the position and the voltage to calculate the error.

2、本發明提供的技術方案針對具體的領域,即應用在製袋機糾偏控制領域中。 2. The technical solution provided by the present invention is directed to a specific field, that is, applied in the field of correction control of a bag making machine.

有鑒於此,本發明提供一種糾偏控制方法、控制器及糾偏控制系統,用以調整跑偏卷材的位置,進而保證卷材加工過程的正常進行。為實現上述目的,本發明係提供以下技術特徵: 一種糾偏控制方法,應用於擬合曲線線性方程,該方法包括:獲取位置感測器採集到卷材的實際位置值;獲取A/D轉換板依據該實際位置值生成的電壓實際值;將該實際位置值代入該擬合曲線線性方程,獲得該實際位置值對應的電壓預測值;當該電壓實際值與該電壓預測值不同時,依據該電壓實際值及該電壓預測值,確定該實際位置值對應的位置糾偏值;以及觸發伺服驅動器依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制。 In view of this, the present invention provides a rectification control method, a controller, and a rectification control system for adjusting the position of the deflecting web, thereby ensuring the normal processing of the coil. To achieve the above object, the present invention provides the following technical features: A correction control method is applied to a linear equation of a fitting curve, the method comprising: acquiring an actual position value of a coil collected by a position sensor; and acquiring an actual value of the voltage generated by the A/D conversion board according to the actual position value; Substituting the actual position value into the linear equation of the fitting curve to obtain a voltage predicted value corresponding to the actual position value; when the actual value of the voltage is different from the predicted value of the voltage, determining the actual position according to the actual value of the voltage and the predicted value of the voltage The position correction value corresponding to the value; and the trigger servo driver drives the motor according to the position correction value to perform the deviation correction control on the coil.

上述方法,優選地,還包括:預設擬合曲線線性方程,包括下列步驟:獲取該位置感測器在預設時間段內採集到的多個位置值{S1、S2、S3……Sn};獲取A/D轉換板分別依據各個該位置值生成的多個電壓值{U1、U2、U3…… Un};依據最小二乘法,生成期望、位置值及電壓值之間的關係式(1): The above method preferably further includes: presetting a linear equation of the fitting curve, comprising the steps of: acquiring a plurality of position values acquired by the position sensor within a preset time period {S1, S2, S3, ..., Sn} Obtaining a plurality of voltage values {U1, U2, U3, ... Un} generated by the A/D conversion board according to each of the position values respectively; generating a relationship between the desired, position value, and the voltage value according to the least squares method (1) ):

其中,E為期望,Si為位置,Ui為電壓,k為第一係數,b為第二係數;依據下述式(2),分別對該式(1)中的第一係數及第二係數求偏導,獲得式(3): Where E is the expectation, S i is the position, U i is the voltage, k is the first coefficient, and b is the second coefficient; according to the following formula (2), the first coefficient and the first coefficient in the formula (1) The two coefficients are obtained by partial derivative, and the equation (3) is obtained:

依據該式(3),獲得用於確定第一係數k及第二係數b的式(4): According to the formula (3), the equation (4) for determining the first coefficient k and the second coefficient b is obtained:

以及將獲取的該各個電壓值及生成的該各個位置值代入該式(4),獲得第一係數的數值及第二係數的數值; 將獲得的第一係數的數值及第二係數的數值,確定擬合曲線線性方程為式(5):U=kS+b (5)。 And substituting the obtained respective voltage values and the generated respective position values into the equation (4) to obtain a value of the first coefficient and a value of the second coefficient; and obtaining the value of the first coefficient and the value of the second coefficient, Determine the linear equation of the fitted curve as equation (5): U = k S + b (5).

上述方法,優選地,該依據該電壓實際值及該電壓預測值,確定該實際位置值對應的位置糾偏值,包括:將該電壓預測值減去該電壓實際值,獲得該實際位置值對應的位置糾偏值。 In the above method, preferably, determining the position correction value corresponding to the actual position value according to the actual voltage value and the voltage prediction value, comprising: subtracting the voltage actual value from the voltage prediction value, and obtaining the actual position value corresponding to the current position value Position correction value.

上述方法,優選地,在該觸發伺服驅動器依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制之前,還包括:判斷該位置糾偏值是否超過預設誤差閾值;若是,觸發伺服驅動器依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制。 In the above method, preferably, before the trigger servo driver drives the motor according to the position correction value to perform the deviation correction control on the coil, the method further includes: determining whether the position correction value exceeds a preset error threshold; if yes, triggering the servo driver according to The positional correction value drives the motor to perform a deskew control of the web.

本發明還提供了一種控制器,應用於擬合曲線線性方程,該控制器包括:實際位置值獲取單元,用於獲取位置感測器採集到卷材的實際位置值;電壓實際值生成單元,用於獲取A/D轉換板依據該實際位置值生成的電壓實際值;電壓預測值獲得單元,用於將該實際位置值代入該擬合曲線線性方程,獲得該實際位置值對應的電壓預測值;位置糾偏值確定單元,用於當該電壓實際值與該電壓預測值不同時,依據該電壓實際值及該電壓預測值,確定該實際位置值對應的位置糾偏值;以及位置糾偏單元,用於觸發伺服驅動器依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制。 The present invention also provides a controller for applying a linear equation of a fitting curve, the controller comprising: an actual position value acquiring unit for acquiring an actual position value of the coil collected by the position sensor; and a voltage actual value generating unit, And an actual value of the voltage generated by the A/D conversion board according to the actual position value; the voltage prediction value obtaining unit is configured to substitute the actual position value into the linear equation of the fitting curve to obtain a voltage prediction value corresponding to the actual position value. a position correction value determining unit, configured to determine a position correction value corresponding to the actual position value according to the actual value of the voltage and the voltage prediction value when the actual value of the voltage is different from the voltage prediction value; and the position correction unit, The trigger servo drive drives the motor according to the position correction value to perform the deviation correction control on the coil.

如前述之控制器,還包括擬合曲線線性方程預設單 元,用於預設擬合曲線線性方程;其中,該擬合曲線線性方程預設單元包括:位置值獲取子單元,用於獲取該位置感測器在預設時間段內採集到的多個位置值{S1、S2、S3……Sn};電壓值生成子單元,用於獲取A/D轉換板分別依據各個該位置值生成的多個電壓值{U1、U2、U3……Un};關係式生成子單元,用於依據最小二乘法,生成期望、位置值及電壓值之間的關係式(1): The controller of the foregoing, further comprising a fitting curve linear equation presetting unit, configured to preset a linear equation of the fitting curve; wherein the fitting curve linear equation presetting unit comprises: a position value acquiring subunit, configured to acquire the a plurality of position values {S1, S2, S3, ..., Sn} collected by the position sensor during a preset time period; and a voltage value generating subunit for acquiring the A/D conversion board respectively generated according to each of the position values A plurality of voltage values {U1, U2, U3, ... Un}; a relational generation subunit for generating a relationship (1) between a desired, a position value, and a voltage value according to a least squares method:

其中,E為期望,Si為位置,Ui為電壓,k為第一係數,b為第二係數;係數求解子單元,用於依據下述式(2),分別對該式(1)中的第一係數及第二係數求偏導,獲得式(3): Where E is the expectation, S i is the position, U i is the voltage, k is the first coefficient, b is the second coefficient, and the coefficient solving subunit is used to respectively formula (1) according to the following formula (2) The first coefficient and the second coefficient are obtained by partial derivation, and equation (3) is obtained:

係數確定子單元,用於依據該式(3),獲得用於確定第一係數k及第二係數b的式(4): a coefficient determining subunit for obtaining a formula (4) for determining the first coefficient k and the second coefficient b according to the formula (3):

以及係數值獲取子單元,用於將獲取的該各個電壓值及生成的該各個位置值代入該式(4),獲得第一係數的數值及第二係數的數值;線性方程確定子單元,用於將獲得的第一係數的數值及第二係數的數值,確定擬合曲線線性方程為式(5):U=kS+b (5)。 And a coefficient value obtaining subunit, configured to substitute the obtained respective voltage values and the generated respective position values into the equation (4) to obtain a value of the first coefficient and a value of the second coefficient; the linear equation determines the subunit, The linear equation of the fitting curve is determined by the value of the first coefficient and the value of the second coefficient to be obtained by the equation (5): U= k S+ b (5).

上述控制器,優選地,該位置糾偏值確定單元將該電壓預測值減去該電壓實際值,獲得該實際位置值對應的位置糾偏值。 Preferably, the position correction value determining unit subtracts the voltage actual value from the voltage prediction value to obtain a position correction value corresponding to the actual position value.

上述控制器,優選地,還包括:誤差判斷單元,用於在觸發伺服驅動器依據該位置糾偏值驅動馬達之前,判斷該位置糾偏值是否超過預設誤差閾值,若是,觸發位置糾偏單元。 The controller preferably further includes: an error determining unit, configured to determine whether the position correction value exceeds a preset error threshold before the trigger servo driver drives the motor according to the position correction value, and if so, trigger the position correction unit.

本發明還提供了一種糾偏控制系統,包括:位置感測器,用於復採集卷材的位置值;A/D轉換板,與該位置感測器相連,用於將該位置值轉換為對應的電壓值;如申請專利範圍第5至8項中任意一項所述的該控制器,與該A/D轉換板相連,用於將該位置值代入該擬合曲線線性方程,獲得該位置值對應的電壓預測值,當該轉換的電壓值與該 電壓預測值不同時,確定該位置值對應的位置糾偏值,觸發伺服驅動器;以及伺服驅動器,用於依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制。 The invention also provides a correction control system, comprising: a position sensor for collecting the position value of the coil; and an A/D conversion board connected to the position sensor for converting the position value into a corresponding value The controller of any one of claims 5 to 8 is connected to the A/D conversion board for substituting the position value into the linear equation of the fitting curve to obtain the position Value corresponding to the voltage predicted value, when the converted voltage value and the When the voltage prediction values are different, the position correction value corresponding to the position value is determined to trigger the servo driver; and the servo driver is configured to drive the motor according to the position correction value to perform the deviation correction control on the coil.

上述系統,優選地,該糾偏控制系統中的控制器,還用於控制卷材加工系統對卷材進行加工。 The above system, preferably, the controller in the corrective control system is also used to control the web processing system to process the web.

由以上的技術方案可知,本發明提供之一種糾偏控制方法、控制器及糾偏控制系統,應用於預設的擬合曲線線性方程,該擬合曲線線性方程表徵位置值與電壓值對應關係,獲取位置感測器採集到卷材的實際位置值,並獲取A/D轉換板依據該實際位置值生成的電壓實際值,將該實際位置值代入該擬合曲線線性方程,獲得該實際位置值對應的電壓預測值,當該電壓實際值與該電壓預測值不同時,依據該電壓實際值及該電壓預測值,確定該實際位置值對應的位置糾偏值,進而觸發伺服驅動器依據該位置糾偏值驅動馬達,從而實現對該卷材的糾偏控制。 It can be seen from the above technical solution that the correction control method, the controller and the rectification control system provided by the present invention are applied to a preset linear equation of a fitting curve, and the linear equation of the fitting curve represents the correspondence between the position value and the voltage value, and obtains The position sensor collects the actual position value of the coil, and obtains the actual value of the voltage generated by the A/D conversion board according to the actual position value, and substitutes the actual position value into the linear equation of the fitting curve to obtain the corresponding actual position value. The voltage prediction value, when the actual voltage value is different from the voltage prediction value, determining a position correction value corresponding to the actual position value according to the actual value of the voltage and the voltage prediction value, thereby triggering the servo driver to drive according to the position correction value The motor, thereby achieving the corrective control of the coil.

為了更清楚地說明本發明實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本發明的實施例,對於所屬領域中具有通常知識者而言,在不付出進步性勞動的前提下,還可以根據提供的附圖獲得其他的附圖。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only Embodiments of the invention, for those of ordinary skill in the art, may obtain other figures from the drawings provided without undue progressive work.

100‧‧‧實際位置值獲取單元 100‧‧‧ Actual position value acquisition unit

200‧‧‧電壓實際值生成單元 200‧‧‧Voltage actual value generating unit

300‧‧‧電壓預測值獲得單元 300‧‧‧Voltage prediction value acquisition unit

400‧‧‧位置糾偏值確定單元 400‧‧‧ Position Correction Value Determination Unit

500‧‧‧位置糾偏單元 500‧‧‧ Position Correction Unit

600‧‧‧擬合曲線線性方程預設單元 600‧‧‧Fitting curve linear equation preset unit

601‧‧‧位置值獲取子單元 601‧‧‧ position value acquisition subunit

602‧‧‧電壓值生成子單元 602‧‧‧Voltage value generation subunit

603‧‧‧關係式生成子單元 603‧‧‧ Relational generation subunit

604‧‧‧係數求解子單元 604‧‧‧ coefficient solving subunit

605‧‧‧係數確定子單元 605‧‧‧ coefficient determination subunit

606‧‧‧係數值獲取子單元 606‧‧‧ coefficient value acquisition subunit

607‧‧‧線性方程確定子單元 607‧‧‧Linear equation determination subunit

S101-S105,S201-S205‧‧‧步驟 S101-S105, S201-S205‧‧‧ steps

第1圖為本發明實施例提供的糾偏控制系統的結構框圖; 第2圖為本發明實施例提供的糾偏控制方法的流程圖;第3圖為本發明實施例提供的擬合曲線線性方程的示例圖;第4圖為本發明實施例提供的糾偏控制方法中預設擬合曲線線性方程的流程圖;第5圖為本發明實施例提供的控制器的結構框圖;第6圖為本發明實施例提供的控制器中曲線線性方程預設單元的結構框圖;第7圖為本發明實施例提供的製袋系統的結構框圖;以及第8圖為本發明實施例提供的現有製袋系統的結構框圖。 FIG. 1 is a structural block diagram of a correction control system according to an embodiment of the present invention; 2 is a flowchart of a method for correcting a deviation correction according to an embodiment of the present invention; FIG. 3 is a diagram showing an example of a linear equation of a fitting curve according to an embodiment of the present invention; and FIG. 4 is a method for controlling a deviation correction according to an embodiment of the present invention. A flowchart of a linear equation of a fitting curve is preset; FIG. 5 is a structural block diagram of a controller according to an embodiment of the present invention; and FIG. 6 is a structural block of a preset unit of a linear equation of a curve in a controller according to an embodiment of the present invention. FIG. 7 is a structural block diagram of a bag making system according to an embodiment of the present invention; and FIG. 8 is a structural block diagram of a conventional bag making system according to an embodiment of the present invention.

下面將結合本發明實施例中的附圖,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,所屬技術領域中具有通常知識者在沒有做出進步性工作前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the scope of the invention are within the scope of the invention.

本發明實施例提供的糾偏控制方法,應用於一種糾偏控制系統中,該系統可參見第1圖,如第1圖所示,包括位置感測器、A/D轉換板、控制器、伺服驅動器、馬達。其中,控制器用於實現本發明實施例提供的糾偏控制方 法,參見第2圖,其顯示了糾偏控制方法的一種具體流程,該方法應用於預設的擬合曲線線性方程,該擬合曲線線性方程表徵位置值與電壓值的對應關係,具體的,該方法包括以下步驟: The rectification control method provided by the embodiment of the invention is applied to a rectification control system, which can be referred to FIG. 1 , as shown in FIG. 1 , including a position sensor, an A/D conversion board, a controller, and a servo driver. ,motor. The controller is used to implement the correction control method provided by the embodiment of the present invention. The method, see Fig. 2, shows a specific flow of the method for correcting the deviation, the method is applied to a preset linear equation of the fitting curve, and the linear equation of the fitting curve represents the correspondence between the position value and the voltage value, specifically, The method includes the following steps:

步驟S101:獲取位置感測器採集到卷材的實際位置值。 Step S101: Acquire an actual position value of the coil collected by the position sensor.

其中,如第1圖所示,當卷材運動時,位置感測器可以預設採樣頻率採集卷材的位置,可選的,該位置為卷材邊界。 Wherein, as shown in FIG. 1, when the coil is moving, the position sensor can preset the sampling frequency to acquire the position of the coil, and optionally, the position is the web boundary.

步驟S102:獲取A/D轉換板依據該實際位置值生成的電壓實際值。 Step S102: Acquire an actual value of the voltage generated by the A/D converter board according to the actual position value.

其中,位置感測器感測器將採集到的位置值轉換為電信號,通過A/D轉換板的處理,將該電信號處理為控制器能夠處理的電壓值。 Wherein, the position sensor sensor converts the collected position value into an electrical signal, and processes the electrical signal into a voltage value that the controller can process through the processing of the A/D conversion board.

步驟S103:將該實際位置值代入該擬合曲線線性方程,獲得該實際位置值對應的電壓預測值。 Step S103: Substituting the actual position value into the linear equation of the fitting curve to obtain a voltage predicted value corresponding to the actual position value.

在本發明實施中,該擬合曲線線性方程可以表示電壓值與位置值的一種預設對應關係。該擬合曲線線性方程為一種線性方程,是通過曲線擬合的方式獲得的位置量與電壓量之間的線性關係。在本步驟中獲得的電壓預測值是通過該線性關係獲得的,表徵卷材在正常運行狀況下的位置值對應的電壓值。 In the practice of the present invention, the linear curve of the fitting curve may represent a preset correspondence relationship between the voltage value and the position value. The linear equation of the fitting curve is a linear equation, which is a linear relationship between the amount of position and the amount of voltage obtained by curve fitting. The voltage predicted value obtained in this step is obtained by the linear relationship, and represents the voltage value corresponding to the position value of the coil under normal operating conditions.

步驟S104:當該電壓實際值與該電壓預測值不同時,依據該電壓實際值及該電壓預測值,確定該實際位置值對 應的位置糾偏值。 Step S104: When the actual voltage value is different from the voltage predicted value, determining the actual position value pair according to the actual voltage value and the voltage predicted value. The position correction value should be.

在卷材實際加工過程中,由於各種外界因素的影響,造成卷材邊界位置跑偏,因此,卷材在某一跑偏位置時,位置感測器採集到的位置值進行A/D轉換後的電壓值與正常運行狀況下的電壓值是不同的。也就是說,當兩個電壓值不同時,說明卷材出現了跑偏,進而,需要確定位置糾偏值,以用於對跑偏的卷材進行糾偏。 In the actual processing of the coil, due to various external factors, the boundary position of the coil is deviated. Therefore, when the coil is in a certain deviation position, the position value collected by the position sensor is A/D converted. The voltage value is different from the voltage value under normal operating conditions. That is to say, when the two voltage values are different, it indicates that the coil has a deviation, and further, the position correction value needs to be determined for correcting the deviation of the coil.

可選地,確定位置糾偏值的方式可以是:將該電壓預測值減去該電壓實際值,獲得該實際位置值對應的位置糾偏值。該位置糾偏值可以包括正負及數值,其中:正負表示糾偏的方向,可選地,方向用角度表示;數值表示糾偏的大小。 Optionally, the manner of determining the position correction value may be: subtracting the voltage actual value from the voltage prediction value, and obtaining a position correction value corresponding to the actual position value. The position correction value may include positive and negative values, wherein: positive and negative indicate the direction of the correction, and optionally, the direction is represented by an angle; and the value indicates the magnitude of the correction.

步驟S105:觸發伺服驅動器依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制。 Step S105: The trigger servo driver drives the motor according to the position correction value to perform the deviation correction control on the coil.

其中,依據該位置糾偏值生成糾偏控制信號,將該信號發送至伺服驅動器,以使該伺服驅動器依據該控制信號驅動馬達,例如,驅動馬達的轉速、轉向等,以實現對該卷材位置的調整。 And generating a correction control signal according to the position correction value, and transmitting the signal to the servo driver, so that the servo driver drives the motor according to the control signal, for example, driving the rotation speed, steering, etc. of the motor to achieve the position of the coil. Adjustment.

由以上技術方案可知,本發明實施例提供了一種糾偏控制方法,應用於預設的擬合曲線線性方程,該擬合曲線線性方程表徵位置值與電壓值對應關係,獲取位置感測器採集到卷材的實際位置值,並獲取A/D轉換板依據該實際位置值生成的電壓實際值,將該實際位置值代入該擬合曲線線性方程,獲得該實際位置值對應的電壓預測值,當該 電壓實際值與該電壓預測值不同時,依據該電壓實際值及該電壓預測值,確定該實際位置值對應的位置糾偏值,進而觸發伺服驅動器依據該位置糾偏值驅動馬達,從而對該卷材位置進行調整,保證卷材邊界對齊。 It can be seen from the above technical solution that the embodiment of the present invention provides a method for correcting deviation, which is applied to a preset linear equation of a fitting curve, and the linear equation of the fitting curve represents a correspondence between a position value and a voltage value, and acquires a position sensor to acquire The actual position value of the coil, and obtain the actual value of the voltage generated by the A/D converter board according to the actual position value, and substitute the actual position value into the linear equation of the fitting curve to obtain the voltage prediction value corresponding to the actual position value. The When the actual voltage value is different from the predicted voltage value, determining the position correction value corresponding to the actual position value according to the actual value of the voltage and the predicted value of the voltage, thereby triggering the servo driver to drive the motor according to the position correction value, thereby driving the coil The position is adjusted to ensure that the web boundaries are aligned.

需要說明的是,在上述方法實施例中,實現了對位置感測器採集的卷材邊界位置點的一次調整,當然,可以迴圈利用該方法,實現對同一邊界點的多次調整。具體地,在步驟S105之後,返回執行步驟S101,獲取位置感測器再次採集到的卷材同一邊界點調整後的位置值,執行後續步驟,直至該邊界點處於對齊的位置點。具體地,當某一次迴圈中,轉換的電壓實際值與電壓預測值相同時,表明卷材的該邊界點處於正常狀態,則觸發位置感測器採集卷材下一邊界點的位置值,直至卷材加工過程的結束。 It should be noted that, in the foregoing method embodiment, the adjustment of the position of the boundary position of the coil collected by the position sensor is realized. Of course, the method can be used to realize multiple adjustments to the same boundary point. Specifically, after step S105, the process returns to step S101 to acquire the adjusted position value of the same boundary point of the web collected by the position sensor, and performs the subsequent steps until the boundary point is at the aligned position. Specifically, when the actual value of the converted voltage is the same as the voltage prediction value in a certain loop, it indicates that the boundary point of the coil is in a normal state, and the position sensor is triggered to collect the position value of the next boundary point of the coil. Until the end of the coil processing.

同時,上述方法實施例中的步驟S102與步驟S103的執行過程並不限定於此,當然,也可先執行步驟S103,再執行步驟S102,或者,兩個步驟同時執行。 In the meantime, the execution process of step S102 and step S103 in the foregoing method embodiment is not limited thereto. Of course, step S103 may be performed first, then step S102 may be performed, or both steps may be performed simultaneously.

下面利用圖式對上述方法實施例進行更直觀的說明。參見第3圖,其顯示了上述方法實施例中擬合曲線線性方程的一個示例,如第3圖所示,直線表明了位置S與電壓U之間的線性對應關係。在上述方法實施例中,位置感測器採集到的位置值為St1。對該位置值進行A/D轉換後,獲得的電壓實際值為Ut1,利用第3圖所述的線性方程,獲得位置值St1對應的電壓預測值為U’t1(A點對應的電壓值),該電壓實際值Ut1可能小於或者大於該電壓預測值U’t1 (B點或C點對應的電壓值),從而說明卷材的該邊界點處於跑偏狀態。 The above method embodiment will be described more intuitively using the following drawings. Referring to Fig. 3, there is shown an example of a linear equation of the fitted curve in the above method embodiment. As shown in Fig. 3, the straight line indicates the linear correspondence between the position S and the voltage U. In the above method embodiment, the position value collected by the position sensor is S t1 . After the A/D conversion of the position value, the actual value of the obtained voltage is U t1 . Using the linear equation described in FIG. 3 , the voltage predicted value corresponding to the position value S t1 is obtained as U′ t1 (the voltage corresponding to point A). The value actual value U t1 may be less than or greater than the voltage predicted value U' t1 (the voltage value corresponding to point B or point C), thereby indicating that the boundary point of the coil is in a deviation state.

需要說明的是,上述方法實施例中預先設置有擬合曲線線性方程。上述方法實施例在執行之前,還可以包括預設擬合曲線線性方程的步驟。可選地,參見第4圖,其顯示了本發明實施例提供的利用最小二乘法生成該擬合曲線擬合方程的流程,該流程具體包括以下步驟: It should be noted that the linear equation of the fitting curve is preset in the foregoing method embodiment. The above method embodiment may further include the step of presetting a linear equation of the fitting curve before execution. Optionally, referring to FIG. 4, the flow of generating the fitting curve fitting equation by least squares method provided by the embodiment of the present invention is shown, and the process specifically includes the following steps:

步驟S201:獲取該位置感測器在預設時間段內採集到的多個位置值{S1、S2、S3……Sn},並獲取A/D轉換板分別依據各個該位置值生成的多個電壓值{U1、U2、U3……Un}。 Step S201: Acquire a plurality of position values {S1, S2, S3, ..., Sn} collected by the position sensor in a preset time period, and acquire a plurality of A/D conversion boards respectively generated according to the respective position values. Voltage value {U1, U2, U3...Un}.

其中,獲取n個不同時刻,位置感測器採集到的一組位置值,並對應生成每個位置值對應的電壓值,該對應關係見表1所示。 Wherein, a set of position values collected by the position sensor is acquired at n different times, and a voltage value corresponding to each position value is generated correspondingly, and the corresponding relationship is shown in Table 1.

步驟S202:依據最小二乘法,生成期望、位置值及電壓值之間的關係式(1): Step S202: Generate a relation (1) between the expectation, the position value, and the voltage value according to the least squares method:

其中,E為期望,Si為位置,Ui為電壓,k為第一係數,b為第二係數。在本方法實施例中,假設電壓值與位置值滿足預設的線性關係,即U=kS+b。 Where E is the expectation, S i is the position, U i is the voltage, k is the first coefficient, and b is the second coefficient. In the method embodiment, it is assumed that the voltage value and the position value satisfy a preset linear relationship, that is, U=kS+b.

步驟S203:依據下述式(2),分別對該式(1)中的第一係數及第二係數求偏導,獲得式(3): Step S203: Deriving the first coefficient and the second coefficient in the equation (1) according to the following formula (2) to obtain the equation (3):

步驟S204:依據該式(3),獲得用於確定第一係數k及第二係數b的式(4): Step S204: According to the formula (3), the equation (4) for determining the first coefficient k and the second coefficient b is obtained:

步驟S205:將獲取的該各個電壓值及生成的該各個位置值代入該式(4),獲得第一係數的數值及第二係數的數值,進而將獲得的第一係數的數值及第二係數的數值,確定擬合曲線線性方程為式(5): U=kS+b (5)。 Step S205: Substituting the obtained respective voltage values and the generated respective position values into the equation (4), obtaining the value of the first coefficient and the value of the second coefficient, and further obtaining the value of the first coefficient and the second coefficient. The numerical value determines the linear equation of the fitted curve as equation (5): U=kS+b (5).

由上述技術方案可知,本發明實施例利用最小二乘法預設擬合曲線線性方程,該擬合曲線方程用於在糾偏控制中,獲得實際位置值對應的電壓預測值,且用於依據該電壓預測值對跑偏的位置進行調整。具體地,該擬合曲線線性方程中包含未知量第一係數及第二係數,最小二乘法保證實際值與利用該擬合曲線方程獲得的預測值之間的誤差平方和最小,計算該種情形下的第一係數及第二係數的數值,從而確定出最終的擬合曲線線性方程。需要說明的是,最小二乘法是一種資料優化演算法,其利用較小的資料量即可獲得擬合曲線線性方程,可解決通道容量及存儲容量不足的技術問題。另外,最小二乘法的計算速度較快,可以節省處理時間,提高處理效率。 According to the above technical solution, the embodiment of the present invention presets a linear equation of a fitting curve by using a least square method, and the fitting curve equation is used to obtain a voltage prediction value corresponding to an actual position value in the correction control, and is used according to the voltage. The predicted value adjusts the position of the deviation. Specifically, the linear equation of the fitting curve includes an unknown first coefficient and a second coefficient, and the least squares method ensures that the square of the error between the actual value and the predicted value obtained by using the fitting curve equation is the smallest, and the situation is calculated. The values of the first coefficient and the second coefficient are determined to determine a linear equation of the final fitted curve. It should be noted that the least squares method is a data optimization algorithm, which can obtain a linear equation of the fitting curve by using a small amount of data, and can solve the technical problem of insufficient channel capacity and storage capacity. In addition, the least squares method is faster, which saves processing time and improves processing efficiency.

可選地,在上述方法實施例的步驟S104之後步驟S105之前,還可以包括:判斷該位置糾偏值是否超過預設誤差閾值;若是,執行步驟S105觸發伺服驅動器依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制。 Optionally, before step S105 after the step S104 of the foregoing method embodiment, the method further includes: determining whether the position correction value exceeds a preset error threshold; if yes, executing step S105 to trigger the servo driver to drive the motor according to the position correction value, The coil is subjected to rectification control.

需要說明的是,位置偏差值中包含正負及數值,相應地,預設誤差閾值可以包括正負方向各自對應的不同閾值,具體地,位置糾偏值為正值時,判斷該位置糾偏值是否超過正方向對應的誤差閾值,反之同理。例如,預設誤差閾值為-3及+3,其中,-3作為負方向上的閾值,+3作為正方向上的閾值。該超過指的是數值的超過,例如,若位 置偏差值為-5,則其超過誤差閾值-3。 It should be noted that the position deviation value includes positive and negative values. Accordingly, the preset error threshold may include different thresholds corresponding to the positive and negative directions. Specifically, when the position correction value is a positive value, it is determined whether the position correction value exceeds the positive value. The error threshold corresponding to the direction, and vice versa. For example, the preset error threshold is -3 and +3, where -3 is the threshold in the negative direction and +3 is the threshold in the positive direction. The excess refers to the excess of the value, for example, if the bit If the deviation value is -5, it exceeds the error threshold of -3.

在本發明實施例中,對位置偏差設置調整條件,亦即,首先判斷位置偏差值是否超過預設誤差閾值,在滿足條件的情況下,才觸發伺服驅動器驅動馬達對卷材進行糾偏控制。如此設置,可以在一些對卷材邊界對齊度要求不高的場合中,避免多次調節過程降低卷材加工效率。 In the embodiment of the present invention, the adjustment condition is set for the position deviation, that is, it is first determined whether the position deviation value exceeds the preset error threshold, and if the condition is satisfied, the servo driver drive motor is triggered to perform the deviation correction control on the coil. With this arrangement, it is possible to avoid the multiple adjustment process to reduce the processing efficiency of the coil in some occasions where the alignment of the web boundary is not high.

下文對本發明實施例提供的控制器進行介紹,需要說明的是,該控制器的說明與本發明實施例提供的糾偏控制方法可相互對應參照。 The controller provided by the embodiment of the present invention is described below. It should be noted that the description of the controller and the correction control method provided by the embodiment of the present invention can refer to each other.

參見第5圖,其顯示了本發明實施例提供的控制器的結構,該控制器應用於預設的擬合曲線線性方程,該擬合曲線線性方程表徵位置值與電壓值對應關係,該控制器可以為第1圖所示的糾偏控制系統中的控制器,具體包括:實際位置值獲取單元100用於獲取位置感測器採集到卷材的實際位置值。電壓實際值生成單元200用於獲取A/D轉換板依據該實際位置值生成的電壓實際值。電壓預測值獲得單元300用於將該實際位置值代入該擬合曲線線性方程,獲得該實際位置值對應的電壓預測值。位置糾偏值確定單元400用於當該電壓實際值與該電壓預測值不同時,依據該電壓實際值及該電壓預測值,確定該實際位置值對應的位置糾偏值。以及位置糾偏單元500用於觸發伺服驅動器依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制。 Referring to FIG. 5, it shows a structure of a controller provided by an embodiment of the present invention. The controller is applied to a preset linear equation of a fitting curve, and the linear equation of the fitting curve represents a correspondence between a position value and a voltage value, and the control The controller may be the controller in the correction control system shown in FIG. 1 , and specifically includes: the actual position value acquiring unit 100 is configured to acquire the actual position value of the coil collected by the position sensor. The voltage actual value generating unit 200 is configured to acquire an actual value of the voltage generated by the A/D converter board according to the actual position value. The voltage predicted value obtaining unit 300 is configured to substitute the actual position value into the linear equation of the fitting curve to obtain a voltage predicted value corresponding to the actual position value. The position correction value determining unit 400 is configured to determine a position correction value corresponding to the actual position value according to the voltage actual value and the voltage prediction value when the voltage actual value is different from the voltage prediction value. And the position correcting unit 500 is configured to trigger the servo driver to drive the motor according to the position correction value to perform the deviation correction control on the coil.

需要說明的是,該控制器可以是獨立的糾偏控制器, 該糾偏控制器專門用於對卷材加工過程進行糾偏控制。當然,該控制器還可以與控制卷材加工過程的控制器合併後的主控制器,即該主控制器不僅可以控制卷材加工過程,還可以對該加工過程糾偏控制。該卷材加工過程包括但不限定於噴塗、印刷、沖切、層合、分切等過程。 It should be noted that the controller can be an independent correcting controller. The correcting controller is specifically used for correcting the coil processing process. Of course, the controller can also be combined with the controller that controls the coil processing process, that is, the main controller can not only control the coil processing process, but also can correct the control process. The coil processing process includes, but is not limited to, spraying, printing, punching, laminating, slitting, and the like.

參見第6圖,可選地,在上述發明實施例提供的控制器的基礎上,控制器還可以包括:擬合曲線線性方程預設單元600,用於預設擬合曲線線性方程。 Referring to FIG. 6 , optionally, based on the controller provided by the foregoing embodiment of the invention, the controller may further include: a fitting curve linear equation presetting unit 600 configured to preset a linear equation of the fitting curve.

具體地,擬合曲線線性方程預設單元600,具體包括:位置值獲取子單元601用於獲取該位置感測器在預設時間段內採集到的多個位置值{S1、S2、S3……Sn}。 Specifically, the fitting curve linear equation presetting unit 600 specifically includes: the position value acquiring sub-unit 601 is configured to acquire a plurality of position values {S1, S2, S3... collected by the position sensor within a preset time period. ...Sn}.

電壓值生成子單元602用於獲取A/D轉換板分別依據各個該位置值生成的多個電壓值{U1、U2、U3……Un}。 The voltage value generating sub-unit 602 is configured to acquire a plurality of voltage values {U1, U2, U3, . . . , Un} generated by the A/D converter board according to the respective position values.

關係式生成子單元603用於依據最小二乘法,生成期望、位置值及電壓值之間的關係式(1): The relational generation subunit 603 is configured to generate a relation (1) between the expectation, the position value, and the voltage value according to the least squares method:

其中,E為期望,Si為位置,Ui為電壓,k為第一係數,b為第二係數。 Where E is the expectation, S i is the position, U i is the voltage, k is the first coefficient, and b is the second coefficient.

係數求解子單元604用於依據下述式(2),分別對該式(1)中的第一係數及第二係數求偏導,獲得式(3): The coefficient solving sub-unit 604 is configured to obtain a partial derivative of the first coefficient and the second coefficient in the formula (1) according to the following formula (2) to obtain the formula (3):

係數確定子單元605用於依據該式(3),獲得用於確定第一係數k及第二係數b的式(4); The coefficient determining subunit 605 is configured to obtain the formula (4) for determining the first coefficient k and the second coefficient b according to the formula (3);

係數值獲取子單元606用於將獲取的該各個電壓值及生成的該各個位置值代入該式(4),獲得第一係數的數值及第二係數的數值。 The coefficient value acquisition sub-unit 606 is configured to substitute the acquired respective voltage values and the generated respective position values into the equation (4) to obtain a value of the first coefficient and a value of the second coefficient.

線性方程確定子單元607用於將獲得的第一係數的數值及第二係數的數值,確定擬合曲線線性方程為式(5):U=kS+b (5)。 The linear equation determining subunit 607 is configured to determine the value of the obtained first coefficient and the value of the second coefficient to determine a linear equation of the fitting curve as Equation (5): U=kS+b (5).

可選地,該位置糾偏值確定單元400將該電壓預測值減去該電壓實際值,獲得該實際位置值對應的位置糾偏值。 Optionally, the position correction value determining unit 400 subtracts the voltage actual value from the voltage prediction value to obtain a position correction value corresponding to the actual position value.

可選地,在上述發明實施例提供的控制器的基礎上, 還可以包括:誤差判斷單元,分別連接該位置糾偏值確定單元400與該位置糾偏單元500,用於判斷該位置糾偏值是否超過預設誤差閾值,若是,觸發該位置糾偏單元500。 Optionally, based on the controller provided by the foregoing embodiment of the invention, The position determining unit 400 and the position correcting unit 500 are respectively connected to determine whether the position correction value exceeds a preset error threshold, and if so, the position correcting unit 500 is triggered.

下文對本發明實施例提供的糾偏控制系統進行介紹,有關該糾偏控制系統的說明可參見上述本發明實施例提供的糾偏控制方法及本發明實施例提供的控制器,在此不做贅述。 The following is a description of the rectification control system provided by the embodiment of the present invention. For the description of the rectification control system, reference may be made to the rectification control method provided by the embodiment of the present invention and the controller provided by the embodiment of the present invention, which is not described herein.

如第1圖,其顯示了本發明實施例提供的糾偏控制系統的結構,該系統具體包括:位置感測器用於採集卷材的位置值。其中,該位置感測器可以為光電感測器。 As shown in FIG. 1 , the structure of the correction control system provided by the embodiment of the present invention is shown. The system specifically includes: a position sensor for collecting a position value of the coil. Wherein, the position sensor can be a photoinductor.

A/D轉換板與該位置感測器相連,用於將該位置值轉換為對應的電壓值。 An A/D converter board is coupled to the position sensor for converting the position value to a corresponding voltage value.

其中,該A/D轉換板用於對採樣到的位置值進行信號轉換,轉換為控制器可以處理的電壓信號。可以理解的是,位置信號為類比電信號,通過A/D轉換後,變為對應的數位信號,以傳送至控制器進行糾偏控制。 The A/D converter board is configured to perform signal conversion on the sampled position value and convert it into a voltage signal that the controller can process. It can be understood that the position signal is an analog electrical signal, and after A/D conversion, it becomes a corresponding digital signal for transmission to the controller for correcting control.

該控制器與該A/D轉換板相連,用於將該位置值代入該擬合曲線線性方程,獲得該位置值對應的電壓預測值,當該轉換的電壓值與該電壓預測值不同時,確定該位置值對應的位置糾偏值,觸發伺服驅動器。 The controller is connected to the A/D conversion board, and is used to substitute the position value into the linear equation of the fitting curve to obtain a voltage prediction value corresponding to the position value. When the converted voltage value is different from the voltage prediction value, The position correction value corresponding to the position value is determined to trigger the servo driver.

伺服驅動器用於依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制。 The servo driver is configured to drive the motor according to the position correction value to perform the deviation correction control on the coil.

其中,伺服驅動器用於驅動馬達轉動。具體地,控制 器確定位置偏移值後,生成位置偏移值的電脈衝。其中,該位置偏移值中包含有正負及數值,正負表明糾偏方向,數值表明糾偏大小。伺服驅動器將電脈衝轉化為角位移,驅動馬達按設定的方向轉動固定的角度,從而實現對卷材進行位置調整。 Among them, the servo driver is used to drive the motor to rotate. Specifically, control After determining the position offset value, an electrical pulse of the position offset value is generated. Wherein, the position offset value includes positive and negative values, positive and negative indicate the direction of correction, and the value indicates the magnitude of the correction. The servo drive converts the electric pulse into an angular displacement, and the driving motor rotates at a fixed angle in a set direction, thereby realizing the position adjustment of the coil.

可選地,上述糾偏控制系統中的控制器,還用於控制卷材加工系統對卷材進行加工。參見第7圖,其顯示了一種製袋系統,包括:卷材加工系統及糾偏控制單元。其中,卷材加工系統包括:主伺服驅動單元、牽引單元、張力感應器及與多個伺服機構;糾偏控制單元包括:伺服驅動器、馬達、A/D轉換板及位置感測器。 Optionally, the controller in the above-described correction control system is further configured to control the coil processing system to process the coil. Referring to Figure 7, there is shown a bag making system comprising: a web processing system and a rectification control unit. The coil processing system comprises: a main servo drive unit, a traction unit, a tension sensor and a plurality of servo mechanisms; and the correction control unit comprises: a servo driver, a motor, an A/D conversion board and a position sensor.

如第8圖所示,現有技術中,糾偏控制系統與卷材加工系統是獨立的兩個系統,每個系統中包含控制器,如第8圖所示,糾偏控制系統中的控制為糾偏控制器,卷材加工系統中的控制器為主控制器,兩個控制器用以分別控制各自系統中的功能部件。在卷材的加工過程中,糾偏控制系統中的糾偏控制器對卷材進行糾偏後,通過資料傳輸匯流排向卷材加工系統中的主控制器發送控制信號,觸發卷材加工系統中的主控制器加工卷材,當需要對卷材進行位置判斷時,再通過資料傳輸匯流排向糾偏控制系統中的糾偏控制器發送糾偏控制信號,觸發糾偏控制器進行糾偏控制。由此可見,現有技術中的製袋系統,包含兩個獨立的控制器,控制器之間通過資料傳輸匯流排傳輸資料,整套控制系統成本較高,且協調度較低。 As shown in Fig. 8, in the prior art, the correction control system and the coil processing system are two independent systems, each of which contains a controller. As shown in Fig. 8, the control in the correction control system is the correction control. The controller in the coil processing system is the main controller, and the two controllers are used to control the functional components in the respective systems. During the processing of the coil, the correcting controller in the correction control system corrects the coil, and sends a control signal to the main controller in the coil processing system through the data transmission bus to trigger the main in the coil processing system. The controller processes the coil material, and when the position determination of the coil material is required, the correction transmission signal is sent to the correction controller in the correction control system through the data transmission bus line, and the correction controller is triggered to perform the deviation correction control. It can be seen that the bag making system in the prior art comprises two independent controllers, and the data is transmitted between the controllers through the data transmission bus, and the whole control system has high cost and low coordination degree.

需要說明的是,本發明提供的該控制器不僅可以控制糾偏控制單元,還可以控制卷材加工系統。也就是說,本發明將現有的兩個控制器的功能集中在一個控制器中實現,既可以降低硬體成本,又可以提高系統協調度。 It should be noted that the controller provided by the present invention can control not only the correction control unit but also the coil processing system. That is to say, the present invention concentrates the functions of the two existing controllers in one controller, which can reduce the hardware cost and improve the system coordination degree.

需要說明的是,本說明書中的各個實施例均採用遞進的方式描述,每個實施例重點說明的都是與其他實施例的不同之處,各個實施例之間相同相似的部分互相參見即可。 It should be noted that each embodiment in the specification is described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the embodiments are referred to each other. can.

對所公開的實施例的上述說明,使所屬領域中具有通常知識者能夠實現或使用本發明。對這些實施例的多種修改對所屬領域中具有通常知識者來說將是顯而易見的,本文中所定義的一般原理可以在不脫離本發明的精神或範圍的情況下,在其他實施例中實現。因此,本發明將不會被限制于本文所示的這些實施例,而是要符合與本文所公開的原理和新穎特點相一致的最寬的範圍。 The above description of the disclosed embodiments enables those of ordinary skill in the art to make or use the invention. Various modifications to these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but the scope of the invention is to be accorded

S101-S105‧‧‧步驟 S101-S105‧‧‧Steps

Claims (10)

一種應用於擬合曲線線性方程之糾偏控制方法,該方法包括下列步驟:獲取位置感測器採集到卷材的實際位置值;獲取A/D轉換板依據該實際位置值生成的電壓實際值;將該實際位置值代入該擬合曲線線性方程,獲得該實際位置值對應的電壓預測值;當該電壓實際值與該電壓預測值不同時,依據該電壓實際值及該電壓預測值,確定該實際位置值對應的位置糾偏值;觸發伺服驅動器依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制;以及預設該擬合曲線線性方程,係包括下列步驟:依據最小二乘法,生成期望、位置值及電壓值之間的關係式(1): 其中,E為期望,Si為位置,Ui為電壓,k為第一係數,b為第二係數;及將獲得的第一係數的數值及第二係數的數值,確定擬合曲線線性方程為式(5);U=kS+b (5)。 A method for correcting deviation of a linear equation of a fitting curve, the method comprising the steps of: acquiring an actual position value of a volume collected by a position sensor; and obtaining an actual value of the voltage generated by the A/D conversion board according to the actual position value; Substituting the actual position value into the linear equation of the fitting curve to obtain a voltage prediction value corresponding to the actual position value; when the actual value of the voltage is different from the voltage prediction value, determining the actual value according to the voltage and the voltage prediction value The position correction value corresponding to the actual position value; the trigger servo driver drives the motor according to the position correction value to perform the deviation correction control on the coil; and presets the linear equation of the fitting curve, which comprises the following steps: generating according to the least square method The relationship between expectation, position value and voltage value (1): Where E is the expectation, S i is the position, U i is the voltage, k is the first coefficient, b is the second coefficient; and the value of the first coefficient obtained and the value of the second coefficient are determined to determine the linear equation of the fitting curve Let formula (5); U = k S+ b (5). 如申請專利範圍第1項所述之糾偏控制方法,其中, 預設該擬合曲線線性方程,復包括下列步驟:獲取該位置感測器在預設時間段內採集到的多個位置值{S1、S2、S3……Sn};獲取A/D轉換板分別依據各個該位置值生成的多個電壓值{U1、U2、U3……Un};依據下述式(2),分別對該式(1)中的第一係數及第二係數求偏導,獲得式(3); 依據該式(3),獲得用於確定第一係數k及第二係數b的式(4);以及 將獲取的該各個電壓值及生成的該各個位置值代入該式(4),獲得第一係數的數值及第二係數的數值。 The method for correcting deviation according to claim 1, wherein the linear equation of the fitting curve is preset, and the method includes the following steps: acquiring a plurality of position values collected by the position sensor within a preset time period. S1, S2, S3, ..., Sn}; acquiring a plurality of voltage values {U1, U2, U3, ... Un} generated by the A/D converter board according to the respective position values; respectively, according to the following formula (2) The first coefficient and the second coefficient in the formula (1) are obtained by partial derivation to obtain the formula (3); According to the formula (3), the equation (4) for determining the first coefficient k and the second coefficient b is obtained; The obtained respective voltage values and the generated respective position values are substituted into the equation (4) to obtain values of the first coefficient and values of the second coefficient. 如申請專利範圍第1項所述之糾偏控制方法,其中,該依據該電壓實際值及該電壓預測值,確定該實際位置值對應的位置糾偏值,包括:將該電壓預測值減去該電壓實際值,獲得該實際位置值對應的位置糾偏值。 The method of claim 5, wherein the determining the position correction value corresponding to the actual position value according to the actual voltage value and the voltage prediction value comprises: subtracting the voltage from the voltage prediction value. The actual value obtains the position correction value corresponding to the actual position value. 如申請專利範圍第1或2項所述之糾偏控制方法,其中,在該觸發伺服驅動器依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制之前,還包括:判斷該位置糾偏值是否超過預設誤差閾值;若是,觸發伺服驅動器依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制。 The method of claim 1 or 2, wherein the triggering servo driver drives the motor according to the position correction value to perform the correction control on the coil, and further includes: determining whether the position correction value is The preset error threshold is exceeded; if so, the trigger servo driver drives the motor according to the position correction value to perform the deviation correction control on the coil. 一種應用於擬合曲線線性方程之控制器,係包括:實際位置值獲取單元,用於獲取位置感測器採集到卷材的實際位置值;電壓實際值生成單元,用於獲取A/D轉換板依據該實際位置值生成的電壓實際值;電壓預測值獲得單元,用於將該實際位置值代入該擬合曲線線性方程,獲得該實際位置值對應的電壓預測值;位置糾偏值確定單元,用於當該電壓實際值與該電壓預測值不同時,依據該電壓實際值及該電壓預測值,確定該實際位置值對應的位置糾偏值;位置糾偏單元,用於觸發伺服驅動器依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制;以及 擬合曲線線性方程預設單元,用於預設擬合曲線線性方程,其中,該擬合曲線線性方程預設單元包括:關係式生成子單元,用於依據最小二乘法,生成期望、位置值及電壓值之間的關係式(1): 其中,E為期望,Si為位置,Ui為電壓,k為第一係數,b為第二係數;及線性方程確定子單元,用於將獲得的第一係數的數值及第二係數的數值,確定擬合曲線線性方程為式(5);U=kS+b (5)。 A controller applied to a linear equation of a fitting curve includes: an actual position value acquiring unit for acquiring an actual position value of a coil material collected by a position sensor; and a voltage actual value generating unit for acquiring an A/D conversion a voltage actual value generated by the board according to the actual position value; a voltage prediction value obtaining unit, configured to substitute the actual position value into the linear equation of the fitting curve to obtain a voltage prediction value corresponding to the actual position value; and a position correction value determining unit, And determining, according to the actual value of the voltage and the predicted value of the voltage, a position correction value corresponding to the actual position value; the position correction unit is configured to trigger the servo driver to correct the deviation according to the position. a value driving motor for correcting the volume of the coil; and a fitting curve linear equation presetting unit for presetting a linear equation of the fitting curve, wherein the fitting curve linear equation presetting unit comprises: a relational generator a unit for generating a relationship (1) between a desired, a position value, and a voltage value according to a least squares method: Wherein E is a desired, S i is a position, U i is a voltage, k is a first coefficient, b is a second coefficient; and a linear equation determining subunit is used for obtaining the value of the first coefficient and the second coefficient Numerically, determine the linear equation of the fitted curve as equation (5); U = k S+ b (5). 如申請專利範圍第5項所述之控制器,其中,該擬合曲線線性方程預設單元還包括:位置值獲取子單元,用於獲取該位置感測器在預設時間段內採集到的多個位置值{S1、S2、S3……Sn};電壓值生成子單元,用於獲取A/D轉換板分別依據各個該位置值生成的多個電壓值{U1、U2、U3……Un};係數求解子單元,用於依據下述式(2),分別對該式(1)中的第一係數及第二係數求偏導,獲得式(3); 係數確定子單元,用於依據該式(3),獲得用於確定第一係數k及第二係數b的式(4);以及 係數值獲取子單元,用於將獲取的該各個電壓值及生成的該各個位置值代入該式(4),獲得第一係數的數值及第二係數的數值。 The controller of claim 5, wherein the fitting curve linear equation presetting unit further comprises: a position value acquiring subunit, configured to acquire the position sensor collected in the preset time period. a plurality of position values {S1, S2, S3, ..., Sn}; a voltage value generating subunit for acquiring a plurality of voltage values generated by the A/D converter board according to the respective position values {U1, U2, U3, ... Un a coefficient solving subunit for obtaining a partial derivative of the first coefficient and the second coefficient in the equation (1) according to the following formula (2), to obtain the equation (3); a coefficient determining subunit for obtaining a formula (4) for determining the first coefficient k and the second coefficient b according to the formula (3); The coefficient value obtaining subunit is configured to substitute the obtained respective voltage values and the generated respective position values into the equation (4) to obtain a value of the first coefficient and a value of the second coefficient. 如申請專利範圍第5項所述之控制器,其中,該位置糾偏值確定單元將該電壓預測值減去該電壓實際值,獲得該實際位置值對應的位置糾偏值。 The controller of claim 5, wherein the position correction value determining unit subtracts the voltage actual value from the voltage prediction value to obtain a position correction value corresponding to the actual position value. 如申請專利範圍第5或6項所述之控制器,還包括誤差判斷單元,用於在觸發伺服驅動器依據該位置糾偏值驅動馬達之前,判斷該位置糾偏值是否超過預設誤 差閾值,若是,觸發該位置糾偏單元。 The controller of claim 5 or 6, further comprising an error judging unit, configured to determine whether the position correction value exceeds a preset error before the trigger servo driver drives the motor according to the position correction value. The difference threshold, if so, triggers the position correction unit. 一種糾偏控制系統,包括:位置感測器,用於採集卷材的位置值;A/D轉換板,與該位置感測器相連,用於將該位置值轉換為對應的電壓值;如申請專利範圍第5項所述之控制器,與該A/D轉換板相連,用於將該位置值代入該擬合曲線線性方程,獲得該位置值對應的電壓預測值,當該轉換的電壓值與該電壓預測值不同時,確定該位置值對應的位置糾偏值,觸發伺服驅動器;以及伺服驅動器,用於依據該位置糾偏值驅動馬達,以對該卷材進行糾偏控制。 A correction control system includes: a position sensor for collecting a position value of a coil; and an A/D conversion board connected to the position sensor for converting the position value into a corresponding voltage value; The controller of the fifth aspect of the patent is connected to the A/D conversion board, and is used to substitute the position value into the linear equation of the fitting curve to obtain a voltage prediction value corresponding to the position value, when the converted voltage value When the voltage prediction value is different, the position correction value corresponding to the position value is determined to trigger the servo driver; and the servo driver is configured to drive the motor according to the position correction value to perform the deviation correction control on the coil. 如申請專利範圍第9項所述之糾偏控制系統,其中,該糾偏控制系統中的控制器,還用於控制卷材加工系統對卷材進行加工。 The rectification control system of claim 9, wherein the controller in the rectification control system is further configured to control the coil processing system to process the coil.
TW103135625A 2014-07-22 2014-10-15 Correction control method, controller and correction control system TWI559108B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410350942.2A CN105329694B (en) 2014-07-22 2014-07-22 One kind correction control method, controller and deviation correction control system

Publications (2)

Publication Number Publication Date
TW201604668A TW201604668A (en) 2016-02-01
TWI559108B true TWI559108B (en) 2016-11-21

Family

ID=55280516

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103135625A TWI559108B (en) 2014-07-22 2014-10-15 Correction control method, controller and correction control system

Country Status (2)

Country Link
CN (1) CN105329694B (en)
TW (1) TWI559108B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106739555B (en) * 2016-12-30 2019-02-12 南京富士通电子信息科技股份有限公司 A kind of printer paper deviation-rectifying system and method for correcting error
CN107225609B (en) * 2017-07-27 2019-07-09 拓卡奔马机电科技有限公司 A kind of cutting and its entangle knife control system and method
CN108277314B (en) * 2018-02-27 2020-11-20 首钢京唐钢铁联合有限责任公司 Material distribution method and device
CN110487967A (en) * 2019-08-26 2019-11-22 广西玉柴机器集团有限公司 A kind of NOx sensor on-line correction method and signal pickup assembly using air
CN112192960B (en) * 2020-09-17 2022-10-04 浙江天之元物流科技有限公司 Automatic deviation-rectifying printing device and automatic deviation-rectifying printing method
CN114751224B (en) * 2022-04-08 2024-06-14 广州市永麟卫生用品有限公司 Control system and cover machine
CN114919952B (en) * 2022-04-26 2023-10-31 广东工业大学 Ultrasonic small hole detection and deviation correction discrimination method for coiled material with edge perforation
CN117631538B (en) * 2023-11-28 2024-06-04 钛玛科(北京)工业科技有限公司 Automatic adaptive control method for multiple driver systems

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3731508A (en) * 1969-09-03 1973-05-08 British Iron Steel Research Rolling of strip or plate material
US3936665A (en) * 1972-06-12 1976-02-03 Industrial Nucleonics Corporation Sheet material characteristic measuring, monitoring and controlling method and apparatus using data profile generated and evaluated by computer means
US4063076A (en) * 1975-12-26 1977-12-13 Hitachi, Ltd. Method of automatic width control of hot rolled strips
US4809188A (en) * 1986-10-17 1989-02-28 Spartanics, Ltd. Strip feeding and control system
WO2009014324A2 (en) * 2007-07-20 2009-01-29 Konkuk University Industrial Cooperation Corp. Taper tension control method of winding process for web handling system
CN102892696A (en) * 2010-03-16 2013-01-23 株式会社尼利可 Web center position control device, method and program, and web trimming device
CN102105781B (en) * 2008-06-05 2013-02-13 3M创新有限公司 Coil inspection and calibration system and related method
CN101850913B (en) * 2003-09-15 2013-03-06 布拉德伯里有限公司 Method and apparatus for monitoring and conditioning strip material

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB754035A (en) * 1954-06-04 1956-08-01 H G Weber And Company Inc Improvements in or relating to remote control edge alignment device
US4021031A (en) * 1975-12-08 1977-05-03 Butler Automatic, Inc. Web alignment system
US4054251A (en) * 1976-05-04 1977-10-18 James G. Henderson Displacement sensing and guide apparatus
JPS59172313A (en) * 1983-03-16 1984-09-29 Ricoh Co Ltd Endless belt width position control device
US8553228B2 (en) * 2011-09-30 2013-10-08 3M Innovative Properties Company Web inspection calibration system and related methods
CN103569715B (en) * 2012-07-19 2015-11-25 昆山钞票纸业有限公司 Paper web automatic deviation rectifying device
CN203319344U (en) * 2012-12-24 2013-12-04 深圳市兴和力精密机械有限公司 Adhesive tape pasting device
CN103264919A (en) * 2013-05-10 2013-08-28 奇瑞汽车股份有限公司 Roll material deviation rectification control system
CN103604984A (en) * 2013-11-28 2014-02-26 湖北三江航天红峰控制有限公司 Method for improving AD acquisition accuracy based on least square method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3731508A (en) * 1969-09-03 1973-05-08 British Iron Steel Research Rolling of strip or plate material
US3936665A (en) * 1972-06-12 1976-02-03 Industrial Nucleonics Corporation Sheet material characteristic measuring, monitoring and controlling method and apparatus using data profile generated and evaluated by computer means
US4063076A (en) * 1975-12-26 1977-12-13 Hitachi, Ltd. Method of automatic width control of hot rolled strips
US4809188A (en) * 1986-10-17 1989-02-28 Spartanics, Ltd. Strip feeding and control system
CN101850913B (en) * 2003-09-15 2013-03-06 布拉德伯里有限公司 Method and apparatus for monitoring and conditioning strip material
WO2009014324A2 (en) * 2007-07-20 2009-01-29 Konkuk University Industrial Cooperation Corp. Taper tension control method of winding process for web handling system
CN102105781B (en) * 2008-06-05 2013-02-13 3M创新有限公司 Coil inspection and calibration system and related method
CN102892696A (en) * 2010-03-16 2013-01-23 株式会社尼利可 Web center position control device, method and program, and web trimming device

Also Published As

Publication number Publication date
CN105329694A (en) 2016-02-17
CN105329694B (en) 2017-10-03
TW201604668A (en) 2016-02-01

Similar Documents

Publication Publication Date Title
TWI559108B (en) Correction control method, controller and correction control system
CN102684600B (en) Motor control apparatus and method for controlling motor
WO2021004218A1 (en) Method and apparatus for controlling movement trajectory of machine tool, storage medium and processor
CN102710183B (en) Many motors cross-couplings synchronous control system and method
JP2008225533A (en) Servo controller
JP2004288164A (en) Synchronous control device
US9923499B2 (en) Motor control device and motor control method
JP2010022165A (en) Winding switching device of ac motor, and inverter device
CN105438874B (en) A kind of control method of the diaphragm deviation rectifying device of high speed laminating machine
JPWO2014199994A1 (en) Periodic disturbance automatic suppression device
EP2830209B1 (en) Motor control device
JP5523414B2 (en) AC motor control device
JP6464995B2 (en) Voltage sensor abnormality diagnosis device
JP5535285B2 (en) AC motor winding switching device and inverter device
CN110661469B (en) Motor control device
JP5002814B2 (en) Actuator control device and actuator control method
CN103326656B (en) Asynchronous machine rotor field orientation angle modification system and method
CN201830196U (en) Control device of sine-wave linear motor for feeding and driving high-precision numerical control machine tool
JP6728633B2 (en) Electric vehicle control method and control device
CN103023421A (en) Power calculation based slip estimation system and power calculation based slip estimation method
KR20180084359A (en) Apparatus for controlling a machine tool, machine tool including the same, and method of controlling a machine tool using the same
JP2017085850A (en) Control method for electric vehicle, and control apparatus
US20170016929A1 (en) Apparatus and method for measuring motor speed
JP5017648B2 (en) Actuator control device and actuator control method
AT511134A2 (en) Method for controlling the torque of an asynchronous machine

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees