WO2013102338A1 - 开放式数控系统中的起点与终点同步方法、伺服驱动器 - Google Patents

开放式数控系统中的起点与终点同步方法、伺服驱动器 Download PDF

Info

Publication number
WO2013102338A1
WO2013102338A1 PCT/CN2012/076793 CN2012076793W WO2013102338A1 WO 2013102338 A1 WO2013102338 A1 WO 2013102338A1 CN 2012076793 W CN2012076793 W CN 2012076793W WO 2013102338 A1 WO2013102338 A1 WO 2013102338A1
Authority
WO
WIPO (PCT)
Prior art keywords
axis
control
linkage
end point
synchronization
Prior art date
Application number
PCT/CN2012/076793
Other languages
English (en)
French (fr)
Inventor
江俊逢
Original Assignee
Jiang Junfeng
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 Jiang Junfeng filed Critical Jiang Junfeng
Publication of WO2013102338A1 publication Critical patent/WO2013102338A1/zh

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/404Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by control arrangements for compensation, e.g. for backlash, overshoot, tool offset, tool wear, temperature, machine construction errors, load, inertia
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/41Servomotor, servo controller till figures
    • G05B2219/41207Lookup table with position command, deviation and correction value

Definitions

  • the present invention relates to the field of advanced control, and particularly relates to a method for starting point synchronization and end point synchronization in an open numerical control system for real-time control of a tool path curve.
  • the so-called real-time process is to control the linkage of the relevant coordinate axes to synthesize the Tool Path.
  • the so-called digital control is to discrete the tool path curve into the discrete position information required by the coordinate axis and send it to the servo drive at a certain time interval to control the combined displacement of the coordinate axis.
  • the coordinate axes of the linkage are 5 axes of X, y, Z, A, B, etc.
  • the tool path curve is a function of 5 variables such as X, y, Z, A, and B.
  • the coordinate increments received by the five servo drives X, y, Z, A, B, etc. are shown in Table 1.
  • time ⁇ is discretely divided into n intervals: ,..., /, X, y, Z, A, B and other five variables are incremented by ⁇ , A yi , ⁇ , ⁇ ,
  • L segmentation is used to control the coordinate axes to produce a synthetic displacement
  • ⁇ segmentation is used to control the time interval between synthetic displacements.
  • the X axis first feeds AX through ⁇ and then feeds ⁇ 2 until ⁇ ⁇ , y, Z, A, B, W, E, H and so on. Therefore, At n is redundant, so it is rounded off. In addition, in order to unify the control steps, increase ⁇ . At. Regardless of the tool path curve, it can be set as appropriate. Adjust the subscripts 0, 1, ..., n-1 to l,...,n. For the convenience of the description, and different from the interpolation period, the T-segment is called the control rhythm.
  • the digital image of the L segmentation and the T segmentation in the storage space is called a linkage table and a follower table.
  • Applicant's prior invention patent "A Computer Aided Digital Control Method and System” (Invention Patent No.: ZL 201010536800.7) develops computer numerical control CNC (Computer Numerical Control) into computer aided digital based on discrete geometry and discrete kinematics Control CANC (Computer Aided Numerical Control), using discrete geometric programming to generate the intrinsic L segmentation of the tool path curve, based on the intrinsic L segmentation using discrete motion planning to generate the T segmentation and L segmentation of the tool path curve; the L segmentation is used for control Coordinate axis linkage produces a synthetic displacement; the T segmentation is used to control the time interval between the axis displacements.
  • CNC Computer Aided Digital Control Method and System
  • CANC Computer Aided Numerical Control
  • the core task of the PC system is to decompress the digital control information compressed in the tool path and the feed rate to produce the associated data stream of the tool path curve, that is, the L segmentation and T segmentation of the planned tool path curve.
  • the planning process of the L segmentation and the planning process of the T segmentation are non-real-time processes.
  • the time-varying characteristics generated by the curvature change of the tool path curve are fully refined, involving the non-European error of the tool path curve, the micro-line segment..., the motion stability between 1 ⁇ , acceleration and deceleration Control, etc., also compensates for deterministic errors such as backlash and pitch error between the drive chains in the L split.
  • Synthesizing the micro-segment ALi through the coordinate axes requires that all axes start feeding at the same time as the starting point of ALi and simultaneously at the end of ALi, that is, all axes should have start-point synchronization and end-point synchronization.
  • Time lag is an inherent feature in industrial processes and the most difficult dynamic link in physical systems. Dynamic time lag occurs due to the servo drive being in an internal and external environment with nonlinear complexity. Environmental nonlinearities such as nonlinear external disturbances, frictional forces, shaft load changes, shaft gain and time constant mismatch, system model parameters and structural model uncertainties, feed rates and contour curvature changes Time-varying characteristics all affect the time lag, which changes the dynamic performance of the axis, causing the end points of the axes to be out of sync, resulting in contour errors.
  • the invention takes the starting point synchronization and the end point synchronization of the micro line segment ALi in the L segmentation as the control target, and proposes a synchronization method of the starting point and the end point for the open numerical control system.
  • Discrete geometry finds that in the real-time control of the tool path curve, L segmentation is a digital image of the tool path curve and is a geometric invariant in discrete motion.
  • the invention sends a linkage command to the servo driver through the linkage interface, and has the capability of starting point synchronization of the single, reliable, high-speed and high-precision.
  • the invention divides the sampling period of the position loop into several control periods, and adjusts the feed speed and the control period in real time according to the retention pulse k or the lead time Pk in the control period, thereby eliminating the accumulation of the coordinate axis position due to the dynamic time lag.
  • the error is used to compensate the contour error of the tool path curve generated when the coordinate axes are linked, and the end point synchronization of ALi is realized.
  • a starting point synchronization and end point synchronization method in an open numerical control system characterized in that it comprises the following steps:
  • Step 1 Establish a subdivision table of the axis linkage table
  • Step 2 Receive axis linkage table
  • the X-axis servo driver receives the axis linkage table file from the host computer through the serial interface and stores it in the file memory; writes the first address of the axis linkage table to the L pointer, and sets an execution flag;
  • Step 3 start synchronization
  • the starting point synchronization module receives the linkage command from the upper computer through the linkage interface; the linkage command is a synchronization pulse, which is used for starting point synchronization;
  • the file reading module reads the write M counter from the subdivided table; reads the SX k write position loop counter, reads the St k write control cycle timer, and starts the control cycle;
  • Step 5 Control the end of the axis linkage table
  • the starting point synchronization and end point synchronization method in the open numerical control system is characterized in that: in the step 1, the step quantity is a micro step of the L divided component.
  • Step 2 further comprises the following steps: Step 201: The logical attribute sets a logical attribute of the step axis; the logical attribute includes a feed equivalent, a number of bytes of data;
  • Step 202 A servo parameter setting step table is configured to set and adjust a servo parameter.
  • the servo parameter includes a position loop proportional coefficient, a speed loop proportional coefficient, a speed loop integral constant, a speed feedforward coefficient, an acceleration feedforward coefficient, and an electronic gear ratio. One or more.
  • a servo driver comprising: a PID controller, a linkage interface, a serial interface, a file reading module, a starting point synchronization module, and an end point synchronization module;
  • the PID controller includes a position loop, a speed loop, and a current loop for controlling the rotation angle of the servo motor;
  • the file reading module is connected to the host computer through a serial interface, and is used for receiving and storing the axis linkage table sent by the host computer;
  • the first address of the linkage table is written to the L pointer, and the execution flag is set;
  • the axis linkage table further includes a feature table and a servo parameter adjustment table; the feature table is used to mark a logical attribute of the coordinate axis, the logic attribute includes a feed equivalent, a number of bytes of data; and the servo parameter adjustment table is used Adjusting the adjustment direction and the adjustment amount of the servo parameter, the servo parameter includes one or more of a position loop proportional coefficient, a speed loop proportional coefficient, a speed loop integral constant, a speed feedforward coefficient, an acceleration feedforward coefficient, and an electronic gear ratio
  • the feature table is used to mark a logical attribute of the coordinate axis, the logic attribute includes a feed equivalent, a number of bytes of data
  • the servo parameter adjustment table is used Adjusting the adjustment direction and the adjustment amount of the servo parameter, the servo parameter includes one or more of a position loop proportional coefficient, a speed loop proportional coefficient, a speed loop integral constant, a speed feedforward coefficient, an acceleration feedforward coefficient, and an electronic gear ratio
  • the file reading module is further configured to read the step quantity and the control period from the subdivision table, read the feed equivalent, the number of bytes of the data, and set the coordinates from the feature table and the servo parameter adjustment table.
  • the logical attribute of the axis reading the position loop proportional coefficient, the speed loop proportional coefficient, the speed loop integral constant, the speed feedforward coefficient, the acceleration feedforward coefficient, the electronic gear ratio, and setting and adjusting the servo parameters from the servo parameter adjustment table ;
  • the start synchronization module is configured to receive, by using the linkage interface, a linkage command sent by a data flow controller; the linkage command is a synchronization pulse, used for starting synchronization; and according to the L pointer, reading from the subdivision table Write M counter; read 5X k write position loop counter, start sampling cycle of position loop; read St k write control cycle timer, start control loop of position loop; The end point synchronization module adjusts the feed speed and the control period simultaneously or separately for the end point synchronization according to the retention pulse ⁇ or the lead time Pk .
  • the servo driver is characterized in that the serial interface comprises a fieldbus, an RS232 and RS485 interface, a USB interface, a mobile memory or a wireless interface.
  • the beneficial effects of the present invention compared with the prior art are:
  • High-performance servo drive is the basic technology of high-speed and high-precision machining.
  • the start and synchronization of the micro-line segment ALi in L-segment is the core technology of digital control.
  • the numerical control system is connected to the servo drive via the field bus, and the start of the micro-line segment ALi is synchronized depending on the extremely complicated synchronization mechanism in the periodic communication of the field bus.
  • An overly complex starting point synchronization mechanism in periodic communication is an important factor that causes the starting point to be out of sync and thus produce contour errors.
  • the invention is based on data stream association control, and the servo driver is connected to the host computer through a real-time linkage interface and a non-real-time serial interface.
  • the servo drive receives the linkage command sent by the data flow controller through the linkage interface.
  • the linkage interface has a single, reliable, high-speed, high-precision multi-axis real-time synchronization capability.
  • the starting point of ALi is synchronized.
  • the end point synchronization of the microline segment ALi depends on the dynamic time lag.
  • the dynamic time lag results in a cumulative error in the position of the coordinate axes.
  • the contour error formed by the cumulative error of each coordinate axis is the main factor affecting the machining accuracy, especially at high speed machining.
  • time control is the singlest.
  • the time is locked into the system parameter by the interpolation period, which is not a free variable.
  • the prior art can only directly use the contour error as the control target, and the cross-coupling control is used to realize the end point synchronization of the micro line segment ALi. .
  • cross-coupling control must establish a mutual coupling relationship between the servo drives.
  • cross-coupling control will inevitably produce nonlinear complexity such as combined explosion.
  • 2-axis systems Generally only used in 2-axis systems.
  • the invention is based on data stream association control, the time becomes a free variable, the control period is set in the sampling period of the position loop, and the feed rate and the control period are adjusted in real time according to the retention pulse or the lead time Pk in the control period, and the residual pulse is eliminated.
  • the generated coordinate position cumulative error thereby compensating for the contour error caused by the dynamic time lag, and realizing the end point synchronization of the micro line segment ALi.
  • the endpoint synchronization method proposed by the present invention has significant advantages such as a single cartridge and convenient maintenance adjustment.
  • the invention takes the dynamic time lag of the axis as the control target, thereby decoupling the coordinated coordinate axes, avoiding the combined explosion caused by the cross coupling and its nonlinear complexity, and can be used for the multi-axis system of 3 axes and above. .
  • time-delay processing technique such as cross-coupling control relies on system identification, mathematical model and error equation, which leads to the existing servo driver becoming a so-called expert system, that is, only proficient in modern control theory.
  • expert system that is, only proficient in modern control theory.
  • the system that can be developed by experienced experts can not be redeveloped by the user, thus completely losing the openness.
  • FIG. 1 is a process model diagram of a control flow based on an open numerical control system
  • FIG. 2 is a schematic diagram of the control flow of the method of starting point synchronization and end point synchronization.
  • DETAILED DESCRIPTION Data flow association control configures control resources in accordance with a control flow for generating, distributing, transmitting, and executing digital control information.
  • the control flow of the open CNC system is divided into four sub-processes: digital control information generation process, digital control information distribution process, digital control information transmission process and digital control information execution process.
  • the architecture is decoupled into digital control information generation components and numbers. Four functional components, such as a control information distribution unit, a digital control information transmission unit, and a digital control information execution unit.
  • Figure 1 is a process flow diagram based on the control flow of an open CNC system, where the solid line represents the real-time process and the dashed line represents the non-real-time process.
  • the process model diagram clearly describes the architecture of the open digital control system and reveals the technical solutions and key technologies for rationally configuring control resources in different control processes.
  • the digital control information generating unit is a PC-based CANC.
  • the digital control information transmitting component cartridge is called a data flow controller and is used to send a linkage command.
  • the data flow controller is configured with an embedded real-time operating system NCOS (NC Operating System) for digital control.
  • NCOS NC Operating System
  • the NCOS includes a file reading module and an open real-time kernel; the file reading module is configured to read a standardized file such as a status word or a follower table; and the NCOS is used to generate a linkage command.
  • the digital control information distribution component is either embedded in the CANC or embedded data flow controller.
  • the data stream controller can also be embedded in CANCo
  • the data flow controller After the digital control information distribution process is not real-time, in the real-time control process of the tool path curve, in order to control the related coordinate axes, the data flow controller only needs to send the synchronization pulse to the relevant servo driver according to the coordinate axis specified by the status word.
  • the set of synchronization pulses under the control of the status word is referred to as a linkage command.
  • the linkage command is sent to the relevant command; the relevant servo driver only needs to follow the linkage command, and the coordinate value increments in the axis linkage table are successively written into the position loop, and the corresponding coordinate axes are driven to generate the combined displacement.
  • the status word is set in the follow-up table to identify the coordinate axes in the tool path curve.
  • the status word is one byte, and the number of bytes can be 32, 16, or 8.
  • an 8-bit status word can specify 8 linked axes. From low to high, each bit of the status word controls the enable state and data channel of one axis.
  • the status word "11100000” specifies three axes of X, y, Z, etc.
  • the status word "00011000” specifies two axes, A, B, and so on.
  • the number of digits and the number of status words are user parameters.
  • the servo drive receives the axis linkage table sent by the numerical control system through the serial interface.
  • the serial interface can be any standard serial interface, including fieldbus, RS232 and RS485 interfaces, USB interface, mobile memory, wireless interface, and the like.
  • the servo driver receives the linkage command sent by the data flow controller through the linkage interface.
  • a file system is a method of organizing files on disk.
  • FAT File Allocation Table
  • FAT File Allocation Table
  • the axis linkage table file adopts a standard file format conforming to a standard file system such as FAT, and can carry all the digital control information required for processing the tool path curve.
  • the servo drive sets a file memory for receiving and storing the axis linkage table file, and a configuration file reading module for reading the control information in the axis linkage table file.
  • the axis linkage table and the feature table are set in the axis linkage table file.
  • the axis linkage table is used to store the L-divided component of the coordinate axis, that is, the coordinate value increment of the coordinate axis, and the control coordinate axis generates the axis displacement.
  • the feature table is used to identify the logical attributes of the axis in the microline segment ALi; the logical attributes of the axis include the feed equivalent (nano, micron, etc.), the number of bytes occupied by the data, and so on. Therefore, each axis allows for different feed equivalents, different numbers of data bytes, and different electronic gear ratios during a single machining process to accommodate high-speed, high-precision machining.
  • the servo drive is controlled by PID and consists of a position loop, a speed loop, and a current loop.
  • the current loop is the inner loop
  • the position loop and the speed loop are the outer loop.
  • the servo parameters usually include the position loop proportional coefficient, the speed loop proportional coefficient, the speed loop integral constant, the speed feedforward coefficient, the acceleration feedforward coefficient, and the electronic gear ratio.
  • a servo parameter adjustment table is also set in each axis linkage table file, and each micro-segment adjustment table that needs to be adjusted is used to identify the adjustment direction and adjustment amount of the above-mentioned servo parameters. During the use of the user, after repeated trial and error, the user adjusts the adjustment amount in the specific environment for the specific control object.
  • the servo driver receives the linkage table file and initializes it, including: setting the logical attribute of the axis according to the feature table, setting the servo parameter according to the servo parameter adjustment table, writing the first address of the axis linkage table into the L pointer, setting the execution flag, and the like.
  • the servo drive After receiving the linkage command, the servo drive follows the linkage command, reads the micro-line segment from the axis linkage table and writes the position loop according to the L pointer, and drives the coordinate axis feed; the L pointer is incremented by 1 until the axis is connected.
  • the end point of the motion table (the L pointer is equal to the last address of the axis linkage table), the execution flag is turned off, and the axis linkage table of the next tool path curve is prepared.
  • Synchronization mechanism is one of the basic technologies of digital control. For multi-axis linkage, high-speed and high-precision synchronization mechanism is especially important.
  • the micro-line segment ALi is synthesized through the coordinate axes, and all the coordinate axes participating in the linkage are required to satisfy the synchronization of the start point and the end point at the same time.
  • the invention proposes a starting point synchronization and end point synchronization method in an open numerical control system, the technical principle of which is as follows.
  • the curve is discretized into micro-line segments 1 ⁇ , .. . 1 ⁇ . Between the micro-line segments AL ⁇ ALn, the feedrate of the coordinate axes must be hopped.
  • the feedrate of the linkage axis is smaller than the feedrate of the master axis.
  • the jump value of the feedrate of the linkage axis must be greater than the jump value of the feedrate of the master axis.
  • the feed rate of the linkage axis X is gradually increased from 0 to 0.7F, and the total change in the feed rate is roughly It is 0.7F.
  • the feed rate of the drive shaft Y is gradually reduced from F to 0.7F, and the total change in feed rate is approximately 0.3F. Therefore, the total change in the feedrate of the linkage axis X is approximately 2.3 times the total change in the feedrate of the drive shaft Y.
  • the jump of the feedrate of the coordinate axis not only affects the motion stability of the coordinate axis, but more importantly, the significant difference between the jump value of the feedrate of the drive axis and the jump value of the feedrate of the linkage axis is the coordinate.
  • the digital image of the toolpath curve is a geometric invariant in discrete motion.
  • Discrete geometry studies the geometric invariants of the digital image of the toolpath curve in discrete motions. The inventors found that two of the most basic geometric invariants are:
  • the linked axis data stream is a discrete distribution of the active axis data stream.
  • the discrete distribution of the linked axis data stream is the geometric invariant in the discrete motion.
  • the discrete distribution of the linked-axis data stream is a periodic distribution whose period is also a geometric invariant in discrete motion.
  • the interpolation iterative control method often generates redundant information such as "hole” and diagonal package, which destroys the discrete distribution and periodicity of the linked axis data stream.
  • L segmentation is a geometric invariant in discrete motion.
  • the contour of the workpiece is purely a geometric problem, and the tool path curve is purely a geometric problem.
  • the essence of discrete geometric programming is to obtain L-segmentation to eliminate the non-Euclidean error of the workpiece contour generated by discrete motion.
  • the start point synchronization and the end point synchronization are intrinsic properties of the step type associated data stream.
  • the micro-line segment ALi is synthesized by coordinate axes.
  • the feed rate is an efficiency issue that is only related to the machining process and the kinematic/dynamic characteristics of the electromechanical system.
  • L segmentation determines the geometrical features of the toolpath curve
  • T segmentation determines the processing quality and processing efficiency.
  • L-segmentation is a digital image of the tool path curve and is a geometric invariant in discrete motion.
  • the essence of discrete motion planning is to maximize the smoothness of the motion of the coordinate axes and the processing efficiency, and to balance the processing quality and processing efficiency.
  • the time is locked as a system parameter by the interpolation period, which is no longer a variable.
  • Interpolation iterative control strongly correlates time to the geometry of the toolpath curve, thereby tightly coupling the time, space, process requirements, and kinematics/dynamics of the electromechanical system. Since the time is locked by the interpolation period, not a variable, the L segmentation and T segmentation must be adjusted at the same time when adjusting the feedrate. The interpolation period destroys the invariance of the L-segment, which complicates the real-time control process of the tool path curve.
  • the stop-and-go process is an intrinsic property of digital control.
  • digital control the motion of the coordinate axes is discrete motion, like movies and television. At the micro level, it is a dynamic process of stopping and stopping.
  • the present invention proposes the concept of a step size.
  • step size can be regarded as a generalized step pulse, that is, one or more pulses.
  • the step size is an inseparable whole.
  • the walking distance is one or more pulse equivalents.
  • the present invention improves the position mode of the servo driver, and synchronizes the start point synchronization and the end point of the micro line segment ALi in the L division as the control target.
  • the servo driver and the numerical control system are connected through the field bus, and the starting point synchronization is realized by the extremely complicated synchronization mechanism in the periodic communication.
  • the too complicated starting point synchronization mechanism becomes the multi-axis asynchronous An important factor.
  • the servo driver receives the linkage command transmitted by the open real-time kernel through the linkage interface, and has high-speed and high-precision multi-axis real-time synchronization capability for the synchronization of the starting point of the microline segment ALi.
  • the end point synchronization of the microline segment ALi involves dynamic time lag.
  • the change of friction force and cutting force produces the load change of the coordinate axis, which leads to the change of the feed rate of the coordinate axis, which is the main reason for the dynamic time lag.
  • Cross-coupling is the basic means for achieving the end point synchronization of the micro-line segment ⁇ Xi in the prior art.
  • the servo driver follows the interpolation cycle, receives the coordinate value increment and synchronization command through the field bus, starts the sampling period, writes the coordinate value increment to the position loop, and calculates the speed loop to Set and write to the speed loop, calculate the current loop reference and write to the current loop to drive the coordinate axis feed.
  • the position error generated in one sampling period of the position loop can only be added to the next sampling period, and then gradually accumulated into the position cumulative error.
  • the sampling period is fixed and equal to or greater than the interpolation period.
  • the invention is based on data stream association control, the servo driver receives the linkage command through the linkage interface, starts the sampling period, reads the micro-line segment writing position loop from the axis linkage table according to the L pointer, calculates the speed loop reference value and writes the speed loop, Calculate the current loop reference and write to the current loop to drive the coordinate axis feed.
  • the sampling period is not fixed and varies depending on the control rhythm Ati.
  • the coordinate axis be the X axis
  • the present invention subdivides the sampling period of the position loop into several control periods.
  • the servo driver performs position control on the micro line segment in one sampling period
  • the dynamic time lag is detected in real time in the control period, and according to the control
  • the retention pulse or lead time in the cycle adjusts the feed rate and the control period in real time to compensate the position error of the coordinate axis generated in the sampling period in real time to realize the end point synchronization of ALi.
  • 5X k is called the step size.
  • St k calls the control cycle.
  • the position loop does not have position overshoot, and only the position lag exists.
  • the X axis should be fed 5X k .
  • the control cycle timer is timed to. If the real-time feed of the feedback detection is 5X k ', less than 5X k , the position loop counter has a residual value of 5X k - 5X k '. This indicates that the load is large and the dynamic time lag results in the actual feed rate R of the X-axis at 5X k , x ' is too low, and the X-axis position is delayed.
  • 5X k - 5X k ' is called a retention pulse and is represented by a position error.
  • k I Fi, x is called lag time, and is expressed in 3 ⁇ 4.
  • 5t k - 5t k ' refers to the lead time, expressed in p k .
  • the lead time is expressed as the X-axis "pause" time is too long.
  • the actual feedrate R, x ' SX k / ( St k - Pk ) is too high, the feedrate should be decelerated, and its increment is negative: Fi, x - ( 5X k / 5t
  • 5X k is written to the position loop according to the control cycle of 5t k 13 ⁇ 4 times.
  • the control cycle timer is timed, and the state when the feed is 5X k is detected in real time is the position lag or the time advance.
  • the feed error and the control cycle are adjusted in real time to compensate the position error caused by the dynamic time lag.
  • 5X k is written to the position loop in a sampling period of the position loop according to the control period of 5t k minutes.
  • the control cycle timer is timed, the status when the feed is 5X k is detected in real time is the position lag or the time advance, the feed rate is adjusted in real time, and the position error caused by the dynamic time lag is compensated.
  • Dynamic time lag is a personalized random variable, which depends on many nonlinear internal and external environmental factors, which are mainly based on load changes, and is inseparable from specific electromechanical systems and specific processing processes. Therefore, the positive increment U St k of the above feed rate and the negative increment Fi, x - ( 5X k / 5t k ' ), the lag time U Fi,x , although strongly correlated with the retention pulse lead time Pk , are only ideal Theoretical estimate of the state. In engineering, for these personalized nonlinear random variables, linear corrections are usually made using empirical parameters.
  • 5t k be the control period
  • be the actual time spent feeding 5X k '
  • k is the retention pulse, which is the lag time
  • p k is the lead time.
  • All are empirical parameters, which are related to the specific environment of the specific control object. During the process of use, the user repeatedly sets up and decides on the specific environment of the specific control object.
  • Timing information is sent to detect the dwell pulse.
  • the time allocation is not only used for the control tasks of the position loop, the speed loop, and the current loop, but also includes other auxiliary tasks, such as monitoring the external and internal states. These times for the auxiliary tasks in the sampling cycle become part of the "pause" time.
  • the real-time adjustment control period means that when the servo drive performs position control, the time interval between the control periods of 5 t k is adjusted in real time, that is, the "pause" time during the stop-and-go process.
  • the discrete distribution of the linked axis data stream is the geometric invariant in the discrete motion, and its period is also the geometric invariant in the discrete motion.
  • the X axis be the linkage axis, and further subdivide according to the period. For example, the period is 3, and it is subdivided by integral multiples of 3 (3, 6, 9 etc.).
  • the increment of coordinate values obtained after such subdivision is called microstep.
  • the digital image of the toolpath curve formed by the microsteps is called a microstep type associated data stream.
  • the feedrate of the coordinate axes within the control period of 5t k is equal, eliminating the influence of different feed rates.
  • 5X k is written to the position loop according to the control cycle of 5t k 13 ⁇ 4 times.
  • the control period is 5t k timing, and the state when the feed is 5X k is detected in real time is the position lag or the time advance, and the position error caused by the dynamic time lag is compensated in real time by adjusting the control period.
  • 5t k be the control period
  • be the actual time spent feeding 5X k '
  • k is the retention pulse, which is the lag time
  • p k is the lead time.
  • K 3 is an empirical parameter, which is related to the specific environment of the specific control object. During the use process, the user repeatedly sets the test and sets the specific environment for the specific control object.
  • Timing information is sent to detect the dwell pulse.
  • the present invention proposes a synchronization method of a starting point and an end point for an open numerical control system.
  • Step 1 Establish a subdivision table of the axis linkage table
  • Step 2 Receive axis linkage table
  • the X-axis servo driver receives the axis linkage table file from the host computer through the serial interface and stores it in the file memory; writes the first address of the axis linkage table to the L pointer, and sets an execution flag;
  • the starting point synchronization module receives the linkage command from the upper computer through the linkage interface; the linkage command is a synchronization pulse, and is used for starting point synchronization; According to the L pointer, the file reading module reads the mi write M counter from the subdivided table; reads the SX k write position loop counter, reads the St k write control cycle timer, and starts the control cycle;
  • Step 5 Control the end of the axis linkage table
  • step 1 the step size is the microstep of the L segmentation component.
  • Step 2 also includes the following steps:
  • Step 201 The logical attribute setting step is a logical attribute of the target axis; the logical attribute includes a feed equivalent, a number of bytes of data;
  • Step 202 A servo parameter setting step table is configured to set and adjust a servo parameter.
  • the servo parameter includes a position loop proportional coefficient, a speed loop proportional coefficient, a speed loop integral constant, a speed feedforward coefficient, an acceleration feedforward coefficient, and an electronic gear ratio.
  • the invention provides a servo driver for an open numerical control system, which comprises a PID controller, a linkage interface, a serial interface, a file reading module, a starting point synchronization module, and an end point synchronization module;
  • the PID controller includes a position loop, a speed loop, and a current loop for controlling the rotation angle of the servo motor;
  • the file reading module is connected to the host computer through a serial interface, and is used for receiving and storing the axis linkage table sent by the host computer;
  • the first address of the linkage table is written to the L pointer, and the execution flag is set;
  • the 5t k is a control period subdivided by 13 ⁇ 4, and the 5X k is a stepped amount subdivided by 13 ⁇ 4; the 13 ⁇ 4 is a number of 5X k ;
  • the axis linkage table further includes a feature table and a servo parameter adjustment table;
  • the feature table is used to mark a logical attribute of the coordinate axis, the logic attribute includes a feed equivalent, a number of bytes of data;
  • the servo parameter adjustment table is used for marking The adjustment direction and the adjustment amount of the servo parameter, the servo parameter includes one or more of a position loop proportional coefficient, a speed loop proportional coefficient, a speed loop integral constant, a speed feedforward coefficient, an acceleration feedforward coefficient, and an electronic gear ratio;
  • the file reading module is further configured to read the step quantity and the control period from the subdivision table, read the feed equivalent, the number of bytes of the data, and set the coordinate axis from the feature table and the servo parameter adjustment table.
  • Logic attribute reading a position loop proportional coefficient, a speed loop proportional coefficient, a speed loop integral constant, a speed feedforward coefficient, an acceleration feedforward coefficient, an electronic gear ratio, and setting and adjusting a servo parameter from the servo parameter adjustment table;
  • the start synchronization module is configured to receive, by the linkage interface, a linkage command sent by the data flow controller; the linkage command is a synchronization pulse, used for starting synchronization; and according to the L pointer, reading from the subdivision table M counter; read 5X k write position loop counter, start sampling cycle of position loop; read St k write control cycle timer, start control loop of position loop;
  • the end point synchronization module adjusts the feed rate and control period simultaneously or separately for the end point synchronization based on the retention pulse or lead time Pk .
  • the serial interface includes fieldbus, RS232 and RS485 interfaces, USB interface, mobile memory or wireless interface.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

一种开放式数控系统中的起点与终点同步方法用于对动态时滞进行实时补偿。本申请基于离散几何学与离散运动学,以L分割中的微线段ΔLi(i=1,...,n)的起点同步与终点同步作为控制目标。该方法通过联动接口向伺服驱动器发送联动命令,对于微线段ΔLi的起点具有简单可靠、高速高精度的同步能力;将位置环的采样周期细分为若干控制周期,根据控制周期中的滞留脉冲或超前时间,实时调整进给速度与控制周期,消除了滞留脉冲产生的坐标轴位置累积误差,从而补偿因动态时滞而产生的轮廓误差,实现微线段ΔLi的终点同步。

Description

开放式数控系统中的起点与终点同步方法、 伺服驱动器 技术领域 本发明属先进控制领域, 具体涉及开放式数控系统中的一种起点同步 与终点同步方法, 用于在刀路曲线的实时控制过程中对 L分割中的微线段 △Li (i= l,...,n) 的起点与终点进行实时同步。 背景技术
众所周知, 在机械系统的数字控制过程中, 所谓实时过程就是控制相 关坐标轴联动以合成刀路曲线 (Tool Path )。 所谓数字控制就是将刀路曲线 离散为坐标轴所需要的离散位置信息并以一定的时间间隔发送给伺服驱动 器, 控制坐标轴的合成位移。
在一般情况下, 设联动的坐标轴为 X、 y、 Z、 A、 B等 5轴, 刀路曲线 为 X、 y、 Z、 A、 B等 5个变量的函数。 将 X、 y、 Z、 A、 B等 5个伺服驱 动器接收的坐标值增量依时序列为表 1。
表 1
Figure imgf000002_0001
表 1中, 时间 Τ被离散分割为 η个区间: ,…,/ , X、 y、 Z、 A、 B等 5个变量在 内的坐标值增量为△ 、 Ayi, △ 、 ΔΑι,
△Li (i= Ι,.,.,η) 称之为刀路曲线的 L分割; Ati (i= Ι,.,.,η)称之为 刀路曲线的 Τ分割。
L分割用于控制坐标轴产生合成位移; Τ分割用于控制合成位移之间 的时间间隔。
在实时控制过程中, X轴首先进给 AX 经过 ^后再进给 ΔΧ2, 直到 ΔΧη, y、 Z、 A、 B、 W、 E、 H等轴也是如此。 因而, Atn是冗余的, 故舍 去。 另外, 为了统一控制步骤, 增加△ 。 At。与刀路曲线无关, 可适当设 定。 将下标 0,1,..., n-1调整为 l,...,n。 为叙述的方便起见, 且有别于插补周 期, T分割中的 称之为控制节律。
L分割与 T分割在存储空间的数字映像称之为联动表与随动表。 申请人的在先发明专利《一种计算机辅助数字控制方法与系统》(发明 专利号: ZL 201010536800.7 )基于离散几何学与离散运动学, 将计算机数 字控制 CNC ( Computer Numerical Control )发展为计算机辅助数字控制 CANC ( Computer Aided Numerical Control ), 采用离散几何规划生成刀路曲 线的本征 L分割, 基于本征 L分割采用离散运动规划生成刀路曲线的 T分 割与 L分割; 所述 L分割用于控制坐标轴联动产生合成位移; 所述 T分割 用于控制所述轴位移之间的时间间隔。
PC系统的核心任务是, 将压缩在刀路曲线与进给速度中的数字控制信 息解压, 制造刀路曲线的关联数据流, 也就是规划刀路曲线的 L分割与 T 分割。 在数据流关联控制中, L分割的规划过程与 T分割的规划过程为非 实时过程。
在基于 IEEE定义的现有开放式数控系统中, T分割 Ati ( i = 1,..., n ) 为实时操作系统的分时周期, 是等长的, 称之为插补周期。 在数据流关联 控制中, T分割 ( i = l,..., n ) 不是等长的。 L分割与 T分割仅取决于刀 周期无关。 按照不同的控制目的, 针对刀路曲线的曲率变化所产生的时变 学特征充分精细化, 涉及刀路曲线的非欧化误差、 微线段 ... , 1^之 间的运动平稳性、 加减速控制等, 还在 L分割中对传动链之间的反向间隙、 螺距误差等确定性误差进行补偿。
通过坐标轴联动合成微线段 ALi,要求所有的坐标轴在 ALi的起点同时 开始进给并在 ALi的终点同时完成进给, 即所有的坐标轴应具有起点同步 与终点同步。
时滞是工业过程中固有的特性, 是物理系统中的最难控制的动态环节。 动态时滞的产生缘于伺服驱动器处于非线性复杂性的内外环境中。 机械系 统的非线性外部扰动、 摩擦力、 轴的负载变化、 轴的增益与时间常数不匹 配等环境不确定性, 系统模型的参数与结构的模型不确定性、 进给速度与 轮廓曲率变化的时变特性都影响时滞, 从而改变轴的动态性能, 导致坐标 轴终点不同步, 产生轮廓误差。
综述文献《多轴协调运动中的交叉耦合控制》(《机械设计与制造》, 2006 年第 10期, 作者: 丛爽, 刘宜)评述了处理动态时滞所导致的轮廓误差的 交叉耦合控制技术(Cross Coupling Control, CCC )。 交叉耦合控制直接以 轮廓误差作为控制目标, 必须在两个伺服驱动器之间建立耦合关系。 对于 三轴及三轴以上的多轴系统, 交叉耦合控制必然产生组合爆炸, 一般只能 用于 2轴系统。
本发明以 L分割中的微线段 ALi的起点同步与终点同步作为控制目标, 为开放式数控系统提出一种起点与终点的同步方法。 发明内容 离散几何学发现,在刀路曲线的实时控制过程中, L分割作为刀路曲线 的数字映像, 是离散运动中的几何不变量。 本发明通过联动接口向伺服驱 动器发送联动命令, 具有筒单可靠、 高速高精度的起点同步能力。 本发明 将位置环的采样周期细分为若干控制周期, 根据控制周期中的滞留脉沖 k 或超前时间 Pk, 通过实时调整进给速度与控制周期, 消除因动态时滞而产 生的坐标轴位置累积误差, 从而补偿坐标轴联动时产生的刀路曲线的轮廓 误差, 实现 ALi的终点同步。 本发明的技术方案如下。
以 X轴为例。
开放式数控系统中的一种起点同步与终点同步方法, 其特征在于, 包 括以下步骤:
步骤 1、 建立轴联动表的细分表;
规划刀路曲线的 L分割 ALi (i= Ι,.,.,η) 与 Τ分割 (i= Ι,.,.,η), 生成 X轴的轴联动表 (i= Ι,.,.,η); 所述轴联动表中的微线段 用于 控制 X轴产生轴位移,所述轴联动表中的控制节律 用于控制所述轴位移 之间的时间间隔;
将微线段 细分为步进量 5Xk, 所述步进量∑5Xk (k = mi , i= Ι,.,.,η), 所述 ι¾为 5Xk的个数, mi>2;
将控制节律 Ati细分为控制周期 Stk, 细分为控制周期 Stk, 所述控制周 期∑5tk (k= 1, ···,!¾ , i= Ι,.,.,η);
将 ι¾、 5tk、 5Xk组成微线段 的细分表(ι¾, 5tk, 5Xk), 存入 X轴 的轴联动表文件;
步骤 2, 接收轴联动表 X 轴伺服驱动器通过串行接口从上位机接收轴联动表文件并存储在文 件存储器中; 将轴联动表的首地址写入 L指针, 设置执行标志;
步骤 3 , 起点同步
起点同步模块通过联动接口从上位机接收联动命令; 所述联动命令为 同步脉沖, 用于起点同步;
根据 L指针, 文件读取模块从所述 的细分表中读取 1¾写入 M计 数器; 读取 SXk写入位置环计数器, 读取 Stk写入控制周期计时器, 启动控 制周期;
步骤 4, 终点同步
对于微线段 的每个步进量 5Xk ( k = mi ), 终点同步模块根据 滞留脉沖 ^或超前时间 Pk, 同时或单独调整进给速度、 控制周期, 用于终 点同步;
读入细分表中下一个 5Xk, 5tk, 直至 M计数器为 0;
步骤 5, 控制轴联动表终点
如果 L指针未指向轴联动表的末地址,则重复步骤 3至步骤 4,直至轴 联动表中的 ( i = l,..., n )全部执行完毕。
进一步地, 所述开放式数控系统中的起点同步与终点同步方法, 其特 征在于: 所述步骤 1中, 步进量为 L分割分量的微步。
进一步地, 所述开放式数控系统中的起点同步与终点同步方法, 其特 征在于: 所述步骤 4 中, 终点同步模块调整进给速度的方式为: 若控制周 期计时器定时到, 如果 ^≠0, X轴滞后, 继续进给, 直至 = 0, 根据 kAk 实时调整速度环给定值; 如果 = 0且 Pk≠0, X轴超前, 根据 k2pk实时调 整速度环给定值, 其中 k2为经验参数。
进一步地, 所述开放式数控系统中的起点同步与终点同步方法, 其特 征在于: 所述步骤 4 中, 终点同步模块调整控制周期的方式为: 若控制周 期计时器定时到, 如果 ≠0, X轴滞后, 继续进给, 直至 =0, 将 k3 k 写入时滞补偿定时器 D, 实时调整下一个控制周期 Stk提前 k^k启动; 如果 k= 0 J- pk≠0, X轴超前, 将 k4pk写入时滞补偿定时器 D, 实时调整下一 个控制周期 5tk延迟 k4Pk启动; 其中 k3、 ^为经验参数。
进一步地, 所述开放式数控系统中的起点同步与终点同步方法, 其特 征在于: 步骤 2后还包括以下步骤: 步骤 201、 逻辑属性设置步骤 标轴的逻辑属性; 所述逻辑属性包括进给当量、 数据的字节数;
步骤 202、 伺服参数设置步骤 表, 设置并调整伺服参数; 所述伺服参数包括位置环比例系数、 速度环比 例系数、 速度环积分常数、 速度前馈系数、 加速度前馈系数、 电子齿轮传 动比中的一个或多个。
一种伺服驱动器, 其特征在于, 包括 PID控制器, 联动接口, 串行接 口, 文件读取模块, 起点同步模块, 终点同步模块;
PID控制器中包括位置环、速度环、电流环,用于控制伺服电机的转角; 文件读取模块通过串行接口与上位机连接, 用于接收并存储上位机发 送的轴联动表; 将轴联动表的首地址写入 L指针, 设置执行标志;
所述轴联动表文件用于存储 X轴的轴联动表 ( i = Ι,. , ., η )及其细 分表(!¾, 5tk, 5Xk ), 所述 用于控制 X轴的轴位移, 所述 5tk为 按 mi细分后的控制周期,所述 5Xk为 ΔΧί按 mi细分后的步进量;所述 ι¾为 5Xk 的个数;
所述轴联动表还包括特征表与伺服参数调整表; 所述特征表用于标记 坐标轴的逻辑属性, 所述逻辑属性包括进给当量、 数据的字节数; 所述伺 服参数调整表用于标记伺服参数的调整方向与调整量, 所述伺服参数包括 位置环比例系数、 速度环比例系数、 速度环积分常数、 速度前馈系数、 加 速度前馈系数、 电子齿轮传动比中的一个或多个;
所述文件读取模块还用于从所述细分表中读取步进量与控制周期, 从 所述特征表与伺服参数调整表中读取进给当量、 数据的字节数, 设置坐标 轴的逻辑属性; 从所述伺服参数调整表中读取位置环比例系数、 速度环比 例系数、 速度环积分常数、 速度前馈系数、 加速度前馈系数、 电子齿轮传 动比, 设置并调整伺服参数;
所述起点同步模块用于通过所述联动接口接收数据流控制器发送的联 动命令; 所述联动命令为一个同步脉沖, 用于起点同步; 根据 L指针, 从 所述细分表中读取 1¾写入 M计数器; 读取 5Xk写入位置环计数器, 启动位 置环的采样周期; 读取 Stk写入控制周期计时器, 启动位置环的控制周期; 所述终点同步模块根据滞留脉沖 ^或超前时间 Pk, 同时或单独调整进 给速度、 控制周期, 用于终点同步。
进一步地, 所述一种伺服驱动器, 其特征在于, 串行接口包括现场总 线、 RS232与 RS485接口、 USB接口、 移动存储器或无线接口。 本发明与现有技术对比所具有的有益效果是:
1、 高性能伺服驱动器是高速高精度加工的基础技术, L分割中的微线 段 ALi的起点同步与终点同步是数字控制的核心技术。
在基于 IEEE定义的现有技术中,数控系统通过现场总线与伺服驱动器 连接, 微线段 ALi的起点同步取决于现场总线的周期通信中极为复杂的同 步机制。 周期通信中过于复杂的起点同步机制是导致起点不同步并进而产 生轮廓误差的一个重要因素。
本发明基于数据流关联控制, 伺服驱动器通过实时联动接口和非实时 串行接口与上位机连接。 在刀路曲线的加工过程中, 伺服驱动器通过联动 接口接收数据流控制器发送的联动命令。 在发送端, 联动接口类似按控制 节律 ( i = l,..., n )不断地单向传输状态字的并行接口; 在接收端, 一个 伺服驱动器分别与联动接口的一个数据位连接, 类似一根中断控制线。
所述联动接口具有筒单可靠的、 高速高精度多轴实时同步能力。 对于 联动坐标轴中的每个坐标轴来说, 本发明中的控制节律 Ati ( i = Ι,. , ., η )提 供了一个统一的标准时钟, 以极其筒单的技术手段实现了微线段 ALi的起 点同步。
2、 微线段 ALi的终点同步取决于动态时滞。
动态时滞导致坐标轴的位置累积误差。 多轴联动时, 每个坐标轴的位 置累积误差合成后形成的轮廓误差是影响加工精度的主要因素, 在高速加 工时尤为显著。
在数字技术中, 时间控制是最筒单的。 在基于 IEEE定义的开放式数控 系统中, 时间被插补周期锁定为系统参数, 不是一个自由变量, 现有技术 只能直接以轮廓误差作为控制目标, 采用交叉耦合控制实现微线段 ALi的 终点同步。
交叉耦合控制必须在伺服驱动器之间建立相互的耦合关系。 对于 3 轴 及 3轴以上的多轴系统, 交叉耦合控制必然产生组合爆炸等非线性复杂性, 一般只能用于 2轴系统。
本发明基于数据流关联控制, 时间成为一个自由变量, 在位置环的采 样周期中设置控制周期, 根据控制周期中的滞留脉沖 或超前时间 Pk, 实 时调整进给速度与控制周期, 消除了滞留脉沖产生的坐标轴位置累积误差, 从而补偿因动态时滞而产生的轮廓误差, 实现微线段 ALi的终点同步。
本发明所提出的终点同步方法具有筒单、 维护调整方便等显著优点。
3、 本发明以轴的动态时滞作为控制目标, 从而将联动坐标轴解耦, 避 免了交叉耦合所产生的组合爆炸及其非线性复杂性, 可用于 3轴及 3轴以 上的多轴系统。
4、 在基于 IEEE定义的现有技术中, 交叉耦合控制等时滞处理技术依 赖通过系统辨识、 建立数学模型与误差方程, 导致现有伺服驱动器成为所 谓的专家型系统, 即只有精通现代控制理论且实际经验丰富的专家才能开 发的系统, 用户无法进行二次开发, 从而完全丧失了开放性。
在本发明中, 细分表中的 1¾, 5tk, 5Xk, 可在 PC上通过计算机辅助数 字控制方法非实时地予以精细规划。 因而, 本发明所提出的起点同步与终 点同步方法是完全开放的。 附图说明 图 1为开放式数控系统的基于控制流程的过程模型图;
图 2为起点同步与终点同步方法的控制流程示意图。 具体实施方式 数据流关联控制按照数字控制信息的生成、 分配、 发送、 执行的控制 流程配置控制资源。 开放式数控系统的控制流程划分为数字控制信息生成 过程、 数字控制信息分配过程、 数字控制信息发送过程与数字控制信息执 行过程等四个子过程, 其体系结构解耦为数字控制信息生成部件、 数字控 制信息分配部件、 数字控制信息发送部件、 数字控制信息执行部件等四个 功能部件。
按照联动的坐标轴, 将 L分割 Li ( AXi、 Δγι, △ 、 ΔΑι, ΔΒι ) 按△ 、 Δγι, △ 、 ΔΑι, △:¾分离为 5个独立的轴联动表, 例如, 关于 ΔΧι ( i = 1,..., n ) 的 X轴联动表, 关于 Ayi ( i = 1,· · ·, n ) 的 y轴联动表, 等等。 进而, 如果将 X、 y、 Z、 A、 B等 5个坐标轴的轴联动表事先分配给 X、 y、 Z、 A、 B等运动控制系统, 轴联动表的分配过程则转化为非实时过 程。
图 1 为开放式数控系统的基于控制流程的过程模型图, 其中实线表示 实时过程, 虚线表示非实时过程。 过程模型图极为清晰地描述了开放式数 控系统的体系结构, 揭示了在不同的控制流程中合理配置控制资源的技术 方案与关键技术。
数字控制信息生成部件为基于 PC的 CANC。
数字控制信息发送部件筒称为数据流控制器, 用于发送联动命令。 所述数据流控制器配置了用于数字控制的嵌入式实时操作系统 NCOS ( NC Operating System )。所述 NCOS包括文件读取模块与开放式实时内核; 所述文件读取模块用于读取状态字、 随动表等标准化文件; 所述 NCOS用 于产生联动命令。
数字控制信息分配部件或嵌入 CANC或嵌入数据流控制器。 数据流控 制器亦可嵌入 CANCo
数字控制信息分配过程非实时化后, 在刀路曲线的实时控制过程中, 为控制相关坐标轴进行联动, 数据流控制器只须按照状态字指定的坐标轴 向相关伺服驱动器发送同步脉沖。 为叙述筒单起见, 将状态字控制下的这 组同步脉沖称之为联动命令。
这样一来, 所谓刀路曲线的实时控制过程, 就是开放式实时内核按照 随动表中的控制节律 ( i = 1,..., n ), 在状态字的控制下, 向相关伺服驱 动器单向发送联动命令; 相关伺服驱动器只须跟随联动命令, 将其轴联动 表中的坐标值增量逐次写入位置环, 驱动相应坐标轴联动产生合成位移。
随动表中设置状态字, 用于标识该刀路曲线中联动的坐标轴。 状态字 为一个字节, 字节的位数可以为 32、 16、 8。 例如, 8位状态字可指定 8个 联动的坐标轴。 从低位到高位, 状态字的每位控制一个坐标轴的使能状态 及数据通道。例如,状态字 " 11100000"指定 X、 y、 Z等 3轴、状态字 " 00011000" 指定 A、 B等 2轴。 状态字的位数与个数为用户参数。
伺服驱动器通过串行接口接收数控系统发送的轴联动表。 所述串行接 口可以是任何标准串行接口, 包括现场总线、 RS232与 RS485接口、 USB 接口、 移动存储器、 无线接口等。 伺服驱动器通过联动接口接收数据流控制器发送的联动命令。 在发送 端, 联动接口类似按控制节律 ( i = l , . . . , n )不断地单向传输状态字的并 行接口; 在接收端, 一个伺服驱动器分别与联动接口的一个数据位连接, 类似一根中断控制线。
文件系统是在磁盘上组织文件的方法。例如, FAT( File Allocation Table ) 是一种广泛使用的标准文件系统。
在本发明中, 轴联动表文件采用符合 FAT等标准文件系统的标准文件 格式, 可以携带加工刀路曲线所需要的全部数字控制信息。 伺服驱动器设 置一个文件存储器用于接收并存储轴联动表文件, 并配置文件读取模块, 用于读取轴联动表文件中的控制信息。
轴联动表文件中设置轴联动表与特征表。
轴联动表用于存储坐标轴的 L分割分量即坐标轴的坐标值增量, 控制 坐标轴产生轴位移。例如 , X轴联动表存储 X轴的 L分割分量即 AXi( i = 1 , ... : η λ
特征表用于标识微线段 ALi中该坐标轴的逻辑属性; 坐标轴的逻辑属 性包括进给当量(纳米、 微米等)、 数据所占的字节数等。 因此, 在一次加 工过程中, 允许每个坐标轴具有不同的进给当量、 不同的数据字节数、 不 同的电子齿轮传动比, 以适应高速高精度加工的需要。
伺服驱动器采用 PID控制, 由位置环、 速度环、 电流环构成。 电流环 为内环, 位置环与速度环为外环。 伺服参数通常包括位置环比例系数、 速 度环比例系数、 速度环积分常数、 速度前馈系数、 加速度前馈系数、 电子 齿轮传动比等。
在每个轴联动表文件中还设置伺服参数调整表, 针对每个需要调控的 微线段 调整表用于标识上述伺服参数的调整方向与调整量。 用户在 使用过程中, 经过反复试凑, 针对具体控制对象完善具体环境中的调整量。
伺服驱动器接收联动表文件后进行初始化, 包括: 根据特征表设置轴 的逻辑属性, 根据伺服参数调整表设置伺服参数, 将轴联动表的首地址写 入 L指针, 设置执行标志等。
伺服驱动器接收联动命令后, 跟随联动命令, 根据 L指针从轴联动表 中读取微线段 写入位置环, 驱动坐标轴进给; L指针加 1 , 直至轴联 动表的终点 (L指针等于轴联动表的末地址), 关闭执行标志, 准备执行下 一条刀路曲线的轴联动表。
同步机制是数字控制的基础技术之一, 对于多轴联动, 高速高精度的 同步机制尤为重要。
在刀路曲线的实时控制过程中, 存在两种同步。
定义 1、 起点同步
进给微线段 ALi时, 如果所有参入联动的坐标轴同时开始进给, 这些 联动坐标轴称之为起点同步的。
定义 2、 终点同步
进给微线段 ALi时, 如果所有参入联动的坐标轴同时到达终点, 这些 联动坐标轴称之为终点同步的。
在刀路曲线的实时控制过程中,通过坐标轴联动合成微线段 ALi,要求 所有参入联动的坐标轴同时满足起点同步与终点同步。
本发明提出开放式数控系统中的一种起点同步与终点同步方法, 其技 术原理如下。
第一、 坐标轴运动速度的不连续性。
加工曲线时, 坐标轴的运动速度必然产生跳变, 导致坐标轴运动速度 的不连续性, 这是离散运动学的基本特征之一。
例如, 将曲线离散为微线段 1^,.. . 1^。 在微线段 AL ^ALn之间, 坐标轴的进给速度必然产生跳变。
不仅如此, 在加工过程中, 各个坐标轴的跳变值差异很大。
联动轴的进给量小于主动轴的进给量, 联动轴进给速度的跳变值则必 然大于主动轴进给速度的跳变值。
以第 1象限第 1区间的逆圓为例。 从起点到特征点 (其坐标为 r / ^ , r / 2 ), 对于每条微线段 A Li, 联动轴 X的进给速度从 0逐渐增加到 0.7F , 其进给速度的总改变量大致为 0.7F。 主动轴 Y的进给速度则从 F逐渐减小 到 0.7F , 其进给速度的总改变量大致为 0.3F。 因此, 联动轴 X进给速度的 总改变量大致是主动轴 Y进给速度的总改变量的 2.3倍。
坐标轴进给速度的跳变不仅影响坐标轴的运动平稳性, 更值得注意的 是, 主动轴进给速度的跳变值与联动轴进给速度的跳变值之间的显著差异 是导致坐标轴不同步的重要因素之一。
第二、 刀路曲线的数字映像在离散运动中的几何不变量。 离散几何学研究刀路曲线的数字映像在离散运动中的几何不变量, 发 明人发现, 其中两个最基本的几何不变量是:
1、 在步进型关联数据流中, 联动轴数据流是关于主动轴数据流的离散 分布。 在刀路曲线的实时控制过程中, 联动轴数据流的离散分布是离散运 动中的几何不变量。
特别是, 对于直线, 联动轴数据流的离散分布是周期分布, 其周期也 是离散运动中的几何不变量。
在基于 IEEE定义的现有开放式数控系统中,插补迭代控制方法往往产 生 "空穴"、对角包等冗余信息,破坏了联动轴数据流的离散分布与周期性。
2、 在增量型关联数据流中, L分割是离散运动中的几何不变量。
工件轮廓纯粹是一个几何问题, 刀路曲线也纯粹是一个几何问题。 在 满足运动学 /动力学约束的条件下, 离散几何规划的本质是获得 L分割以消 除离散运动产生的工件轮廓的非欧误差。
对于步进型关联数据流, 所有参入联动的坐标轴要么进给一个进给当 量, 要么不进给。 因而, 在刀路曲线的实时控制过程中, 起点同步与终点 同步是步进型关联数据流的内在属性。
对于增量型关联数据流,通过坐标轴联动合成微线段 ALi,在离散运动 中, 要求所有参入联动的坐标轴同时满足起点同步与终点同步。 进给速度 则是一个效率问题, 仅与工艺师所制定的加工工艺和机电系统的运动学 /动 力学特征有关。 L分割与 T分割之间不存在耦合关系, L分割决定刀路曲线 的几何特征, T分割决定加工质量与加工效率。 因而, 在刀路曲线的实时控 制过程中, L分割作为刀路曲线的数字映像, 是离散运动中的几何不变量。
在运动学 /动力学约束的条件下, 离散运动规划的本质是最大程度地提 高坐标轴运动的平稳性与加工效率, 就加工质量与加工效率进行平衡。
在基于 IEEE定义的现有开放式数控系统中,时间被插补周期锁定为系 统参数, 不再是变量。 插补迭代控制将时间与刀路曲线的几何结构强相关, 从而将时间、 空间、 工艺要求、 机电系统的运动学 /动力学特征全部紧密耦 合在一起。 由于时间被插补周期锁定, 不是变量, 调整进给速度时必须同 时调整 L分割与 T分割。 插补周期破坏了 L分割的不变性, 从而导致刀路 曲线的实时控制过程复杂化。
第三、 走停过程是数字控制的内在属性。 在数字控制中, 坐标轴的运动是离散运动, 如同电影、 电视一样, 在 微观上, 是一种走走停停的动态过程。
因而, 本发明提出步进量的概念。
所谓步进量, 可视为广义的步进脉沖, 即 1 个或多个脉沖。 步进量是 一个不可分割的整体, 在走停过程中, 走的步距为 1个或多个脉沖当量。
根据上述技术原理, 本发明对伺服驱动器的位置模式进行改进, 以 L 分割中的微线段 ALi的起点同步与终点同步作为控制目标。
在基于 IEEE定义的现有开放式数控系统中,通过现场总线连接伺服驱 动器与数控系统, 依靠周期通信中的极为复杂的同步机制实现起点同步, 过于复杂的起点同步机制反而成为产生多轴不同步的一个重要因素。
在本发明中, 伺服驱动器通过联动接口接收开放式实时内核发送的联 动命令, 对于微线段 ALi的起点同步, 具有高速高精度的多轴实时同步能 力。
微线段 ALi的终点同步涉及动态时滞。 在影响态时滞的诸多复杂因素 中, 摩擦力与切削力的变化产生坐标轴的负载变化, 导致坐标轴进给速度 的变化, 这是产生动态时滞的主要原因。 交叉耦合是现有技术实现微线段 △Xi的终点同步的基本手段。
本发明实现微线段 ALi的终点同步的具体方式如下。
在基于 IEEE 定义的现有开放式数控系统中, 伺服驱动器跟随插补周 期, 通过现场总线接收坐标值增量与同步命令, 启动采样周期, 将坐标值 增量写入位置环, 计算速度环给定值并写入速度环, 计算电流环给定值并 写入电流环, 驱动坐标轴进给。 位置环的一个采样周期中产生的位置误差 只能累加到下一个采样周期, 进而逐步累积成为位置累积误差。 在这里, 采样周期是固定的, 等于或大于插补周期。
本发明基于数据流关联控制, 伺服驱动器通过联动接口接收联动命令, 启动采样周期, 根据 L指针从轴联动表中读取微线段 写入位置环, 计算速度环给定值并写入速度环, 计算电流环给定值并写入电流环, 驱动 坐标轴进给。 在这里, 采样周期不是固定的, 因控制节律 Ati而变。
设坐标轴为 X轴, 微线段 ( i = Ι,. , ., η ) 为其 L分割分量, 相应的 已规划进给速度为 ( i = l,..., n )。 由于 L分割是离散运动中的几何 不变量, 也是不变量, 且 = ?^ ^。 将 细分。
为了实时检测动态时滞, 本发明将位置环的采样周期细分为若干控制 周期, 伺服驱动器在一个采样周期中对微线段 实施位置控制时, 在控 制周期中实时检测动态时滞, 并根据控制周期中的滞留脉沖或超前时间, 对进给速度与控制周期进行实时调整, 从而对采样周期中产生的坐标轴位 置误差进行实时补偿, 实现 ALi的终点同步。
将 细分为 mi段:
Figure imgf000014_0001
5Xk称之为 的步进量。
相应地, 也细分为 mi段:
∑5tk =Δίι, k = 1,..., ι¾。
Stk称之为 的控制周期。
对于所有的微线段 ( i = l,..., n ),
( mi, 5tk, 5Xk ), k = 1,..., mi
称之为 的细分表。
位置环作为比例控制环节, 不存在位置超调, 只存在位置滞后。
在 5tk期间, X轴应进给 5Xk。 控制周期计时器定时到, 如果反馈检测 的实时进给量为 5Xk', 小于 5Xk ,位置环计数器存在残留值 5Xk - 5Xk'。 这 就表明, 负载较大, 动态时滞导致 X轴在进给 5Xk时的实际进给速度 R,x' 过低, X轴位置滞后。
5Xk- 5Xk'称之为滞留脉沖, 表现为位置误差, 以^表之。
实际进给速度 R,x' = ( 5Xk - k ) / 5tk过低, 进给速度应提速, 其增量 为正值: k/ 5tk
k I Fi,x称之为滞后时间, 以 ¾表之。
X轴不存在位置超调, 却可能存在时间超前。
X轴进给 SXk完毕后, k = 0, 如果 Stk仍未结束, 控制周期计时器中 的实际值为 δ , 小于 5tk , 产生时间超前误差 5tk -5tk'。 这就表明, 负载较 小,动态时滞导致 X轴在进给 5Xk时的实际进给速度 R,x'过高, X轴时间超 前。
5tk - 5tk'称之为超前时间, 以 pk表之。 超前时间表现为 X轴 "暂停" 时间过长。 实际进给速度 R,x' =SXk / ( Stk - Pk )过高, 进给速度应减速, 其增量 为负值: Fi,x - ( 5Xk/ 5t
X轴进给微线段 时, 按照控制周期 5tk分 1¾次将 5Xk写入位置环。 控制周期计时器定时到, 实时检测进给 5Xk时的状态是位置滞后还是时间 超前, 从实时调整进给速度与控制周期两方面来补偿动态时滞导致的位置 误差。
1 )、 实时调整进给速度
X轴进给微线段 时,在位置环的一个采样周期中,按照控制周期 5tk 分 ι¾次将 5Xk写入位置环。 控制周期计时器定时到, 实时检测进给 5Xk时 的状态是位置滞后还是时间超前, 实时调整进给速度, 补偿动态时滞导致 的位置误差。
动态时滞是个性化的随机变量, 取决于以负载变化为主的许多非线性 的内外环境因素, 与特定的机电系统与具体的加工过程密不可分。 因而, 上述进给速度的正增量 U Stk与负增量 Fi,x - ( 5Xk/ 5tk' )、滞后时间 U Fi,x , 虽然与滞留脉沖 超前时间 Pk强相关, 却只是理想状态下的理论估计值。 在工程技术上, 对于这些个性化的非线性随机变量, 通常采用经验参数进 行线性修正。
设 5tk为控制周期, δν 为进给 5Xk' 实际耗费的时间, k为滞留脉沖, 为滞后时间, pk为超前时间。
若 X轴滞后, 控制周期 5tk定时到, 位置环计数器不为 0, λι,≠0, 继续 进给, 直至 =0。 由于 艮小,设 k^k为进给速度正增量修正值,根据 k^k 调整速度环给定值。
若 X轴超前, 位置环计数器为 0, k = 0, 控制周期 5tk仍未结束, 此 时控制周期计时器之值即 5tk', 由此可得到超前时间 Pk=5tk - 5tk'。 由于 Pk 很小, 设 k2pk为进给速度负增量修正值, 根据 k2pk调整速度环给定值。
均为经验参数, 与具体控制对象的具体环境有关, 用户在使用过 程中, 经过反复试凑, 针对具体控制对象的具体环境予以设定。
以进给 AXi为例, 说明调整速度前馈实时补偿动态时滞的过程。
发出定时信息, 检测滞留脉沖 。
如果 ≠0, X轴滞后, 继续进给, 直至 =0; 根据 调整速度环给 定值。 如果 λ1 = 0且 Pl≠0, X轴超前, 根据 k2Pl调整速度环给定值。
如此, 经过 1¾个控制周期后, 最终消除在采样周期中进给 时动态 时滞所产生的位置误差。
2 )、 实时调节控制周期
在位置环的一个采样周期中, 时间的分配并非只用于位置环、 速度环、 电流环的控制任务, 还包括其他辅助任务, 如监测外部与内部状态等。 采 样周期中这些用于辅助任务的时间成为 "暂停 "时间的一部分。
实时调节控制周期指的是, 在伺服驱动器实施位置控制时, 实时调节 控制周期 5tk之间的时间间隔, 即走停过程中的 "暂停 "时间。
对于微线段 ALi的步进型关联数据流来说, 联动轴数据流的离散分布 是离散运动中的几何不变量, 其周期也是离散运动中的几何不变量。 设 X 轴为联动轴, 按照 的周期将 进一步细分, 例如, 的周期为 3 , 则按 3的整倍数(3、 6、 9等)细分。 如此细分后得到的坐标值增量称之为 微步。
由微步构成的刀路曲线的数字映像称之为微步型关联数据流。
微线段 ALi微步化之后, 坐标轴在控制周期 5tk内的进给量相等, 消除 了因进给量不同而产生的影响。
X轴进给微线段 时, 按照控制周期 5tk分 1¾次将 5Xk写入位置环。 控制周期 5tk定时到,实时检测进给 5Xk时的状态是位置滞后还是时间超前, 实时调整控制周期补偿动态时滞导致的位置误差。
设 5tk为控制周期, δν 为进给 5Xk' 实际耗费的时间, k为滞留脉沖, 为滞后时间, pk为超前时间。
若 X轴滞后, 控制周期计时器定时到, 位置环计数器不为 0, k≠0, 继续进给, 直至 =0。 由于 艮小, 设 k^k为滞后时间修正值, 将!^^!^写 入时滞补偿定时器 D, 控制下一个控制周期提前 k^k启动, 也就是根据 k 实时调整下一个步进量写入位置环的时间间隔。
若 X轴超前, 位置环计数器为 0, k = 0, 控制周期 5tk仍未结束, 此 时控制周期计时器之值即 5tk', 由此可得到超前时间 Pk=5tk - 5tk'。 由于 Pk 很小, 设 k4Pk为超前时间修正值, 将 k4Pk写入时滞补偿定时器 D, 控制下 一个控制周期延迟 k4Pk启动。 K3、 均为经验参数, 与具体控制对象的具体环境有关, 用户在使用过 程中, 经过反复试凑, 针对具体控制对象的具体环境予以设定。
以进给 为例, 说明采用步进量实时补偿动态时滞的过程。
发出定时信息, 检测滞留脉沖 。
如果滞留脉沖 ≠0, X轴滞后, 继续进给, 直至 = 0; 将 k3 写入 时滞补偿定时器 D, 控制 δί2提前 k3 启动。
如果滞留脉沖 λ1= 0, X轴超前, 将 k4Pl写入时滞补偿定时器 D, 控制 5t2延迟 k4Pi启动。
如此, 经过 1¾个控制周期后, 最终消除在采样周期中进给 时动态 时滞所产生的位置误差。 基于上述技术方案, 本发明为开放式数控系统提出一种起点与终点的 同步方法。
以 X轴为例,图 2为其控制流程示意图,具体技术方案包括以下步骤。 步骤 1、 建立轴联动表的细分表;
规划刀路曲线的 L分割 ALi (i= Ι,.,.,η) 与 Τ分割 (i= Ι,.,.,η), 生成 X轴的轴联动表 (i= Ι,.,.,η); 所述轴联动表中的控制节律 用 于控制所述轴位移之间的时间间隔;
将微线段 细分为步进量 5Xk, 所述步进量∑5Xk (k = mi , i= Ι,.,.,η), 所述 ι¾为 5Xk的个数, mi>2;
将控制节律 Ati细分为控制周期 Stk,所述控制周期∑
Figure imgf000017_0001
( k = 1,..., rtii , i = 1,..., η );
将 ι¾、 5tk、 5Xk组成微线段 的细分表(ι¾, 5tk, 5Xk), 存入 X轴 的轴联动表文件;
步骤 2, 接收轴联动表
X 轴伺服驱动器通过串行接口从上位机接收轴联动表文件并存储在文 件存储器中; 将轴联动表的首地址写入 L指针, 设置执行标志;
步骤 3, 起点同步
起点同步模块通过联动接口从上位机接收联动命令; 所述联动命令为 同步脉沖, 用于起点同步; 根据 L指针, 文件读取模块从所述 的细分表中读取 mi写入 M计 数器; 读取 SXk写入位置环计数器, 读取 Stk写入控制周期计时器, 启动控 制周期;
步骤 4, 终点同步
对于微线段 的每个步进量 5Xk ( k = !¾ ), 终点同步模块根据 滞留脉沖 ^或超前时间 Pk, 实时调整进给速度、 控制周期, 用于终点同步; 读入细分表中下一个 5Xk, 5tk, 直至 M计数器为 0;
步骤 5 , 控制轴联动表终点
如果 L指针未指向轴联动表的末地址,则重复步骤 3至步骤 4,直至轴 联动表中的 ( i = l ,.. ., n )全部执行完毕。
步骤 1中, 步进量为 L分割分量的微步。
步骤 4 中, 终点同步模块调整进给速度的方式为: 若控制周期计时器 定时到, 如果 ^≠0, X轴滞后, 继续进给, 直至 = 0, 根据 k^k实时调整 速度环给定值; 如果 = 0且 Pk≠0, X轴超前, 根据 k2pk实时调整速度环 给定值, 其中 、 k2为经验参数。
步骤 4 中, 终点同步模块调整控制周期的方式为: 若控制周期计时器 定时到, 如果 ≠0, X轴滞后, 继续进给, 直至 =0, 将 k^k写入时滞补 偿定时器 D, 实时调整下一个控制周期 Stk提前 k^k启动; 如果 = 0且 Pk ≠0, X轴超前, 将 k4pk写入时滞补偿定时器 D, 实时调整下一个控制周期 5tk延迟 k4Pk启动; 其中 k3、 ^为经验参数。
步骤 2后还包括以下步骤:
步骤 201、 逻辑属性设置步骤 标轴的逻辑属性; 所述逻辑属性包括进给当量、 数据的字节数;
步骤 202、 伺服参数设置步骤 表, 设置并调整伺服参数; 所述伺服参数包括位置环比例系数、 速度环比 例系数、 速度环积分常数、 速度前馈系数、 加速度前馈系数、 电子齿轮传 动比中的一个或多个。 本发明为开放式数控系统提出一种伺服驱动器,其特征在于, 包括 PID 控制器, 联动接口, 串行接口, 文件读取模块, 起点同步模块, 终点同步 模块;
PID控制器中包括位置环、速度环、电流环,用于控制伺服电机的转角; 文件读取模块通过串行接口与上位机连接, 用于接收并存储上位机发 送的轴联动表; 将轴联动表的首地址写入 L指针, 设置执行标志;
轴联动表文件用于存储 X轴的轴联动表 ( i = Ι,. , ., η )及其细分表 ( !¾, 5tk, 5Xk ), 所述 用于控制 X轴的轴位移, 所述 5tk为 按 1¾ 细分后的控制周期, 所述 5Xk为 按 1¾细分后的步进量; 所述 1¾为 5Xk 的个数;
轴联动表还包括特征表与伺服参数调整表; 所述特征表用于标记坐标 轴的逻辑属性, 所述逻辑属性包括进给当量、 数据的字节数; 所述伺服参 数调整表用于标记伺服参数的调整方向与调整量, 所述伺服参数包括位置 环比例系数、 速度环比例系数、 速度环积分常数、 速度前馈系数、 加速度 前馈系数、 电子齿轮传动比中的一个或多个;
文件读取模块还用于从所述细分表中读取步进量与控制周期, 从所述 特征表与伺服参数调整表中读取进给当量、 数据的字节数, 设置坐标轴的 逻辑属性; 从所述伺服参数调整表中读取位置环比例系数、 速度环比例系 数、 速度环积分常数、 速度前馈系数、 加速度前馈系数、 电子齿轮传动比, 设置并调整伺服参数;
起点同步模块用于通过所述联动接口接收数据流控制器发送的联动命 令; 所述联动命令为一个同步脉沖, 用于起点同步; 根据 L指针, 从所述 细分表中读取 1¾写入 M计数器; 读取 5Xk写入位置环计数器, 启动位置环 的采样周期; 读取 Stk写入控制周期计时器, 启动位置环的控制周期;
终点同步模块根据滞留脉沖 或超前时间 Pk, 同时或单独调整进给速 度、 控制周期, 用于终点同步。
串行接口包括现场总线、 RS232与 RS485接口、 USB接口、 移动存储 器或无线接口。 以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明, 不 能认定本发明的具体实施只局限于这些说明。 对于本发明所属技术领域的 普通技术人员来说, 在不脱离本发明构思的前提下, 还可以做出若干简单 推演或替换, 都应当视为属于本发明的保护范围。

Claims

权利要求书
1、 一种开放式数控系统中的起点与终点同步方法, 其特征在于, 包括 以下步骤:
步骤 1、 建立轴联动表的细分表;
规划刀路曲线的 L分割 ALi (i= Ι,.,.,η) 与 Τ分割 (i= Ι,.,.,η), 生成 X轴的轴联动表 (i= Ι,.,.,η); 所述轴联动表中的微线段 用于 控制 X轴产生轴位移,所述轴联动表中的控制节律 用于控制所述轴位移 之间的时间间隔;
将微线段 细分为步进量 5Xk, 所述步进量∑5Xk (k = mi , i= Ι,.,.,η), 所述 ι¾为 5Xk的个数, mi>2;
将控制节律 Ati细分为控制周期 Stk,所述控制周期∑
Figure imgf000021_0001
( k = 1,..., mi , i = 1,..., η );
将 ι¾、 5tk、 5Xk组成微线段 的细分表(ι¾, 5tk, 5Xk), 存入 X轴 的轴联动表文件;
步骤 2、 接收轴联动表
X 轴伺服驱动器通过串行接口从上位机接收轴联动表文件并存储在文 件存储器中; 将轴联动表的首地址写入 L指针, 设置执行标志;
步骤 3、 起点同步
起点同步模块通过联动接口从上位机接收联动命令; 所述联动命令为 同步脉沖, 用于起点同步;
根据 L指针, 文件读取模块从所述微线段 的细分表中读取 1¾写入 M计数器; 读取 SXk写入位置环计数器, 读取 Stk写入控制周期计时器, 启 动控制周期;
步骤 4、 终点同步
对于微线段 的每个步进量 5Xk (k = !¾), 终点同步模块根据 滞留脉沖 ^或超前时间 Pk, 同时或单独调整进给速度、 控制周期, 用于终 点同步;
读入细分表中下一个 5Xk, 5tk, 直至 M计数器为 0;
步骤 5、 控制轴联动表终点
如果 L指针未指向轴联动表的末地址,则重复步骤 3至步骤 4,直至轴 联动表中的 (i= l,...,n)全部执行完毕。
2、 如权利要求 1所述的开放式数控系统中的起点与终点同步方法, 其 特征在于: 所述步骤 1中, 所述步进量 5 1^为 L分割分量的微步。
3、如权利要求 1所述的开放式数控系统中的起点同步与终点同步方法, 其特征在于, 所述步骤 4中终点同步模块调整进给速度的方式为:
若控制周期计时器定时到, 如果 ^≠0, X轴滞后, 继续进给, 直至 k =0, 根据 k^k实时调整速度环给定值; 如果 = 0且 Pk≠0, X轴超前, 根 据 k2pk实时调整速度环给定值; 其中 k2为经验参数。
4、 如权利要求 1所述的开放式数控系统中的起点与终点同步方法, 其 特征在于, 所述步骤 4中终点同步模块调整控制周期的方式为:
若控制周期计时器定时到, 如果 ^≠0, X轴滞后, 继续进给, 直至 k =0, 将 k3 k写入时滞补偿定时器 D, 实时调整下一个控制周期 Stk提前 k^k 启动; 如果 = 0且 Pk≠0, X轴超前, 将 k4Pk写入时滞补偿定时器 D, 实 时调整下一个控制周期 Stk延迟 启动; 其中 k3、 为经验参数。
5、如权利要求 3或 4所述的开放式数控系统中的起点与终点同步方法, 其特征在于, 步骤 2后还包括以下步骤:
步骤 201、 逻辑属性设置步骤 标轴的逻辑属性; 所述逻辑属性包括进给当量、 数据的字节数;
步骤 202、 伺服参数设置步骤 表, 设置并调整伺服参数; 所述伺服参数包括位置环比例系数、 速度环比 例系数、 速度环积分常数、 速度前馈系数、 加速度前馈系数、 电子齿轮传 动比中的一个或多个。
6、 一种伺服驱动器, 其特征在于, 包括 PID控制器, 联动接口, 串行 接口, 文件读取模块, 起点同步模块, 终点同步模块;
所述 PID控制器中包括位置环、 速度环、 电流环, 用于控制伺服电机 的转角;
所述文件读取模块通过串行接口与上位机连接, 用于接收并存储上位 机发送的轴联动表; 将轴联动表的首地址写入 L指针, 设置执行标志; 所述轴联动表文件用于存储 X轴的轴联动表 ( i = Ι,. , ., η )及其细 分表(mi, 5tk, 5Xk ), 所述 用于控制 X轴的轴位移, 所述 5tk为 按 mi细分后的控制周期,所述 5Xk为 ΔΧί按 mi细分后的步进量;所述 ι¾为 5Xk 的个数;
所述轴联动表还包括特征表与伺服参数调整表; 所述特征表用于标记 坐标轴的逻辑属性, 所述逻辑属性包括进给当量、 数据的字节数; 所述伺 服参数调整表用于标记伺服参数的调整方向与调整量, 所述伺服参数包括 位置环比例系数、 速度环比例系数、 速度环积分常数、 速度前馈系数、 加 速度前馈系数、 电子齿轮传动比中的一个或多个;
所述文件读取模块还用于从所述细分表中读取步进量与控制周期, 从 所述特征表与伺服参数调整表中读取进给当量、 数据的字节数, 设置坐标 轴的逻辑属性; 从所述伺服参数调整表中读取位置环比例系数、 速度环比 例系数、 速度环积分常数、 速度前馈系数、 加速度前馈系数、 电子齿轮传 动比, 设置并调整伺服参数;
所述起点同步模块用于通过所述联动接口接收数据流控制器发送的联 动命令; 所述联动命令为一个同步脉沖, 用于起点同步; 根据 L指针, 从 所述细分表中读取 1¾写入 M计数器; 读取 5Xk写入位置环计数器, 启动位 置环的采样周期; 读取 Stk写入控制周期计时器, 启动位置环的控制周期; 所述终点同步模块根据滞留脉沖 ^或超前时间 Pk, 同时或单独调整进 给速度、 控制周期, 用于终点同步。
7、 如权利要求 6所述的伺服驱动器, 其特征在于, 所述终点同步模块 还包括时滞补偿定时器 D, 根据滞留脉沖 ^或超前时间 Pk, 实时调整控制 周期 5tk之间的时间间隔, 用于终点同步。
8、 如权利要求 5所述的伺服驱动器, 其特征在于, 所述串行接口包括 现场总线、 RS232与 RS485接口、 USB接口、 移动存储器或无线接口。
PCT/CN2012/076793 2012-01-05 2012-06-12 开放式数控系统中的起点与终点同步方法、伺服驱动器 WO2013102338A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210003305.9 2012-01-05
CN201210003305.9A CN103197607B (zh) 2012-01-05 2012-01-05 开放式数控系统中的起点与终点同步方法、伺服驱动器

Publications (1)

Publication Number Publication Date
WO2013102338A1 true WO2013102338A1 (zh) 2013-07-11

Family

ID=48720271

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/076793 WO2013102338A1 (zh) 2012-01-05 2012-06-12 开放式数控系统中的起点与终点同步方法、伺服驱动器

Country Status (2)

Country Link
CN (1) CN103197607B (zh)
WO (1) WO2013102338A1 (zh)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI494724B (zh) * 2013-12-31 2015-08-01 Syntec Inc 具有座標同步功能之數值控制系統及其數值控制方法
EP3065012A3 (en) * 2015-03-04 2016-12-07 Omron Corporation Control device and method of synchronizing control
US10268183B2 (en) 2015-03-04 2019-04-23 Omron Corporation Control device and method of synchronizing control
CN110879568A (zh) * 2019-12-31 2020-03-13 南京工程学院 多轴联动经济型数控系统的运动控制方法
CN111459016A (zh) * 2020-03-31 2020-07-28 浙江博尼时尚控股集团有限公司 一种提高裁床切割机轨迹轮廓跟踪控制精度的方法
CN111813045A (zh) * 2020-07-28 2020-10-23 上海维宏电子科技股份有限公司 根据速度前馈参数实现轮廓误差补偿处理的方法、数控加工系统、设备、装置及存储介质
CN113485205A (zh) * 2021-08-05 2021-10-08 杭州力超智能科技有限公司 一种基于canbus总线的伺服驱动器时钟同步和位置重构方法
CN114637256A (zh) * 2022-02-22 2022-06-17 无锡先导智能装备股份有限公司 一种飞切控制方法、装置、系统、电子设备及存储介质
CN115903634A (zh) * 2023-03-08 2023-04-04 宁波中控微电子有限公司 一种支持随动功能的运动控制芯片及其控制方法
CN115933540A (zh) * 2022-09-30 2023-04-07 成都工具研究所有限公司 加工孔的多轴专用设备控制系统及方法
CN116909147A (zh) * 2023-07-19 2023-10-20 盐城工学院 一种复值惯性神经网络的滞后同步控制方法、系统及应用

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103753351B (zh) * 2013-12-24 2016-05-18 西安瑞特快速制造工程研究有限公司 一种全闭环伺服系统的数控机床反向间隙监测方法
CN108490876B (zh) * 2018-02-11 2020-10-23 西南交通大学 一种提高数控加工监控阈值与信号同步精确性的方法
CN108762064B (zh) * 2018-06-13 2022-06-17 武汉久同智能科技有限公司 一种伺服驱动器的速度平滑方法
CN116679621B (zh) * 2023-07-31 2023-10-17 南京德克威尔自动化有限公司 多轴同步运动控制系统及其控制方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0128767B1 (en) * 1983-06-10 1991-02-27 Nec Corporation Numerically controlled machine system
JP3198010B2 (ja) * 1994-05-30 2001-08-13 シチズン時計株式会社 工作機械の制御方法及び制御装置
CN101995850A (zh) * 2010-11-05 2011-03-30 江俊逢 一种计算机辅助数字控制方法与系统
CN102063088A (zh) * 2010-11-05 2011-05-18 江俊逢 一种计算机辅助离散运动规划方法与系统
DE102009044348A1 (de) * 2009-10-28 2011-08-18 Delta Electronics, Inc. Werkzeugbahnberechnungsvorrichtung für numerisch gesteuertes System und Verfahren zum Betreiben desselben

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0128767B1 (en) * 1983-06-10 1991-02-27 Nec Corporation Numerically controlled machine system
JP3198010B2 (ja) * 1994-05-30 2001-08-13 シチズン時計株式会社 工作機械の制御方法及び制御装置
DE102009044348A1 (de) * 2009-10-28 2011-08-18 Delta Electronics, Inc. Werkzeugbahnberechnungsvorrichtung für numerisch gesteuertes System und Verfahren zum Betreiben desselben
CN101995850A (zh) * 2010-11-05 2011-03-30 江俊逢 一种计算机辅助数字控制方法与系统
CN102063088A (zh) * 2010-11-05 2011-05-18 江俊逢 一种计算机辅助离散运动规划方法与系统

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI494724B (zh) * 2013-12-31 2015-08-01 Syntec Inc 具有座標同步功能之數值控制系統及其數值控制方法
EP3065012A3 (en) * 2015-03-04 2016-12-07 Omron Corporation Control device and method of synchronizing control
US10268183B2 (en) 2015-03-04 2019-04-23 Omron Corporation Control device and method of synchronizing control
CN110879568A (zh) * 2019-12-31 2020-03-13 南京工程学院 多轴联动经济型数控系统的运动控制方法
CN110879568B (zh) * 2019-12-31 2023-05-23 南京工程学院 多轴联动经济型数控系统的运动控制方法
CN111459016A (zh) * 2020-03-31 2020-07-28 浙江博尼时尚控股集团有限公司 一种提高裁床切割机轨迹轮廓跟踪控制精度的方法
CN111813045B (zh) * 2020-07-28 2022-07-19 上海维宏电子科技股份有限公司 根据速度前馈参数实现轮廓误差补偿处理的方法、数控加工系统、设备、装置及存储介质
CN111813045A (zh) * 2020-07-28 2020-10-23 上海维宏电子科技股份有限公司 根据速度前馈参数实现轮廓误差补偿处理的方法、数控加工系统、设备、装置及存储介质
CN113485205A (zh) * 2021-08-05 2021-10-08 杭州力超智能科技有限公司 一种基于canbus总线的伺服驱动器时钟同步和位置重构方法
CN114637256A (zh) * 2022-02-22 2022-06-17 无锡先导智能装备股份有限公司 一种飞切控制方法、装置、系统、电子设备及存储介质
CN114637256B (zh) * 2022-02-22 2023-07-14 无锡先导智能装备股份有限公司 一种飞切控制方法、装置、系统、电子设备及存储介质
CN115933540A (zh) * 2022-09-30 2023-04-07 成都工具研究所有限公司 加工孔的多轴专用设备控制系统及方法
CN115903634A (zh) * 2023-03-08 2023-04-04 宁波中控微电子有限公司 一种支持随动功能的运动控制芯片及其控制方法
CN115903634B (zh) * 2023-03-08 2023-05-30 宁波中控微电子有限公司 一种支持随动功能的运动控制芯片及其控制方法
CN116909147A (zh) * 2023-07-19 2023-10-20 盐城工学院 一种复值惯性神经网络的滞后同步控制方法、系统及应用
CN116909147B (zh) * 2023-07-19 2024-01-26 盐城工学院 一种复值惯性神经网络的滞后同步控制方法、系统及应用

Also Published As

Publication number Publication date
CN103197607B (zh) 2015-01-14
CN103197607A (zh) 2013-07-10

Similar Documents

Publication Publication Date Title
WO2013102338A1 (zh) 开放式数控系统中的起点与终点同步方法、伺服驱动器
US9709974B2 (en) Open numeric control system with real time kernel and a real-time control method of a tool path
US7904184B2 (en) Motion control timing models
US6757583B2 (en) Interpolated motion control over a serial network
US10625421B2 (en) Controller, control system, and control method
US7245975B2 (en) Skew compensation
US20100138018A1 (en) Method for producing a parts program
TWI379180B (en) Method of calculating recovery commands for numerical controlled system
US10139803B2 (en) Instruction value generation device
CN1817548A (zh) 激光加工系统
CN102707671A (zh) 应用于工具机的加工路径最佳化方法
US20190094831A1 (en) Control apparatus, control method, and support apparatus
WO2001044882A1 (fr) Procede et systeme de commande numerique de machine-outil
Martinov et al. Development of motion controller based on ARM microcomputers by supporting different strategies of controlling CAN servo drives
CN107966954B (zh) 一种计算机数字控制方法与系统
CN117555293A (zh) 一种运动控制器的控制方法、系统、电子设备及存储介质
CN110045681B (zh) 一种基于位置预测的数控机床位置相关型误差的外置补偿方法
CN101650563A (zh) 一种关联数据流的自适应控制方法及系统
CN101846993B (zh) 一种工艺参数关联数据流的实时控制方法
CN111123843B (zh) 一种伺服驱动器周期同步位置指令处理方法
JPH05216540A (ja) サーボモータの制御方式
Lou et al. Developing a Real-Time Multi-Axis Servo Motion Control System
CN101770220A (zh) 数值控制系统的命令回算计算方法
US20230367629A1 (en) Method for Transferring a Software Application from a First to a Second Data Processing Device
Cheng et al. Adaptive control of sychronization for multi-axis motion system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12864161

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANZ TO RULE 112(1) EPC

122 Ep: pct application non-entry in european phase

Ref document number: 12864161

Country of ref document: EP

Kind code of ref document: A1