WO2013013580A1 - Reconfigurable numerical control system, and reconfiguration method - Google Patents
Reconfigurable numerical control system, and reconfiguration method Download PDFInfo
- Publication number
- WO2013013580A1 WO2013013580A1 PCT/CN2012/078564 CN2012078564W WO2013013580A1 WO 2013013580 A1 WO2013013580 A1 WO 2013013580A1 CN 2012078564 W CN2012078564 W CN 2012078564W WO 2013013580 A1 WO2013013580 A1 WO 2013013580A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- instruction
- module
- linkage
- real
- control
- Prior art date
Links
- 238000000034 method Methods 0.000 title abstract description 383
- 238000004519 manufacturing process Methods 0.000 abstract description 64
- 238000012545 processing Methods 0.000 abstract description 19
- 230000008901 benefit Effects 0.000 abstract description 3
- 230000008569 process Effects 0.000 description 325
- 230000033001 locomotion Effects 0.000 description 119
- 238000009826 distribution Methods 0.000 description 65
- 238000005516 engineering process Methods 0.000 description 62
- 230000006870 function Effects 0.000 description 61
- 230000006854 communication Effects 0.000 description 56
- 238000004891 communication Methods 0.000 description 47
- 238000003754 machining Methods 0.000 description 44
- 230000033764 rhythmic process Effects 0.000 description 40
- 238000004422 calculation algorithm Methods 0.000 description 38
- 238000006073 displacement reaction Methods 0.000 description 37
- 230000005540 biological transmission Effects 0.000 description 31
- 238000011161 development Methods 0.000 description 21
- 230000018109 developmental process Effects 0.000 description 21
- 238000007726 management method Methods 0.000 description 16
- 230000007246 mechanism Effects 0.000 description 16
- 230000008859 change Effects 0.000 description 15
- 230000011218 segmentation Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 10
- 238000004458 analytical method Methods 0.000 description 9
- 239000002131 composite material Substances 0.000 description 8
- 238000013499 data model Methods 0.000 description 8
- 238000007796 conventional method Methods 0.000 description 7
- 238000003860 storage Methods 0.000 description 5
- 230000006837 decompression Effects 0.000 description 4
- 238000012804 iterative process Methods 0.000 description 4
- 238000005457 optimization Methods 0.000 description 4
- 230000000737 periodic effect Effects 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 238000010276 construction Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 241000239290 Araneae Species 0.000 description 2
- 230000006399 behavior Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 239000004020 conductor Substances 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 230000009897 systematic effect Effects 0.000 description 2
- 241000208140 Acer Species 0.000 description 1
- 241001465754 Metazoa Species 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008033 biological extinction Effects 0.000 description 1
- 238000002485 combustion reaction Methods 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- YTCQFLFGFXZUSN-BAQGIRSFSA-N microline Chemical compound OC12OC3(C)COC2(O)C(C(/Cl)=C/C)=CC(=O)C21C3C2 YTCQFLFGFXZUSN-BAQGIRSFSA-N 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical 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/414—Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/33—Director till display
- G05B2219/33125—System configuration, reconfiguration, customization, automatic
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/34—Director, elements to supervisory
- G05B2219/34246—OOC object oriented control
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Definitions
- the invention belongs to the field of advanced control and advanced manufacturing, and particularly relates to a PC-based, all-round open, standardized reconfigurable numerical control system and a reconstruction method thereof, so as to adapt to the requirements of the digital control system of the reconfigurable manufacturing system.
- the reconfigurable manufacturing system is the research frontier of advanced manufacturing and the development direction of future manufacturing systems. In 1998, the National Research Council published a study on 'The Challenges of Manufacturing in 2020', ranking reconfigurable manufacturing systems as the top 10 key technologies. Decisive for reconfigurable manufacturing systems is the reconfigurable machine tool RMT (Reconfigurable Machine Tools). For more than ten years, digital information technology has advanced by leaps and bounds, and reconfigurable machine tools have not progressed. The reason is that reconfigurable machine tools must be based on reconfigurable CNC systems. Without a reconfigurable CNC system, the reconfigurable machine tool is without a meter.
- the reconfigurable CNC system should be an open digital control system, which is the consensus in the field.
- NC The so-called motion controller-based open CNC system embedded in PC mode has become the mainstream of the existing open CNC system.
- the motion controller has become a high-tech industry and is popular all over the world.
- the open motion controller is hailed as a new generation of industrial controllers in the United States and is considered to be the third industrial revolution in the future.
- the application software is built on a system platform that conforms to the system platform of openness, scalability, and compatibility, so that the application software has portability, interoperability, and consistency of human-machine interface. '
- the numerical control system only decompresses the digital control information compressed in the tool path curve and the feed rate.
- the interpolation iterative control method is a decompression method of digital control information.
- the basic technical solution of the interpolation iterative control method is for a given tool path (Tool Path) and the feed rate of the tool, under the control of the real-time operating system, with the interpolation period as the time-sharing period, the interpolation control algorithm is used to calculate the digital control information of the relevant coordinate axes in real time, and distribute it to the servo drive in real time. Execution to control deterministic motion relationships between mechanical systems.
- the digital control information generated by the interpolation is immediately distributed to the servo drive for immediate execution on the one hand, and iterated as the input of the next interpolation cycle to generate the next digital control.
- Information which constitutes a real-time iteration of digital control information.
- the digital control information is continuously generated, distributed, transmitted, and executed, and then repeated in a process iterative manner to constitute a real-time iteration of the control process.
- the so-called platform independence generally means that the application software can run on multiple different kinds of CPUs and on multiple operating systems.
- the former is hardware platform independence
- the latter is software platform independence.
- the basic architecture of the open CNC system is divided into application software and system platform.
- the system platform consists of hardware platform and software platform.
- the so-called hardware platform is the basic component of the software platform and application software running, at the bottom of the basic architecture; the so-called software platform is the basic component of the application software operation, between the hardware platform and the application software of the basic architecture.
- the so-called NC core software is the basic software in the application software, that is, the application software module involving motion control, axis control and motion control management. For the simplicity of the description, the NC core software is simply referred to as the numerical control application software.
- the software platform generally includes an operating system, a graphics system, and an application programming interface APT, wherein the core is a real-time operating system.
- the multitasking operating system is only a management mechanism for internal and external resources and a response mechanism for responding to changes in internal and external environments to adapt to internal and external resource management and internal and external environmental changes.
- the interpolation iterative control method transforms the management mechanism and strain mechanism of the real-time operating system into a universal control mechanism, and the real-time operating system becomes a real-time interpolation iteration to generate
- the real-time control center of digital control information the existing CNC system forms a system architecture centered on the real-time operating system.
- the operation rules of the interpolation iterative control algorithm are closely coupled with the task scheduling rules of the real-time operating system to form a real-time digital control method, namely the interpolation iterative control method.
- the interpolation iterative control method runs through the entire history of digital control technology and numerical control system, and creates the 'interpolation era' of the numerical control system. .
- the interpolation iterative control algorithm is a decompression method of digital control information, and the interpolation calculation must be performed in real time under the control of the real-time operating system.
- the real-time operating system has high-precision timing function, multi-level interrupt nesting processing mechanism and real-time scheduling mechanism, and its core is process scheduling and thread scheduling. Real-time complexity complicates process scheduling and thread scheduling. Parallel algorithms further complicate process scheduling and thread scheduling.
- the concurrency of thread concurrency is extremely complex compared to the concurrency of machine instruction-level pipelines and the concurrency of processor-level processes.
- CNC applications are bound to become a large and complex interrupt system that uses parallel algorithms, multi-process/multi-threaded nested calls, and multiple real-time nested interrupts.
- the problem is that once the motion speed increases, or the motion accuracy increases, or the linkage axis increases, or the linkage parameters increase, the interpolation cycle of the real-time operating system must increase exponentially, requiring more bits and higher speed CPUs, and more. More real-time real-time operating system, more optimized real-time scheduling capabilities, and more advanced interpolation iterative control algorithms.
- the open-ended existing CNC system based on IEEE is completely 'computerized'. In terms of architecture, it becomes a general-purpose computer system that needs to configure a real-time operating system.
- the numerical control application software is only one dedicated application system, and its opening is open. Sex can only be defined as 'plug and play' for CNC applications.
- the real-time control process is not only an iterative process of digital control information but also an iterative process of real-time control process. It is inseparable from the interpolation iterative control algorithm, and the high-speed and high-precision interpolation iterative algorithm is natural. Become the core technology in the existing CNC technology. Therefore, Japan's OSEC program (Open The System Environment for Controller believes that open CNC systems without advanced control algorithms are only evolutionary, not ideal and revolutionary.
- the existing open CNC system based on IEEE definition is divided into two parts: system platform and application software.
- the application software is further divided into human-machine control layer and motion control layer.
- the motion control layer is the core of the CNC system to complete the real-time control process, and is composed of some standard components. Obviously, this is an architecture for application configuration. This means that existing open CNC systems based on IEEE definitions are object oriented rather than process oriented.
- the core issue of digital control systems is the real-time control of the toolpath curve.
- the real-time control process of the tool path curve necessarily needs to be reconstructed.
- the corresponding interpolation iterative algorithm must be developed and applied in the numerical control application software. Configure the corresponding real-time control module. Therefore, corresponding to the reconstruction of the mechanical system, the reconstruction of the real-time control process necessarily involves the modification of the real-time control module, or the replacement and addition of the real-time control module. Apart from this, there is no other technical means.
- Digital control in a digital control system is a process, not an object.
- existing open CNC systems based on IEEE definitions are object oriented rather than process oriented.
- the real-time control process is the process of generating the coordinate value increment under the interpolation period control, the allocation process, the sending process, and the execution process.
- the dynamic characteristics are inseparable, and are inseparable from the hardware platforms such as the number of bits of the CPU and the operation speed. They are inseparable from the software platforms such as the real-time operating system, and are inseparable from the interpolation iterative algorithm. This fundamentally limits the reconstruction of the real-time control process. In other words, in the existing open CNC system based on IEEE definition, the real-time control process of the tool path curve cannot be opened and has no reconfigurability.
- the communication cycle is the system parameter
- Networking is an important technical feature of advanced manufacturing technology.
- the port can be called a network interface, such as an industrial Ethernet interface or other fieldbus (Field). Bus).
- a network interface such as an industrial Ethernet interface or other fieldbus (Field). Bus).
- the ISO/OSI Open Systems Interconnection Reference Model is aimed at communication models between computer networks.
- the fieldbus standard simplifies the bus architecture, and is mainly composed of a physical layer, a data link layer, and an application layer.
- the field bus causes the communication cycle to become another system parameter, and a series of problems such as real-time communication protocol and compatibility of data representation cause high complexity and high cost of internal communication.
- the data format of the digital control information in the real-time control process including the feed equivalent (nano or micron), the number of bytes of data, etc., will change.
- a user layer communication protocol must be established in the field bus to standardize data formats, timing relationships, and error correction methods in data exchange within the open CNC system.
- the communication cycle in the fieldbus becomes a factor that restricts the reconfigurability of the digital control system.
- the G code standard is adopted as the programming interface of the NC machining program.
- the code standard for the paper tape perforation that is, the G code standard, was established for the specification of characters on the paper tape.
- the code standard is the original product of the initial stage of information technology. Due to the limitation of the paper tape, there is inevitably a defect that the amount of information is too small. Therefore, each manufacturer has extended the basic semantics of the G code, resulting in the dependence of the G code program and the corresponding hardware. The CNC machining program is not interchangeable between different CNC systems, resulting in incompatibility between various CNC systems. . Therefore, as a programming interface, the G code standard does not have the consistency of the human-machine interface, which becomes one of the bottlenecks for the further development of the numerical control technology, and also restricts the openness and reconfigurability of the digital control system.
- Japan has developed a 64-bit ultra-fast chip and NURBS interpolation iterative control algorithm for motion controllers driven by the OSEC program.
- the third is to develop a fully soft open CNC system based on ultra-high speed processor and real-time operating system.
- the so-called all-soft open CNC system in the image, is to fully PC the digital control system with the support of real-time operating system.
- the primary factor is the control concept generated by the IEEE definition.
- the numerical control system is for the working machine, and its task is only to manufacture digital control information, that is, multi-dimensional associated data flow, for the working machine, and the multi-dimensional associated data flow cannot entrain the interpolation cycle, communication cycle, contour step length and the like which are not required by the working machine. Other information.
- the first principled error defined is that, in terms of control concepts, the IEEE defines the CNC system as a real-time command center that controls the working machine, without the concept of associated data streams.
- IEEE The second principled error of the definition is that, in terms of architecture, the IEEE definition ignores the process essence of digital control, object-oriented rather than process-oriented, without the concept of control flow, defining the numerical control system as a real-time operating system that needs to be configured.
- General purpose computer system
- the third principle error defined is that in the control method, the IEEE definition ignores the interpolation iterative control algorithm is only a decompression method of digital control information, so that the management mechanism of the internal and external resources of the real-time operating system and the response to internal and external environmental changes
- the strain mechanism is regarded as a universal control mechanism, which closely couples the operation rules of the interpolation iterative control algorithm with the task scheduling rules of the real-time operating system to form a real-time control method.
- Objects are just a kind of artificial abstraction about things in a particular hierarchy, and processes are the dynamic behavior of things moving in different levels of structure.
- the IEEE definition completely ignores the process essence of digital control, and regards the digital control process as an object, which leads to iteration of digital control information and iteration of control flow. It is impossible to involve the openness of digital control information, the openness of digital control process and digital control. The openness of the interface between processes.
- IEEE defines the digital control system
- the defined openness is the openness of the computer system itself.
- the architecture of the so-called open CNC system is transplanted from the computer system. It is an object-oriented architecture to realize the modularization of the control software. Reflects the technical characteristics of the CNC system throughout the control process.
- the IEEE definition fails to examine the architecture of the open CNC system from the macroscopic view of the manufacturing system, and adopts the architecture of the general computer system, resulting in an open concept that is ambiguous and has not been unified.
- Descriptive vocabulary such as interoperability, portability, scalability, and interchangeability become open so-called technical specifications that hinder The standardization process of the digital control system.
- the IEEE defines an architecture based on a general-purpose computer system, which is limited to the functional division of numerical control software and the operational interface between them.
- the process characteristics of digital control lack the definition of systematic theory. Therefore, the digital control system It is defined as a general-purpose computer system equipped with numerical control software, thereby essentially defining an open digital control system as a rigid integrated manufacturing system for manufacturing digital control information.
- the IEEE definition is not based on the working machine, but on the digital control system.
- a large amount of redundant information such as interpolation period and contour step size is generated, which violates the principle of simplicity. This redundant information consumes a lot of computing resources and violates economic principles.
- the openness of the process is completely different from the openness of the object.
- the openness of the process necessarily involves the control flow of the generation, distribution, transmission, and execution of digital control information.
- the IEEE defines no concept of controlling the process at all.
- the architecture is not an architecture that configures control resources in accordance with the control flow of manufacturing digital control information.
- the IEEE definition does not regard digital control information as a product, and does not involve the openness of digital control information.
- G code standard is the programming interface used by existing CNC programs.
- the G code programming interface does not have the consistency of the human machine interface.
- the IEEE definition of the human-machine interface is too abstract, and the so-called 'consistency of human-machine interface' avoids the openness of the programming interface.
- the IEEE definition is not an open definition of a computer numerical control system. It merely attempts to standardize the 'plug and play' problem of application software. It does not solve the openness of the digital control system. Instead, it is numerically
- the control system is forced to be a special computer system under the general computer system architecture, so that the development of the digital control system is firmly nailed to the 'interpolation era'.
- the digital control information produced by the numerical control system, the method of manufacturing digital control information, and the process and process interface for manufacturing digital control information are It is closed, non-standard, and non-reconstructible.
- the digital control information produced becomes an internal item of the existing numerical control system. This is fundamentally negated
- the openness and reconfigurability of the digital control system artificially complicate the existing digital control technology with the existing open CNC system, which is a numerical control system.
- the reconstruction has set up insurmountable obstacles, which will inevitably lead to the failure of the existing open CNC system to evolve into the control machine that the third industrial revolution hopes.
- the inventor abandoned the IEEE definition of an open CNC system and defined the open CNC system as:
- the so-called open CNC system is a computer numerical control system that configures the embedded subsystem according to the control flow. It has an open human-machine interface, open digital control information, an open digital control information manufacturing method, an open digital control information manufacturing process, and digital Control an open interface between the information manufacturing process and open application software. '
- This definition also applies to the embedded subsystem and is therefore a combination of systematics and fractal geometry.
- the topology of the control information flow is a linear topology.
- the openness of application software is 'plug and play'.
- the openness defined by the IEEE only covers the openness of the application software and the openness of the human-machine interface when operating the computer.
- the openness of the human-machine interface including the human-machine interface in all control process interfaces of the digital control information manufacturing process, especially the openness of the programming interface;
- the openness of the digital control information refers to the openness and transparency of the digital control information generated in the digital control information generating unit.
- the openness of the so-called digital control information manufacturing method refers to a manufacturing method that allows a user (or developer) to construct or integrate his own digital control information, that is, the real-time control method is fully softwareized and the software is plug-and-play.
- the so-called openness of the digital control information manufacturing process refers to the openness and transparency of each sub-process of digital control information.
- the internal interface of the CNC system is used to exchange information between the internal functional components of the system.
- the openness of the interface between the so-called digital control information manufacturing processes refers to the openness of the internal interface.
- the so-called openness of the human-machine interface refers to the openness of the programming interface.
- the inventor invented the data flow association control method (Data- in the invention patent "Data Flow Control Method and Architecture of Computer Digital Control System” (Chinese Patent No.: ZL200710124304.9, Authorization Announcement Date: August 19, 2009) Stream Related Control, DRC control), the existing CNC system has bid farewell to the era of interpolation, entered the era of data flow correlation control, and produced a new generation of control machine, namely the data flow correlation control machine (DRC control machine).
- DRC control machine data flow correlation control machine
- a standardized control machine (application number: 200910110439.9 PCT International Application No.: PCT/CN2010/072914) discloses a standardized DRC control machine and a reconstruction method thereof, which configure control resources in accordance with a control flow for generation, distribution, and execution of digital control information, the standardized DRC control machine
- the digital control information generating unit, the digital control information distributing transmitting unit and the digital control information executing unit are constituted.
- the inventor regards digital control information as a product, and the process of manufacturing digital control information by generating, distributing, transmitting, and executing digital control information is called a control flow.
- the corresponding production equipment is configured and professionalized and standardized production is the only way for the manufacturing industry to go through.
- the process flow is the basis for division of labor, professionalization, and standardized production.
- digital control information as a product, there must be a process flow for manufacturing digital control information.
- the corresponding embedded subsystem must be configured in the information manufacturing process in accordance with the control flow for manufacturing digital control information.
- the inventor divides the control flow into three sub-processes: a digital control information generation process, a digital control information distribution transmission process, and a digital control information execution process.
- the process of assigning and transmitting digital control information is like 'military order mountain', and the execution process of digital control information is more 'booming speed', all must be real-time.
- the architecture of the open CNC system can be decoupled into a digital control information generating component (digital information manufacturing system), a digital control information distribution transmitting component (data flow controller), and a digital control information executing component.
- a digital control information generating component digital information manufacturing system
- a digital control information distribution transmitting component data flow controller
- a digital control information executing component Three functional components (servo drive and I/O device).
- the discrete position information in the form of '1' '0' is generally referred to as a step type, and the discrete position information composed of increments of coordinate values is referred to as an incremental type.
- Set the tool path (Tool The Path) curve is a function of eight variables such as X, y, Z, A, B, W, E, and H.
- X, y, Z, A, B are the coordinate axes of the linkage
- W, E, and H are parameters that require real-time control (for example, W is the width of the laser pulse, E is the energy of the laser pulse, and H is the frequency of the laser pulse).
- the switch that controls the process parameters can be regarded as a virtual coordinate axis, and the parameter value is regarded as the coordinate value of the virtual coordinate axis. Therefore, the coordinate axis linkage and the real-time control of the process parameters are unified, which is called multi-axis multi-parameter linkage.
- the coordinate axis includes a virtual coordinate axis.
- Table 1 is a schematic diagram of the 8-linked multi-dimensional associated data stream.
- ⁇ t i 1,..., n .
- the coordinate increments of X, y, Z, A, B, W, E, H, etc. in ⁇ t i are discretely ⁇ X i , ⁇ y i , ⁇ Z i , ⁇ A i , ⁇ B i , ⁇ W i , ⁇ E i , ⁇ H i .
- micro-line segments ⁇ L i ( ⁇ X i , ⁇ y i , ⁇ Z i , ⁇ A i , ⁇ B i ) are referred to as L-segments of the tool path curve.
- ⁇ t n is redundant.
- ⁇ t 0 is added .
- ⁇ t 0 is set independently of the tool path curve, and for example, ⁇ t 0 is set to ⁇ t n . Adjust the subscripts 0, 1, ..., n-1 to 1, ..., n.
- Table 1 indicates that for data flow correlation control, there is no essential difference between the process parameters and the coordinate values that need to be controlled in real time.
- the switch that controls the process parameters can be regarded as a virtual coordinate axis, and the parameter value is regarded as a virtual coordinate axis. Coordinate values, so that the coordinate axis linkage and the real-time control of the process parameters are unified, called multi-axis multi-parameter linkage.
- the coordinate axis includes a virtual coordinate axis.
- the digital control information of the tool path curve includes two parts.
- the first part is the L segmentation, which describes the coordinate value increment when the related coordinate axes are linked and the required linkage, which is used to control the linkage of the relevant coordinate axes to produce the required composite displacement.
- the second part is a T-segment, describing the follow-up between the synthetic displacements, used to control the time interval between the synthetic displacements.
- the L segmentation also includes a quasi-deterministic error such as a deterministic error or a thermal deformation error such as a backlash, a pitch error, a non-perpendicularity, and a non-parallelism error between the drive chains.
- the L segmentation of the toolpath curve forms an associated data stream under the control of the T segmentation.
- the associated data stream can be divided into a stepped associated data stream and an incremental associated data stream.
- the digital image generated by the L segmentation of the tool path curve in the storage space is called the linkage table of the tool path curve.
- the digital image generated by the T-segment of the tool path curve in the storage space is called the follower table of the tool path curve.
- the core task of digital control technology is to generate the linkage table and the follower table of the tool path curve.
- the so-called real-time control is based on the control in the follow-up table.
- the rhythm assigns a coordinate value increment in the linkage table to the corresponding servo drive.
- L segmentation is dynamically generated in the real-time control process.
- the interpolation cycle thus becomes a system parameter.
- the digital control information generating component does not need to configure the real-time operating system, there is no interpolation period, and the control rhythm ⁇ t i is not equal in length.
- the so-called digital control information generation process is a process in which the digital control information generation component manufactures the associated data stream, that is, the linkage table of the tool path curve and the generation process of the follower table.
- the digital control information generating unit generates a DRC numerical control program in accordance with the order determined by the machining process.
- the NC program consists of motion commands for controlling the machining process of the workpiece.
- the motion instructions include a status command, a switch command, and a track command.
- the status command is used to operate the auxiliary function; the switch command is used to control the I/O device; the track command is used to control the servo drive device to complete the path of a tool path curve.
- the digital control information generating component generates a linkage table of the tool path curve by discrete geometric programming, generates a follower table of the tool path curve through discrete motion planning, and generates a linkage table and a follower table of the standard file form according to the given data format.
- the conventional PLC is used to control the tool magazine, or the soft PLC is used to generate the control flow of the combination logic to control the tool change process in the tool magazine.
- the present invention does not relate to a control flow for tool magazine control.
- the numerical control program is a fully digital, commercialized 'digital control information' product manufactured by digital control information generating components.
- the generation process of the DRC NC program is a programming process using motion instructions. Therefore, the digital control information generating component is not only an open platform for numerical control programming but also an open development platform for numerical control technology.
- the so-called digital control information distribution process is that the digital control information distribution transmitting component allocates the coordinate value increments in the linkage table to the relevant servo driving device, for example, ⁇ X i , ⁇ y i , ⁇ Z i , ⁇ A i , ⁇ B i is assigned to servo drives of five coordinate axes such as X, y, Z, A, and B.
- the so-called digital control information transmission process is the digital control information distribution and transmission component according to the control The rhythm controls the transmission of digital control information in real time.
- the so-called digital control information is executed by the servo drive device to write coordinate values into the position loop and drive the coordinate axis feed.
- the generation of digital control information is not real-time, and the distribution and execution of digital control information are real-time.
- control flow of the digital control information is divided into the generation process, the distribution process, the transmission process, and the execution process, which leads to a significant improvement of the architecture of the DRC control machine, and becomes a PC-based, all-round open Standardized reconfigurable CNC system.
- DRC Control Data-stream Related Control
- the purpose is to propose a PC-based standardized control machine (referred to as DRC control machine) that controls information, control methods, control processes and architecture for the third industrial revolution to adapt to the third industrial revolution. Requirements for the CNC system.
- Non-reality based on digital control information distribution process Timely, the present invention improves the DRC control machine, and proposes a PC-based, all-round open, standardized reconfigurable numerical control system.
- the invention also proposes a digital control method and a reconstruction method based on the digital control system.
- a reconfigurable numerical control system including a PC system, a data flow controller, a servo drive device, an I/O device, a serial interface, a distribution interface, a linkage interface, an I/O interface;
- the PC system is connected to the data flow controller through a serial interface;
- the data flow controller Connecting to the servo drive device through a distribution interface and a linkage interface, the data flow controller is connected to the I/O device through an I/O interface;
- the PC system is configured to generate a DRC numerical control program for controlling a workpiece machining process, including a state instruction generation module, a switch instruction generation module, a track instruction generation module, and a DRC numerical control program generation module; and the state instruction generation module is configured to generate a control auxiliary process State instruction; the switch instruction generation module is configured to generate a control The switching instruction of the I/O device; the state instruction generating module is further configured to generate a reconstruction instruction, where the reconstruction instruction is used to modify the state instruction and the interpretation program of the switching instruction.
- the trajectory command generating module is configured to generate a trajectory command for controlling a servo drive device to complete a path curve pass process;
- the DRC NC program generating module is configured to link a state command, a switch command, and a trajectory command to a DRC numerical control according to a machining process a program;
- the trajectory instruction generation module includes a discrete geometric planning module and a discrete motion planning module;
- the discrete geometric planning module is configured to generate a linkage table of L segments storing a tool path curve; and the L segmentation is used to control coordinates
- the shaft linkage generates a synthetic displacement;
- the linkage table is divided into an axis linkage table of each axis, and the axis linkage table is used for storing the L segmentation component of the relevant coordinate axis, and controlling the coordinate axis to generate the axis displacement;
- the discrete motion planning module is used a T-segment of the tool path curve and a follow-up table of the status word; the
- the data flow controller includes a microprocessor, an interpreter memory, a file memory, an axis linkage table allocation module, a DRC NC program execution module, a real-time control module, and an interrupt management module;
- the interpreter memory is configured to store the status instruction The switch instruction, an interpreter of the track instruction;
- the file memory is configured to receive and store the DRC numerical control program, the follow-up table, and the axis linkage table through the serial interface;
- a linkage table allocation module is configured to allocate the axis linkage table to the servo driving device through the distribution interface;
- the DRC numerical control program running module is configured to run the DRC numerical control program, execute the state instruction control auxiliary process, and execute
- the switching instruction controls the I/O device through the I/O interface, and executes the track instruction to control the machining process of the tool path by the servo interface through the linkage interface;
- the servo drive device is provided with an axis linkage table initialization module and an axis linkage table control module; the axis linkage table initialization The module is configured to set an execution flag, and write an address of the axis linkage table to the L pointer according to the sequence code of the track instruction; following the linkage command, the axis linkage table control module is from the axis according to the L pointer The coordinate value increment of the axis is read in the linkage table and written into the position loop, and the drive coordinate axis feed generates a composite displacement.
- the number of bytes of the status word is a user parameter.
- the axis linkage table file further includes a feature table; the feature table is used to identify a logical attribute of the coordinate axis; the logical attribute includes a feed equivalent, a number of bytes of data, and an electronic gear ratio.
- Each data bit of the linkage interface is respectively connected to a servo drive device.
- the serial interface and the The distribution interfaces are fieldbus, RS232 interface, RS485 interface, USB interface or wireless interface.
- the file storage in the data flow controller further includes a follower table file analysis module; the follower table file
- the analysis module is configured to read the DRC numerical control program, the follow-up table, and the axis linkage table.
- the DRC program running module includes a motion instruction fetching module, a state instruction execution module, a switch instruction execution module, and a track instruction execution module; and the motion instruction fetching module is configured to write an address of the motion instruction in the DRC NC program into the motion instruction Pointer and read motion instructions, Writing a function byte of the motion instruction to the motion instruction register; if the motion instruction is a state instruction, according to the address table of the motion instruction, the state instruction execution module jumps to an entry address specified by the address table, Used for Executing an interpreter of the status instruction; if the motion instruction is a switch instruction, the switch instruction execution module jumps to an entry address specified by the address table according to an address table of the switch instruction, Executing an interpreter of the switching instruction; if the motion instruction is a trajectory instruction, the trajectory instruction execution module is configured to execute an interpreter of the trajectory instruction.
- the track instruction execution module sets an operation flag for starting the real-time control module;
- the real-time control module includes a linkage coordinate axis setting module, a linkage command setting module, and a rhythm control module.
- the linkage coordinate axis setting module is configured to write the address of the follow-up table to the T pointer, read the status word from the follow-up table and write the status word register, and specify the coordinate axis of the linkage;
- the module start pulse generator outputs a pulse and sends a linkage command to the servo drive device specified by the status word register through a linkage interface;
- the end point control module is configured to control an end point of the track instruction if the T pointer is equal to The last address of the follower table is closed, and the run flag is turned off; otherwise, the T pointer points to the next time increment ⁇ t i .
- the reconstruction method of a reconfigurable numerical control system proposed by the present invention comprises the following steps:
- Step (1) reconstructing a discrete coordinate system: the digital control information generating component reconstructs a discrete coordinate system; the discrete coordinate system includes an orthogonal discrete coordinate system and a non-orthogonal discrete coordinate system;
- Step (2) reconstructing a structure constant database: the digital control information generating component reconstructs a structure constant database; the structure constant database stores a fine structure constant of the coordinate axis and a coordinate system parameter; the fine structure constant of the coordinate axis includes a line displacement Error, angular displacement error, backlash; the coordinate system parameters include non-parallelism and non-perpendicularity between the coordinate axes;
- Step (3) construction state Reconstruction of instruction Instruction: Digital control information generation component constructs the state instruction reconstruction instruction ;
- Step (4) construction switch instruction reconstruction instruction: digital control information generation component constructs reconstruction instruction of the switch instruction ;
- Step (5) running a reconfiguration instruction: the digital control information transmitting component runs the state instruction Reconfiguring the instruction, reconstructing the state instruction, executing a reconstruction instruction of the switch instruction, and reconstructing the switch instruction.
- step (3) in the reconstruction method of the reconfigurable numerical control system includes the following steps:
- Step (31) setting a target address parameter of the reconstruction instruction: setting an entry address in the address table of the state instruction as a target address parameter of the reconstruction instruction;
- Step (33) setting a byte number parameter of the refactoring instruction: setting a capacity of the rewritten interpreter to a byte number parameter;
- Step (34) Constructing a reconstruction instruction: constructing a reconstruction instruction of the state instruction according to the target address parameter, the source address parameter, and the byte number parameter.
- step (4) in the reconstruction method of the reconfigurable numerical control system includes the following steps:
- Step (43) setting a byte number parameter of the refactoring instruction: setting a capacity of the rewritten interpreter to a byte number parameter;
- Step (44) Constructing a reconstruction instruction: constructing a reconstruction instruction of the switch instruction according to the target address parameter, the source address parameter, and the byte number parameter.
- the finite state machine processing data model is used to describe complex control tasks with different levels of real-time requirements.
- the finite state machine is a highly abstract modeling tool for reactive systems.
- the structure is complex and the reusability is poor.
- the user it is like a spider web maze, and there is no openness.
- Data flow association control is not object-oriented, but process-oriented.
- the present invention proposes a processing data model for an open numerical control system.
- this processing data model is open, which clearly describes the architecture of the open CNC system and reveals the technical solutions and key technologies for rationally configuring control resources in different control processes.
- the interpolation cycle of the real-time operating system and the communication cycle of the field bus are two system clocks. Following the cycle of the interpolation cycle and the communication cycle, the digital control information of the toolpath curve is continuously generated, distributed, transmitted, and executed, so that the real-time iteration of the digital control information and the real-time iteration of the control process are repeated.
- the real-time control process of the toolpath curve includes both real-time iteration of the digital control information and real-time iteration of the control process, as well as real-time communication processes, including the accuracy and speed of the interpolation iterative algorithm, and the geometry of the toolpath curve. Characteristics, process characteristics of the process, mechanical systems A series of complex factors such as kinematics/dynamics, processor bits and operating speeds, and other software platforms such as real-time operating systems.
- the present invention configures control resources in accordance with a control flow for generating, distributing, transmitting, and executing digital control information.
- the linkage command is sent to the servo drive device specified by the status word through the linkage interface in one direction; the servo drive device follows 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 linkage. Synthetic displacement.
- Multi-axis synchronous drive technology is a key technology to be solved in the existing numerical control technology.
- multi-axis synchronization depends on the real-time synchronization mechanism of periodic communication in the fieldbus.
- the multi-axis synchronization depends on the linkage command transmitted in real time through the linkage interface, and the linkage The axes are specified by the status word.
- the linkage command is a parallel synchronization pulse
- the status word is a user parameter
- the linkage interface is similar to a parallel interface under the control of a status word. Therefore,
- the invention solves the multi-axis synchronization mechanism problem with extremely simple technical means, and has the high-speed and high-precision synchronization capability, thereby converting the complex multi-axis synchronous drive technology into a simple conventional technology.
- the reconstruction of the mechanical system means the change of the motion relationship of the coordinate axes and the increase and decrease of the coordinate axes, especially the increase of the coordinate axes. Therefore, the reconfigurability of the real-time control process of the tool path curve becomes the core problem of the reconfigurable computer digital control system, which requires the real-time control method to be completely software-based, and the real-time control process is independent of the software platforms such as the operating system and the field bus. Independent of the programming interface.
- the existing open CNC system based on IEEE defines object-oriented rather than process-oriented, and the real-time control process of the tool path curve cannot be opened and has no reconfigurability.
- special interpolation instructions must be defined and configured
- the real-time interpolation control module is defined, and therefore, the interpolation instructions under the G code standard are not reconfigurable.
- the prior art based on the IEEE definition can only be to add a real-time interpolation control module or modify an existing real-time interpolation control module. Obviously, this is far from the connotation of reconfigurability.
- the trajectory command in the present invention has unity, regardless of the type of curve in the tool path curve. There is no refactoring problem.
- the DRC numerical control program, the axis linkage table, the follower table and the like manufactured by the PC system include the control. All digital control information required by the servo drive and the I/O device, the digital control information is open, and the method of manufacturing the digital control information is open; in addition, the present invention also de-realizes the digital control information distribution process, and the number is The real-time transmission of control information translates into real-time transmission of extremely simple linkage commands, and the digital control information distribution process is also open.
- the real-time control process of the toolpath curve is simplified to start the real-time control module.
- the real-time control module is open, through the built-in solidified follower file analysis module, its operation is independent of the operating system of the PC, and there is no need to configure any embedded real-time operating system.
- the invention has neither an interpolation cycle nor a communication cycle, and fully realizes the softwareization of the real-time control method, completely solving the reconstruction problem of the real-time control process of the toolpath curve.
- State commands and switch commands are associated with the mechanical system
- the specific structure is inseparable and belongs to the personalization function. After the mechanical system is reconfigured, state commands and switching instructions often need to be reconstructed.
- the present invention sets a reconstruction instruction for rewriting an interpreter of a state instruction and a switch instruction. write The interpretation of the status and switch instructions is a simple conventional technique.
- the reconstruction of the digital control system also involves the reconstruction of the internal interface, especially the reconstruction of the motion control level real-time interface.
- the invention divides the motion control interface into a non-real time serial interface and a real-time linkage interface.
- the linkage interface of the present invention is not a communication interface, and the linkage command is only a synchronization pulse.
- the non-real time interface of the present invention is a standard serial interface such as a standard USB interface or other standard serial interface supported by the UART. , is a conventional technology. The non-real time interface does not need to be reconstructed.
- the PC system, the data flow controller, and the motion control interface are independent of the software platform such as the operating system, and are also independent of the hardware platform.
- the reconfigurable numerical control system proposed by the present invention has platform independence.
- the reconstruction of the CNC system also involves a programming interface.
- the NC machining program in the form of G code must be carried out under the control of the real-time operating system, thus being related to the software and hardware platform.
- the G code standard does not have the consistency of the human machine interface.
- the DRC numerical control program is adopted The standardized file system replaces the G code program, has the consistency of human-machine interface, and there is no reconstruction problem.
- the reconstruction of the numerical control system involves only the reconstruction of the discrete coordinate system and the structure constant database. Refactoring. Based on the architecture proposed by the present invention, the above problems basically belong to the conventional techniques in the existing IT technology.
- the reconfigurable numerical control system proposed by the present invention has good reconfigurability.
- the architecture of the reconfigurable numerical control system proposed by the present invention configures control resources based on a control flow of generation, distribution, transmission, and execution of digital control information.
- the present invention distributes information in digital control
- the axis linkage table is distributed to the servo drive device through the non-real-time serial interface, so that the digital control information distribution process is not real-time, which significantly simplifies the architecture of the reconfigurable numerical control system.
- the digital control information generating unit is a standardized component based on the PC.
- Digital control information files are standard files and are independent of software platforms such as operating systems.
- the standardized file system becomes the carrier of digital control information and realizes the openness of digital control information.
- the non-real-time implementation of the digital control information distribution process significantly simplifies the function and structure of the data flow controller.
- the data flow controller is only used to run the DRC NC program and send the linkage command. It does not need to configure any embedded operating system.
- its core function is only to write ⁇ t i into the T split timing.
- the linkage command is sent in real time through the linkage interface, and the function and structure are extremely simple and can be standardized.
- the standardization of CNC systems also involves the standardization of internal interfaces, especially the standardization of real-time interfaces at the motion control level.
- fieldbus technology In the existing open CNC system based on IEEE definition, in order to realize real-time allocation of coordinate value increments, fieldbus technology has become the mainstream technology of motion control interface between CNC system and servo drive device.
- the fieldbus technology is based on the ISO/OSI open system interconnection reference model, completely ignoring the process characteristics of digital control, completely ignoring the essential characteristics of the numerical control device different from the computer network.
- the communication cycle becomes the system clock, and the data link layer and the application layer and its protocol real-time, data representation compatibility and other issues consume a lot of computing resources.
- the invention divides the motion control interface into a non-real time serial interface and a real-time linkage interface.
- each axis The axis linkage table is assigned to the corresponding servo drive via the serial interface.
- the communication cycle is not a system parameter, and there is no synchronization mechanism, which avoids the real-time performance of the communication protocol and other complicated problems.
- Said The axis linkage table is a standard file, and there is no compatibility problem with the data representation.
- the serial interface can be any Standard serial interface, such as a standard USB interface or other standard serial interface supported by the UART.
- the linkage command is just a sync pulse.
- the linkage interface is similar to an interrupt control line. Obviously, the linkage interface can be standardized.
- the G code standard is adopted as the programming interface of the numerical control machining program.
- the code standard for the paper tape perforation that is, the G code standard, was established for the specification of characters on the paper tape.
- the code standard is the original product of the initial stage of information technology. Due to the limitation of the paper tape, there is inevitably a defect that the amount of information is too small. Therefore, each manufacturer has extended the basic semantics of the G code, resulting in the dependence of the G code program and the corresponding hardware.
- the NC machining program is not interchangeable between different CNC systems, and does not have the consistency of the human-machine interface.
- the various CNC systems are incompatible with each other, hindering the exchange and sharing of control information, and restricting the openness and reconfigurability of the digital control system from the programming interface.
- each axis must have the same logical attribute .
- the logical attributes of the coordinate axes are different, for example, the feed equivalents (nano, micro, etc.) are different, the number of bytes of data is different, etc.
- the functions and structures of the numerical control system must be changed accordingly, from real-time control process and real-time communication. The two aspects of the process restrict the openness and reconfigurability of the system.
- the state command, the switch command, the track command are used to write DRC NC program.
- the DRC NC program is oriented to the control process, and the path command is oriented to the machining process of the tool path curve.
- Track command axis linkage table and follower table All of the digital control information required to machine the toolpath curve is created non-real-time by the digital control information generation component, thus allowing each axis to have different logic properties.
- the above DRC NC program, axis linkage table, and follower table are standardized
- the form of the file is transferred in the system and also transferred between different CNC systems in the form of files.
- the reconfigurable numerical control system proposed by the present invention realizes the openness of digital control information, the openness of the digital control method, the process of generating digital control information, the process of distribution, the process of sending, and the openness of the execution process. It has laid a solid foundation for the standardization of CNC systems.
- the state instruction, the switching instruction, the trajectory instruction and the DRC numerical control program proposed by the invention Work-oriented machine, simple logic structure, consistency of human-machine interface, PC-based and no need to compile, is an open, universal and efficient CNC technology
- the motion description language and the logic description language fully support the user's own application of CNC technology and always maintain the consistency of the human-machine interface.
- the interpolation cycle and the communication cycle are two system parameters, which not only consume a large amount of computing resources, but also generate, distribute, transmit, and execute digital control information.
- the real-time control process leads to real-time operating system and fieldbus becoming two key links that restrict the reliability of the CNC system.
- the operating system is an extremely complex system that may contain hundreds of thousands of potential vulnerabilities. These vulnerabilities often take years, ten years of maintenance time to fix, and are difficult to completely eliminate. Statistics show that the factors that affect the reliability of computer systems, hardware errors only account for a few percent, the vast majority of errors stem from system management. Obviously, system management errors are basically derived from the operating system. Therefore, for the reliability of computer numerical control systems, the real-time operating system is like the sword of Damocles.
- the communication process is exposed to harsh industrial environments.
- the fieldbus causes the communication cycle to become a system parameter, and the communication protocol has real-time performance and data representation compatibility.
- Internal communication is highly complex and is another important reason for reliability.
- the PC does not intervene in the real-time control process of the toolpath curve, and the operation of the data flow controller is independent of the operating system of the PC, and there is no need to configure any embedded real-time operating system.
- the invention separates the digital control information distribution process from the real-time control process of digital control information
- the process of assigning digital control information is completed in one communication process, and the communication cycle is no longer a system parameter.
- the linkage in the present invention simply transmits the sync pulse in one direction, and the function and structure are highly simplified.
- the present invention solves two key links that restrict the reliability of the numerical control system from the source, and has high reliability.
- the real-time control process of the tool path curve cannot be opened.
- the corresponding interpolation iterative algorithm must be developed and the corresponding real-time control module should be configured in the numerical control application software.
- the real-time control process of the tool path curve is also related to the field bus. It needs to deal with a series of complicated problems such as communication cycle, real-time communication protocol and data representation compatibility. Therefore, the development of numerical control technology is also scattered among different CNC system manufacturers, and cannot be transformed into a social industry across enterprises.
- the PC system generates a DRC numerical control program, It becomes an open platform for NC programming; the PC system generates the axis linkage table and the follower table of the tool path curve, and becomes an open development platform for numerical control technology.
- the present invention adopts a standard file system such as FAT16, FAT32, etc.
- the programming interface, the DRC NC program thus becomes a fully digital, commercial 'digital control information' product manufactured by digital control information generation components.
- the PC system can receive this through the Internet. Commercialized 'digital control information' is transmitted to the data flow controller.
- the invention integrates numerical control programming and numerical control technology development, transforms workshop production into social production, and thus evolves into A social industry, namely digital control information manufacturing, the PC system, ie digital control information generation component, becomes an intelligent open platform for manufacturing digital control information.
- a PC is used as a manufacturing digital control information
- the intelligent open platform can serve multiple CNC equipment.
- Data flow controller as an embedded system, no need to configure any embedded
- the operating system, function and structure are extremely simple, highly reliable, can be independently configured in the CNC device, and completely independent of the PC system.
- the reconfigurable numerical control system proposed by the present invention adopts a split architecture, which has high reliability, simple structure, low price, and easy integration. advantage.
- the architecture of modern manufacturing equipment can be abstracted into three systems, namely, power, work and control.
- the power machine provides energy
- the control machine sends control information to the working machine and the power machine, and the working machine obtains energy from the power machine to complete the manufacture of the product.
- the third industrial revolution will be based on automation, the birth of the control machine.
- the reconfigurable numerical control system proposed by the invention has the openness of digital control information, the openness of the digital control method, the generation process of the digital control information, the distribution process, and the transmission process.
- the reconfigurable numerical control system proposed by the invention Compared with the existing open CNC system based on IEEE definition, the reconfigurable numerical control system proposed by the invention has a highly simplified real-time control process and digital control method, and the digital control technology is completely software-based, highly reliable, can be standardized, and the price Significant advantages such as low cost and easy to popularize. Therefore, as a PC-based, all-round open, reconfigurable, standardized open CNC system, the reconfigurable numerical control system proposed by the present invention is the control machine expected by the third industrial revolution.
- Figure 1 is a schematic diagram of the process model based on the control flow
- Figure 2 is a second diagram of the process model based on the control flow
- FIG. 3 is a schematic structural diagram of a numerical control system in a specific implementation manner
- FIG. 4 is a functional block diagram of the PC system of FIG. 1;
- FIG. 5 is a functional block diagram of the data flow controller of Figure 1;
- Fig. 6 is a functional block diagram of the servo drive device of Fig. 1.
- the invention provides a reconfigurable numerical control system, from the architecture of the digital control system, the control method of the real-time process and the non-real-time process, the structure and programming interface of the DRC numerical control program, the function and structure of the internal communication interface, and the servo drive device.
- the DRC control machine is further improved in terms of function and structure to meet the requirements of the third industrial revolution for the reconfigurable numerical control system.
- the modular structure becomes the basic technical feature of the reconfigurable machine tool.
- the concept of modularity and its implementation are limited to machine tool builders.
- the concept of modularity and its implementation must extend to the user, in other words, the user-oriented nature of reconfigurability.
- reconfigurability refers to the ability of the user to quickly reorganize the structure, layout, and machining functions of the machine tool according to the changes in the processed product.
- Reconfigurable CNC systems are also generally considered to be modular in relation to the modularity of reconfigurable machine tools.
- the core function of the digital control system is to control the machining process of the toolpath curve in real time. This means that for reconfigurable CNC systems, the tool path curve
- the real-time control process must be open and user-oriented.
- the real-time control process of the tool path cannot be opened.
- the numerical control application for the real-time control process The software system becomes a large and complex interrupt system using parallel algorithms, multi-process/multi-threaded nested calls, and multiple real-time nested interrupts under the control of the real-time operating system.
- the real-time control process of the tool path curve and the geometric characteristics of the tool path curve, the process characteristics of the machining process, and the mechanical system The kinematics/kinetics are inseparable, and are inseparable from the hardware platforms such as the number of bits of the CPU and the speed of operation. They are inseparable from software platforms such as real-time operating systems, and are inseparable from the interpolation iterative algorithm.
- the so-called real-time control modular structure is essentially an object-oriented modular structure, that is, different real-time control modules are configured for different toolpath curves.
- this object-oriented modular structure is not user-oriented, but is aimed at CNC manufacturing companies, and runs counter to the essential features of reconfigurability.
- relying on this object-oriented modular structure to achieve reconfigurability of a digital control system is only an illusion.
- Man and machine tools are the two service objects of the digital control system, and there must be information exchange between the three. It has been explained in the background art that in the existing open CNC system based on IEEE definition, the G code standard is used as the programming interface on the human-machine interface, and the field bus is adopted in the motion control level, thereby causing the programming interface and the field bus to be based on The existing open CNC system defined by IEEE has no important factors for reconfigurability.
- the so-called reconfigurable numerical control system is a numerical control system that configures the embedded subsystem according to the control flow. It has software control of real-time control methods, real-time control process and the independence of hardware platforms such as processor digits and speed, and software platforms such as operating systems. Independence, and independence from the programming interface.
- DRC NC program It is a fully digital and commercial 'digital control information' product manufactured by digital control information generating components.
- the digital control information generating component is both an open platform for numerical control programming and an open type for numerical control technology. Development platform, real-time control method is completely software.
- the servo drive device In the architecture of the existing open CNC system, the servo drive device is regarded as a functional component of the CNC machine tool and does not belong to the category of the CNC system. according to The above definition of the reconfigurable numerical control system, the present invention further improves the DRC from the aspects of control flow, architecture, field bus, programming interface, etc. Control machine. These problems require the servo drive to be incorporated into the CNC system to re-examine the function and structure of the servo drive.
- the servo drive includes a servo motor and its motion control system, which is mainly used to control the speed and rotation angle of the servo motor. .
- the so-called speed control is also called speed mode, which is the speed control, which is used to control the speed of the spindle.
- the so-called corner control is also called the position mode. That is, position control is used to control the displacement of the coordinate axes.
- the servo drive is in a position mode, the number of which is received and executed
- the control information is discrete position information of the coordinate axes, and the position feedback information is processed by the embedded system in the servo drive.
- the speed of the spindle it is regarded as a process parameter, which is attributed to the switch quantity control with parameters.
- the core task of the digital control technology is to generate a linkage table and a follower table of the tool path curve.
- the so-called real-time control process is based on the control rhythm in the follow-up table, the distribution process of the coordinate value increment, the sending process, and the execution process.
- ⁇ y 2 , ⁇ Z 2 , ⁇ A 2 , ⁇ B 2 are respectively sent to the servo drive devices such as X, y, Z, A, B through the motion control interface; servo drives such as X, y, Z, A, B, etc.
- the device After receiving ⁇ X 2 , ⁇ y 2 , ⁇ Z 2 , ⁇ A 2 , ⁇ B 2 , the device writes its position loop and drives 5-axis linkage of X, y, Z, A, B, etc. to realize the combined displacement ⁇ L 2 This cycle is repeated to produce the resultant displacement required by the tool path curve according to the control rhythm until the end of the tool path curve.
- the linkage table and the follower table are referred to as associated data streams of the toolpath curve and are generated by the digital control information generating component.
- ⁇ X i , ⁇ y i , ⁇ Z i , ⁇ A i , and ⁇ B i which are referred to as an axis linkage table of the tool path curve. If the 5-axis axis linkage table of X, y, Z, A, B, etc. is assigned to the servo drive units such as X, y, Z, A, B in the auxiliary process, the digital control information distribution transmission process can be separated into digital control information. The distribution process and the digital control information transmission process, so that the digital control information distribution process is not real-time, and is separated from the real-time control process of the digital control information.
- the real-time control process is that the servo drive devices such as X, y, Z, A, B, etc. follow the control rhythm in the follower table.
- the coordinate value increments are read synchronously in real time in five axis linkage tables and executed.
- the machining data model of the CNC system is the basis for planning the architecture and developing the CNC technology.
- the processing data model is used to describe the function, behavior, starting process, and the relationship between each object in the numerical control system, especially for complex, Multiple control tasks required by different levels of real-time requirements are clearly described.
- a finite state machine Finite The machining data model of State Machine, FSM
- the Chinese national standard "GB/T 18759. 1-2002 • Mechanical and electrical equipment • Open CNC system • Part 1 General, GB/T 18759.2-2006 • Mechanical electrical equipment • Open CNC system • 2nd Part: Architecture” clearly defines the finite state machine model.
- the finite state machine is a highly abstract modeling tool for reactive systems. For developers, the structure is complex and the reusability is poor. For the user, it is like a spider web maze, and there is no openness.
- Data flow association control is not object-oriented, but process-oriented. It is necessary to propose an open processing model for open CNC systems based on the process characteristics of digital control.
- the invention divides the control flow into four parts: a digital control information generation process, a digital control information distribution process, a digital control information transmission process, and a digital control information execution process.
- the process in turn, separates the digital control information distribution process from the real-time control process of digital control information into a non-real-time process.
- the control information generating unit, the digital control information distributing unit, the digital control information transmitting unit, and the digital control information executing unit have four functional components.
- the digital control information execution unit includes a servo drive device and an I/O device.
- the control process can be divided into a real-time process and a non-real-time process. From the perspective of reconfigurability, the functions and structures of the four functional components should Re-examination, the real-time process and the control method of the non-real-time process should be re-examined.
- the digital control information distribution process is separated from the real-time control process of the digital control information, and is used as the structure of the DRC NC program for numerical control machining. It should be revisited from the perspective of reconfigurability to support the real-time control process and the non-real-time allocation process.
- the program interface refers to a programming interface between machining programs when different machining systems are exchanged between different numerical control systems.
- the DRC NC program becomes the programming interface.
- Digital control information distribution process from digital control information After separation in the real-time control process, the file becomes the carrier of digital control information in the control flow. Therefore, the DRC NC program file Not related to the operating system platform.
- the DRC NC program should be independent of the fieldbus as a programming interface.
- the digital control information distribution process is separated from the real-time control process of the digital control information, and the axis linkage table Non-real-time allocation to the servo drive, the real-time control process is highly simplified, the real-time communication process of the internal interface is highly simplified, and the function and structure of the internal interface should be Re-examine to support the reconfigurability of the real-time communication process.
- the invention provides a reconfigurable numerical control system, from an open architecture of a numerical control system, a control method of a real-time process and a non-real-time process, a structure and a programming interface of a DRC numerical control program, a function and structure of an internal interface, and a servo drive device.
- the DRC control machine is further improved in terms of function and structure to meet the requirements of the third industrial revolution for the reconfigurable numerical control system.
- the machining process of the workpiece can generally be divided into auxiliary process, tool change process and tool pass process.
- the auxiliary process involves auxiliary functions and status settings controlled by the I/O device.
- the tool change process involves tool magazine control.
- the conventional PLC is used to control the tool magazine, or the soft PLC is used to generate the control flow of the combination logic to control the tool change process.
- the control methods of the existing PLC and I/O devices are not discussed or changed in this embodiment.
- the pass process involves real-time control of the tool path curve.
- the numerical control system has only three working states: auxiliary function operation, switch quantity control, and real-time control of the tool path curve.
- Data Flow Association The control uses the three types of motion commands: state command, switch command, and track command to describe these three operating states.
- Status instructions can be divided into system initialization status instructions and system operation status instructions.
- the system initialization status command is used to set/modify some parameters, such as setting the initialization parameters of the servo drive, initialization parameters of the tool magazine, and so on.
- the system running status command is used to set the running status of the system. For example, set the running status of automatic, manual, specified block, start, end, pause, etc., realize the functions of detection, parameter adjustment, fault diagnosis, etc., and modify the switch command and status command. Interpreter and so on.
- Status instructions include function bytes, auxiliary bytes.
- the function byte is 2 bytes and is used to describe the basic functions of the status instruction, including the identification code and the instruction code.
- the first function byte is the identification of the status instruction.
- the number of identification parameters can carry up to 32 parameters.
- the second function byte is the function code of the status instruction, which has a total of 256 status instructions.
- the auxiliary byte is a number of bytes that identify multiple parameter values for the status instruction, each parameter occupying 2 bytes.
- the status command also includes a diagnostic command for assigning a series of specificities to the servo drive. Data to diagnose faults in the linkage table assignment process.
- the switch command is used to describe the parameters of the switch and its control.
- the present invention is considered to be a virtual coordinate axis if the switch carries process parameters that require real-time control.
- the switch is a conventional PLC control if it does not carry process parameters that require real-time control.
- the spindle speed control can be regarded as a switch carrying parameters (speed).
- the tool change command is a regular PLC control.
- the present invention treats the tool change command as a switch command. As a conventional technique, the present invention does not relate to a tool change command The specific control process.
- the switching instructions include function bytes and auxiliary bytes.
- the function byte is 2 bytes and is used to describe the basic functions of the switch instruction, including the identification code and the instruction code.
- the first function byte is the identification of the switch instruction.
- the number of identification parameters can carry up to 32 parameters.
- the second function byte is the function code of the switch command, a total of 256 switch commands.
- the auxiliary byte is a plurality of bytes, and identifies a plurality of parameter values of the switch instruction, each parameter occupying 2 bytes.
- the present invention configures an address table for storing the entry address of the interpreter of the state command and the switch command.
- the user or developer
- the state command and the switch command are inseparable from the specific structure of the working machine and belong to the personalization function.
- This state instruction that rewrites the interpreter is called a refactoring instruction.
- a trajectory command is used to control the servo drive device to achieve coordinate axis linkage.
- the process parameters that need to be controlled in real time are carried by the switch.
- the switch is called a virtual coordinate axis
- the process parameter is called the coordinate value of the virtual coordinate axis. Therefore, in the present invention, the coordinate axis includes a virtual coordinate axis.
- the track instruction is a single-byte instruction whose instruction code is:
- the address code of the interpreter of the track instruction is the system parameter, which is automatically imported by the system at runtime.
- the sequence code establishes a one-to-one correspondence between the trajectory command of the tool path curve and the linkage table and the follower table carried by the sequence code; Used to control the linkage of the relevant coordinate axes to produce the required composite displacement; the follower table is used to control the time interval between the synthetic displacements.
- the track command has only one format, regardless of the type of curve in the tool path curve.
- the path of the tool center is called the Tool Path.
- the data of the L segmentation ⁇ X i , ⁇ y i , ⁇ Z i , ⁇ A i , ⁇ B i , ⁇ W i , ⁇ E i , ⁇ H i of a tool path curve in the storage space The file is called the L-segment linkage table.
- ⁇ t i is an unsigned 2-byte binary integer.
- the coordinate value increments ( ⁇ X i , ⁇ y i , etc.) are signed binary integers represented by the original code, and the highest bit is the sign bit (+/-), which corresponds to the forward/reverse rotation of the coordinate axis.
- the feed equivalent (nano or micron) of the coordinate value increments ( ⁇ X i , ⁇ y i , etc.) and the number of bytes occupied by the data may be different.
- the numerical control equipment In the machining process of the workpiece, the numerical control equipment only has the auxiliary function operation and the logic of the I/O device. Three working states, such as control and real-time control of the tool path curve. Therefore, the machining process of the workpiece can be generally divided into an auxiliary process, a tool change process and a pass process.
- the auxiliary process involves auxiliary function operation
- the tool change process involves tool magazine control
- the pass process involves real-time control of the tool path curve.
- CNC system There are three types of motion commands: state commands, switch commands, and track commands. According to the order determined by the machining process, the user uses the status command, the switch command, and the track command to describe the entire machining process of the workpiece.
- the set of motion instructions that are determined by the machining process is the NC machining program of the workpiece machining process, which is referred to as DRC. CNC program.
- the numerical control program is a digital product manufactured by a digital control information manufacturing system, thereby completely digitizing the conventional form of control information, such as a paper, a G code program, and the like.
- the DRC NC program consists of motion instructions for controlling the machining process of the workpiece; motion commands include status commands, switch commands Trajectory instruction;
- the switch command is used to control the I/O device.
- the path command is used to control the servo drive to complete the path of a tool path curve.
- the structure of the DRC NC program is also the digital structure of the product.
- the structure of the DRC NC program determines the function and structure of the DRC controller. Conversely, the function and structure of the DRC controller affect the structure of the DRC NC program.
- the machining of the workpiece generally involves multiple passes. Each pass process completes the machining of a tool path curve.
- a tool path curve usually consists of several segments of curves.
- the geometry of each segment may or may not be the same.
- the axes of each curve may be the same or different.
- the invention does not segment according to the geometry of the curve, but is segmented according to the coordinate axes of the linkage.
- the coordinate axes of the linkages in each segment are the same and are described by a track command. Therefore, the processing of a tool path often uses multiple track commands.
- the sequence code in the track command is used to number the track commands in the order in which they are processed.
- the linkage table is divided into an axis linkage table according to the coordinate axes of the linkage.
- an X-axis linkage table for ⁇ X i (i 1, ..., n)
- the trajectory command corresponds to the axis linkage table and the follower table of 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 The coordinate axes of the linkage. From low to high, each bit of the status word controls the enable state and data channel of a servo drive.
- the status word '11100000' specifies a servo drive device such as an X, y, or Z axis, and a status drive word '00011000' to designate a servo drive such as A or B.
- the number of digits and the number of status words are user parameters.
- the user can set the number of bits and the number of bytes of the status word through the status command.
- each coordinate axis is allowed to have different feed equivalents, different data bytes, and different electronic gear ratios to meet the needs of high-speed and high-precision machining.
- the file directory In order to access files by name, the file directory includes a large amount of information such as file name, physical address, file structure, and access control.
- the follower table adopts the standard file format, and the rich information and the large amount of information of the programming interface are difficult to implement by the G code program programming interface.
- the NC program is an executable file; the axis linkage table and the follower table are data files.
- the DRC NC program, the axis linkage table, and the follower table all use standard file systems such as FAT16 and FAT32.
- a file system is a method of organizing files on disk.
- FAT Fe Allocation Table
- FAT File Allocation Table
- Chips such as CH376, SL811, PB375A, etc.
- File Manager has built-in FAT16, FAT32 file system file analysis firmware, used to read the FAT table, FDT table, BPB table and other related sector addresses and data area addresses, without having to configure the operating system, thus independently complete all functions of file management: open, new Or delete files, enumerate and search files, support long file names, and more.
- the data flow association control is process oriented, and the control resources are configured in accordance with a control flow for manufacturing digital control information.
- the non-real-timeization of the axis linkage table allocation process leads to the separation of the digital control information distribution process from the real-time control process of digital control information.
- the control process 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 of the digital control system is decoupled into digital
- the control information generating unit, the digital control information distributing unit, the digital control information transmitting unit, and the digital control information executing unit have four functional components.
- control processes can be divided into real-time processes and non-real-time processes.
- the digital control information generation process and the digital control information distribution process are non-real-time processes, and the digital control information transmission process and the digital control information execution process are real-time processes.
- the digital control information generation process is the process of manufacturing the associated data flow, that is, the linkage table of the tool path curve and the generation process of the follower table.
- the digital control information generation process also includes a process of generating a DRC numerical control program, that is, a programming process of the machining process.
- the digital control information generation process is a non-real time process.
- the digital control information generating component generates a DRC numerical control program, which includes the following contents:
- the mechanical property includes a linear structure error such as a linear displacement error of the coordinate axis, an angular displacement error, a backlash, and a non-parallelism between the coordinate axes, Coordinate system parameters such as non-perpendicularity;
- plan the tool path curve complete the tool compensation and tool path planning, and generate the tool path curve file
- the digital control information distribution process is to assign an axis linkage table to the servo drive.
- the assignment control information is in the catalog of the axis linkage table.
- the digital control information transmission process and the digital control information execution process involve the operation of the DRC NC program.
- the NC program running process is also the execution process of the motion instruction, including reading the motion instruction from the DRC NC program and the interpretation program for executing the motion instruction.
- the function byte of the motion instruction is written into the motion instruction register, and the address of the next motion instruction is written to the motion instruction pointer, and the analysis processing Other bytes; during execution, the instruction of the motion instruction is executed according to the instruction code and the address code, and the function specified by the motion instruction is completed.
- the decoding is determined to be a status instruction, according to the address table of the motion instruction, jump to the entry address specified by the address table, and execute an interpreter of the status instruction;
- the decoding is determined to be a switch instruction, according to the address table of the switch instruction, jump to the entry address specified by the address table, and execute an interpretation program of the switch instruction;
- the interpretation of the track instruction is executed.
- the state instruction and the execution of the switch instruction are auxiliary processes, and the requirements for real-time performance are not high, which is a conventional technique.
- the execution process of the trajectory command is the pass process, which is a real-time control process of the tool path curve, which is the core function of the CNC system.
- the machining of the workpiece generally involves multiple passes. Each pass process completes the machining of a tool path curve.
- Each pass process completes the machining of a tool path curve.
- each track command corresponds to an axis linkage table and a follower table.
- a tool path curve usually consists of several segments of curves, and the geometry of each segment may be different. Invented In the middle, the curve segments with different geometrical structures are regarded as different tool path curves.
- the axis linkage table of the m track commands is stored in the file memory of the servo drive device, and the follow-up table of the m track commands stores the file memory of the digital control information transmitting unit. Therefore, it is necessary to establish a connection with the following table for the separated axis linkage table.
- Each track command carries a sequence code that identifies the position of the track command in the DRC NC program.
- the axis linkage table includes each track command The axis linkage table is used as a subfile, and its directory includes a sequence code; the follower table includes a follower table of each track instruction as a subfile, and the directory also includes a sequence code.
- the order The code is a correspondence between each track command and its axis linkage table and follower table.
- the control related coordinate axes are linked, and only the coordinate axis specified by the status word is required to be related to the servo drive device.
- the set of synchronization pulses under the control of the status word is referred to as a linkage command.
- the digital control information execution process is a process in which the servo drive device follows the linkage command to control the coordinate axis feed to generate a composite displacement.
- the servo drive device After receiving the linkage command, the servo drive device reads the coordinate value increment from the axis linkage table according to the L pointer, writes the position loop, and drives the coordinate axis feed to generate a composite displacement; the L pointer is incremented by 1 until the L pointer is equal to the axis linkage table. Last address.
- the interface of the numerical control system can be generally divided into an internal interface and an external interface.
- the external interface refers to the network interface.
- the network interface is used for exchanging information between different digital control systems in the workshop management network, generally adopting an industrial Ethernet interface, etc. , is a conventional technology.
- the internal interface of the digital control system is used for digital Information is exchanged between four functional components such as a control information generating unit, a digital control information distributing unit, a digital control information transmitting unit, and a digital control information executing unit.
- the invention divides the internal interface into a real-time interface Interface with non-real time.
- the real-time interface includes a linkage interface and an I/O interface.
- the I/O interface is used to send to the switch in the I/O device Switching instructions are a common technique.
- the present invention refers to a real-time interface as a linkage interface for transmitting a linkage command to a servo drive.
- the field bus adopts the periodic communication mode to the servo drive in real time.
- the coordinate value increment generated by the synchronous transmission interpolation, the communication cycle becomes the system parameter, and the real-time synchronization mechanism and the compatibility of the data representation become the key to the transmission.
- the digital control information distribution process is separated from the real-time control process of the digital control information, and the axis linkage table Distributed to the servo drive device in real time, the real-time communication process is degenerated to control the rhythm according to the control rhythm, and the servo drive device specified by the status word transmits the linkage command in real time.
- the real-time control process is highly simplified, and the linkage interface is highly simplified. It is highly simplified.
- the linkage command is only a synchronization pulse, and the linkage interface is not a communication interface. Therefore, in the present invention, there is no In the real-time communication process.
- the non-real-time interface is used to distribute the axis linkage table to the servo drive in a non-real time in the auxiliary process.
- the assignment process for the axis linkage table is non-real time. There is no real-time problem and thus there is no need for real-time synchronization mechanism, there is no periodic communication and thus the communication cycle is no longer a system parameter.
- the axis linkage table is a standard file, and there is no problem of separately developing a communication protocol.
- the non-real time interface can be any Standard serial interface, including fieldbus, RS232 and RS485 interfaces, USB interface, mobile memory, wireless interface, etc.
- the so-called programming interface refers to the program interface between the machining programs when exchanging machining programs between different CNC systems.
- the G code standard is adopted as the programming interface of the NC machining program.
- the DRC NC program is characterized by:
- the G code standard is adopted as the programming interface of the numerical control machining program.
- the code standard for the paper tape perforation that is, the G code standard, was established for the specification of characters on the paper tape.
- the code program is object oriented.
- different interpolation commands are used to describe different curves in a tool path curve.
- different interpolation iteration algorithms must be used to implement different interpolation instructions.
- the real-time processing of the curve is real-time by the interpolation iterative algorithm, which results in the interpolation iterative algorithm becoming an object-oriented closed real-time control algorithm.
- the path command is oriented to the machining process of the tool path curve.
- the DRC NC program is oriented to the control process.
- each axis must have the same logical attribute .
- the logical attributes of the coordinate axes are different, for example, the feed equivalents (nano, micro, etc.) are different, the number of bytes of data is different, etc.
- the functions and structures of the numerical control system must be changed accordingly, from real-time control process and real-time communication. The two aspects of the process restrict the openness and reconfigurability of the system.
- the code standard is the original product of the initial stage of information technology. Due to the limitation of the paper tape, there is inevitably a defect that the amount of information is too small. Therefore, each manufacturer has extended the basic semantics of the G code, resulting in the dependence of the G code program and the corresponding hardware.
- the CNC machining program is not interchangeable between different CNC systems, resulting in incompatibility between various CNC systems. It hinders the exchange and sharing of control information, does not have the consistency of human-machine interface, and restricts the openness and reconfigurability of digital control system from the aspect of programming interface.
- the axis linkage table and the follower table of the path command carry all the tools needed to process the tool path curve.
- the digital control information is manufactured non-real-time by the digital control information generating component, allowing each coordinate axis to have different logical attributes.
- the NC program, the axis linkage table, the follower table, etc. are transmitted in the system in the form of standardized files, and are also transferred between different CNC systems in the form of files.
- These files conform to the file specification and use standard file systems such as FAT16 and FAT32.
- the standardized file becomes the carrier of digital control information, has nothing to do with the hardware platform, has nothing to do with the software platform such as the operating system, has extensive platform independence, and realizes the openness of digital control information.
- the standardized file replaces the G code program and becomes an easy-to-standardized programming interface that facilitates the standardization of control information.
- the execution of the trajectory instruction involves digital control information transmitting components and Servo drive unit.
- the digital control information transmitting component is simply referred to as a real-time control module, including a linkage axis setting module, a linkage command setting module, a rhythm control module, and an endpoint control module.
- the real-time control module sends a linkage command.
- L pointer Used to read the coordinate value component in the axis linkage table.
- the trajectory instruction execution module sets the operation flag to start the real-time control module.
- Real-time control module The control rhythm dominates the execution of the trajectory command, and the real-time control process of the coordinate axis linkage is transformed into the following process:
- Step 1 linkage axis setting Step: According to the sequence code of the track command, the linkage axis setting The module writes the first address of the follower table to the T pointer, reads the status word from the follower table and writes it to the status word register, specifying the coordinate axis of the linkage;
- Step 3 Rhythm control step: the timing time in the T split timer is up, the rhythm control module starts The pulse generator outputs a pulse, and sends a linkage command to the servo drive device specified by the status word register through the linkage interface;
- Step 4 End point control step: the end point control module controls the end point of the track command. If the T pointer is equal to the last address of the follower table, that is, the end point of the track command is reached, the running flag is turned off; otherwise, the T pointer points to the next ⁇ t i , repeating Step 2 to step 4;
- Trajectory instruction execution module query real-time control module The run flag, if the end of the track command is reached, the next motion command is executed.
- the execution flag is set to '1'; according to the sequence code of the axis linkage table of the track command, the first address of the axis linkage table is written into the L pointer; according to the feature table in the axis linkage table file, Set the logical properties of the axes.
- the servo drive device After receiving the linkage command, the servo drive device follows the linkage command, and the axis linkage table control module reads the coordinate value increment from the axis linkage table according to the L pointer, writes the position loop, and drives the coordinate axis feed to generate a synthetic displacement; the L pointer adds 1 Until the L pointer is equal to the end address of the axis linkage table, set the execution flag to '0' to prepare the axis linkage table for the next track command.
- the real-time control process of the so-called tool path is to control the specified by the status word according to the control rhythm.
- the process by which the servo drive reads the coordinate value increment from the axis linkage table and writes it to its position loop.
- Real-time control module A linkage command is generated; following the linkage command, the servo drive continuously drives the coordinate axis feed to generate a composite displacement. This is repeated until the T pointer reaches the end address of the slave table, that is, the end of the track command is reached.
- the status word is '11111000'
- n Write the T-split timer, generate a linkage command and send a linkage command to the servo drive devices such as X, y, Z, A, B through the linkage interface; servo drives such as X, y, Z, A, B, etc.
- the respective axis linkage table control modules continuously read ⁇ X i , ⁇ y i , ⁇ Z i , ⁇ A i , ⁇ B i from the respective axis linkage tables and write them into the position loop.
- the drive axis feed produces a resultant displacement. This is repeated until the end of the path curve.
- the interpolation cycle of the real-time operating system and the communication cycle of the field bus are two system clocks. Following the cycle of the interpolation cycle and the communication cycle, the number of the toolpath curve Control information is continuously generated, distributed, transmitted, and executed, so that the real-time iteration of the digital control information and the real-time iteration of the control process are repeated.
- the real-time control of the toolpath curve includes both The real-time iteration of the digital control information and the real-time iteration of the control process, including the real-time communication process, involving the accuracy and speed of the interpolation iterative algorithm, the geometric features of the tool path curve, the process characteristics of the machining process, A series of complex factors such as kinematics/kinetics of mechanical systems, hardware platforms such as processor bits and computing speed, and software platforms such as real-time operating systems.
- the technical solution configures control resources according to a control flow of generating, distributing, transmitting, and executing digital control information, wherein the generating process and the assigning process are non-real-time processes, and the sending process and the executing process are real-time processes.
- the servo drive device follows the linkage command, and sequentially writes the coordinate value increments in the axis linkage table to the position loop, and drives the corresponding coordinate axes to generate a combined displacement.
- the digital control information execution process is decoupled into a linked information execution process and a location information execution process.
- the technical solution replaces the extremely complicated real-time communication with the simplest one-way transmission of the linkage command, and cancels the control right of the current bus to the real-time control process. Therefore, the above technical solution completely eliminates the constraints of the operating system and the current bus on the real-time control process, and points out the direction for the system implementation technology of the reconfigurable digital control system.
- Figure 1 shows A process model diagram based on a control flow, where the solid line represents the real-time process and the dashed line represents the non-real-time process.
- the execution of the feedback information in the servo drive can be added to Figure 1, as shown in Figure 2.
- a band plays a symphony
- a symphony is equivalent to a knife curve
- a variety of instruments are equivalent to the axis
- the actor is equivalent to a servo drive
- real-time The operating system is equivalent to the band conductor.
- Each actor is told by a baton (a linkage command via a linkage interface), and each actor follows the command from the baton to flip through his score (axis linkage table) for performance.
- the high degree of simplicity of this model is also obvious.
- Digital control information generation component based on PC, including State command generation module, switch command generation module, track command generation module, DRC NC program generation module.
- the numerical control application system includes a DRC numerical control program file memory, an interpreter memory, and a DRC numerical control program running module.
- the NC program running module includes a motion instruction fetching module, a state instruction execution module, a switch instruction execution module, and a track instruction execution module.
- the motion instruction fetch module is used to write the first address of the DRC NC program to the motion instruction pointer and read the motion instruction.
- the function byte of the motion instruction is written into the motion instruction register, and the address of the next motion instruction is written into the motion instruction pointer; the motion instruction pointer is used to specify the address of the next motion instruction;
- the motion instruction execution module executes an interpretation program of the status instruction; if the motion instruction is a switch instruction, the switch instruction execution module executes an interpretation program of the switch instruction; if the motion instruction is a track instruction, the track instruction execution module executes The interpreter for this trace instruction.
- the digital control information distribution process is to assign the coordinate value increments in the linkage table to the relevant servo drive device, for example, assign ⁇ X i , ⁇ y i , ⁇ Z i , ⁇ A i , ⁇ B i to X, y, Servo drive devices with five axes, Z, A, B, etc.
- the digital control information distribution unit includes an axis linkage table file memory, an axis linkage table allocation module, and a serial interface.
- Digital control information transmitting unit for using the control law to the status word
- the specified servo drive sends the linkage command in real time.
- the digital control information transmitting unit is referred to as a real-time control module.
- the follower table is a standard file that is written to the file memory by the operating system of the PC, such as the FAT16, FAT32 file system specification.
- the file memory is configured with a solidified follower file analysis module for reading the associated sector address and data area address of the FAT table, FDT table, BPB table, etc., so as not to be related to the operating system.
- the digital control information execution unit includes a servo drive device and an I/O device.
- the present invention does not relate to a control flow for controlling an I/O device.
- the digital control information execution process is that the servo drive device writes the coordinate value increment to the position loop and drives the coordinate axis feed.
- the motion control interface includes a non-real-time interface and a linkage interface
- the non-real time interface is a variety of standard serial interfaces, such as Fieldbus, RS232 interface, RS485 interface, USB interface, mobile memory, wireless interface, etc.
- FIG. 3 is A schematic diagram of an architecture of a reconfigurable numerical control system
- FIG. 4 to FIG. 6 are functional block diagrams of various components.
- PC system 1 data stream controller 2, servo drive unit 3, I/O device 4, serial interface 6 , distribution interface 7, linkage interface 8, I / O interface 9;
- PC system 1 through the serial interface 6 and data flow controller 2;
- data flow controller 2 through the distribution interface 7, linkage interface 8 It is connected to the servo drive unit 3, and is connected to the I/O device 4 via the I/O interface 9.
- the invention provides a digital control information distribution component and a real-time control module
- the CNC application system is integrated into a separate component called a data flow controller.
- the PC system 1 is a digital control information generating unit that is connected to the data stream controller 2 via the serial interface 6.
- Data stream controller 2 As an embedded system, including microprocessor 21, digital control information distribution unit (file memory 23 , axis linkage table allocation module 24), numerical control application system (interpreter program memory 22, DRC numerical control program operation module 25), digital control information transmitting component (real-time control module 26) and interrupt management module 27, through the distribution interface 7 and linkage
- the interface 8 is connected to the servo drive unit 3, and is mounted on the I/O interface 9 and I/O. Set 4 connections to form a split architecture.
- the DRC NC program, the axis linkage table, the follower table, etc. of the workpiece can be transmitted to the serial interface 8 through a network interface, a field bus, an RS232 and RS485 interface, a mobile memory or a wireless interface.
- Data stream controller 2 The DRC NC program, the axis linkage table, the follower table, etc. of the workpiece can be transmitted to the serial interface 8 through a network interface, a field bus, an RS232 and RS485 interface, a mobile memory or a wireless interface.
- Data stream controller 2 The DRC NC program, the axis linkage table, the follower table, etc. of the workpiece can be transmitted to the serial interface 8 through a network interface, a field bus, an RS232 and RS485 interface, a mobile memory or a wireless interface.
- DRC NC program in the PC system, It becomes an open platform for NC programming; the PC system generates the axis linkage table and the follower table of the tool path curve, and becomes an open development platform for numerical control technology.
- the PC system can also transfer DRC NC programs and axes for machining workpieces via the Internet. Linked tables, follow-up tables, and other documents.
- the data stream controller 2 acts as an embedded system and is only used to run the DRC NC program and send linkage commands without configuring any embedded
- the operating system, function and structure are extremely simple and highly reliable.
- Data Flow Controller 2 can be independently configured in a CNC device and with a PC system Completely independent.
- a PC can serve multiple CNC equipment, especially for integrated control.
- Reconfigurable production line consisting of multiple CNC machine tools, digital fixtures, handling robots, etc.
- the system 1 is used to generate a DRC numerical control program for controlling the workpiece machining process, including a state instruction generation module 11, a switch instruction generation module 12, a track instruction generation module 13, a DRC numerical control program generation module 14, and a state instruction generation module 11 for generating control assistance.
- switch instruction generation module 12 is used to generate control a switch instruction of the I/O device; the state instruction generation module 11 is further configured to generate a reconstruction instruction, where the reconstruction instruction is used to modify the state instruction and the interpretation program of the switch instruction;
- the trajectory command generating module 13 is configured to generate a trajectory command for controlling the servo drive device to complete the path curve pass process;
- the DRC NC program generating module 14 is configured to link the state command, the switch command, and the trajectory command to the DRC numerical control program according to the machining process.
- the trajectory instruction generation module 13 includes a discrete geometry planning module 131 and a discrete motion planning module 132.
- the discrete geometric planning module 131 is configured to generate an L-segment linkage table storing a tool path curve; the L segmentation is used to control the coordinate axis linkage to generate a composite displacement; the linkage table is divided into an axis linkage table of each axis, and the axis is divided into The linkage table is used to store the L-segment component of the relevant coordinate axis, and the axis is controlled to generate the axis displacement.
- the discrete motion planning module 132 is configured to store a T-segment of the tool path curve and a follow-up table of the status word; the T-segment is used to control a time interval between the axis displacements; the status word is used to specify the coordinate of the linkage axis.
- the data stream controller 2 includes a microprocessor 21, an interpreter memory 22, a file memory 23, an axis linkage table allocation module 24, and a DRC.
- the NC program runs module 25, real-time control module 26 and interrupt management module 27.
- the interpreter memory 22 is used to store an interpreter of the above-described status command, switch command, and track command.
- the file memory 23 is used to receive and store the DRC NC program, the follower table, and the axis linkage table through the serial interface 6.
- the axis linkage table assignment module 24 is for distributing the axis linkage table to the servo drive unit 3 via the distribution interface 7.
- DRC NC program operation Module 25 is used to run the DRC NC program, execute the status command, control the auxiliary process
- the execution switch command controls the I/O device 4 through the I/O interface 9 and executes the trajectory command to control the servo drive device 3 to complete the machining process of the tool path curve through the linkage interface 8.
- the motion instruction fetch module 251, the state command execution module 252, the switch instruction execution module 253, and the track instruction execution module 254 are used; the motion instruction fetch module 251 is configured to write the address of the motion instruction in the DRC NC program to the motion instruction pointer and read Take the motion instruction, Writing a function byte of the motion instruction to the motion instruction register; if the motion instruction is a state instruction, according to the address table of the motion instruction, the state instruction execution module 252 jumps to the entry address specified by the address table, Executing an interpreter of the status instruction; if the motion instruction is a switch instruction, the switch instruction execution module 253 jumps to an entry address specified by the address table according to an address table of the switch instruction, The interpreter of the switch instruction is executed; if the motion instruction is a track instruction, the track instruction execution module 254 is configured to execute an interpreter of the track instruction.
- the linkage coordinate axis setting module 261, the linkage command setting module 262, the rhythm control module 263, and the endpoint control module 264 are included.
- the interrupt management module 27 is for processing real-time feedback information from the servo drive unit 3.
- the servo drive unit 3 is provided with an axis linkage table initialization module 31 and an axis linkage table control module 32.
- Axis linkage table initialization The module is configured to set an execution flag, and write the first address of the axis linkage table to the L pointer according to the sequence code of the track instruction; following the linkage command, the axis linkage table control module reads the axis from the axis linkage table according to the L pointer.
- the coordinate value increment is written to the position loop, and the drive coordinate axis feed generates a composite displacement until the L pointer is equal to the last address of the axis linkage table, and the execution flag is turned off.
- the axis linkage table file further includes a feature table; the feature table is used to identify a logical attribute of the coordinate axis; the logic attribute includes a feed equivalent, a number of bytes of data, and an electronic gear ratio.
- the interpolation iterative algorithm requires that the linked axes must have the same logic. Attributes .
- the feed equivalents nano, micro, etc.
- the functions and structures of the numerical control system must be changed accordingly, from real-time control process and real-time communication.
- the two aspects of the process restrict the openness and reconfigurability of the system.
- this technical feature overcomes the above drawbacks.
- the distribution interface 7 is also a serial interface and is only used for transmission to the servo drive 3 in a non-real time process.
- the axis linkage table therefore, its specific structure is not limited by any means, field bus, RS232 interface, RS485 interface, USB interface or wireless interface can be used. This means that there is no need to assign interface 7
- the standard is set, in other words, the distribution interface 7 has been standardized.
- the system implementation technical solution of the reconfigurable numerical control system has the following technical features:
- control flow 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, and corresponding control resources are configured;
- the digital control information generation process and the digital control information distribution process are not real-time;
- the DRC numerical control program written by the state command, the switch command, and the track command is used as a programming interface
- the track command has only one format, regardless of the type of curve in the tool path curve.
- the axis linkage table of each coordinate axis in the linkage table is used as an independent subfile, and is allocated to the servo drive device through the non-real time serial interface in the auxiliary process and stored in its axis linkage table memory; Moving table Set the status word to specify the coordinate axis of the linkage. The number of bytes of the status word is the user parameter.
- the axis linkage table file sets the characteristic table, which is used to set the logic attribute of the coordinate axis, so that the coordinate axis logic The processing of the attribute is moved forward to the servo drive;
- the file conforms to the file specification and uses standard file systems such as FAT16, FAT32.
- Standardized files become the carrier of digital control information, independent of the hardware platform, and independent of software platforms such as operating systems.
- the technical solution divides the digital control information distribution component and the real-time control module
- the CNC application system is integrated into a separate component called a data flow controller.
- the PC system is a digital control information generating component that is connected to the data flow controller through a serial interface.
- Data flow controller as an embedded system, including The digital control information distribution unit, the numerical control application system, and the digital control information transmitting unit are connected to the I/O device through the distribution interface and the linkage interface and the servo drive device to form a split type.
- the architecture is a digital control information generating component that is connected to the data flow controller through a serial interface.
- Data flow controller as an embedded system, including The digital control information distribution unit, the numerical control application system, and the digital control information transmitting unit are connected to the I/O device through the distribution interface and the linkage interface and the servo drive device to form a split type.
- the PC system transfers control of the real-time control process of the toolpath curve to the data flow controller.
- the linkage command sequentially writes the coordinate value increments in the axis linkage table to the position loop successively, and drives the corresponding coordinate axes to generate a combined displacement.
- the digital control method based on the above reconfigurable numerical control system includes the following steps:
- Step 1 DRC NC program generation steps: For PC system 1 to generate DRC NC program, including the following Steps:
- Step 101 Track instruction generation Step: The trajectory command generation module generates a trajectory command for controlling the servo drive device to complete the path curve pass process, including discrete geometric planning steps and discrete motion planning steps; discrete geometric planning steps
- the discrete geometric planning module generates an L-segment linkage table storing a tool path curve; the L segmentation is used to control the coordinate axis linkage to generate a synthetic displacement; the linkage table is divided into an axis linkage table of each axis, and is used for storing each The L-segment component of the coordinate axis controls the axis to generate the axis displacement; discrete motion planning
- the step is for the discrete motion planning module to generate a follow-up table of the T-segment and the status word storing the tool path curve; the T-segment is used to control the time interval between the axis displacements; the status word is used to specify the linkage Axis.
- Step 102 State Instruction Generation Step: The state instruction generation module generates a state instruction that controls the auxiliary process.
- Step 103 Switch instruction generation Step: The switch instruction generation module generates a switch instruction for controlling the I/O device.
- Step 104 DRC NC program generation Step: DRC
- the numerical control program generating module links the state command, the switch command, and the track command to a DRC numerical control program according to a machining process.
- Step 2 Axis linkage table assignment Step: Axis linkage table assignment in data flow controller 2 The module assigns the axis linkage table to the servo drive unit 3 via the distribution interface 7.
- Step 3 DRC NC program operation Step: DRC NC program running in data flow controller 2 Module operation
- the DRC NC program includes the following steps:
- Motion instruction fetching step the motion instruction fetching module writes the first address of the DRC NC program to the motion instruction pointer and reads the motion instruction, The function byte of the motion instruction is written into the motion instruction register, and the address of the next motion instruction is written into the motion instruction pointer; the motion instruction pointer is used to specify the address of the next motion instruction;
- State instruction execution step if the motion instruction in the motion instruction fetching step is a state instruction, the state instruction execution module jumps to the entry address specified by the address table according to the address table of the state instruction, and executes the state instruction Interpreter
- the switch instruction execution step if the motion instruction in the motion instruction fetching step is a switch instruction, the switch instruction execution module jumps to an entry address specified by the address table according to an address table specified by the address code of the switch instruction, Execute the interpreter of the switch instruction;
- the trajectory instruction execution step if the motion instruction in the motion instruction fetching step is a trajectory instruction, the trajectory instruction execution module executes an interpreter of the trajectory instruction.
- the PC system 1 transmits the DRC NC program, the axis linkage table, the follower table, etc. of the workpiece to the workpiece through the serial interface.
- Data stream controller 2 The data flow controller first assigns an axis linkage table to the servo drive unit 3 and then runs the DRC NC program.
- the trajectory instruction execution module The running flag is set, and the real-time control module 26 is activated to transfer the control of the real-time control process of the tool path to the real-time control module.
- trajectory instruction execution module 254 hands over the control to the real-time control module 26, it is in the query state, and the real-time control module 26 is queried. Operating status . If the run flag is off, the next motion command is executed until the stop command is executed, ending the machining of the workpiece.
- the real-time control process of the tool path includes the following steps:
- Step a linkage coordinate axis setting Step: According to the sequence code of the track instruction, the linkage axis setting The module 261 writes the first address of the follower table to the T pointer, reads the status word from the follower table and writes the status word register, and specifies the coordinate axis of the linkage;
- Step c rhythm control step: the timing time in the T split timer is up, the rhythm control module 263 starts The pulse generator outputs a pulse, and sends a linkage command to the servo drive device 3 specified by the status word register through the linkage interface 8;
- Step d linkage table control step: following the linkage command, the axis linkage table control module 31 of the servo drive device 3 reads the coordinate value increment from the axis linkage table according to the L pointer, writes the position loop, and drives the coordinate axis into Give a synthetic displacement;
- Step e End point control step: the end point control module 264 controls the end point of the trajectory command. If the T pointer is equal to the last address of the follower table, that is, the end point of the trajectory command is reached, the running flag is turned off; otherwise, the T pointer points to the next ⁇ t i , repeat steps b through e.
- motion planning For the reconstruction of mechanical systems, motion planning must first be performed on the mechanical system.
- CAD/CAM/CAE The wide application of technology, especially the CAE technology computer-aided solution to the multi-dimensional motion relationship, stiffness, stability, dynamic response, thermal deformation and other problems of complex mechanical systems, and the optimization of structural performance, has become the movement of mechanical systems.
- the motion planning of the mechanical system is considered a conventional CAE technique.
- the reconstruction of the reconfigurable numerical control system of the present embodiment involves the following problems.
- CAE performs motion planning and structural optimization on the mechanical system to obtain the motion relationship of the mechanical system.
- the discrete coordinate system For the reconstructed mechanical system, the discrete coordinate system must be reconstructed.
- the mechanical properties change. Reconstruction based on mechanical properties reconstructed from the mechanical system
- the structure constant database the mechanical attributes include the linear structure error of the coordinate axis, the angular displacement error, the backlash and other fine structure constants, and the coordinate system parameters such as non-parallelism and non-perpendicularity between the coordinate axes.
- the reconstruction instructions are used for reconstruction of state instructions and switch instructions.
- the state command and the switch command have the same format.
- an address table for storing the entry address of the interpreter of the status instruction and the switch instruction is specifically set. The address table is open to the user.
- the status command involves an auxiliary function operation, and the switch instruction relates to the switch quantity control in the I/O device, both of which are related to the mechanical system.
- the specific structure is inseparable and belongs to the personalization function. After the mechanical system is reconfigured, state commands and switching instructions often need to be reconstructed. The user can define the parameter values in their auxiliary bytes and define their functions by rewriting the interpreter.
- the status command to rewrite the interpreter is set.
- This state instruction that rewrites the interpreter is called a refactoring instruction.
- the address of the interpreter includes the source address and the destination address, and the address space is also different, or 16 bits, 32 bits, 64 bits, and the like.
- the reconstruction instructions carry different parameters of different nature. For example, for a 32-bit address space, the reconstruction instruction carries five parameters of three different properties: 2 source address parameters, 2 target address parameters, 1 byte number parameter.
- the user reads the entry address of the interpreter from the address table as a target address parameter, and uses the start address of the interpreter itself as the source address parameter, and the capacity of the interpreter itself written as the byte number parameter.
- the reconstruction instruction is used to reconstruct the state instruction and the switch instruction.
- the core issue of digital control systems is the real-time control of the toolpath curve.
- the real-time control process of the tool path curve necessarily needs to be reconstructed.
- the reconstruction of the real-time control process involves the reconstruction of the trajectory instructions and the reconstruction of the linkage interface.
- the real-time control process is both an iterative process of digital control information and an iterative process of real-time control process.
- the dynamic characteristics are inseparable, and are inseparable from the hardware platforms such as the number of bits of the CPU and the operation speed. They are inseparable from the software platforms such as the real-time operating system, and are inseparable from the interpolation iterative algorithm.
- the real-time control process of the tool path curve cannot be opened and is not reconfigurable.
- special interpolation instructions must be defined and configured
- the interpolation module is fixed, so the interpolation instructions under the G code standard are not reconfigurable.
- the trajectory command in the present invention is only related to the number of linked coordinate axes, regardless of the type of curve in the tool path curve. There is no refactoring problem.
- the prior art regards 5-axis linkage as the most advanced technology.
- the coordinate axes of the linkage are in the following table.
- the status word specifies that the number of bits and the number of bytes of the status word are user parameters.
- An 8-bit status word can control 8 coordinate axes, and a 16-bit status word can control 16 coordinate axes.
- the format of the trajectory command proposed by the technical solution is applicable to any mechanical system and has wide versatility.
- the command simplifies the real-time control of the toolpath curve to start the real-time control module.
- the operation of the real-time control module is independent of the operating system by a built-in solidified follower file analysis module.
- the follower table is a data file using a standard file system such as FAT16, FAT32, etc., the follower table
- the file memory has a built-in firmware follow-up table file analysis module for reading digital information in the follow-up table. Therefore, the real-time control process of the tool path curve has nothing to do with the software platform such as the operating system.
- the linkage interface of the technical solution is not a communication interface, and the linkage command is only a synchronization pulse.
- the non-real-time interface is a standard serial interface such as a standard USB interface or other standard serial interface supported by the UART. , is a conventional technology. For the reconstruction of the mechanical system, the non-real time interface does not need to be reconstructed.
- the method for reconstructing the reconfigurable numerical control system of the technical solution includes the following steps:
- Step 1 Reconstruct the discrete coordinate system: the digital control information generating component reconstructs the discrete coordinate system; the discrete coordinate system includes an orthogonal discrete coordinate system and a non-orthogonal discrete coordinate system.
- Step 2 reconstructing a structure constant database: the digital control information generating component reconstructs a structure constant database; the structure constant database stores a fine structure constant of the coordinate axis and a coordinate system parameter; the fine structure constant of the coordinate axis includes a line displacement error, Angular displacement error, backlash; the coordinate system parameters include non-parallelism and non-perpendicularity between the coordinate axes.
- Step 3 Construction state Reconstruction of the instruction:
- the digital control information generation component constructs the state instruction reconstruction instruction
- the method includes the following steps: Step 31: setting a target address parameter of the reconfiguration instruction: setting an entry address in an address table of the status instruction as a target address parameter of the reconfiguration instruction; Step 32: Setting a source address parameter of the refactoring instruction: setting a starting address of the rewritten interpreter as a source address parameter of the refactoring instruction; and step 33, setting a byte number parameter of the refactoring instruction: an explanation to be rewritten The capacity of the program is set to the number of bytes parameter.
- Step 34 Construct a reconstruction instruction: construct a reconstruction instruction of the state instruction according to the target address parameter, the source address parameter, and the number of bytes parameter.
- Step 4 Constructing a switch Restructuring of an instruction:
- a digital control information generating component constructs a reconstruction instruction of the switch instruction , comprising the following steps: Step 41: setting a target address parameter of the reconstruction instruction: the switch The entry address in the address table of the instruction is set as the target address parameter of the reconstructed instruction;
- Step 42 setting the source address parameter of the reconstructed instruction: setting the start address of the rewritten interpreter as the source address parameter of the reconstructed instruction;
- Step 43 setting a byte number parameter of the refactoring instruction: setting a capacity of the rewritten interpreter to a byte number parameter;
- step 44 constructing a reconfiguration instruction: according to the target address parameter, the source address parameter, The byte number parameter is configured to construct a reconstruction instruction of the switch instruction.
- Step 5 Running a reconfiguration instruction: the digital control information sending component runs the state instruction Reconfiguring the instruction, reconstructing the state instruction, executing a reconstruction instruction of the switch instruction, and reconstructing the switch instruction.
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
Disclosed are a PC based, all-round open, and standardized reconfigurable numerical control system and a reconfiguration method thereof. Proposed is a procedure-oriented and open processing procedure model. The configuration method configures control resources according to the control flow, is independent of software and hardware platforms such as the number of digits and speed of the processor, operating system, etc. and independent of programming interfaces, so has good reconfigurability and high reliability. The present application transforms the real-time control of the cutter path curve into the real-time sending of the simplest linkage command, and is capable of simple and reliable high-speed high-precision multi-axle synchronization. For a reconfigurable production line consisting of a plurality of numerical control machine tools, digitized fixtures, and handling mechanical hands, etc., the present application has advantages such as integrated control, high reliability, simple structure, and low price, etc.
Description
技术领域 Technical field
本发明属先进控制与先进制造领域,具体涉及一种基于PC的、全方位开放的、标准化的可重构数控系统及其重构方法,以适应可重构制造系统对数字控制系统的要求。
The invention belongs to the field of advanced control and advanced manufacturing, and particularly relates to a PC-based, all-round open, standardized reconfigurable numerical control system and a reconstruction method thereof, so as to adapt to the requirements of the digital control system of the reconfigurable manufacturing system.
技术背景 technical background
可重构制造系统是先进制造的研究前沿,是未来制造系统的发展方向。1998年,美国国家研究委员会发表了'2020年制造业面临的挑战'的研究报告,将可重构制造系统列为10大关键技术的第一位。对可重构制造系统具有决定性意义的是可重构机床RMT
(Reconfigurable Machine
Tools)。十余年来,数字信息技术突飞猛进,可重构机床毫无进展,其原因在于可重构机床必须建立在可重构数控系统的基础上。没有可重构数控系统,可重构机床则成无米之炊。
The reconfigurable manufacturing system is the research frontier of advanced manufacturing and the development direction of future manufacturing systems. In 1998, the National Research Council published a study on 'The Challenges of Manufacturing in 2020', ranking reconfigurable manufacturing systems as the top 10 key technologies. Decisive for reconfigurable manufacturing systems is the reconfigurable machine tool RMT
(Reconfigurable Machine
Tools). For more than ten years, digital information technology has advanced by leaps and bounds, and reconfigurable machine tools have not progressed. The reason is that reconfigurable machine tools must be based on reconfigurable CNC systems. Without a reconfigurable CNC system, the reconfigurable machine tool is without a meter.
数控系统的可重构性成为可重构制造系统中亟待解决的关键技术。 The reconfigurability of CNC systems has become a key technology to be solved in reconfigurable manufacturing systems.
可重构数控系统应该是一种开放式数字控制系统,这是本领域的共识。 The reconfigurable CNC system should be an open digital control system, which is the consensus in the field.
自从1952年美国MIT研制出第一台电子管数控系统以来,历经晶体管、集成电路、小型计算机、微型计算机之后,数控系统于上世纪八十年代发展为基于PC的开放式数控系统,产生了现有开放式数控系统的三种模式:PC嵌入NC模式、NC嵌入PC模式、软开放式模式。
Since the development of the first electronic tube control system by MIT in 1952, after the transistor, integrated circuit, small computer, and microcomputer, the numerical control system has developed into a PC-based open CNC system in the 1980s, which has produced Three modes of open CNC system: PC embedded NC mode, NC embedded PC mode, soft open mode.
NC
嵌入PC模式的所谓基于运动控制器的开放式数控系统成为现有开放式数控系统的主流,运动控制器成为一个高新技术产业并风靡全球。开放式运动控制器在美国被誉为新一代的工业控制器,在日本被认为是将来的第三次工业革命。 NC
The so-called motion controller-based open CNC system embedded in PC mode has become the mainstream of the existing open CNC system. The motion controller has become a high-tech industry and is popular all over the world. The open motion controller is hailed as a new generation of industrial controllers in the United States and is considered to be the third industrial revolution in the future.
IEEE (Institute of Electrical and Electronics
Engineers
,电气电子工程师协会)关于开放式数控系统的定义为:'符合系统规范的应用系统可以运行在多个销售商的不同平台上,可以与其它系统的应用进行互操作,并且具有一致风格的用户交互界面。' IEEE (Institute of Electrical and Electronics
Engineers
, Institute of Electrical and Electronics Engineers) The definition of an open CNC system is: 'A system that conforms to the system specification can run on different platforms of multiple vendors, can interoperate with other system applications, and has a consistent style of users. user-interface. '
中国国家标准《GB/T 18759. 1-2002•机械电气设备•开放式数控系统•第1部分
总则》抓住IEEE定义的本质并遵循IEEE定义的基本原则,在3.1款中直截了当将开放性定义为应用软件的'即插即用',将开放式数控系统定义为: Chinese national standard "GB/T 18759. 1-2002 • Mechanical and electrical equipment • Open CNC system • Part 1
The General Principles grasps the essence of the IEEE definition and follows the basic principles defined by the IEEE. In Section 3.1, the openness is defined as the 'plug and play' of the application software, and the open CNC system is defined as:
'
指应用软件构筑于遵循公开性、可扩展性、兼容性原则的系统平台之上的数控系统,使应用软件具备可移植性、互操作性和人机界面的一致性。' '
The application software is built on a system platform that conforms to the system platform of openness, scalability, and compatibility, so that the application software has portability, interoperability, and consistency of human-machine interface. '
开放式体系结构是实现高性能、智能化数字控制的关键技术。然而,近三十年来,在IEEE定义的误导下,正如文献《高性能运动控制在数控系统中的应用综述》(载《信息与控制》,2003年第3期,中国自动化学会和中国科学院沈阳自动化研究所联合主办,作者:王军平,王安,敬忠良,陈全世)所指出的,'开放式体系结构还没有统一、明确的概念内涵,系统实现技术还处于百家争鸣时代','开放式体系结构的研究还处于初期阶段'。
The open architecture is the key technology for high performance and intelligent digital control. However, in the past three decades, under the misguided definition of IEEE, as the literature "Review of the application of high-performance motion control in numerical control systems" (in "Information and Control", 2003, No. 3, China Automation Society and Chinese Academy of Sciences, Shenyang jointly organized by Institute of automation, author: Wang Junping, Wang, Jing Zhongliang, Quanshi) points out, 'open architecture has not yet unified, clear concept connotation, system implementation technology is still in contending era', 'open architecture The research is still in its infancy.'
从信息论的角度来看,数控系统只是将压缩在刀路曲线与进给速度中的数字控制信息解压。在基于IEEE定义的现有开放式数控系统中,插补迭代控制方法就是数字控制信息的一种解压方法。
From an information theory point of view, the numerical control system only decompresses the digital control information compressed in the tool path curve and the feed rate. In the existing open CNC system based on IEEE definition, the interpolation iterative control method is a decompression method of digital control information.
插补迭代控制方法的基本技术方案是,对于给定的刀路(Tool
Path)曲线与刀具的进给速度,在实时操作系统的控制下,以插补周期为分时周期,采用插补迭代算法实时计算相关坐标轴的数字控制信息,并实时分配发送给伺服驱动装置执行,以控制机械系统之间的确定性运动关系。在每个插补周期中,由插补所生成的数字控制信息,一方面立即实时分配发送给伺服驱动装置执行,另一方面又作为下一个插补周期的输入进行迭代以生成下一个数字控制信息,从而构成数字控制信息的实时迭代。跟随插补周期的节拍,数字控制信息不断地生成、分配、发送、执行,从而又以过程迭代的方式周而复始,构成控制过程的实时迭代。 The basic technical solution of the interpolation iterative control method is for a given tool path (Tool
Path) and the feed rate of the tool, under the control of the real-time operating system, with the interpolation period as the time-sharing period, the interpolation control algorithm is used to calculate the digital control information of the relevant coordinate axes in real time, and distribute it to the servo drive in real time. Execution to control deterministic motion relationships between mechanical systems. In each interpolation cycle, the digital control information generated by the interpolation is immediately distributed to the servo drive for immediate execution on the one hand, and iterated as the input of the next interpolation cycle to generate the next digital control. Information, which constitutes a real-time iteration of digital control information. Following the beat of the interpolation period, the digital control information is continuously generated, distributed, transmitted, and executed, and then repeated in a process iterative manner to constitute a real-time iteration of the control process.
发明人发现,基于IEEE定义的现有开放式数控系统没有可重构性的基本原因有四点: The inventors found that there are four basic reasons why the existing open CNC system based on IEEE definition has no reconfigurability:
第一、平台相关性 First, platform relevance
所谓平台无关性一般指的是应用软件可以在多个不同品种的CPU上运行以及多个操作系统上运行。前者为硬件平台无关性,后者为软件平台无关性。
The so-called platform independence generally means that the application software can run on multiple different kinds of CPUs and on multiple operating systems. The former is hardware platform independence, and the latter is software platform independence.
中国国家标准《GB/T 18759.
1-2002•机械电气设备•开放式数控系统•第1部分总则》将开放式数控系统的基本体系结构分为应用软件和系统平台,系统平台由硬件平台与软件平台组成。所谓硬件平台,是软件平台和应用软件运行的基础部件,处于基本体系结构的最底层;所谓软件平台,是应用软件运行的基础部件,处于基本体系结构的硬件平台和应用软件之间。所谓NC核心软件则是应用软件中的基础软件,也就是涉及运动控制、轴控制和运动控制管理的应用软件模块。为叙述的简便,将NC核心软件简称为数控应用软件。 Chinese national standard "GB/T 18759.
1-2002 • Mechanical and electrical equipment • Open CNC system • Part 1 General Principles The basic architecture of the open CNC system is divided into application software and system platform. The system platform consists of hardware platform and software platform. The so-called hardware platform is the basic component of the software platform and application software running, at the bottom of the basic architecture; the so-called software platform is the basic component of the application software operation, between the hardware platform and the application software of the basic architecture. The so-called NC core software is the basic software in the application software, that is, the application software module involving motion control, axis control and motion control management. For the simplicity of the description, the NC core software is simply referred to as the numerical control application software.
软件平台一般包括操作系统、图形系统及应用编程接口APT,其中核心是实时操作系统。 The software platform generally includes an operating system, a graphics system, and an application programming interface APT, wherein the core is a real-time operating system.
从计算机与计算机应用的发展历史来看,采用分时运行多个用户程序的多任务操作系统是一个划时代的进展。然而,在本质上,多任务操作系统只是为适应内部与外部资源的管理以及内部与外部的环境变化而构建的一种内外资源的管理机制以及响应内外环境变化的应变机制。
From the development history of computer and computer applications, it is an epoch-making progress to use a multi-tasking operating system that runs multiple user programs in a time-sharing manner. However, in essence, the multitasking operating system is only a management mechanism for internal and external resources and a response mechanism for responding to changes in internal and external environments to adapt to internal and external resource management and internal and external environmental changes.
在基于IEEE定义的现有开放式数控系统中,插补迭代控制方法将实时操作系统的管理机制与应变机制转变为一种普适的控制机制,实时操作系统便成为进行实时插补迭代以生成数字控制信息的实时控制中心,现有数控系统形成了以实时操作系统为中心的系统架构。插补迭代控制算法的运算规则与实时操作系统的任务调度规则紧密耦合在一起构成一种实时的数字控制方法,即插补迭代控制方法。插补迭代控制方法贯穿于数字控制技术与数控系统的全部历史,创建了数控系统的'插补时代'。。
In the existing open CNC system based on IEEE definition, the interpolation iterative control method transforms the management mechanism and strain mechanism of the real-time operating system into a universal control mechanism, and the real-time operating system becomes a real-time interpolation iteration to generate The real-time control center of digital control information, the existing CNC system forms a system architecture centered on the real-time operating system. The operation rules of the interpolation iterative control algorithm are closely coupled with the task scheduling rules of the real-time operating system to form a real-time digital control method, namely the interpolation iterative control method. The interpolation iterative control method runs through the entire history of digital control technology and numerical control system, and creates the 'interpolation era' of the numerical control system. .
在基于IEEE定义的现有开放式数控系统中,插补迭代控制算法作为数字控制信息的一种解压方法,必须在实时操作系统的控制下实时地进行插补计算。实时操作系统具有高精度计时功能、多级中断嵌套处理机制与实时调度机制,其核心是进程调度与线程调度。实时性将进程调度与线程调度复杂化。并行算法又将进程调度与线程调度进一步复杂化。与机器指令级流水线的并发性和处理器级进程的并发性相比,线程的并发性所面临的不确定性极为复杂。
In the existing open CNC system based on IEEE definition, the interpolation iterative control algorithm is a decompression method of digital control information, and the interpolation calculation must be performed in real time under the control of the real-time operating system. The real-time operating system has high-precision timing function, multi-level interrupt nesting processing mechanism and real-time scheduling mechanism, and its core is process scheduling and thread scheduling. Real-time complexity complicates process scheduling and thread scheduling. Parallel algorithms further complicate process scheduling and thread scheduling. The concurrency of thread concurrency is extremely complex compared to the concurrency of machine instruction-level pipelines and the concurrency of processor-level processes.
进程与线程,再加上并行算法,导致实时操作系统的高度复杂化以及数控应用软件的高度复杂化。对于高速高精度的多轴系统,数控应用软件势必成为采用并行算法、涉及多进程/多线程嵌套调用以及多重实时嵌套中断的一个庞大而复杂的中断系统。
Processes and threads, coupled with parallel algorithms, result in a highly complex real-time operating system and a high degree of complexity in CNC applications. For high-speed, high-precision multi-axis systems, CNC applications are bound to become a large and complex interrupt system that uses parallel algorithms, multi-process/multi-threaded nested calls, and multiple real-time nested interrupts.
问题在于,一旦运动速度提高、或运动精度提高、或联动轴增加、或联动参数增加,实时操作系统的插补周期必然以指数形式增长,从而需要更多位数更高速度的CPU、更多位数更强实时性的实时操作系统、更优化的实时调度能力、以及更先进的插补迭代控制算法。
The problem is that once the motion speed increases, or the motion accuracy increases, or the linkage axis increases, or the linkage parameters increase, the interpolation cycle of the real-time operating system must increase exponentially, requiring more bits and higher speed CPUs, and more. More real-time real-time operating system, more optimized real-time scheduling capabilities, and more advanced interpolation iterative control algorithms.
问题还在于,为了研发那个庞大而复杂的中断系统,既要精通数字控制技术,又要精通计算机软硬体系结构,还要精通并行算法与多线程编程。这就意味着,数控应用软件成为所谓的专家型系统,即只有
精通上述技术 的复合型专家才能研发的系统,用户无法进行二次开发,从而完全丧失了开放性。
The problem is that in order to develop such a large and complex interrupt system, it is necessary to be proficient in digital control technology, master the computer software and hardware architecture, and be proficient in parallel algorithms and multi-threaded programming. This means that CNC applications become so-called expert systems, ie only
A system that can be developed by a compound expert who is proficient in the above technology, the user cannot perform secondary development, and thus completely loses its openness.
因此,基于IEEE定义的开放式现有数控系统完全'被计算机化',在体系结构上,实质上成为需要配置实时操作系统的通用计算机系统,数控应用软件只是其中的一个专用应用系统,其开放性只能定义为数控应用软件的'即插即用'。
Therefore, the open-ended existing CNC system based on IEEE is completely 'computerized'. In terms of architecture, it becomes a general-purpose computer system that needs to configure a real-time operating system. The numerical control application software is only one dedicated application system, and its opening is open. Sex can only be defined as 'plug and play' for CNC applications.
由此可见,在本质上,基于IEEE定义的现有开放式数控系统并不具有平台无关性,而是相反,具有平台相关性,对于高速高精度的多轴系统来说,更是平台强相关性。
It can be seen that, in essence, the existing open CNC system based on IEEE definition does not have platform independence, but on the contrary, has platform correlation. For high-speed and high-precision multi-axis systems, it is strongly related to the platform. Sex.
基于IEEE定义的现有开放式数控系统既然具有平台强相关性,在本质上便失去了重构的基础。 Since the existing open CNC system based on IEEE has a strong correlation with the platform, it essentially loses the foundation of reconstruction.
第二、实时控制过程不具有可重构性 Second, the real-time control process is not reconfigurable
在基于IEEE定义的现有开放式数控系统中,实时控制过程既是数字控制信息的迭代过程又是实时控制过程的迭代过程,与插补迭代控制算法密不可分,高速高精度的插补迭代算法自然成为现有数控技术中的核心技术。故而,日本的OSEC计划(Open
System Environment for Controller)认为,没有先进的控制算法的开放式数控系统只是进化性的、不是理想的和革命性的。
In the existing open CNC system based on IEEE definition, the real-time control process is not only an iterative process of digital control information but also an iterative process of real-time control process. It is inseparable from the interpolation iterative control algorithm, and the high-speed and high-precision interpolation iterative algorithm is natural. Become the core technology in the existing CNC technology. Therefore, Japan's OSEC program (Open
The System Environment for Controller believes that open CNC systems without advanced control algorithms are only evolutionary, not ideal and revolutionary.
在体系结构上,基于IEEE定义的现有开放式数控系统被划分为系统平台和应用软件两大部分,应用软件进而划分为人机控制层和运动控制层。运动控制层是数控系统完成实时控制过程的内核,由一些标准组件构成。显然,这是一种面向应用软件配置的体系结构。这就意味着,基于IEEE定义的现有开放式数控系统是面向对象而不是面向过程的。
In terms of architecture, the existing open CNC system based on IEEE definition is divided into two parts: system platform and application software. The application software is further divided into human-machine control layer and motion control layer. The motion control layer is the core of the CNC system to complete the real-time control process, and is composed of some standard components. Obviously, this is an architecture for application configuration. This means that existing open CNC systems based on IEEE definitions are object oriented rather than process oriented.
数字控制系统的核心问题是实时控制刀路曲线。相应于机械系统的重构,刀路曲线的实时控制过程必然需要重构。
The core issue of digital control systems is the real-time control of the toolpath curve. Corresponding to the reconstruction of the mechanical system, the real-time control process of the tool path curve necessarily needs to be reconstructed.
在基于IEEE定义的现有开放式数控系统中,对于不同的刀路曲线,例如,直线、圆弧、抛物线、渐开线、NURBS曲线等,必须研发相应的插补迭代算法并在数控应用软件中配置相应的实时控制模块。因此,相应于机械系统的重构,实时控制过程的重构必然涉及实时控制模块的修改,或替换、增加实时控制模块。舍此之外,再无其他技术手段。
In the existing open CNC system based on IEEE definition, for different toolpath curves, such as straight lines, arcs, parabolas, involutes, NURBS curves, etc., the corresponding interpolation iterative algorithm must be developed and applied in the numerical control application software. Configure the corresponding real-time control module. Therefore, corresponding to the reconstruction of the mechanical system, the reconstruction of the real-time control process necessarily involves the modification of the real-time control module, or the replacement and addition of the real-time control module. Apart from this, there is no other technical means.
显然,这与数字控制系统可重构性的内涵相距甚远。 Obviously, this is far from the connotation of the reconfigurability of digital control systems.
发明人发现,对于数字控制来说,过程比对象更具本质特征。数字控制系统中的数字控制是一个过程,而不是对象。然而,基于IEEE定义的现有开放式数控系统是面向对象而不是面向过程的。
The inventors have found that for digital control, the process is more essential than the object. Digital control in a digital control system is a process, not an object. However, existing open CNC systems based on IEEE definitions are object oriented rather than process oriented.
在插补迭代控制方法中,实时控制过程就是插补周期控制下的坐标值增量的生成过程、分配过程、发送过程、执行过程的周而复始。因而,实时控制过程与刀路曲线的几何特征、加工过程的工艺特征、机械系统的
运动学/
动力学特征等密不可分,与CPU的位数、运算速度等硬件平台密不可分,与实时操作系统等软件平台密不可分,与插补迭代算法密不可分。这就从根本上限制了实时控制过程的重构。换言之,在基于IEEE定义的现有开放式数控系统中,刀路曲线的实时控制过程无法开放,不具有可重构性。
In the interpolation iterative control method, the real-time control process is the process of generating the coordinate value increment under the interpolation period control, the allocation process, the sending process, and the execution process. Thus, the real-time control process and the geometric characteristics of the tool path curve, the process characteristics of the machining process, the mechanical system
Kinematics /
The dynamic characteristics are inseparable, and are inseparable from the hardware platforms such as the number of bits of the CPU and the operation speed. They are inseparable from the software platforms such as the real-time operating system, and are inseparable from the interpolation iterative algorithm. This fundamentally limits the reconstruction of the real-time control process. In other words, in the existing open CNC system based on IEEE definition, the real-time control process of the tool path curve cannot be opened and has no reconfigurability.
第三、通信周期为系统参数 Third, the communication cycle is the system parameter
网络化是先进制造技术的重要技术特征。 Networking is an important technical feature of advanced manufacturing technology.
中国国家标准'GB/T 18759.1-2002•机械电气设备•开放式数控系统•第1部分:总则• 5.
2. 4. 2' 规定,外部通信应符合有关的国家标准或国际标准,内部通信应符合ISO标准通信模型。 Chinese National Standard 'GB/T 18759.1-2002•Mechanical and Electrical Equipment•Open CNC System•Part 1: General • 5.
2. 4. 2' It is stipulated that external communication should comply with relevant national or international standards, and internal communication should conform to the ISO standard communication model.
外部通信用于数控系统与车间管理网之间,其按口可称为网络接口,例如工业以太网接口或其他现场总线(Field
bus)。 External communication is used between the CNC system and the shop management network. The port can be called a network interface, such as an industrial Ethernet interface or other fieldbus (Field).
Bus).
继而,对于内部通信接口,中国国家标准《GB/T 18759.
3-2009•机械电气设备•开放式数控系统•第3部分总线接口与通信协议》以ISO/OSI开放系统互联参考模型为基础,规范了一种现场总线,称之为'开放式数控系统总线',用于连接'数控装置、伺服驱动装置、主轴驱动装置、传感器装置、I/O装置',以实现这些'装置间的数字式、双向、多点的通信',并满足系统对周期性、实时性、同步、可靠性、安全性、开放性等方面的要求。另一种数控系统现场总线标准《机床数控系统NCUC-Bus现场总线协议规范(草案)》的草案已公开、也以ISO/OSI开放系统互联参考模型为基础。 Then, for the internal communication interface, the Chinese national standard "GB/T 18759.
3-2009•Mechanical and electrical equipment•Open CNC system•Part 3 Bus interface and communication protocol》Based on the ISO/OSI open system interconnection reference model, a fieldbus is standardized, called 'open CNC system bus ', for connecting 'CNC devices, servo drives, spindle drives, sensor devices, I/O devices' to achieve these 'digital, two-way, multi-point communication between devices' and to meet system-to-cycle , real-time, synchronization, reliability, security, openness and other requirements. Another draft of the CNC fieldbus standard "NCUC-Bus Fieldbus Protocol Specification (Draft) for machine tool numerical control system" has been published and is based on the ISO/OSI open system interconnection reference model.
众所周知,ISO/OSI开放系统互联参考模型是针对计算机网络之间的通信模型。所述现场总线标准对总线体系结构进行了简化,主要由物理层、数据链路层与应用层构成。所述现场总线导致通信周期成为另一个系统参数,通信协议的实时性、数据表示的兼容性等一系列问题导致内部通信高度复杂化与高成本。
As is well known, the ISO/OSI Open Systems Interconnection Reference Model is aimed at communication models between computer networks. The fieldbus standard simplifies the bus architecture, and is mainly composed of a physical layer, a data link layer, and an application layer. The field bus causes the communication cycle to become another system parameter, and a series of problems such as real-time communication protocol and compatibility of data representation cause high complexity and high cost of internal communication.
相应于机械系统的重构,实时控制过程中的数字控制信息的数据格式,包括进给当量(纳米或微米)、数据的字节数等都将发生变化。在所述现场总线中必须制定用户层通信协议,对开放式数控系统内部的数据交换中的数据格式、时序关系和纠错方式予以规范。因而,与实时操作系统中的插补周期类似,现场总线中的通信周期反而成为制约数字控制系统可重构性的因素。
Corresponding to the reconstruction of the mechanical system, the data format of the digital control information in the real-time control process, including the feed equivalent (nano or micron), the number of bytes of data, etc., will change. A user layer communication protocol must be established in the field bus to standardize data formats, timing relationships, and error correction methods in data exchange within the open CNC system. Thus, similar to the interpolation cycle in the real-time operating system, the communication cycle in the fieldbus becomes a factor that restricts the reconfigurability of the digital control system.
对于可重构数控系统来说,为此必须耗费大量计算资源用于支持各类现场总线(例如CAN、Profibus、Sercos等)。
For reconfigurable CNC systems, a large amount of computing resources must be used to support various fieldbuses (eg CAN, Profibus, Sercos, etc.).
第四、编程接口与人机界面的一致性 Fourth, the consistency of the programming interface and the human-machine interface
在基于IEEE定义的开放式现有数控系统中,采用G代码标准作为数控加工程序的编程接口。上世纪50年代纸带作为输入的基本物理介质时,为规范在纸带上表示字符,制定了纸带穿孔的编码标准,即G代码标准。
In the open-ended existing CNC system based on IEEE definition, the G code standard is adopted as the programming interface of the NC machining program. When the paper tape was used as the basic physical medium for input in the 1950s, the code standard for the paper tape perforation, that is, the G code standard, was established for the specification of characters on the paper tape.
G
代码标准是信息技术起步阶段的原始产物,受纸带的限制不可避免地存在信息量过少的缺陷。各个厂商因而对G代码都进行了基本语义之外的扩张,导致G代码程序与相应硬件的依赖,数控加工程序在不同的数控系统之间不具有互换性,造成各种数控系统互不兼容。因而,作为编程接口,G代码标准不具备人机界面的一致性,成为数控技术进一步发展的瓶颈之一,也制约了数字控制系统的开放性与可重构性。 G
The code standard is the original product of the initial stage of information technology. Due to the limitation of the paper tape, there is inevitably a defect that the amount of information is too small. Therefore, each manufacturer has extended the basic semantics of the G code, resulting in the dependence of the G code program and the corresponding hardware. The CNC machining program is not interchangeable between different CNC systems, resulting in incompatibility between various CNC systems. . Therefore, as a programming interface, the G code standard does not have the consistency of the human-machine interface, which becomes one of the bottlenecks for the further development of the numerical control technology, and also restricts the openness and reconfigurability of the digital control system.
上述四个方面的问题导致基于IEEE定义的现有开放式数控系统只有三种技术方案来解决数字控制系统的开放性。
The above four problems lead to the existing open CNC system based on IEEE definition, there are only three technical solutions to solve the openness of the digital control system.
其一是研发更多位数、更高速度的CPU与更多位数、实时性更强的实时操作系统。例如,2009年,中国国家'高档数控机床与基础制造装备'科技重大专项计划将64位CPU、64位实时操作系统、以及插补周期达到0.125ms的多轴联动数控系统列为关键技术。
One is to develop more bits, higher speed CPUs and more real-time operating systems with more digits and real-time performance. For example, in 2009, China's national 'high-end CNC machine tools and basic manufacturing equipment' technology major project plans to include 64-bit CPU, 64-bit real-time operating system, and multi-axis linkage CNC system with an interpolation period of 0.125ms as a key technology.
其二是研发更先进的插补迭代控制算法。例如,日本在OSEC计划推动下,研发出用于运动控制器的64位超高速芯片与NURBS插补迭代控制算法。
The second is to develop more advanced interpolation iterative control algorithms. For example, Japan has developed a 64-bit ultra-fast chip and NURBS interpolation iterative control algorithm for motion controllers driven by the OSEC program.
其三是研发基于超高速处理器与实时操作系统的全软开放式数控系统。所谓全软开放式数控系统,形象地说,就是在实时操作系统支持下将数字控制系统完全PC化。
The third is to develop a fully soft open CNC system based on ultra-high speed processor and real-time operating system. The so-called all-soft open CNC system, in the image, is to fully PC the digital control system with the support of real-time operating system.
显然,上述三种技术方案都依赖实时操作系统,刀路曲线的实时控制过程无法开放。一个严峻的事实是,在基于IEEE定义的现有开放式数控系统中,相应于机械系统的重构,特别是相应于高速高精度多轴系统的重构,无论是NC嵌入PC模式还是软开放式模式,都不能解决上述四个方面的问题,特别是,都不能解决实时控制过程的可重构性,只能重新研发那个庞大而复杂的中断系统。
Obviously, the above three technical solutions all rely on the real-time operating system, and the real-time control process of the tool path curve cannot be opened. A serious fact is that in the existing open CNC system based on the IEEE definition, corresponding to the reconstruction of the mechanical system, especially the reconstruction corresponding to the high-speed and high-precision multi-axis system, whether it is NC embedded PC mode or soft open The mode can not solve the above four problems, in particular, can not solve the reconfigurability of the real-time control process, can only re-develop that large and complex interrupt system.
因此,中国国家标准'GB/T 18759. 1-2002•机械电气设备•开放式数控系统•第1部分
总则'未对数控系统的可重构性进行技术界定,也未对可重构数控系统作任何说明,仅在4. 5.
2款中将可重构性列为开放式数控系统中有待实现的最高层次而已。换言之,对基于IEEE定义的现有开放式数控系统来说,可重构性只是一个美妙的设想。 Therefore, the Chinese national standard 'GB/T 18759. 1-2002•Mechanical and electrical equipment•Open CNC system•Part 1
General's no technical definition of the reconfigurability of the CNC system, nor any description of the reconfigurable CNC system, only in 4. 5.
The two models of reconfigurability are listed as the highest level of open CNC systems to be realized. In other words, reconfigurability is only a wonderful idea for existing open CNC systems based on IEEE definitions.
发明人发现,IEEE关于开放式数控系统的定义是阻碍可重构数控系统发展的根本原因,其首要因素是IEEE定义所产生的控制观念。在观念上,必须对现有数字控制技术进行变革,树立以工作机为中心的控制观念。数控系统是为工作机服务的,其任务只是为工作机制造数字控制信息即多维关联数据流,所述多维关联数据流不能夹带工作机不需要的插补周期、通信周期、轮廓步长等冗余信息。
The inventors found that the IEEE definition of an open CNC system is the root cause of the development of the reconfigurable CNC system. The primary factor is the control concept generated by the IEEE definition. In terms of concept, it is necessary to change the existing digital control technology and establish a control concept centered on the work machine. The numerical control system is for the working machine, and its task is only to manufacture digital control information, that is, multi-dimensional associated data flow, for the working machine, and the multi-dimensional associated data flow cannot entrain the interpolation cycle, communication cycle, contour step length and the like which are not required by the working machine. Other information.
对于数字控制来说,过程比对象更具本质特征。数控系统中的数字控制是一个过程,而不是对象。IEEE定义下的现有数控系统的体系结构,与历史上天文学中地心说的托勒密体系结构类似,均缘于观念的错误。
For digital control, the process is more essential than the object. Digital control in a CNC system is a process, not an object. The architecture of the existing CNC system under the IEEE definition is similar to the Ptolemy system in the history of astronomy, which is due to the mistake of concept.
发明人进而发现,IEEE定义存在三个原则性错误。 The inventors further discovered that there are three principle errors in the IEEE definition.
IEEE
定义的第一个原则性错误是,在控制观念上,IEEE定义将数控系统定位为控制工作机的实时指挥中心,没有关联数据流的概念。 IEEE
The first principled error defined is that, in terms of control concepts, the IEEE defines the CNC system as a real-time command center that controls the working machine, without the concept of associated data streams.
IEEE
定义的第二个原则性错误是,在体系结构上,IEEE定义忽视了数字控制的过程本质,面向对象而不是面向过程,没有控制流程的概念,将数控系统定义为一种需要配置实时操作系统的通用计算机系统。 IEEE
The second principled error of the definition is that, in terms of architecture, the IEEE definition ignores the process essence of digital control, object-oriented rather than process-oriented, without the concept of control flow, defining the numerical control system as a real-time operating system that needs to be configured. General purpose computer system.
IEEE
定义的第三个原则性错误是,在控制方法上,IEEE定义忽视了插补迭代控制算法只是数字控制信息的一种解压方法,从而将实时操作系统的内外资源的管理机制以及响应内外环境变化的应变机制视为一种普适的控制机制,将插补迭代控制算法的运算规则与实时操作系统的任务调度规则紧密耦合在一起构成一种实时控制方法。 IEEE
The third principle error defined is that in the control method, the IEEE definition ignores the interpolation iterative control algorithm is only a decompression method of digital control information, so that the management mechanism of the internal and external resources of the real-time operating system and the response to internal and external environmental changes The strain mechanism is regarded as a universal control mechanism, which closely couples the operation rules of the interpolation iterative control algorithm with the task scheduling rules of the real-time operating system to form a real-time control method.
因此,IEEE定义必然产生下述问题: Therefore, the IEEE definition necessarily leads to the following problems:
1)
、一切事物都处于过程之中,都要遍历产生、发展、消亡等阶段并演化出层次结构。在过程的不同层次中事物演化出的结构便成为对象。一切对象都在过程中实现其功能。 1)
Everything is in the process, and it is necessary to traverse the stages of production, development, and extinction and evolve the hierarchical structure. The structures evolved by things at different levels of the process become objects. Everything is implemented in the process.
对象只是关于事物在特定层次结构的一种人为抽象,过程则是事物在不同层次结构中实际运动的动态行为。IEEE定义完全忽视了数字控制的过程本质,将数字控制过程视为对象,导致数字控制信息的迭代与控制流程的迭代,不可能涉及数字控制信息的开放性、数字控制过程的开放性与数字控制过程之间的界面的开放性。
Objects are just a kind of artificial abstraction about things in a particular hierarchy, and processes are the dynamic behavior of things moving in different levels of structure. The IEEE definition completely ignores the process essence of digital control, and regards the digital control process as an object, which leads to iteration of digital control information and iteration of control flow. It is impossible to involve the openness of digital control information, the openness of digital control process and digital control. The openness of the interface between processes.
2 )、IEEE定义以 数 控系 统
为中心,所定义的开放性是计算机系统本身应具有的开放性,所谓开放式数控系统的体系结构是从计算机系统移植过来的,是一种面向对象以便实现控制软件模块化的体系结构,不能反映数控系统在整个控制过程中的技术特征。 2), IEEE defines the digital control system
For the center, the defined openness is the openness of the computer system itself. The architecture of the so-called open CNC system is transplanted from the computer system. It is an object-oriented architecture to realize the modularization of the control software. Reflects the technical characteristics of the CNC system throughout the control process.
3
)、IEEE定义未能从制造系统的宏观视野来审视开放式数控系统的体系结构,采用通用计算机系统的体系结构,导致开放式的概念含糊不清,至今也未能统一。互操作性、可移植性、可伸缩性、可互换性等描述性词汇便成为开放式的所谓技术规范,阻碍了
数 控系 统 的标准化进程。 3
The IEEE definition fails to examine the architecture of the open CNC system from the macroscopic view of the manufacturing system, and adopts the architecture of the general computer system, resulting in an open concept that is ambiguous and has not been unified. Descriptive vocabulary such as interoperability, portability, scalability, and interchangeability become open so-called technical specifications that hinder
The standardization process of the digital control system.
4
)、IEEE定义面向对象而不是面向过程,忽视了计算机数字控制的本质,数控系统'被计算机化',数字控制技术的发展被引向所谓'先进的控制算法'(日本OSEC计划),即插补迭代控制算法的精度与速度,从而误导了数字控制技术的发展方向。 4
IEEE defines object-oriented rather than process-oriented, ignoring the essence of computer numerical control, CNC system is 'computerized', and the development of digital control technology is led to the so-called 'advanced control algorithm' (Japan OSEC plan), plug-in Complementing the accuracy and speed of the iterative control algorithm, thus misleading the development direction of digital control technology.
5 )、 数 控系 统
的核心问题是实时控制过程的开放性与可重构性。在IEEE定义的开放式数控系统中,实时控制模块因面向对象而无法开放,从根本上制约了 数 控系 统 的发展。 5), digital control system
The core issue is the openness and reconfigurability of real-time control processes. In the open CNC system defined by IEEE, the real-time control module cannot be opened due to object orientation, which fundamentally restricts the development of the digital control system.
6
)、IEEE定义基于通用计算机系统的体系结构,局限于数控软件的功能划分及其相互之间的操作界面,对于数字控制的过程特征缺乏系统学范畴的界定,因而, 数 控系 统
被定义为配置了数控软件的通用计算机系统,从而在实质上将开放式 数 控系 统 定义为制造数字控制信息的刚性集成制造系统。 6
The IEEE defines an architecture based on a general-purpose computer system, which is limited to the functional division of numerical control software and the operational interface between them. The process characteristics of digital control lack the definition of systematic theory. Therefore, the digital control system
It is defined as a general-purpose computer system equipped with numerical control software, thereby essentially defining an open digital control system as a rigid integrated manufacturing system for manufacturing digital control information.
7 )、IEEE定义不是以工作机为中心,而是以 数 控系 统
为中心,从而产生了插补周期、轮廓步长等大量冗余信息,违反了简单性原则。这些冗余信息消耗了大量计算资源,违反了经济性原则。 7), the IEEE definition is not based on the working machine, but on the digital control system.
As a center, a large amount of redundant information such as interpolation period and contour step size is generated, which violates the principle of simplicity. This redundant information consumes a lot of computing resources and violates economic principles.
8
)、过程的开放性与对象的开放性是完全不同的。过程的开放性必然涉及数字控制信息的生成、分配、发送、执行的控制流程。IEEE定义完全没有控制流程的观念。 8
The openness of the process is completely different from the openness of the object. The openness of the process necessarily involves the control flow of the generation, distribution, transmission, and execution of digital control information. The IEEE defines no concept of controlling the process at all.
IEEE 定义的开放式 数 控系 统
的体系结构不是按照制造数字控制信息的控制流程来配置控制资源的体系结构。 IEEE-defined open digital control system
The architecture is not an architecture that configures control resources in accordance with the control flow of manufacturing digital control information.
9 )、IEEE定义没有将数字控制信息看作是一种产品,未涉及数字控制信息的开放性。 9), the IEEE definition does not regard digital control information as a product, and does not involve the openness of digital control information.
10
)、G代码标准是现有数控程序采用的编程接口。G代码编程接口不具备人机界面的一致性。IEEE定义关于人机界面的表述过于抽象,所谓'人机界面的一致性'回避了编程接口的开放性。 10
), G code standard is the programming interface used by existing CNC programs. The G code programming interface does not have the consistency of the human machine interface. The IEEE definition of the human-machine interface is too abstract, and the so-called 'consistency of human-machine interface' avoids the openness of the programming interface.
因此,IEEE定义不是一个关于计算机数字控制系统的开放性定义,只是试图规范应用软件的'即插即用'问题,并未解决 数 控系 统 的开放性,反而在体系结构上将 数
控系 统 强制为通用计算机系统架构下的专用计算机系统,从而将 数 控系 统 的发展牢牢地钉死于'插补时代'。
Therefore, the IEEE definition is not an open definition of a computer numerical control system. It merely attempts to standardize the 'plug and play' problem of application software. It does not solve the openness of the digital control system. Instead, it is numerically
The control system is forced to be a special computer system under the general computer system architecture, so that the development of the digital control system is firmly nailed to the 'interpolation era'.
综上所述,在IEEE定义的错误观念主导下的现有开放式数控系统中,数控系统所制造的数字控制信息、制造数字控制信息的方法、以及制造数字控制信息的过程与过程界面,都是封闭的、非标准的、不可重构的。所制造的数字控制信息成为现有数控系统的内部物品。这就从根本上否定了
数 控系 统 的开放性与可重构性,人为地将现有数字控制技术与现有开放式数控系统高度复杂化,为 数控系统
的重构设置了难以逾越的障碍,必然导致现有开放式数控系统无法演化为第三次工业革命所期盼的控制机。
In summary, in the existing open CNC system under the umbrella of the IEEE defined misconception, the digital control information produced by the numerical control system, the method of manufacturing digital control information, and the process and process interface for manufacturing digital control information are It is closed, non-standard, and non-reconstructible. The digital control information produced becomes an internal item of the existing numerical control system. This is fundamentally negated
The openness and reconfigurability of the digital control system artificially complicate the existing digital control technology with the existing open CNC system, which is a numerical control system.
The reconstruction has set up insurmountable obstacles, which will inevitably lead to the failure of the existing open CNC system to evolve into the control machine that the third industrial revolution hopes.
发明人舍弃IEEE关于开放式数控系统的定义,将开放式数控系统定义为: The inventor abandoned the IEEE definition of an open CNC system and defined the open CNC system as:
'
所谓开放式数控系统是按照控制流程配置嵌入式子系统的计算机数字控制系统,具有开放的人机界面、开放的数字控制信息、开放的数字控制信息制造方法、开放的数字控制信息制造过程、数字控制信息制造过程之间的开放的界面、开放的应用软件。' '
The so-called open CNC system is a computer numerical control system that configures the embedded subsystem according to the control flow. It has an open human-machine interface, open digital control information, an open digital control information manufacturing method, an open digital control information manufacturing process, and digital Control an open interface between the information manufacturing process and open application software. '
这一定义同样适用于所述嵌入式子系统,因而是一个系统学与分形几何学相结合的定义。在所定义的开放式数控系统中不存在数字控制信息的迭代与控制流程的迭代,控制信息流的拓扑结构是一种线性拓扑结构。应用软件的开放性就是'即插即用'。
This definition also applies to the embedded subsystem and is therefore a combination of systematics and fractal geometry. In the defined open CNC system, there is no iteration of the digital control information and iteration of the control flow. The topology of the control information flow is a linear topology. The openness of application software is 'plug and play'.
IEEE 定义的开放性只涉及应用软件的开放性以及操作使用计算机时的人机界面的开放性。 The openness defined by the IEEE only covers the openness of the application software and the openness of the human-machine interface when operating the computer.
发明人的这一定义表明,开放式数控系统的开放性具有下述五个方面的内涵: This definition of the inventor shows that the openness of the open CNC system has the following five aspects:
1
)、人机界面的开放性,包括数字控制信息制造过程的所有控制过程界面中的人机界面,特别是编程接口的开放性; 1
), the openness of the human-machine interface, including the human-machine interface in all control process interfaces of the digital control information manufacturing process, especially the openness of the programming interface;
2 )、数字控制信息的开放性; 2) the openness of digital control information;
3 )、数字控制信息的制造方法的开放性; 3) the openness of the manufacturing method of digital control information;
4 )、数字控制信息的制造过程的开放性; 4) The openness of the manufacturing process of digital control information;
5 )、数字控制信息制造过程之间的界面的开放性。 5) The openness of the interface between the digital control information manufacturing process.
所谓数字控制信息的开放性指的是数字控制信息生成部件中生成的数字控制信息的公开性与透明性。 The openness of the digital control information refers to the openness and transparency of the digital control information generated in the digital control information generating unit.
所谓数字控制信息制造方法的开放性指的是允许用户(或开发商)构造或集成自己的数字控制信息的制造方法,也就是实时控制方法完全软件化与应用软件的'即插即用'。
The openness of the so-called digital control information manufacturing method refers to a manufacturing method that allows a user (or developer) to construct or integrate his own digital control information, that is, the real-time control method is fully softwareized and the software is plug-and-play.
所谓数字控制信息制造过程的开放性指的是数字控制信息的每个子过程的公开性与透明性。 The so-called openness of the digital control information manufacturing process refers to the openness and transparency of each sub-process of digital control information.
数控系统的内部接口用于系统内部功能部件之间交换信息。 The internal interface of the CNC system is used to exchange information between the internal functional components of the system.
所谓数字控制信息制造过程之间的界面的开放性指的是内部接口的开放性。 The openness of the interface between the so-called digital control information manufacturing processes refers to the openness of the internal interface.
所谓人机界面的开放性指的是编程接口的开放性。 The so-called openness of the human-machine interface refers to the openness of the programming interface.
由此可见,发明人的上述开放式数控系统的定义反映了现代制造业的发展环境对控制机所提出的标准化问题,以适应工作机、动力机等产业的标准化进程。
It can be seen that the definition of the above-mentioned open numerical control system of the inventor reflects the standardization problem proposed by the development environment of the modern manufacturing industry to the control machine, so as to adapt to the standardization process of the working machine, the power machine and other industries.
发明人在发明专利《计算机数字控制系统数据流关联控制方法与体系结构》(中国专利号:ZL200710124304.9,授权公告日:2009年8月19日)中发明了数据流关联控制方法(Data-stream
Related
Control,DRC控制),使现有数控系统告别了插补时代,迈入了数据流关联控制时代,产生了新一代控制机即数据流关联控制机(DRC控制机)。
The inventor invented the data flow association control method (Data- in the invention patent "Data Flow Control Method and Architecture of Computer Digital Control System" (Chinese Patent No.: ZL200710124304.9, Authorization Announcement Date: August 19, 2009) Stream
Related
Control, DRC control), the existing CNC system has bid farewell to the era of interpolation, entered the era of data flow correlation control, and produced a new generation of control machine, namely the data flow correlation control machine (DRC control machine).
发明人在发明专利《一种标准化控制机》(申请号:200910110439.9
PCT国际申请号:PCT/CN2010/072914)公开了一种标准化DRC控制机及其重构方法,按照数字控制信息的生成、分配发送、执行的控制流程来配置控制资源,所述标准化DRC控制机由数字控制信息生成部件,数字控制信息分配发送部件与数字控制信息执行部件构成。 The inventor is inventing the patent "a standardized control machine" (application number: 200910110439.9
PCT International Application No.: PCT/CN2010/072914) discloses a standardized DRC control machine and a reconstruction method thereof, which configure control resources in accordance with a control flow for generation, distribution, and execution of digital control information, the standardized DRC control machine The digital control information generating unit, the digital control information distributing transmitting unit and the digital control information executing unit are constituted.
发明人将数字控制信息看作是一种产品,将数字控制信息的生成、分配、发送、执行这一制造数字控制信息的工艺流程称之为控制流程。
The inventor regards digital control information as a product, and the process of manufacturing digital control information by generating, distributing, transmitting, and executing digital control information is called a control flow.
根据工艺流程配置相应的生产设备,进行专业化标准化生产,这是制造业走过的必由之路。显然,工艺流程是分工合作、实现专业化、标准化生产的基础。将数字控制信息看作是一种产品,则必然存在制造数字控制信息的工艺流程。
According to the process flow, the corresponding production equipment is configured and professionalized and standardized production is the only way for the manufacturing industry to go through. Obviously, the process flow is the basis for division of labor, professionalization, and standardized production. Considering digital control information as a product, there must be a process flow for manufacturing digital control information.
正如在机械制造中必须按照机械制造的工艺流程来配置相应的加工设备一样,在信息制造中也必须按照制造数字控制信息的控制流程来配置相应的嵌入式子系统。
Just as mechanical processing must be configured in accordance with the mechanical manufacturing process, the corresponding embedded subsystem must be configured in the information manufacturing process in accordance with the control flow for manufacturing digital control information.
发明人将控制流程划分为数字控制信息生成过程、数字控制信息分配发送过程与数字控制信息执行过程等三个子过程。
The inventor divides the control flow into three sub-processes: a digital control information generation process, a digital control information distribution transmission process, and a digital control information execution process.
发明人发现,数字控制信息的生成过程,包括数字控制信息的解压过程、数字控制信息的优化过程以及确定性误差的补偿过程等,理应是'运筹帷幄之中,决胜千里之外',是一个非实时过程。而数字控制信息的分配发送过程则有如'军令如山',数字控制信息的执行过程更是'兵贵神速',都必须是实时的。
The inventor found that the process of digital control information generation, including the decompression process of digital control information, the optimization process of digital control information, and the compensation process of deterministic error, should be the 'strategy of tactics, winning thousands of miles away', is a non- Real-time process. The process of assigning and transmitting digital control information is like 'military order mountain', and the execution process of digital control information is more 'booming speed', all must be real-time.
按照制造数字控制信息的控制流程,开放式数控系统的体系结构可解耦为数字控制信息生成部件(数字信息制造系统)、数字控制信息分配发送部件(数据流控制器)、数字控制信息执行部件(伺服驱动装置与I/O装置)等三个功能部件。
According to the control flow for manufacturing digital control information, the architecture of the open CNC system can be decoupled into a digital control information generating component (digital information manufacturing system), a digital control information distribution transmitting component (data flow controller), and a digital control information executing component. Three functional components (servo drive and I/O device).
在数字控制技术中,由'1''0'形态的离散位置信息一般称为步进型,由坐标值增量构成的离散位置信息则称之为增量型。
In the digital control technology, the discrete position information in the form of '1' '0' is generally referred to as a step type, and the discrete position information composed of increments of coordinate values is referred to as an incremental type.
设刀路(Tool
Path)曲线为X、y、Z、A、B、W、E、H等8个变量的函数。其中,X、y、Z、A、B为联动的坐标轴,
W、E、H为需要实时控制的参数(例如,W为激光脉冲的宽度、E为激光脉冲的能量、H为激光脉冲的频率)。对于数据流关联控制来说,需要实时控制的工艺参数与坐标值并无任何本质上的差别,可以将控制该工艺参数的开关视为虚拟坐标轴,参数值视为该虚拟坐标轴的坐标值,从而将坐标轴联动与工艺参数的实时控制统一起来,称之为多轴多参数联动。在本发明中,坐标轴包括虚拟坐标轴。 Set the tool path (Tool
The Path) curve is a function of eight variables such as X, y, Z, A, B, W, E, and H. Where X, y, Z, A, B are the coordinate axes of the linkage,
W, E, and H are parameters that require real-time control (for example, W is the width of the laser pulse, E is the energy of the laser pulse, and H is the frequency of the laser pulse). For data flow association control, there is no essential difference between the process parameters and the coordinate values that need to be controlled in real time. The switch that controls the process parameters can be regarded as a virtual coordinate axis, and the parameter value is regarded as the coordinate value of the virtual coordinate axis. Therefore, the coordinate axis linkage and the real-time control of the process parameters are unified, which is called multi-axis multi-parameter linkage. In the present invention, the coordinate axis includes a virtual coordinate axis.
表1为8联动的多维关联数据流的示意图。 Table 1 is a schematic diagram of the 8-linked multi-dimensional associated data stream.
表1 Table 1
△t 1 △t 1 | △t 2 △t 2 | … ... | △t i △t i | … ... | △t n Δt n |
△X 1
△y 1 △Z 1 △A 1 △B 1 △W 1 △E 1 △H 1 △X 1 △y 1 △Z 1 △A 1 △B 1 △W 1 △E 1 △H 1 |
△X 2
△y 2 △Z 2 △A 2 △B 2 △W 2 △E 2 △H 2 △X 2 △y 2 △Z 2 △A 2 △B 2 △W 2 △E 2 △H 2 |
… … … … … … … …... ... ... ... ... ... ... ... |
△X i
△y i △Z i △A i △B i △W i △E i △H i △X i △y i △Z i △A i △B i △W i △E i △H i |
… … … … … … … …... ... ... ... ... ... ... ... |
△X n
△y n △Z n △A n △B n △W n △E n △H n △X n △y n △Z n △A n △B n △W n △E n △H n |
表1中,时间T被离散分割为n个区间: △ t i ,i = 1,…, n 。 △
t i (i = 1,…, n)称之为该 刀路曲线 的T分割。X、y、Z、A、B、W、E、H等在 △ t i
内的坐标值增量离散为 △ Xi 、 △ yi 、 △ Zi 、 △
Ai 、 △ Bi 、 △ Wi 、 △ Ei 、 △
Hi 。微线段 △ Li ( △ Xi 、 △ yi 、 △
Zi 、 △ Ai 、 △ Bi )称之为该 刀路曲线 的L分割。In Table 1, the time T is discretely divided into n intervals: Δ t i , i = 1,..., n . Δ t i (i = 1,..., n) is called the T-segment of the tool path curve. The coordinate increments of X, y, Z, A, B, W, E, H, etc. in Δ t i are discretely Δ X i , Δ y i , Δ Z i , Δ A i , Δ B i , △ W i , △ E i , △ H i . The micro-line segments Δ L i ( Δ X i , Δ y i , Δ Z i , Δ A i , Δ B i ) are referred to as L-segments of the tool path curve.
在实时控制过程中,X轴首先进给 △ X1 ,经过△t 1
后再进给 △ X2 ,直到 △ Xn ,y、Z、A、B、W、E、H等轴也是如此。因而,△t
n 是冗余的故舍去。另外,为了统一控制步骤,增加△t 0 。△t 0
与刀路曲线无关,可适当设定,例如,将△t 0 设定为△t n 。将下标0,1,…, n-1调整为1,…,
n。为叙述的方便起见,且有别于插补周期,将T分割中的 △ t i (i = 1,…, n)称之为 控制 节律。In the real-time control process, X-axis to the first advanced △ X 1, △ t 1 and then through the feed △ X 2, until △ X n, y, Z, A, B, W, E, H isometric well. Therefore, Δt n is redundant. In addition, in order to unify the control steps, Δt 0 is added . Δt 0 is set independently of the tool path curve, and for example, Δt 0 is set to Δt n . Adjust the subscripts 0, 1, ..., n-1 to 1, ..., n. For the convenience of the description, and different from the interpolation period, Δ t i (i = 1,..., n) in the T segmentation is referred to as a control rhythm.
表1指出,对于数据流关联控制来说,需要实时控制的工艺参数与坐标值并无本质上的差别,可以将控制该工艺参数的开关视为虚拟坐标轴,参数值视为虚拟坐标轴的坐标值,从而将坐标轴联动与工艺参数的实时控制统一起来,称之为多轴多参数联动。在本发明中,坐标轴包括虚拟坐标轴。
Table 1 indicates that for data flow correlation control, there is no essential difference between the process parameters and the coordinate values that need to be controlled in real time. The switch that controls the process parameters can be regarded as a virtual coordinate axis, and the parameter value is regarded as a virtual coordinate axis. Coordinate values, so that the coordinate axis linkage and the real-time control of the process parameters are unified, called multi-axis multi-parameter linkage. In the present invention, the coordinate axis includes a virtual coordinate axis.
由此可见,刀路曲线的数字控制信息包括两部分。第一部分是L分割,描述相关坐标轴联动时的坐标值增量及其所要求的联动性,用于控制相关坐标轴联动以产生所要求的合成位移。第二部分是T分割,描述所述合成位移之间的随动性,用于控制所述合成位移之间的时间间隔。所述L分割还包括传动链之间的反向间隙、螺距误差、不垂直度与不平行度误差等确定性误差或热变形误差之类的准确定性误差。
It can be seen that the digital control information of the tool path curve includes two parts. The first part is the L segmentation, which describes the coordinate value increment when the related coordinate axes are linked and the required linkage, which is used to control the linkage of the relevant coordinate axes to produce the required composite displacement. The second part is a T-segment, describing the follow-up between the synthetic displacements, used to control the time interval between the synthetic displacements. The L segmentation also includes a quasi-deterministic error such as a deterministic error or a thermal deformation error such as a backlash, a pitch error, a non-perpendicularity, and a non-parallelism error between the drive chains.
刀路曲线的L分割在T分割的控制下形成关联数据流。根据离散位置信息的'1''0'形态或坐标值增量形态,关联数据流可分为步进型关联数据流与增量型关联数据流。
The L segmentation of the toolpath curve forms an associated data stream under the control of the T segmentation. According to the '1' '0' form or the coordinate value increment form of the discrete position information, the associated data stream can be divided into a stepped associated data stream and an incremental associated data stream.
按给定的数据格式,刀路曲线的L分割在存储空间生成的数字映像称之为刀路曲线的联动表。按给定的数据格式,刀路曲线的T分割在存储空间生成的数字映像称之为刀路曲线的随动表。
According to the given data format, the digital image generated by the L segmentation of the tool path curve in the storage space is called the linkage table of the tool path curve. According to the given data format, the digital image generated by the T-segment of the tool path curve in the storage space is called the follower table of the tool path curve.
显然,数字控制技术的核心任务是生成刀路曲线的联动表与随动表,所谓实时控制就是按照随动表中的 控制
节律向相应的伺服驱动装置分配发送联动表中的坐标值增量。 Obviously, the core task of digital control technology is to generate the linkage table and the follower table of the tool path curve. The so-called real-time control is based on the control in the follow-up table.
The rhythm assigns a coordinate value increment in the linkage table to the corresponding servo drive.
在基于IEEE定义的现有开放式数控系统中,L分割是在实时控制过程中动态产生的。 控制 节律 △ t
i (i = 1,…, n)称之为插补周期,是等长的。在实时操作系统的控制下,插补迭代控制算法在插补周期 △ t
i (i = 1,…, n)中产生 △ Li ( △ Xi 、 △
yi 、 △ Zi 、 △ Ai 、 △ Bi
)。插补周期从而成为一个系统参数。In the existing open CNC system based on IEEE definition, L segmentation is dynamically generated in the real-time control process. The control rhythm Δ t i (i = 1,..., n) is called the interpolation period and is of equal length. Under the control of the real-time operating system, the interpolation iterative control algorithm generates Δ L i ( Δ X i , Δ y i , Δ Z i , △ A i in the interpolation period Δ t i (i = 1,..., n) , △ B i ). The interpolation cycle thus becomes a system parameter.
在数据流关联控制中,数字控制信息生成部件无须配置实时操作系统,不存在插补周期, 控制 节律 △
t i 不是等长的。In the data stream association control, the digital control information generating component does not need to configure the real-time operating system, there is no interpolation period, and the control rhythm Δ t i is not equal in length.
从表1可以清楚地看出,数字控制的基本问题就是制造关联数据流。实时控制过程的基本问题就是关联数据流的实时控制。
It is clear from Table 1 that the basic problem of digital control is to make associated data streams. The basic problem with real-time control processes is the real-time control of the associated data streams.
对于给定的工件,所谓数字控制信息生成过程就是数字控制信息生成部件制造关联数据流的过程,即刀路曲线的联动表与随动表的生成过程。
For a given workpiece, the so-called digital control information generation process is a process in which the digital control information generation component manufactures the associated data stream, that is, the linkage table of the tool path curve and the generation process of the follower table.
根据加工工艺确定的顺序,数字控制信息生成部件生成DRC数控程序。 The digital control information generating unit generates a DRC numerical control program in accordance with the order determined by the machining process.
DRC
数控程序由运动指令构成,用于控制工件的加工过程。运动指令包括状态指令、开关指令、轨迹指令。状态指令用于操作辅助功能;开关指令用于控制I/O装置;轨迹指令用于控制伺服驱动装置,完成一条刀路曲线的走刀过程。 DRC
The NC program consists of motion commands for controlling the machining process of the workpiece. The motion instructions include a status command, a switch command, and a track command. The status command is used to operate the auxiliary function; the switch command is used to control the I/O device; the track command is used to control the servo drive device to complete the path of a tool path curve.
数字控制信息生成部件通过离散几何规划生成刀路曲线的联动表,通过离散运动规划生成刀路曲线的随动表,并按给定的数据格式,生成标准文件形态的联动表与随动表。
The digital control information generating component generates a linkage table of the tool path curve by discrete geometric programming, generates a follower table of the tool path curve through discrete motion planning, and generates a linkage table and a follower table of the standard file form according to the given data format.
一般采用常规的PLC控制刀库,或采用软PLC生成组合逻辑的控制流来控制刀库中的换刀过程。作为常规技术,本发明不涉及用于刀库控制的控制流。
Generally, the conventional PLC is used to control the tool magazine, or the soft PLC is used to generate the control flow of the combination logic to control the tool change process in the tool magazine. As a conventional technique, the present invention does not relate to a control flow for tool magazine control.
DRC
数控程序是数字控制信息生成部件所制造的完全数字化、商品化的'数字控制信息'产品。DRC数控程序的生成过程就是采用运动指令的编程过程。因而,数字控制信息生成部件既是数控编程的开放式平台又是数控技术的开放式开发平台。 DRC
The numerical control program is a fully digital, commercialized 'digital control information' product manufactured by digital control information generating components. The generation process of the DRC NC program is a programming process using motion instructions. Therefore, the digital control information generating component is not only an open platform for numerical control programming but also an open development platform for numerical control technology.
所谓数字控制信息分配过程就是数字控制信息分配发送部件将联动表中的坐标值增量分配给相关的伺服驱动装置,例如,将 △ Xi 、 △
yi 、 △ Zi 、 △ Ai 、 △ Bi
分配给X、y、Z、A、B等5个坐标轴的伺服驱动装置。The so-called digital control information distribution process is that the digital control information distribution transmitting component allocates the coordinate value increments in the linkage table to the relevant servo driving device, for example, Δ X i , Δ y i , Δ Z i , Δ A i , △ B i is assigned to servo drives of five coordinate axes such as X, y, Z, A, and B.
所谓数字控制信息的发送过程就是数字控制信息分配发送部件按照 控制
节律实时控制数字控制信息的发送。 The so-called digital control information transmission process is the digital control information distribution and transmission component according to the control
The rhythm controls the transmission of digital control information in real time.
所谓数字控制信息的执行过程就是伺服驱动装置将坐标值增量写入位置环,驱动坐标轴进给。 The so-called digital control information is executed by the servo drive device to write coordinate values into the position loop and drive the coordinate axis feed.
在基于数据流关联控制的所述DRC控制机中,数字控制信息的生成不是实时的,数字控制信息的分配发送、执行则是实时的。
In the DRC control machine based on data stream association control, the generation of digital control information is not real-time, and the distribution and execution of digital control information are real-time.
发明人发现,如果将DRC数控程序的结构予以改进,数字控制信息分配过程则转化为非实时过程,因而可将数字控制信息分配过程与数字控制信息发送过程分离,将控制流程划分为数字控制信息生成过程、数字控制信息分配过程、数字控制信息发送过程与数字控制信息执行过程等四个子过程,将开放式数控系统的体系结构解耦为数字控制信息生成部件、数字控制信息分配部件、数字控制信息发送部件、数字控制信息执行部件等四个功能部件。
The inventor found that if the structure of the DRC NC program is improved, the digital control information distribution process is transformed into a non-real-time process, so that the digital control information distribution process can be separated from the digital control information transmission process, and the control flow can be divided into digital control information. Four sub-processes: generation process, digital control information distribution process, digital control information transmission process and digital control information execution process, decoupling the architecture of open CNC system into digital control information generation component, digital control information distribution component, digital control Four functional components, such as an information transmitting unit and a digital control information executing unit.
继而,发明人进一步发现,数字控制信息的控制流程划分为生成过程、分配过程、发送过程、执行过程之后,导致DRC控制机的体系结构的重大改进,成为一种基于PC的、全方位开放的、标准化的可重构数控系统。
Then, the inventor further found that the control flow of the digital control information is divided into the generation process, the distribution process, the transmission process, and the execution process, which leads to a significant improvement of the architecture of the DRC control machine, and becomes a PC-based, all-round open Standardized reconfigurable CNC system.
发明内容 Summary of the invention
数据流关联控制( Data-stream Related Control,简称DRC控制
)的目的是为第三次工业革命提出一种控制信息、控制方法、控制过程与体系结构全方位开放的、基于PC的标准化控制机(简称为DRC控制机),以适应第三次工业革命对数控系统的要求。 Data-stream Related Control (DRC Control)
The purpose is to propose a PC-based standardized control machine (referred to as DRC control machine) that controls information, control methods, control processes and architecture for the third industrial revolution to adapt to the third industrial revolution. Requirements for the CNC system.
基于数字控制信息分配过程的非 实
时性,本发明将DRC控制机进行改进,提出一种基于PC的、全方位开放的、标准化的可重构数控系统。本发明还提出基于一种该数字控制系统的数字控制方法及重构方法。 Non-reality based on digital control information distribution process
Timely, the present invention improves the DRC control machine, and proposes a PC-based, all-round open, standardized reconfigurable numerical control system. The invention also proposes a digital control method and a reconstruction method based on the digital control system.
本发明的技术方案说明如下。 The technical solution of the present invention is explained below.
一种 可重构数控系统 ,包括PC系统、数据流控制器、 伺服驱动装置、I/O装置 、
串行接口、分配接口、联动接口 、 I/O 接口 ; 所述 PC 系统 通过串行接口与所述 数据流控制器 连接;所述 数据流控制器
通过分配接口、联动接口与所述伺服驱动装置连接,所述 数据流控制器 通过I/O接口与所述I/O装置连接; A reconfigurable numerical control system, including a PC system, a data flow controller, a servo drive device, an I/O device,
a serial interface, a distribution interface, a linkage interface, an I/O interface; the PC system is connected to the data flow controller through a serial interface; the data flow controller
Connecting to the servo drive device through a distribution interface and a linkage interface, the data flow controller is connected to the I/O device through an I/O interface;
所述PC系统用于生成控制工件加工过程的DRC数控程序,包括状态指令生成模块、开关指令生成模块、轨迹指令生成模块、DRC数控程序生成模块;所述状态指令生成模块用于生成控制辅助过程的状态指令;所述开关指令生成模块用于生成控制
I/O 装置的开关指令; 所述状态指令生成模块还用于生成重构指令,所述重构指令用于修改所述状态指令与所述开关指令的解释程序。
所述轨迹指令生成模块用于生成控制伺服驱动装置完成刀路曲线走刀过程的轨迹指令;所述DRC数控程序生成模块,用于根据加工工艺将状态指令、开关指令、轨迹指令链接为DRC数控程序;其中,所述轨迹指令生成模块包括离散几何规划模块与离散运动规划模块;所述离散几何规划模块用于生成存储有刀路曲线的L分割的联动表;所述L分割用于控制坐标轴联动产生合成位移;所述联动表区分为各个轴的轴联动表,所述轴联动表用于存储相关坐标轴的L分割分量,控制该坐标轴产生轴位移;所述离散运动规划模块用于存储有刀路曲线的T分割与状态字的随动表;所述T分割用于控制所述轴位移之间的时间间隔;所述状态字用于指定联动的坐标轴;
The PC system is configured to generate a DRC numerical control program for controlling a workpiece machining process, including a state instruction generation module, a switch instruction generation module, a track instruction generation module, and a DRC numerical control program generation module; and the state instruction generation module is configured to generate a control auxiliary process State instruction; the switch instruction generation module is configured to generate a control
The switching instruction of the I/O device; the state instruction generating module is further configured to generate a reconstruction instruction, where the reconstruction instruction is used to modify the state instruction and the interpretation program of the switching instruction.
The trajectory command generating module is configured to generate a trajectory command for controlling a servo drive device to complete a path curve pass process; the DRC NC program generating module is configured to link a state command, a switch command, and a trajectory command to a DRC numerical control according to a machining process a program; wherein the trajectory instruction generation module includes a discrete geometric planning module and a discrete motion planning module; the discrete geometric planning module is configured to generate a linkage table of L segments storing a tool path curve; and the L segmentation is used to control coordinates The shaft linkage generates a synthetic displacement; the linkage table is divided into an axis linkage table of each axis, and the axis linkage table is used for storing the L segmentation component of the relevant coordinate axis, and controlling the coordinate axis to generate the axis displacement; the discrete motion planning module is used a T-segment of the tool path curve and a follow-up table of the status word; the T-segment is used to control a time interval between the axis displacements; the status word is used to specify a coordinate axis of the linkage;
所述 数据流控制器 包括微处理器、解释程序存储器、文件存储器、轴联动表分配模块、DRC 数控程序运行
模块、实时控制模块与中断管理模块;所述解释程序存储器用于存储所述状态 指令 、所述开关 指令 、所述轨迹指令的解释程序;所述文件存储器用于通过 所述
串行接口接收并存储 所述DRC数控程序、 所述 随动表、 所述轴联动表;所述轴联动表分配模块 用于 通过所述分配接口向 所述 伺服驱动装置分配 所述
轴联动表;所述DRC 数控程序运行 模块 用于运行 所述DRC 数控程序, 执行 所述状态 指令 控制辅助过程 、执行 所述
开关指令通过所述I/O接口控制所述I/O装置、执行 所述 轨迹指令通过所述联动接口控制 所述 伺服驱动装置完成 刀路曲线的加工过程;所述 实时控制模块用于按照
所述随动表中 的 控制 节律 △ t i (i = 1,…, n),通过所述联动接口向所述伺服驱动装置发送 联动命令
;所述联动命令用于控制所述状态字指定的坐标轴之间的同步;所述中断管理模块 用于处理来自所述 伺服驱动装置的实时反馈信息;The data flow controller includes a microprocessor, an interpreter memory, a file memory, an axis linkage table allocation module, a DRC NC program execution module, a real-time control module, and an interrupt management module; the interpreter memory is configured to store the status instruction The switch instruction, an interpreter of the track instruction; the file memory is configured to receive and store the DRC numerical control program, the follow-up table, and the axis linkage table through the serial interface; a linkage table allocation module is configured to allocate the axis linkage table to the servo driving device through the distribution interface; the DRC numerical control program running module is configured to run the DRC numerical control program, execute the state instruction control auxiliary process, and execute The switching instruction controls the I/O device through the I/O interface, and executes the track instruction to control the machining process of the tool path by the servo interface through the linkage interface; the real-time control module is used to According to the control rhythm Δ t i (i = 1, ..., n) in the follow-up table, the servo drive is mounted through the linkage interface Sending a linkage command; the linkage command is used to control synchronization between coordinate axes specified by the status word; the interrupt management module is configured to process real-time feedback information from the servo drive device;
所述 伺服驱动装置设有轴联动表 初始化 模块与轴联动表控制模块;所述轴联动表 初始化
模块用于设置执行标志,并根据所述轨迹指令的顺序码,将所述轴联动表的地址写入L指针;跟随所述联动命令,所述轴联动表控制模块根据L指针从所述轴联动表中读取该轴的坐标值增量并写入位置环,驱动坐标轴进给产生合成位移。 The servo drive device is provided with an axis linkage table initialization module and an axis linkage table control module; the axis linkage table initialization
The module is configured to set an execution flag, and write an address of the axis linkage table to the L pointer according to the sequence code of the track instruction; following the linkage command, the axis linkage table control module is from the axis according to the L pointer The coordinate value increment of the axis is read in the linkage table and written into the position loop, and the drive coordinate axis feed generates a composite displacement.
进一步的,上述可重构数控系统中,所述状态字的字节数为用户参数。 Further, in the reconfigurable numerical control system, the number of bytes of the status word is a user parameter.
所述轴联动表文件还包括特征表;所述特征表用于标识该坐标轴的逻辑属性;所述逻辑属性包括进给当量、数据的字节数、电子齿轮传动比。
The axis linkage table file further includes a feature table; the feature table is used to identify a logical attribute of the coordinate axis; the logical attribute includes a feed equivalent, a number of bytes of data, and an electronic gear ratio.
所述 联动接口的每个数据位分别连接一个伺服驱动装置。 Each data bit of the linkage interface is respectively connected to a servo drive device.
所述 串行接口与 所述
分配接口分别为现场总线、RS232接口、RS485接口、USB接口或无线接口。 The serial interface and the
The distribution interfaces are fieldbus, RS232 interface, RS485 interface, USB interface or wireless interface.
所述 数据流控制器 中的 文件存储器 还 包括 随动表 文件 分析模块;所述 随动表 文件
分析模块用于读取 所述DRC数控程序、 所述 随动表、 所述轴联动表。 The file storage in the data flow controller further includes a follower table file analysis module; the follower table file
The analysis module is configured to read the DRC numerical control program, the follow-up table, and the axis linkage table.
进一步的,上述可重构数控系统中,所述 数据流控制器
中的DRC程序运行模块包括运动指令取指模块、状态指令执行模块、开关指令执行模块、轨迹指令执行模块;所述运动指令取指模块用于将DRC数控程序中运动指令的地址写入运动指令指针并读取运动指令,
将 运动指令的功能字节写入运动指令寄存器;如果所述运动指令为状态指令,根据所述运动指令的地址表,所述状态指令执行模块跳转至所述地址表所指定的入口地址, 用于
执行该状态指令的解释程序;如果所述运动指令为开关指令,根据所述开关指令的地址表,所述开关指令执行模块跳转至所述地址表所指定的入口地址, 用于
执行该开关指令的解释程序;如果所述运动指令为轨迹指令,所述轨迹指令执行模块 用于 执行该轨迹指令的解释程序。 Further, in the above reconfigurable numerical control system, the data flow controller
The DRC program running module includes a motion instruction fetching module, a state instruction execution module, a switch instruction execution module, and a track instruction execution module; and the motion instruction fetching module is configured to write an address of the motion instruction in the DRC NC program into the motion instruction Pointer and read motion instructions,
Writing a function byte of the motion instruction to the motion instruction register; if the motion instruction is a state instruction, according to the address table of the motion instruction, the state instruction execution module jumps to an entry address specified by the address table, Used for
Executing an interpreter of the status instruction; if the motion instruction is a switch instruction, the switch instruction execution module jumps to an entry address specified by the address table according to an address table of the switch instruction,
Executing an interpreter of the switching instruction; if the motion instruction is a trajectory instruction, the trajectory instruction execution module is configured to execute an interpreter of the trajectory instruction.
进一步的,上述可重构数控系统中,所述轨迹指令执行模块设置运行标志,用于启动 所述 实时控制模块 ;
所述实时控制模块包括联动坐标轴设 置 模块、联动命令设 置 模块、节律控制模块、终点控制模块;所述联动坐标轴设 置
模块用于将随动表的地址写入T指针,从所述随动表中读取状态字并写入状态字寄存器,指定联动的坐标轴;所述联动命令设 置 模块用于读取所述随动表中的 △
ti (i = 1,…, n)并写入T分割定时器;T分割定时器中的定时时间到,所述节律控制模块启动
脉冲发生器输出一个脉冲,并通过联动接口 向所述 状态字寄存器指定的
伺服驱动装置发送联动命令;所述终点控制模块用于控制所述轨迹指令的终点,如果所述T指针等于所述随动表的末地址,则关闭运行标志;否则,T指针指向下一个时间增量 △
ti 。Further, in the reconfigurable numerical control system, the track instruction execution module sets an operation flag for starting the real-time control module; the real-time control module includes a linkage coordinate axis setting module, a linkage command setting module, and a rhythm control module. And an end point control module; the linkage coordinate axis setting module is configured to write the address of the follow-up table to the T pointer, read the status word from the follow-up table and write the status word register, and specify the coordinate axis of the linkage; The linkage command setting module is configured to read Δt i (i = 1, . . . , n) in the following table and write to the T-split timer; the timing time in the T-segment timer is up, the rhythm control The module start pulse generator outputs a pulse and sends a linkage command to the servo drive device specified by the status word register through a linkage interface; the end point control module is configured to control an end point of the track instruction if the T pointer is equal to The last address of the follower table is closed, and the run flag is turned off; otherwise, the T pointer points to the next time increment Δ t i .
本发明提出的一种可重构数控系统 的 重构方法包括下述步骤: The reconstruction method of a reconfigurable numerical control system proposed by the present invention comprises the following steps:
步骤(1)、重构离散坐标系:数字控制信息生成部件重构离散坐标系;所述离散坐标系包括正交离散坐标系与非正交离散坐标系;
Step (1), reconstructing a discrete coordinate system: the digital control information generating component reconstructs a discrete coordinate system; the discrete coordinate system includes an orthogonal discrete coordinate system and a non-orthogonal discrete coordinate system;
步骤(2)、重构结构常数数据库:数字控制信息生成部件重构结构常数数据库;所述结构常数数据库存储坐标轴的精细结构常数与坐标系参数;所述坐标轴的精细结构常数包括线位移误差、角位移误差、反向间隙;所述坐标系参数包括坐标轴之间的不平行度、不垂直度;
Step (2): reconstructing a structure constant database: the digital control information generating component reconstructs a structure constant database; the structure constant database stores a fine structure constant of the coordinate axis and a coordinate system parameter; the fine structure constant of the coordinate axis includes a line displacement Error, angular displacement error, backlash; the coordinate system parameters include non-parallelism and non-perpendicularity between the coordinate axes;
步骤(3)、构造状态 指令的 重构 指令: 数字控制信息生成部件构造所述状态 指令的 重构 指令
; Step (3), construction state Reconstruction of instruction Instruction: Digital control information generation component constructs the state instruction reconstruction instruction
;
步骤(4)、构造开关 指令的 重构 指令: 数字控制信息生成部件构造所述开关 指令的 重构 指令
; Step (4), construction switch instruction reconstruction instruction: digital control information generation component constructs reconstruction instruction of the switch instruction
;
步骤(5)、运行重构指令:数字控制信息发送部件运行所述状态 指令的
重构指令,重构所述状态指令;运行所述开关 指令的 重构 指令, 重构所述开关指令。 Step (5), running a reconfiguration instruction: the digital control information transmitting component runs the state instruction
Reconfiguring the instruction, reconstructing the state instruction, executing a reconstruction instruction of the switch instruction, and reconstructing the switch instruction.
进一步地,上述可重构数控系统的重构方法中所述步骤(3)包括下述步骤: Further, the step (3) in the reconstruction method of the reconfigurable numerical control system includes the following steps:
步骤(31)、设置重构指令的目标地址参数:将所述状态指令的地址表中的入口地址设置为重构指令的目标地址参数;
Step (31), setting a target address parameter of the reconstruction instruction: setting an entry address in the address table of the state instruction as a target address parameter of the reconstruction instruction;
步骤(32)、设置重构指令的源地址参数:将重新编写的解释程序的起始地址设置为重构指令的源地址参数;
Step (32): setting a source address parameter of the refactoring instruction: setting a starting address of the rewritten interpreter as a source address parameter of the refactoring instruction;
步骤(33)、设置重构指令的字节数参数:将重新编写的解释程序的容量设置为字节数参数; Step (33), setting a byte number parameter of the refactoring instruction: setting a capacity of the rewritten interpreter to a byte number parameter;
步骤(34)、构造重构指令:根据所述目标地址参数、所述源地址参数、所述字节数参数,构造所述状态指令的重构指令。
Step (34): Constructing a reconstruction instruction: constructing a reconstruction instruction of the state instruction according to the target address parameter, the source address parameter, and the byte number parameter.
进一步地,上述可重构数控系统的重构方法中所述步骤(4)包括下述步骤: Further, the step (4) in the reconstruction method of the reconfigurable numerical control system includes the following steps:
步骤(41)、设置重构指令的目标地址参数:将所述 开关
指令的地址表中的入口地址设置为重构指令的目标地址参数; Step (41), setting a target address parameter of the reconstruction instruction: placing the switch
The entry address in the address table of the instruction is set as the target address parameter of the reconstruction instruction;
步骤(42)、设置重构指令的源地址参数:将重新编写的解释程序的起始地址设置为重构指令的源地址参数;
Step (42): setting a source address parameter of the refactoring instruction: setting a starting address of the rewritten interpreter as a source address parameter of the refactoring instruction;
步骤(43)、设置重构指令的字节数参数:将重新编写的解释程序的容量设置为字节数参数; Step (43), setting a byte number parameter of the refactoring instruction: setting a capacity of the rewritten interpreter to a byte number parameter;
步骤(44)、构造重构指令:根据所述目标地址参数、所述源地址参数、所述字节数参数,构造所述开关指令的重构指令。
Step (44): Constructing a reconstruction instruction: constructing a reconstruction instruction of the switch instruction according to the target address parameter, the source address parameter, and the byte number parameter.
与现有技术对比,本发明产生的原创性有益效果为: Compared with the prior art, the original beneficial effects produced by the present invention are:
1 、基于控制流程的加工过程模型 1. Process model based on control flow
基于IEEE定义的现有开放式数控系统面向对象,采用有限状态机加工数据模型描述复杂的、具有不同层次实时性要求的多个控制任务。有限状态机是反应式系统的一种高度抽象的建模工具,对开发商而言,结构复杂,复用性差;对用户而言,则犹如蛛网式迷宫,毫无开放性。
Based on the IEEE-defined existing open CNC system object-oriented, the finite state machine processing data model is used to describe complex control tasks with different levels of real-time requirements. The finite state machine is a highly abstract modeling tool for reactive systems. For developers, the structure is complex and the reusability is poor. For the user, it is like a spider web maze, and there is no openness.
数据流关联控制不是面向对象,而是面向过程。 Data flow association control is not object-oriented, but process-oriented.
根据数字控制的过程特征,本发明为开放式数控系统提出一种加工数据模型。 According to the process characteristics of digital control, the present invention proposes a processing data model for an open numerical control system.
与现有有限状态机模型对比,这种加工数据模型是开放的,极为清楚地描述了开放式数控系统的体系结构,揭示了在不同的控制流程中合理配置控制资源的技术方案与关键技术。
Compared with the existing finite state machine model, this processing data model is open, which clearly describes the architecture of the open CNC system and reveals the technical solutions and key technologies for rationally configuring control resources in different control processes.
2 、数字控制方法的重大变革 2. Major changes in digital control methods
在基于IEEE定义的现有开放式数控系统中,实时操作系统的插补周期与现场总线的通信周期是两个系统时钟。跟随插补周期与通信周期的节拍,刀路曲线的数字控制信息不断地生成、分配、发送、执行,从而以数字控制信息的实时迭代与控制过程的实时迭代的方式周而复始。在这种体系结构中,刀路曲线的实时控制过程既包括数字控制信息的实时迭代与控制过程的实时迭代,又包括实时通信过程,涉及插补迭代算法的精度与速度、刀路曲线的几何特征、加工过程的工艺特征、机械系统的
运动学/ 动力学特征、处理器的位数与运算速度等硬件平台、实时操作系统等软件平台等一系列复杂因素。
In the existing open CNC system based on IEEE definition, the interpolation cycle of the real-time operating system and the communication cycle of the field bus are two system clocks. Following the cycle of the interpolation cycle and the communication cycle, the digital control information of the toolpath curve is continuously generated, distributed, transmitted, and executed, so that the real-time iteration of the digital control information and the real-time iteration of the control process are repeated. In this architecture, the real-time control process of the toolpath curve includes both real-time iteration of the digital control information and real-time iteration of the control process, as well as real-time communication processes, including the accuracy and speed of the interpolation iterative algorithm, and the geometry of the toolpath curve. Characteristics, process characteristics of the process, mechanical systems
A series of complex factors such as kinematics/dynamics, processor bits and operating speeds, and other software platforms such as real-time operating systems.
本发明按照数字控制信息的生成、分配、发送、执行的控制流程配置控制资源。本发明将数字控制信息的生成过程与分配过程非实时化,刀路曲线的实时控制过程简化为启动实时控制模块按照随动表中的
△ ti (i = 1,…, n)指定的节律, 通过 联动 接口 向状态字指定的伺服驱动装置 单向
发送联动命令;伺服驱动装置则跟随联动命令,将所述轴联动表中的坐标值增量逐次写入位置环,驱动相应坐标轴联动产生合成位移。The present invention configures control resources in accordance with a control flow for generating, distributing, transmitting, and executing digital control information. The invention realizes the process and the distribution process of the digital control information in a non-real time, and the real-time control process of the tool path curve is simplified to start the real-time control module according to the rhythm specified by Δ t i (i = 1,..., n) in the follow-up table. The linkage command is sent to the servo drive device specified by the status word through the linkage interface in one direction; the servo drive device follows 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 linkage. Synthetic displacement.
本发明 以 随动表中的节律 △ ti (i = 1,…,
n)取代了插补周期,取消了实时 操作系统对实时控制过程的控制权, 以最简单的单向发送的联动命令取代了极为复杂的实时通信,取消了现场总线 对实时控制过程的控制权
,从而 将 刀路曲线的实时控制过程转化为最简单的联动命令的实时发送,彻底清除了 操作系统与 现场总线对 实时控制过程的制约,
实现了实时控制方法与实时控制过程的开放性,导致数字控制方法的重大变革。The invention replaces the interpolation period with the rhythm Δ t i (i = 1,..., n) in the follow-up table, and cancels the control right of the real-time operating system to the real-time control process, with the simplest one-way transmission of the linkage command It replaces the extremely complicated real-time communication and eliminates the control of the real-time control process of the fieldbus, thus transforming the real-time control process of the toolpath curve into the real-time transmission of the simplest linkage command, completely eliminating the real-time operation of the operating system and the fieldbus. The control process constraints, the real-time control method and the openness of the real-time control process, leading to major changes in the digital control method.
3 、高精度多轴同步机制 3, high-precision multi-axis synchronization mechanism
多轴同步驱动技术是现有数控技术中亟待解决的关键技术。
国家'高档数控机床与基础制造装备'2009年度科技重大专项'课题18 全数字高档数控装置'将双轴同步驱动技术列为 现有数控技术中的一项关键技术 。 Multi-axis synchronous drive technology is a key technology to be solved in the existing numerical control technology.
The national 'high-end CNC machine tools and basic manufacturing equipment' 2009 Science and Technology Major Project '18 full-digital high-end numerical control device' listed the dual-axis synchronous drive technology as a key technology in the existing CNC technology.
在基于IEEE定义的开放式数控系统中,多轴同步取决于现场总线中周期通信的实时同步机制。 In an open CNC system based on IEEE definition, multi-axis synchronization depends on the real-time synchronization mechanism of periodic communication in the fieldbus.
简单就是美。 Simple is beautiful.
在本发明中,多轴同步取决于 通过 联动 接口 实时发送 的 联动命令,联动 的
坐标轴则由状态字指定。所述联动命令为并行的同步脉冲,所述状态字为用户参数,所述联动 接口类似于 状态字控制下的并行 接口。因此,
本发明以极为简单的技术手段解决了多轴同步机制问题,具有高速高精度的同步能力,从而将复杂的多轴同步驱动技术转化为简单的常规技术。 In the present invention, the multi-axis synchronization depends on the linkage command transmitted in real time through the linkage interface, and the linkage
The axes are specified by the status word. The linkage command is a parallel synchronization pulse, the status word is a user parameter, and the linkage interface is similar to a parallel interface under the control of a status word. therefore,
The invention solves the multi-axis synchronization mechanism problem with extremely simple technical means, and has the high-speed and high-precision synchronization capability, thereby converting the complex multi-axis synchronous drive technology into a simple conventional technology.
4 、可重构性 4, reconfigurability
机械系统的重构意味着坐标轴运动关系的改变与坐标轴的增减,特别是坐标轴的增加。因而,刀路曲线的实时控制过程的可重构性成为可重构计算机数字控制系统的核心问题,这就要求实时控制方法完全软件化,实时控制过程与操作系统、现场总线等软件平台无关、与编程接口无关。
The reconstruction of the mechanical system means the change of the motion relationship of the coordinate axes and the increase and decrease of the coordinate axes, especially the increase of the coordinate axes. Therefore, the reconfigurability of the real-time control process of the tool path curve becomes the core problem of the reconfigurable computer digital control system, which requires the real-time control method to be completely software-based, and the real-time control process is independent of the software platforms such as the operating system and the field bus. Independent of the programming interface.
基于IEEE定义的现有开放式数控系统面向对象而不是面向过程,刀路曲线的实时控制过程无法开放,不具有可重构性。对于不同的曲线类型,必须定义专用的插补指令并配置特
定 的实时插补控制模块,因而,G代码标准下的插补指令也不具有可重构性。相应于 坐 标轴运动关系的改 变
,基于IEEE定义的现有技术只能是增加实时插补控制模块或修改现有实时插补控制模块。显然,这与可重构性的内涵相距甚远。相应于坐标轴的增加,特别是相应于5轴及5轴以上的机械系统的重构,基于IEEE定义的现有技术则只能求助于64位以上
的 高速CPU、64位以上 的
更强实时性的实时操作系统、更优化的实时调度能力、以及更先进的插补迭代控制算法,而且必须重新研发那个庞大而复杂的中断系统。显然,这已不是重构问题了。
The existing open CNC system based on IEEE defines object-oriented rather than process-oriented, and the real-time control process of the tool path curve cannot be opened and has no reconfigurability. For different curve types, special interpolation instructions must be defined and configured
The real-time interpolation control module is defined, and therefore, the interpolation instructions under the G code standard are not reconfigurable. Corresponding to the movement of the coordinate axis
The prior art based on the IEEE definition can only be to add a real-time interpolation control module or modify an existing real-time interpolation control module. Obviously, this is far from the connotation of reconfigurability. Corresponding to the increase of the coordinate axes, especially the reconstruction of mechanical systems corresponding to 5 axes and 5 axes or more, the prior art based on IEEE can only resort to 64 or more bits.
High-speed CPU, 64-bit or more
A more real-time real-time operating system, more optimized real-time scheduling capabilities, and more advanced interpolation iterative control algorithms, and the need to redevelop that large and complex interrupt system. Obviously, this is not a refactoring problem.
本发明中的轨迹指令具有单一性,与刀路曲线中的曲线类型无关。不存在重构问题。 The trajectory command in the present invention has unity, regardless of the type of curve in the tool path curve. There is no refactoring problem.
在本发明中,PC系统所制造的DRC数控程序、轴联动表、随动表等 文件包括了控制
伺服驱动装置与I/O装置所需要的全部数字控制信息,数字控制信息是开放的,制造数字控制信息的方法是开放的;此外,本发明还将数字控制信息分配过程非实时化,将数字控制信息的实时发送转化为极为简单的联动命令的实时发送,数字控制信息分配过程也是开放的。 In the present invention, the DRC numerical control program, the axis linkage table, the follower table and the like manufactured by the PC system include the control.
All digital control information required by the servo drive and the I/O device, the digital control information is open, and the method of manufacturing the digital control information is open; in addition, the present invention also de-realizes the digital control information distribution process, and the number is The real-time transmission of control information translates into real-time transmission of extremely simple linkage commands, and the digital control information distribution process is also open.
相应于坐标轴的增加,在本发明中只涉及状态字的位数与字节数。作为用户参数,状态字的位数与字节数不
存在重构问题。 Corresponding to the increase in the coordinate axis, only the number of bits and the number of bytes of the status word are involved in the present invention. As a user parameter, the number of bits and the number of bytes of the status word are not
There is a refactoring problem.
在 本发明 将
刀路曲线的实时控制过程简化为启动实时控制模块。所述实时控制模块是开放的,通过内置固化的随动表文件分析模块,其运行与PC的操作系统无关,也无须配置任何嵌入式实时操作系统。 In the present invention
The real-time control process of the toolpath curve is simplified to start the real-time control module. The real-time control module is open, through the built-in solidified follower file analysis module, its operation is independent of the operating system of the PC, and there is no need to configure any embedded real-time operating system.
本发明既没有插补周期,也没有通信周期,全面实现了实时控制方法的软件化,完全解决了刀路曲线的实时控制过程的重构问题。
The invention has neither an interpolation cycle nor a communication cycle, and fully realizes the softwareization of the real-time control method, completely solving the reconstruction problem of the real-time control process of the toolpath curve.
相应于机械系统的重构,还涉及辅助功能操作与I/O装置中的开关量控制。这就涉及本发明中的状态指令与开关指令。
Corresponding to the reconstruction of the mechanical system, it also involves the auxiliary function operation and the switching control in the I/O device. This relates to the status command and the switch command in the present invention.
状态指令与开关指令都与 机 械系 统
的特定结构密不可分,属于个性化功能。机械系统重构后,状态指令与开关指令往往需要重构。 本发明 设置了重构指令,用于重写状态指令与开关指令的解释程序。 编写
状态指令与开关指令的解释程序是简单的常规技术。 State commands and switch commands are associated with the mechanical system
The specific structure is inseparable and belongs to the personalization function. After the mechanical system is reconfigured, state commands and switching instructions often need to be reconstructed. The present invention sets a reconstruction instruction for rewriting an interpreter of a state instruction and a switch instruction. write
The interpretation of the status and switch instructions is a simple conventional technique.
数字控制系统的重构还涉及内部接口的重构,特别是运动控制级实时接口的重构。本发明将运动控制接口分为非实时串行接口与实时联动接口。
The reconstruction of the digital control system also involves the reconstruction of the internal interface, especially the reconstruction of the motion control level real-time interface. The invention divides the motion control interface into a non-real time serial interface and a real-time linkage interface.
本发明的联动接口并非通信接口,联动命令只是同步脉冲。在发送端,联动 接口
类似按△ti(i = 1,…, n)所指定的节律不断地单向传输状态字的并行 接 口;在接收端,一个伺服驱动装置分别与联动 接口
的一个数据位连接,联动 接口 类似一根中断控制线。因而,本发明 提出的 联动 接口不存在重构问题。The linkage interface of the present invention is not a communication interface, and the linkage command is only a synchronization pulse. At the transmitting end, the linkage interface similarly transmits the parallel interface of the status word unidirectionally according to the rhythm specified by Δt i (i = 1,..., n); at the receiving end, one servo drive device and one data of the linkage interface respectively Bit connection, the linkage interface is similar to an interrupt control line. Therefore, the linkage interface proposed by the present invention does not have a reconstruction problem.
本发明的非实时 接口是一个 标准串行接口,例如标准的USB接口或UART支持下的其他标准串行接口
,属于常规技术 。 所述 非实时 接口无须 重构。 The non-real time interface of the present invention is a standard serial interface such as a standard USB interface or other standard serial interface supported by the UART.
, is a conventional technology. The non-real time interface does not need to be reconstructed.
在本发明中,PC系统、数据流控制器、运动控制接口均与操作系统等软件平台无关,也与硬件平台无关。因而,本发明提出的可重构数控系统具有平台无关性。
In the present invention, the PC system, the data flow controller, and the motion control interface are independent of the software platform such as the operating system, and are also independent of the hardware platform. Thus, the reconfigurable numerical control system proposed by the present invention has platform independence.
数控系统的重构还涉及 编程接口。
在基于IEEE定义的现有开放式数控系统中,G代码形式的数控加工程序必须在实时操作系统的掌控下进行,从而与软硬平台相关。作为编程接口,G代码标准不具备人机界面的一致性。在本发明中,所述DRC数控程序采用
标准化 文件系统 取代 G 代码程序 , 具有人机界面的一致性, 不存在重构问题 。 The reconstruction of the CNC system also involves a programming interface.
In the existing open CNC system based on IEEE definition, the NC machining program in the form of G code must be carried out under the control of the real-time operating system, thus being related to the software and hardware platform. As a programming interface, the G code standard does not have the consistency of the human machine interface. In the present invention, the DRC numerical control program is adopted
The standardized file system replaces the G code program, has the consistency of human-machine interface, and there is no reconstruction problem.
因此,在本发明中,数控系统的重 构 仅涉及离散坐标系 的 重构与结构常数数据库 的
重构。基于本发明提出的体系结构,上述问题基本上属于现有IT技术中的常规技术。 Therefore, in the present invention, the reconstruction of the numerical control system involves only the reconstruction of the discrete coordinate system and the structure constant database.
Refactoring. Based on the architecture proposed by the present invention, the above problems basically belong to the conventional techniques in the existing IT technology.
综上所述,本发明提出的可重构数控系统具有良好的可重构性。 In summary, the reconfigurable numerical control system proposed by the present invention has good reconfigurability.
5 、标准化的控制机 5, standardized control machine
1) 、体系结构的标准化 1), standardization of the architecture
本发明提出的可重构数控系统的体系结构,基于数字控制信息的生成、分配、发送、执行的控制流程配置控制资源。特别是,本发明在 数字控制信息分配
过程中通过非实时串行接口向伺服驱动装置分配轴联动表,从而将数字控制信息的分配过程非实时化,显著简化了可重构数控系统的体系结构。
The architecture of the reconfigurable numerical control system proposed by the present invention configures control resources based on a control flow of generation, distribution, transmission, and execution of digital control information. In particular, the present invention distributes information in digital control
In the process, the axis linkage table is distributed to the servo drive device through the non-real-time serial interface, so that the digital control information distribution process is not real-time, which significantly simplifies the architecture of the reconfigurable numerical control system.
在本发明提出的可重构数控系统中,数字控制信息生成部件基于PC,是一个标准化部件。数字控制信息生成部件所制造的DRC数控程序、轴联动表、随动表等
数字控制信息文件都是标准文件 ,与操作系统等软件平台无关。 标准化文件系统成为 数字控制信息的载体,实现了数字控制信息的开放性。
In the reconfigurable numerical control system proposed by the present invention, the digital control information generating unit is a standardized component based on the PC. DRC numerical control program, axis linkage table, follower table, etc. manufactured by digital control information generating unit
Digital control information files are standard files and are independent of software platforms such as operating systems. The standardized file system becomes the carrier of digital control information and realizes the openness of digital control information.
数字控制信息分配过程的非实时化,显著简化了数据流控制器的功能与结构。数据流控制器作为一个嵌入式系统,仅用于 运行 DRC 数控程序与发送联动命令,无须配置任何
嵌入式 操作系统,运行DRC数控程序时,其核心功能仅在于将 △ t i
写入T分割定时器,在状态字控制下通过联动接口实时发送联动命令,功能与结构极为简单,可以标准化。The non-real-time implementation of the digital control information distribution process significantly simplifies the function and structure of the data flow controller. As an embedded system, the data flow controller is only used to run the DRC NC program and send the linkage command. It does not need to configure any embedded operating system. When running the DRC NC program, its core function is only to write Δ t i into the T split timing. In the state word control, the linkage command is sent in real time through the linkage interface, and the function and structure are extremely simple and can be standardized.
2) 、运动控制接口的标准化 2) Standardization of motion control interface
数控系统的标准化还涉及内部接口的标准化,特别是运动控制级实时接口的标准化。 The standardization of CNC systems also involves the standardization of internal interfaces, especially the standardization of real-time interfaces at the motion control level.
在基于IEEE定义的现有开放式数控系统中,为了实现坐标值增量的实时分配,现场总线技术成为数控系统与伺服驱动装置之间的运动控制接口的主流技术。所述现场总线技术以ISO/OSI开放系统互联参考模型为基础,完全忽视了数字控制的过程特征,完全忽视了数控设备区别于计算机网络的本质特征。通信周期成为系统时钟,数据链路层与应用层及其协议的实时性,数据表示的兼容性等一系列问题耗费了大量计算资源。
In the existing open CNC system based on IEEE definition, in order to realize real-time allocation of coordinate value increments, fieldbus technology has become the mainstream technology of motion control interface between CNC system and servo drive device. The fieldbus technology is based on the ISO/OSI open system interconnection reference model, completely ignoring the process characteristics of digital control, completely ignoring the essential characteristics of the numerical control device different from the computer network. The communication cycle becomes the system clock, and the data link layer and the application layer and its protocol real-time, data representation compatibility and other issues consume a lot of computing resources.
现场总线的国际标准多达12个,厂商的企业标准更多。这种状况导致中国国家标准'GB/T
18759.2-2006•机械电气设备•开放式数控系统•第2部分 体系结构'
设置了5.6款,要求支持各类现场总线(例如CAN、Profibus、Sercos等)。 There are as many as 12 international standards for fieldbus, and there are more enterprise standards for manufacturers. This situation leads to the Chinese national standard 'GB/T
18759.2-2006•Mechanical and electrical equipment • Open CNC systems • Part 2 Architecture'
5.6 models have been set up to support various fieldbuses (eg CAN, Profibus, Sercos, etc.).
不幸的是,多标准就意味着没有标准。 Unfortunately, multiple standards mean no standards.
本发明将运动控制接口分为非实时串行接口与实时联动接口。 在辅助过程中,将每个坐标轴的
轴联动表通过串行接口分配给相应的伺服驱动装置。在 所述 串行接口中, 通信周期并非系统参数,不存在同步机制,避免了 通信协议的实时性及其他复杂问题 。所述
轴联动表为标准文件, 不存在 数据表示的兼容性问题。 因而,所述 串行 接口可以是任何
标准串行接口,例如标准的USB接口或UART支持下的其他标准串行接口。 The invention divides the motion control interface into a non-real time serial interface and a real-time linkage interface. In the auxiliary process, each axis
The axis linkage table is assigned to the corresponding servo drive via the serial interface. In the serial interface, the communication cycle is not a system parameter, and there is no synchronization mechanism, which avoids the real-time performance of the communication protocol and other complicated problems. Said
The axis linkage table is a standard file, and there is no compatibility problem with the data representation. Thus, the serial interface can be any
Standard serial interface, such as a standard USB interface or other standard serial interface supported by the UART.
所述联动命令只是一个同步脉冲。在发送端,联动接口类似按△ti(i = 1,…,
n)的节律不断地单向传输状态字的并行 接 口;在接收端,一个伺服驱动装置分别与联动 接口 的一个数据位连接,联动接口则类似一根中断控制线。显然, 所述 联动
接口可以 标准化。The linkage command is just a sync pulse. At the transmitting end, the linkage interface similarly transmits the parallel interface of the status word in a one-way manner according to the rhythm of Δt i (i = 1,..., n); at the receiving end, one servo drive device is respectively connected with one data bit of the linkage interface The linkage interface is similar to an interrupt control line. Obviously, the linkage interface can be standardized.
因此, 所述 联动 接口 与 所述 非串行接口都是标准化的,解决了运动控制接口的标准化 问题。 Therefore, the linkage interface and the non-serial interface are standardized, and the standardization problem of the motion control interface is solved.
3) 、编程接口的标准化 3), standardization of programming interfaces
在基于IEEE定义的现有开放式数控系统中,采用G代码标准作为数控加工程序的编程接口。上世纪50年代纸带作为输入的基本物理介质时,为规范在纸带上表示字符,制定了纸带穿孔的编码标准,即G代码标准。
In the existing open CNC system based on IEEE definition, the G code standard is adopted as the programming interface of the numerical control machining program. When the paper tape was used as the basic physical medium for input in the 1950s, the code standard for the paper tape perforation, that is, the G code standard, was established for the specification of characters on the paper tape.
在G代码程序中,用不同的插补指令来描述一条刀路曲线中的不同曲线。对于不同的曲线又必须使用不同的插补迭代算法来实现不同的插补指令,曲线的实时加工过程被插补迭代算法实时化,从而导致插补迭代算法成为面向对象的封闭的实时控制算法,从实时控制过程方面制约了数字控制系统的开放性与可重构性。
In the G code program, different interpolation commands are used to describe different curves in a tool path curve. For different curves, different interpolation iteration algorithms must be used to implement different interpolation instructions. The real-time processing of the curve is real-time by the interpolation iterative algorithm, which leads to the interpolation iterative algorithm becoming an object-oriented closed real-time control algorithm. The openness and reconfigurability of the digital control system are restricted from the real-time control process.
G
代码标准是信息技术起步阶段的原始产物,受纸带的限制不可避免地存在信息量过少的缺陷。各个厂商因而对G代码都进行了基本语义之外的扩张,导致G代码程序与相应硬件的依赖,数控加工程序在不同的数控系统之间不具有互换性,不具备人机界面的一致性,造成各种数控系统互不兼容,阻碍控制信息的交换与共享,从编程接口方面制约了数字控制系统的开放性与可重构性。 G
The code standard is the original product of the initial stage of information technology. Due to the limitation of the paper tape, there is inevitably a defect that the amount of information is too small. Therefore, each manufacturer has extended the basic semantics of the G code, resulting in the dependence of the G code program and the corresponding hardware. The NC machining program is not interchangeable between different CNC systems, and does not have the consistency of the human-machine interface. The various CNC systems are incompatible with each other, hindering the exchange and sharing of control information, and restricting the openness and reconfigurability of the digital control system from the programming interface.
在插补迭代算法中,每个坐标轴必须具有相同的逻辑 属性
。一旦坐标坐标轴的逻辑属性不同,例如,进给当量(纳米、微米等)不同、数据的字节数不同等,数控系统的功能与结构都要发生相应的变化,从实时控制过程与实时通信过程两方面制约了系统的开放性与可重构性。 In the interpolation iteration algorithm, each axis must have the same logical attribute
. Once the logical attributes of the coordinate axes are different, for example, the feed equivalents (nano, micro, etc.) are different, the number of bytes of data is different, etc., the functions and structures of the numerical control system must be changed accordingly, from real-time control process and real-time communication. The two aspects of the process restrict the openness and reconfigurability of the system.
在本发明提出的可重构数控系统中, 根据加工工艺确定的顺序, 采用 状态指令、开关指令、轨迹指令来编写
DRC 数控程序。 In the reconfigurable numerical control system proposed by the present invention, according to the order determined by the processing process, the state command, the switch command, the track command are used to write
DRC NC program.
DRC 数控程序面向控制流程, 轨迹指令 面向刀路曲线的加工过程。 轨迹指令 的轴联动表与随动表 携带
加工刀路曲线所需要的 全 部数字控制信息,由数字控制信息生成部件非实时地制造出来,因而允许每个坐标轴具有不同的逻辑 属性 。 The DRC NC program is oriented to the control process, and the path command is oriented to the machining process of the tool path curve. Track command axis linkage table and follower table
All of the digital control information required to machine the toolpath curve is created non-real-time by the digital control information generation component, thus allowing each axis to have different logic properties.
上述DRC数控程序、轴联动表、随动表都以标准化
文件的形态在系统中进行传送,也以文件的形态在不同的数控系统之间进行传送。 The above DRC NC program, axis linkage table, and follower table are standardized
The form of the file is transferred in the system and also transferred between different CNC systems in the form of files.
上述 文件 符合文件规范,采用诸如FAT16、FAT32等文件系统。 标准化文件成为
数字控制信息的载体,与硬件平台无关,与操作系统等软件平台无关,具有广泛的平台无关性,实现了数字控制信息的开放性。上述DRC数控程序、轴联动表、随动表都采用
标准化 文件系统 , 实现了控制信息的标准化,成为一种易于标准化的 编程接口 。 The above documents conform to the file specification and use file systems such as FAT16 and FAT32. Standardized documents become
The carrier of digital control information has nothing to do with the hardware platform, and has nothing to do with the software platform such as the operating system. It has extensive platform independence and realizes the openness of digital control information. The above DRC numerical control program, axis linkage table and follower table are adopted.
The standardized file system realizes the standardization of control information and becomes an easy-to-standardized programming interface.
综上所述,本发明提出的可重构数控系统实现了数字控制信息的开放性,数字控制方法的开放性,数字控制信息的生成过程、分配过程、发送过程、执行过程的全程开放性,为数控系统的标准化奠定了坚实的基础。
In summary, the reconfigurable numerical control system proposed by the present invention realizes the openness of digital control information, the openness of the digital control method, the process of generating digital control information, the process of distribution, the process of sending, and the openness of the execution process. It has laid a solid foundation for the standardization of CNC systems.
6 、 通用 高效 的开放式 数控语言 6, universal and efficient open CNC language
与现有G代码数控语言对比,本发明提出的 状态指令、开关指令、轨迹指令与 DRC 数控程序
面向工作机,逻辑结构简单, 具有人机界面的一致性, 基于 PC 且无须编译, 是一种关于 数控技术的 开放的、通用的、 高效率 的
运动描述语言和逻辑描述语言,充分支持用户自行拓展数控技术的应用并始终保持人机界面的一致性。 Compared with the existing G code numerical control language, the state instruction, the switching instruction, the trajectory instruction and the DRC numerical control program proposed by the invention
Work-oriented machine, simple logic structure, consistency of human-machine interface, PC-based and no need to compile, is an open, universal and efficient CNC technology
The motion description language and the logic description language fully support the user's own application of CNC technology and always maintain the consistency of the human-machine interface.
7 、高可靠性 7, high reliability
众所周知,在基于IEEE定义的现有开放式数控系统中,插补周期与通信周期是两个系统参数,不仅耗费了大量的计算资源,而且将数字控制信息的生成、分配、发送、执行的整个控制流程实时化,导致实时操作系统与现场总线成为制约数控系统可靠性的两个关键环节。
It is well known that in the existing open CNC system based on IEEE definition, the interpolation cycle and the communication cycle are two system parameters, which not only consume a large amount of computing resources, but also generate, distribute, transmit, and execute digital control information. The real-time control process leads to real-time operating system and fieldbus becoming two key links that restrict the reliability of the CNC system.
操作系统是一个极为复杂的系统,可能隐含有几百上千个潜在的漏洞。这些漏洞往往需要几年、十几年的维护时间来修复,并且也很难彻底消除。统计资料指出,影响计算机系统可靠性的因素,硬件错误仅占百分之几,绝大多数的错误来源于系统的管理。显然,系统管理的错误则基本上来源于操作系统。因此,对于计算机数字控制系统的可靠性来说,实时操作系统犹如达摩克利斯之剑。
The operating system is an extremely complex system that may contain hundreds of thousands of potential vulnerabilities. These vulnerabilities often take years, ten years of maintenance time to fix, and are difficult to completely eliminate. Statistics show that the factors that affect the reliability of computer systems, hardware errors only account for a few percent, the vast majority of errors stem from system management. Obviously, system management errors are basically derived from the operating system. Therefore, for the reliability of computer numerical control systems, the real-time operating system is like the sword of Damocles.
通信过程暴露于恶劣的工业环境中,在基于IEEE定义的现有开放式数控系统中,现场总线导致通信周期也成为一个系统参数,通信协议的实时性、数据表示的兼容性等一系列问题导致内部通信高度复杂化,是影响可靠性的另一个重要原因。
The communication process is exposed to harsh industrial environments. In the existing open CNC system based on IEEE definition, the fieldbus causes the communication cycle to become a system parameter, and the communication protocol has real-time performance and data representation compatibility. Internal communication is highly complex and is another important reason for reliability.
在本发明中,PC不介入刀路曲线的实时控制过程,数据流控制器的运行与PC的操作系统无关,也无须配置任何嵌入式实时操作系统。
In the present invention, the PC does not intervene in the real-time control process of the toolpath curve, and the operation of the data flow controller is independent of the operating system of the PC, and there is no need to configure any embedded real-time operating system.
本发明将数字控制信息分配过程从数字控制信息的 实时控制过程中分离
,在一次通信过程中完成数字控制信息的分配过程,通信周期不再是系统参数。特别是,与现场总线中的实时周期通信过程对比,本发明中的 联动
接口只是简单地单向发送同步脉冲,功能与结构高度简化。 The invention separates the digital control information distribution process from the real-time control process of digital control information
The process of assigning digital control information is completed in one communication process, and the communication cycle is no longer a system parameter. In particular, in contrast to the real-time periodic communication process in the field bus, the linkage in the present invention
The interface simply transmits the sync pulse in one direction, and the function and structure are highly simplified.
综上所述,本发明从源头上解决了制约数控系统可靠性的两个关键环节,具有高可靠性。 In summary, the present invention solves two key links that restrict the reliability of the numerical control system from the source, and has high reliability.
8 、智能化开放式平台与可重构生产线 8, intelligent open platform and reconfigurable production line
现有的G代码 编程接口 不具备人机界面的一致性,数控编程不得不 依赖于 数控系统生产厂商提供的
编程说明书。因而,用户 不得不针对特定的数控系统培养特定的编程人员 , 数控编程只能作为一道工序附属于生产车间,无法跨越企业演变为 一个社会性产业。 Existing G code programming interface does not have the consistency of human-machine interface, CNC programming has to rely on the CNC system manufacturer to provide
Programming instructions. Therefore, the user has to train a specific programmer for a specific CNC system. CNC programming can only be attached to the production workshop as a process, and cannot be transformed into a social industry across the enterprise.
类似地,
在基于IEEE定义的现有开放式数控系统中,刀路曲线的实时控制过程无法开放。对于不同的刀路曲线,例如,圆弧、抛物线、渐开线、NURBS曲线等,必须研发相应的插补迭代算法并在数控应用软件中配置相应的实时控制模块。刀路曲线的实时控制过程还与现场总线有关,需要处理通信周期、通信协议的实时性、数据表示的兼容性等一系列复杂问题。
因而, 数控技术的开发也分散于不同的数控系统生产厂商,无法跨越企业演变为 一个社会性产业。 Similarly,
In the existing open CNC system based on IEEE definition, the real-time control process of the tool path curve cannot be opened. For different tool path curves, such as arc, parabola, involute, NURBS curve, etc., the corresponding interpolation iterative algorithm must be developed and the corresponding real-time control module should be configured in the numerical control application software. The real-time control process of the tool path curve is also related to the field bus. It needs to deal with a series of complicated problems such as communication cycle, real-time communication protocol and data representation compatibility.
Therefore, the development of numerical control technology is also scattered among different CNC system manufacturers, and cannot be transformed into a social industry across enterprises.
在本发明中, PC 系统生成DRC数控程序,
成为数控编程的开放式平台;PC系统生成刀路曲线的轴联动表与随动表,成为数控技术的开放式开发平台。本发明采用采用诸如FAT16、FAT32等标准文件系统作为
编程接口, DRC 数控程序因而成为数字控制信息生成部件所制造的完全数字化、商品化的'数字控制信息'产品。 PC 系统通过 可通过互联网络接收 这种
商品化的'数字控制信息'并 传送给 数据流控制器。 In the present invention, the PC system generates a DRC numerical control program,
It becomes an open platform for NC programming; the PC system generates the axis linkage table and the follower table of the tool path curve, and becomes an open development platform for numerical control technology. The present invention adopts a standard file system such as FAT16, FAT32, etc.
The programming interface, the DRC NC program, thus becomes a fully digital, commercial 'digital control information' product manufactured by digital control information generation components. The PC system can receive this through the Internet.
Commercialized 'digital control information' is transmitted to the data flow controller.
本发明将数控编程与数控技术开发融为一体,将作坊式生产转化为 社会化生产,从而 演变为
一个社会性产业,即数字控制信息制造业, 所述 PC 系统即 数字控制信息生成部件成为 制造数字控制信息 的智能化开放式平台 。 The invention integrates numerical control programming and numerical control technology development, transforms workshop production into social production, and thus evolves into
A social industry, namely digital control information manufacturing, the PC system, ie digital control information generation component, becomes an intelligent open platform for manufacturing digital control information.
在本发明中,一台PC作为 制造数字控制信息
的智能化开放式平台,可为多台数控设备服务。数据流控制器作为一个嵌入式系统,无须配置任何 嵌入式
操作系统,功能与结构极为简单,具有高可靠性,可以独立配置在数控设备中,并与 PC 系统 完全独立。 In the present invention, a PC is used as a manufacturing digital control information
The intelligent open platform can serve multiple CNC equipment. Data flow controller as an embedded system, no need to configure any embedded
The operating system, function and structure are extremely simple, highly reliable, can be independently configured in the CNC device, and completely independent of the PC system.
对于由多台数控机床、数字化夹具、搬运机械手等组成的可重构生产线,本发明提出的可重构数控系统采用分体式体系结构,具有可靠性高、结构简单、价格低、易于集成等显著优点。
For a reconfigurable production line consisting of multiple CNC machine tools, digital fixtures, handling robots, etc., the reconfigurable numerical control system proposed by the present invention adopts a split architecture, which has high reliability, simple structure, low price, and easy integration. advantage.
9. 第三次工业革命所期盼的控制机 9. The control machine that was expected in the third industrial revolution
在一般的意义上,现代制造装备的体系结构可抽象为三个系统,即动力机、工作机和控制机。动力机提供能量,控制机向工作机与动力机发送控制信息,工作机从动力机获取能量完成产品的制造。
In a general sense, the architecture of modern manufacturing equipment can be abstracted into three systems, namely, power, work and control. The power machine provides energy, and the control machine sends control information to the working machine and the power machine, and the working machine obtains energy from the power machine to complete the manufacture of the product.
第一次工业革命的标志是工作机的诞生,机械代替手工工具。 The symbol of the first industrial revolution was the birth of a working machine, which replaced mechanical tools.
第二次工业革命的标志是动力机的诞生,蒸汽机、内燃机、电机代替了人力、畜力。 The symbol of the second industrial revolution was the birth of the power machine. The steam engine, internal combustion engine and electric motor replaced human and animal power.
第三次工业革命将以自动化为主要标志,即控制机的诞生。 The third industrial revolution will be based on automation, the birth of the control machine.
从制造业的观点来看,上述划分是符合逻辑的。 From the manufacturing point of view, the above division is logical.
在制造业中,数字控制系统扮演控制机的角色。然而,现有 数字控制
系统在开放性、可重构性、标准化以及数字控制技术的软件化等方面存在严重缺陷,并非可以与动力机、工作机相提并论,难以成为第三次工业革命所期盼的控制机。 In manufacturing, digital control systems act as control planes. However, existing digital controls
The system has serious flaws in terms of openness, reconfigurability, standardization, and software control of digital control technology. It is not comparable to power machines and work machines, and it is difficult to become the control machine that the third industrial revolution expects.
与基于IEEE定义的现有开放式数控系统相比,本发明提出的可重构数控系统具有数字控制信息的开放性,数字控制方法的开放性,数字控制信息的生成过程、分配过程、发送过程、执行过程的全程开放性,以及内部通信接口的开放性。
Compared with the existing open CNC system based on IEEE definition, the reconfigurable numerical control system proposed by the invention has the openness of digital control information, the openness of the digital control method, the generation process of the digital control information, the distribution process, and the transmission process. The full openness of the execution process and the openness of the internal communication interface.
与基于IEEE定义的现有开放式数控系统相比,本发明提出的可重构数控系统具有高度简化的实时控制过程与数字控制方法、数字控制技术完全软件化、可靠性高、可以标准化、价格低廉、易于普及等显著优点。因而,作为一种基于PC的、全方位开放的、可重构的、标准化的开放式数控系统,本发明提出的可重构数控系统正是第三次工业革命所期盼的控制机。
Compared with the existing open CNC system based on IEEE definition, the reconfigurable numerical control system proposed by the invention has a highly simplified real-time control process and digital control method, and the digital control technology is completely software-based, highly reliable, can be standardized, and the price Significant advantages such as low cost and easy to popularize. Therefore, as a PC-based, all-round open, reconfigurable, standardized open CNC system, the reconfigurable numerical control system proposed by the present invention is the control machine expected by the third industrial revolution.
附图说明 DRAWINGS
图1 为 基于控制流程的加工过程模型图一; Figure 1 is a schematic diagram of the process model based on the control flow;
图2 为 基于控制流程的加工过程模型图二; Figure 2 is a second diagram of the process model based on the control flow;
图3 为 具体实施方式中数控系统的体系结构示意图; 3 is a schematic structural diagram of a numerical control system in a specific implementation manner;
图4为图1中的PC系统的功能模块图; 4 is a functional block diagram of the PC system of FIG. 1;
图5为图1中的数据流控制器的功能模块图; Figure 5 is a functional block diagram of the data flow controller of Figure 1;
图6为图1中的伺服驱动装置的功能模块图。 Fig. 6 is a functional block diagram of the servo drive device of Fig. 1.
具体实施方式 detailed description
本发明提出一种可重构数控系统,从数字控制系统的体系结构、实时过程与非实时过程的控制方法、DRC数控程序的结构与编程接口、内部通信接口的功能与结构、伺服驱动装置的功能与结构等方面对所述DRC控制机进一步予以改进,以适应第三次工业革命对可重构数控系统的要求。
The invention provides a reconfigurable numerical control system, from the architecture of the digital control system, the control method of the real-time process and the non-real-time process, the structure and programming interface of the DRC numerical control program, the function and structure of the internal communication interface, and the servo drive device. The DRC control machine is further improved in terms of function and structure to meet the requirements of the third industrial revolution for the reconfigurable numerical control system.
下面将结合附图及具体实施例对本发明的技术方案进行详细描述。 The technical solutions of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
为了保证机床结构及其布局可以根据所加工产品的变化进行快速重组,模块化结构成为可重构机床的基本技术特征。
通常, 模块化的概念及其实施仅局限在机床制造企业内部。然而,在可重构机床中,模块化的概念及其实施必须延伸到用户,换言之,面向用户是可重构性的本质特征。 In order to ensure that the machine structure and its layout can be quickly reorganized according to the changes of the processed products, the modular structure becomes the basic technical feature of the reconfigurable machine tool.
Often, the concept of modularity and its implementation are limited to machine tool builders. However, in reconfigurable machine tools, the concept of modularity and its implementation must extend to the user, in other words, the user-oriented nature of reconfigurability.
在可重构机床中,所谓可重构性,指的是用户可以根据所加工产品的变化对机床的结构、布局、加工功能进行快速重组的能力。
In reconfigurable machine tools, the so-called reconfigurability refers to the ability of the user to quickly reorganize the structure, layout, and machining functions of the machine tool according to the changes in the processed product.
相对于可重构机床的模块化, 通常认为 可重构数控系统也应模块化。 Reconfigurable CNC systems are also generally considered to be modular in relation to the modularity of reconfigurable machine tools.
数字控制系统的核心功能是实时控制 刀路曲线 的加工过程。这就意味着,对于可重构数控系统来说, 刀路曲线
的 实时 控 制 过程必须是开放的,从而成为面向用户的。 The core function of the digital control system is to control the machining process of the toolpath curve in real time. This means that for reconfigurable CNC systems, the tool path curve
The real-time control process must be open and user-oriented.
在背景技术中已说明,在基于IEEE定义的现有开放式数控系统中,刀路曲线的实时控制过程无法开放。其原因在于,一方面,用于 实时 控 制过程的 数控 应用
软件系统成为实时操作系统掌控下的采用并行算法、涉及多进程/多线程嵌套调用以及多重实时嵌套中断的一个庞大而复杂的中断系统。另一方面,刀路曲线的实时控制过程与刀路曲线的几何特征、加工过程的工艺特征、机械系统的
运动学/ 动力学特征密不可分,与CPU的位数、运算速度等硬件平台密不可分,与实时操作系统等软件平台密不可分,与插补迭代算法密不可分。
It has been explained in the background art that in the existing open CNC system based on IEEE definition, the real-time control process of the tool path cannot be opened. The reason is that, on the one hand, the numerical control application for the real-time control process
The software system becomes a large and complex interrupt system using parallel algorithms, multi-process/multi-threaded nested calls, and multiple real-time nested interrupts under the control of the real-time operating system. On the other hand, the real-time control process of the tool path curve and the geometric characteristics of the tool path curve, the process characteristics of the machining process, and the mechanical system
The kinematics/kinetics are inseparable, and are inseparable from the hardware platforms such as the number of bits of the CPU and the speed of operation. They are inseparable from software platforms such as real-time operating systems, and are inseparable from the interpolation iterative algorithm.
因而,在基于IEEE定义的现有开放式数控系统中,所谓实时控制的模块化结构实质上是面向对象的模块化结构,也就是对于不同的刀路曲线,配置不同的实时控制模块。不幸的是,这种面向对象的模块化结构并不是面向用户的,而是面向数控系统制造企业的,与可重构性的本质特征完全背道而驰。因而,依赖这种面向对象的模块化结构来实现数字控制系统的可重构性只是一种幻觉。
Therefore, in the existing open CNC system based on IEEE definition, the so-called real-time control modular structure is essentially an object-oriented modular structure, that is, different real-time control modules are configured for different toolpath curves. Unfortunately, this object-oriented modular structure is not user-oriented, but is aimed at CNC manufacturing companies, and runs counter to the essential features of reconfigurability. Thus, relying on this object-oriented modular structure to achieve reconfigurability of a digital control system is only an illusion.
人与机床是数字控制系统的两个服务对象,三者之间必然存在信息交换问题。在背景技术中已说明,在基于IEEE定义的现有开放式数控系统中,在人机界面上采用G代码标准作为编程接口,在运动控制级采用现场总线,从而导致编程接口与现场总线成为基于IEEE定义的现有开放式数控系统没有可重构性的重要因素。
Man and machine tools are the two service objects of the digital control system, and there must be information exchange between the three. It has been explained in the background art that in the existing open CNC system based on IEEE definition, the G code standard is used as the programming interface on the human-machine interface, and the field bus is adopted in the motion control level, thereby causing the programming interface and the field bus to be based on The existing open CNC system defined by IEEE has no important factors for reconfigurability.
基于上述分析,发明人将可重构数控系统定义为: Based on the above analysis, the inventor defined the reconfigurable numerical control system as:
所谓可重构数控系统是按照控制流程配置嵌入式子系统的数控系统,具有实时控制方法软件化,实时控制过程与处理器位数、速度等硬件平台的无关性、与操作系统等软件平台的无关性、以及与编程接口的无关性。
The so-called reconfigurable numerical control system is a numerical control system that configures the embedded subsystem according to the control flow. It has software control of real-time control methods, real-time control process and the independence of hardware platforms such as processor digits and speed, and software platforms such as operating systems. Independence, and independence from the programming interface.
数据流关联控制 按照制造数字控制信息的流程来配置控制资源。 DRC 数控程序
成为数字控制信息生成部件所制造的完全数字化、商品化的'数字控制信息'产品。所述数字控制信息生成部件既是数控编程的 开放式 平台又是数控技术的 开放式
开发平台,实时控制方法完全软件化。 Data Flow Association Control Configure control resources according to the process of manufacturing digital control information. DRC NC program
It is a fully digital and commercial 'digital control information' product manufactured by digital control information generating components. The digital control information generating component is both an open platform for numerical control programming and an open type for numerical control technology.
Development platform, real-time control method is completely software.
在现有开放式数控系统的体系结构中,伺服驱动装置视为数控机床的 功能部件 ,不属于数控系统的范畴。 根据
可重构数控系统的 上述 定义,本发明从控制流程、体系结构、现场总线、编程接口等方面进一步改进 DRC
控制机。这些问题都需要将伺服驱动装置纳入数控系统之中,重新审视伺服驱动装置的功能与结构。 In the architecture of the existing open CNC system, the servo drive device is regarded as a functional component of the CNC machine tool and does not belong to the category of the CNC system. according to
The above definition of the reconfigurable numerical control system, the present invention further improves the DRC from the aspects of control flow, architecture, field bus, programming interface, etc.
Control machine. These problems require the servo drive to be incorporated into the CNC system to re-examine the function and structure of the servo drive.
在机床的 数字 控制中,伺服驱动装置包括伺服电机及其运动控制系统,主要用于控制伺服电机的 转速 与转角
。 所谓转 速 控制又称速度模式,也就是 速度 控制,用于控制主轴的 转速
;所谓转角控制又称位置模式。也就是位置控制,用于控制坐标轴的位移。在本发明中,伺服驱动装置为位置模式,其接收与执行的 数字
控制信息为坐标轴的离散位置信息,位置反馈信息由伺服驱动装置内的嵌式入系统处理。至于主轴的 转速则视为工艺参数,归于带参数的开关量 控制。 In the digital control of the machine tool, the servo drive includes a servo motor and its motion control system, which is mainly used to control the speed and rotation angle of the servo motor.
. The so-called speed control is also called speed mode, which is the speed control, which is used to control the speed of the spindle.
The so-called corner control is also called the position mode. That is, position control is used to control the displacement of the coordinate axes. In the present invention, the servo drive is in a position mode, the number of which is received and executed
The control information is discrete position information of the coordinate axes, and the position feedback information is processed by the embedded system in the servo drive. As for the speed of the spindle, it is regarded as a process parameter, which is attributed to the switch quantity control with parameters.
从背景技术可知,在数据流关联控制中,数字控制技术的核心任务是生成刀路曲线的联动表与随动表。所谓实时控制过程,就是按照随动表中的控制节律,坐标值增量的分配过程、发送过程、执行过程的周而复始。
It can be seen from the background art that in the data flow association control, the core task of the digital control technology is to generate a linkage table and a follower table of the tool path curve. The so-called real-time control process is based on the control rhythm in the follow-up table, the distribution process of the coordinate value increment, the sending process, and the execution process.
例如,为实现X、y、Z、A、B 等5个坐标轴的5轴联动,首先 从联动表中读取 △
X1 、 △ y1 、 △ Z1 、 △ A1 、 △
B1 并 通过 运动控制 接口 分别发送给X、y、Z、A、B等 伺服驱动装置; X 、y、Z、A、B等 伺服驱动装置 接收 △
X1 、 △ y1 、 △ Z1 、 △ A1 、 △
B1 后,写入其位置环,驱动X、y、Z、A、B等5轴联动,实现合成位移 △ L1 ;再经过 △ t
1 后, 从 联动表 中 读 取 △ X2 、 △ y2 、 △ Z2
、 △ A2 、 △ B2 并 通过 运动控制 接口 分别发送给X、y、Z、A、B等 伺服驱动装置; X
、y、Z、A、B等 伺服驱动装置 接收 △ X2 、 △ y2 、 △ Z2 、 △
A2 、 △ B2 后,写入其位置环,驱动X、y、Z、A、B等5轴联动,实现合成位移 △
L2 ;如此周而复始,从而按照控制节律产生刀路曲线所要求的合成位移, 直至 刀路曲线 的 终点。For example, in order to realize 5-axis linkage of five coordinate axes of X, y, Z, A, B, etc., first read Δ X 1 , Δ y 1 , Δ Z 1 , Δ A 1 , Δ B 1 from the linkage table and It is sent to X, y, Z, A, B and other servo drive devices through the motion control interface; X, y, Z, A, B and other servo drive devices receive △ X 1 , △ y 1 , △ Z 1 , △ A 1 After △ B 1 , write its position loop and drive the 5-axis linkage of X, y, Z, A, B, etc. to realize the combined displacement Δ L 1 ; after Δ t 1 , read △ X 2 from the linkage table. △ y 2 , △ Z 2 , △ A 2 , △ B 2 are respectively sent to the servo drive devices such as X, y, Z, A, B through the motion control interface; servo drives such as X, y, Z, A, B, etc. After receiving △ X 2 , Δ y 2 , △ Z 2 , △ A 2 , △ B 2 , the device writes its position loop and drives 5-axis linkage of X, y, Z, A, B, etc. to realize the combined displacement Δ L 2 This cycle is repeated to produce the resultant displacement required by the tool path curve according to the control rhythm until the end of the tool path curve.
所述 联动表与 随动表称之为所述刀路曲线的关联数据流,由 数字 控制信息生成部件生成。 The linkage table and the follower table are referred to as associated data streams of the toolpath curve and are generated by the digital control information generating component.
联动表中的 L 分割 L segmentation in the linkage table
△ Li ( △ Xi 、 △ yi
、 △ Zi 、 △ Ai 、 △ Bi ),i = 1,…, n,Δ L i ( Δ X i , Δ y i , Δ Z i , Δ A i , Δ B i ), i = 1,..., n,
可以按 △ Xi 、 △ yi 、 △
Zi 、 △ Ai 、 △ Bi 分离为5个子表,称之为 所述刀路曲线 的轴联动 表。如果将
X 、y、Z、A、B等5轴的轴联动 表在 辅助过程中 分配给 X 、y、Z、A、B等 伺服驱动装置,
数字控制信息分配发送过程得以分离为数字控制信息分配过程与数字控制信息发送过程,从而 将 数字控制信息分配过程 非实时化,并 从数字控制信息的
实时控制过程中分离出来 。It is possible to separate into five sub-tables by Δ X i , Δ y i , Δ Z i , Δ A i , and Δ B i , which are referred to as an axis linkage table of the tool path curve. If the 5-axis axis linkage table of X, y, Z, A, B, etc. is assigned to the servo drive units such as X, y, Z, A, B in the auxiliary process, the digital control information distribution transmission process can be separated into digital control information. The distribution process and the digital control information transmission process, so that the digital control information distribution process is not real-time, and is separated from the real-time control process of the digital control information.
这样一来,对于X、y、Z、A、B等5轴联动的刀路曲线,其实时控制过程 就是, X
、y、Z、A、B等伺服驱动装置按随动表中的控制节律 △ ti (i = 1,…, n),从 △ Xi (i =
1,…, n)、 △ yi (i = 1,…, n)、 △ Z i (i = 1,…, n)、 △ A
i (i = 1,…, n)、 △ B i (i = 1,…,
n)等5个轴联动表中实时同步地读取坐标值增量并予以执行。In this way, for the 5-axis linkage of the X, y, Z, A, B and so on, the real-time control process is that the servo drive devices such as X, y, Z, A, B, etc. follow the control rhythm in the follower table. Δ t i (i = 1,..., n), from Δ X i (i = 1,..., n), Δ y i (i = 1,..., n), Δ Z i (i = 1,..., n), Δ A i (i = 1,..., n), △ B i (i = 1,..., n), etc. The coordinate value increments are read synchronously in real time in five axis linkage tables and executed.
数字控制信息分配过程 的 非实时化导致下述四方面的重要改进。 The non-real-time implementation of the digital control information distribution process leads to important improvements in the following four areas.
1 )、加工过程模型与体系结构 1), process model and architecture
文献《开放式数控技术及其在我国的发展状况》(《航空制造技术》,2010年第3期,作者:富宏亚
梁全)指出,数控系统的开放性可以分为3 类:数控系统软件的开放性、加工数据模型的开放性和硬件实施平台的开放性。 Document "open CNC technology and its development in our country" ( "Aeronautical Manufacturing Technology" 2010 three authors: Acer-rich
Liang Quan pointed out that the openness of CNC systems can be divided into three categories: the openness of CNC system software, the openness of the processing data model and the openness of the hardware implementation platform.
数控系统的加工数据模型是规划体系结构与开发数控技术的基础。 The machining data model of the CNC system is the basis for planning the architecture and developing the CNC technology.
基于IEEE定义的现有开放式数控系统面向对象,加工数据模型用于描述数控系统中每个对象的功能、行为、起始过程、以及它们之间相互操纵的关系,特别是针对复杂的、具有不同层次实时性要求的多个控制任务进行清楚的描述。因而,采用有限状态机(Finite
State Machine, FSM)的加工数据模型在开放式数控系统的开发中占有重要的地位。例如,中国国家标准《GB/T 18759. 1-2002 •
机械电气设备 • 开放式数控系统 • 第 1 部分 总则》、《GB/T 18759.2-2006 • 机械 电气设备 • 开放式数控系统 • 第 2
部分:体系结构》都清楚地规范了有限状态机模型。有限状态机是反应式系统的一种高度抽象的建模工具,对开发商而言,结构复杂,复用性差;对用户而言,则犹如蛛网式迷宫,毫无开放性。
Based on the IEEE-defined existing open CNC system object-oriented, the processing data model is used to describe the function, behavior, starting process, and the relationship between each object in the numerical control system, especially for complex, Multiple control tasks required by different levels of real-time requirements are clearly described. Thus, using a finite state machine (Finite
The machining data model of State Machine, FSM) plays an important role in the development of open CNC systems. For example, the Chinese national standard "GB/T 18759. 1-2002 •
Mechanical and electrical equipment • Open CNC system • Part 1 General, GB/T 18759.2-2006 • Mechanical electrical equipment • Open CNC system • 2nd
Part: Architecture" clearly defines the finite state machine model. The finite state machine is a highly abstract modeling tool for reactive systems. For developers, the structure is complex and the reusability is poor. For the user, it is like a spider web maze, and there is no openness.
数据流关联控制不是面向对象,而是面向过程,必须根据数字控制的过程特征,为开放式数控系统提出一种开放的加工过程模型。
Data flow association control is not object-oriented, but process-oriented. It is necessary to propose an open processing model for open CNC systems based on the process characteristics of digital control.
本发明将控制流程划分为数字控制信息生成过程、数字控制信息分配过程、数字控制信息发送过程与数字控制信息执行过程等四个子
过程,进而将数字控制信息分配过程从数字控制信息的 实时控制过程分离 ,成为非 实时过程 。
The invention divides the control flow into four parts: a digital control information generation process, a digital control information distribution process, a digital control information transmission process, and a digital control information execution process.
The process, in turn, separates the digital control information distribution process from the real-time control process of digital control information into a non-real-time process.
数字控制信息分配过程从数字控制信息的 实时控制过程中分离 后,所述数字控制系统的体系结构解耦为 数字
控制信息生成部件、数字控制信息分配部件、数字控制信息发送部件、数字控制信息执行部件等四个功能部件。数字控制信息执行部件包括伺服驱动装置与I/O装置。 After the digital control information distribution process is separated from the real-time control process of the digital control information, the architecture of the digital control system is decoupled into a digital
The control information generating unit, the digital control information distributing unit, the digital control information transmitting unit, and the digital control information executing unit have four functional components. The digital control information execution unit includes a servo drive device and an I/O device.
所述控制流程可分为实时过程与非实时过程。从可重构性来看,所述四个功能部件的功能与结构 应
重新审视,所述实时过程与非实时过程的控制方法 应 重新审视。 The control process can be divided into a real-time process and a non-real-time process. From the perspective of reconfigurability, the functions and structures of the four functional components should
Re-examination, the real-time process and the control method of the non-real-time process should be re-examined.
2 )、文件结构 2), file structure
数字控制信息分配过程从数字控制信息的 实时控制过程中分离 后,作为数控加工的DRC数控程序 的结构,
应从 可重构性方面来重新审视,以支持所述实时控制过程与非实时分配过程。 The digital control information distribution process is separated from the real-time control process of the digital control information, and is used as the structure of the DRC NC program for numerical control machining.
It should be revisited from the perspective of reconfigurability to support the real-time control process and the non-real-time allocation process.
3 )、编程接口 3), programming interface
所述 程序接口指的是 不同 数控系统之间交换加工程序时,加工程序之间的编程接口。 The program interface refers to a programming interface between machining programs when different machining systems are exchanged between different numerical control systems.
在不同 数控系统之间,DRC数控程序 成为 编程接口。数字控制信息分配过程从数字控制信息的
实时控制过程中分离 后, 在 控制流程中, 文件成为 数字控制信息 的载体。 因此,所述DRC数控程序 文件
与操作系统平台无关。然而,从可重构性来看,所述DRC数控程序 作为 编程接口,应与现场总线无关。 Between different CNC systems, the DRC NC program becomes the programming interface. Digital control information distribution process from digital control information
After separation in the real-time control process, the file becomes the carrier of digital control information in the control flow. Therefore, the DRC NC program file
Not related to the operating system platform. However, from the perspective of reconfigurability, the DRC NC program should be independent of the fieldbus as a programming interface.
4 )、内部接口 4), internal interface
数字控制信息分配过程从数字控制信息的 实时控制过程中分离 后,轴联动 表
非实时地分配给伺服驱动装置,实时控制过程得以高度简化,内部接口的实时通信过程得以高度简化,内部接口的功能与结构 应
重新审视,以支持实时通信过程的可重构性。 The digital control information distribution process is separated from the real-time control process of the digital control information, and the axis linkage table
Non-real-time allocation to the servo drive, the real-time control process is highly simplified, the real-time communication process of the internal interface is highly simplified, and the function and structure of the internal interface should be
Re-examine to support the reconfigurability of the real-time communication process.
本发明提出一种可重构数控系统,从数控系统的开放式体系结构、实时过程与非实时过程的控制方法、DRC数控程序的结构与编程接口、内部接口的功能与结构、伺服驱动装置的功能与结构等方面对所述DRC控制机进一步予以改进,以适应第三次工业革命对可重构数控系统的要求。
The invention provides a reconfigurable numerical control system, from an open architecture of a numerical control system, a control method of a real-time process and a non-real-time process, a structure and a programming interface of a DRC numerical control program, a function and structure of an internal interface, and a servo drive device. The DRC control machine is further improved in terms of function and structure to meet the requirements of the third industrial revolution for the reconfigurable numerical control system.
下面将结合附图及具体实施例对本发明的技术方案进行详细描述。 The technical solutions of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
工件的加工过程一般可划分为辅助过程、换刀过程与走刀过程。 The machining process of the workpiece can generally be divided into auxiliary process, tool change process and tool pass process.
辅助过程涉及由I/O装置控制的辅助功能与状态设置。 The auxiliary process involves auxiliary functions and status settings controlled by the I/O device.
换刀过程涉及刀库控制。对于换刀过程,一般采用常规的PLC控制刀库,或采用软PLC生成组合逻辑的控制流来控制换刀过程。本实施方式中不讨论也不改变现有PLC及I/O装置的控制方法。
The tool change process involves tool magazine control. For the tool change process, the conventional PLC is used to control the tool magazine, or the soft PLC is used to generate the control flow of the combination logic to control the tool change process. The control methods of the existing PLC and I/O devices are not discussed or changed in this embodiment.
走刀过程涉及刀路曲线的实时控制。 The pass process involves real-time control of the tool path curve.
因此,在工件的加工过程中,数控系统只有三种工作状态:辅助功能操作、开关量控制、刀路曲线的实时控制。
数据流关联 控制用状态指令、开关指令、轨迹指令三类运动指令来描述这三种工作状态。 Therefore, in the machining process of the workpiece, the numerical control system has only three working states: auxiliary function operation, switch quantity control, and real-time control of the tool path curve.
Data Flow Association The control uses the three types of motion commands: state command, switch command, and track command to describe these three operating states.
一、运动指令 First, the motion instruction
1 )、状态指令与辅助功能操作 1), status command and auxiliary function operation
状态指令用于描述辅助功能。 Status instructions are used to describe auxiliary functions.
状态指令可分为系统初始化状态指令与系统运行状态指令。 Status instructions can be divided into system initialization status instructions and system operation status instructions.
系统初始化状态指令用于设置/修改一些参数,例如设定伺服驱动装置的初始化参数、刀库的初始化参数等。系统运行状态指令用于设定系统的运行状态,例如,设置自动、手动、指定程序段、启动、结束、暂停等运行状态,实现检测、参数调整、故障诊断等功能,修改开关指令与状态指令的解释程序等。
The system initialization status command is used to set/modify some parameters, such as setting the initialization parameters of the servo drive, initialization parameters of the tool magazine, and so on. The system running status command is used to set the running status of the system. For example, set the running status of automatic, manual, specified block, start, end, pause, etc., realize the functions of detection, parameter adjustment, fault diagnosis, etc., and modify the switch command and status command. Interpreter and so on.
状态指令包括功能字节、辅助字节。 Status instructions include function bytes, auxiliary bytes.
(1)、功能字节 (1), function byte
功能字节为2个字节,用于描述该状态指令的基本功能,包括标识码与指令码。 The function byte is 2 bytes and is used to describe the basic functions of the status instruction, including the identification code and the instruction code.
第1个功能字节为状态指令的标识。 The first function byte is the identification of the status instruction.
B7 :状态指令或开关指令的标识,例如,B7 =
1;B 7 : identification of a status command or a switch command, for example, B 7 = 1;
B6 :状态指令的标识码,例如,B6 = 0;B 6 : identification code of the status instruction, for example, B 6 = 0;
B5 :标识状态指令的参数状态,带参数/不带参数;B 5 : parameter status of the identification status command with or without parameters;
B4
~B0:5位特征码,标识参数的个数,最多可携带32个参数。B 4 ~ B 0 : 5-digit signature, the number of identification parameters can carry up to 32 parameters.
第2个功能字节为状态指令的功能码,共256条状态指令。 The second function byte is the function code of the status instruction, which has a total of 256 status instructions.
(2)、辅助字节 (2), auxiliary byte
辅助字节为多个字节,标识该状态指令的多个参数值,每个参数占2个字节。 The auxiliary byte is a number of bytes that identify multiple parameter values for the status instruction, each parameter occupying 2 bytes.
状态指令还包括诊断指令,用于 向伺服驱动装置分配发送一系列的特定
数据,以诊断联动表分配过程中的故障。 The status command also includes a diagnostic command for assigning a series of specificities to the servo drive.
Data to diagnose faults in the linkage table assignment process.
2 )、开关指令与开关的实时控制 2), real-time control of switching commands and switches
开关指令用于描述开关及其控制的参数。 The switch command is used to describe the parameters of the switch and its control.
所述开关如果携带需要实时控制的工艺参数,本发明视为虚拟坐标轴。 The present invention is considered to be a virtual coordinate axis if the switch carries process parameters that require real-time control.
所述开关如果不携带需要实时控制的工艺参数,则属于常规的PLC控制。主轴转速控制可视为携带参数(转速)的开关。
The switch is a conventional PLC control if it does not carry process parameters that require real-time control. The spindle speed control can be regarded as a switch carrying parameters (speed).
换刀指令属于常规的PLC控制。本发明将换刀指令视为一种开关指令。作为常规技术,本发明不涉及 换刀指令
的具体控制过程。 The tool change command is a regular PLC control. The present invention treats the tool change command as a switch command. As a conventional technique, the present invention does not relate to a tool change command
The specific control process.
开关指令包括功能字节、辅助字节。 The switching instructions include function bytes and auxiliary bytes.
(1)、功能字节 (1), function byte
功能字节为2个字节,用于描述该开关指令的基本功能,包括标识码与指令码。 The function byte is 2 bytes and is used to describe the basic functions of the switch instruction, including the identification code and the instruction code.
第1个功能字节为开关指令的标识。 The first function byte is the identification of the switch instruction.
B7 :状态指令或开关指令的标识,例如,B7 =
0;B 7 : identification of a status command or a switch command, for example, B 7 = 0;
B6 :开关指令的标识码,例如,B6 = 1;B 6 : identification code of the switching instruction, for example, B 6 = 1;
B5 :标识开关指令的参数状态,带参数/不带参数;B 5 : parameter status of the identification switch command with or without parameters;
B4
~B0:5位特征码,标识参数的个数,最多可携带32个参数。B 4 ~ B 0 : 5-digit signature, the number of identification parameters can carry up to 32 parameters.
第2个功能字节为开关指令的功能码,共256条开关指令。 The second function byte is the function code of the switch command, a total of 256 switch commands.
(2)、辅助字节 (2), auxiliary byte
辅助字节为多个字节,标识该开关指令的多个参数值,每个参数占2个字节。 The auxiliary byte is a plurality of bytes, and identifies a plurality of parameter values of the switch instruction, each parameter occupying 2 bytes.
对于状态指令与开关指令,本发明配置了地址表,用于储存状态指令与开关指令的解释程序的入口地址。用户(或开发商)可自行定义其辅助字节并通过解释程序的重写自行定义其功能。因而,状态指令的指令格式与开关指令的指令格式都是开放的,支持用户(或开发商)的二次开发。
For state commands and switch commands, the present invention configures an address table for storing the entry address of the interpreter of the state command and the switch command. The user (or developer) can define its own auxiliary bytes and define their functions by rewriting the interpreter. Therefore, the instruction format of the status instruction and the instruction format of the switch instruction are both open, supporting the secondary development of the user (or developer).
状态指令、开关指令与工作机的特定结构密不可分,属于个性化功能。这种重写解释程序的状态指令称之为重构指令。
The state command and the switch command are inseparable from the specific structure of the working machine and belong to the personalization function. This state instruction that rewrites the interpreter is called a refactoring instruction.
3 )、轨迹指令与刀路曲线的实时控制 3), real-time control of track command and tool path curve
在DRC控制中,对于一条刀路曲线,用一条轨迹指令来控制伺服驱动装置,实现坐标轴联动。 In the DRC control, for a tool path curve, a trajectory command is used to control the servo drive device to achieve coordinate axis linkage.
在DRC控制中,需要实时控制的工艺参数由开关携带,该开关称为虚拟坐标轴,工艺参数称为该虚拟坐标轴的坐标值。 因此,在本发明中,坐标轴包括虚拟坐标轴。
In the DRC control, the process parameters that need to be controlled in real time are carried by the switch. The switch is called a virtual coordinate axis, and the process parameter is called the coordinate value of the virtual coordinate axis. Therefore, in the present invention, the coordinate axis includes a virtual coordinate axis.
轨迹指令为单字节指令,其指令码为: The track instruction is a single-byte instruction whose instruction code is:
B7 :轨迹指令的标识,例如,B7 = 0;B 7 : identification of the track command, for example, B 7 = 0;
B6 ~B0:7位 顺序 码,用于对轨迹指令 编号
。B 6 to B 0 : 7-bit sequential code for numbering the track command.
轨迹指令的解释程序的地址码为系统参数,运行时由系统自动导入。 The address code of the interpreter of the track instruction is the system parameter, which is automatically imported by the system at runtime.
顺序 码在刀路曲线的轨迹指令与其所携带的联动表 、 随动表之间建立一一对应关系 ; 联动表
用于控制相关坐标轴联动以产生所要求的合成位移; 随动表 用于控制合成位移之间的时间间隔。 The sequence code establishes a one-to-one correspondence between the trajectory command of the tool path curve and the linkage table and the follower table carried by the sequence code;
Used to control the linkage of the relevant coordinate axes to produce the required composite displacement; the follower table is used to control the time interval between the synthetic displacements.
在本发明中,轨迹指令只有一种格式,与刀路曲线中的曲线类型无关。 In the present invention, the track command has only one format, regardless of the type of curve in the tool path curve.
二、DRC数控程序 Second, DRC NC program
在一次走刀过程中,刀具中心的轨迹称为刀路曲线(Tool Path)。 In the course of a pass, the path of the tool center is called the Tool Path.
按给定的数据格式,一条刀路曲线的L分割 △ Xi 、 △
yi 、 △ Zi 、 △ Ai 、 △ Bi 、 △
Wi 、 △ Ei 、 △ Hi
在存储空间的数据文件称之为L分割的联动表。按给定的数据格式,该刀路曲线的T分割 △ ti (i = 1,…,
n)在存储空间的数据文件称之为T分割的随动表。L分割与T 分割 称之为刀路曲线的关联数据流。According to the given data format, the data of the L segmentation ΔX i , Δ y i , Δ Z i , Δ A i , Δ B i , Δ W i , Δ E i , Δ H i of a tool path curve in the storage space The file is called the L-segment linkage table. According to the given data format, the data segment of the T-segment Δ t i (i = 1,..., n) of the tool path curve in the storage space is called the T-segment follower table. L-segmentation and T-segmentation are called associated data streams of the toolpath curve.
T 分割中, △ t i 为无符号的2字节二进制整数。In the T segmentation, Δ t i is an unsigned 2-byte binary integer.
L 分割中,坐标值增量( △ Xi 、 △ yi
等)为原码表示的带符号的二进制整数,最高位为符号位(+/-),对应坐标轴的正转/反转。特别是,坐标值增量( △ Xi 、 △
yi 等)的进给当量(纳米或微米)、数据所占字节数都可以不同。In the L segmentation, the coordinate value increments (Δ X i , Δ y i , etc.) are signed binary integers represented by the original code, and the highest bit is the sign bit (+/-), which corresponds to the forward/reverse rotation of the coordinate axis. In particular, the feed equivalent (nano or micron) of the coordinate value increments (Δ X i , Δ y i , etc.) and the number of bytes occupied by the data may be different.
在工件的加工过程中,数控设备只有辅助功能操作、I/O装置的 逻辑
控制、刀路曲线的实时控制等三种工作状态。因此,工件的加工过程一般可划分为辅助过程、换刀过程与走刀过程。辅助过程涉及辅助功能操作,换刀过程涉及刀库控制,走刀过程涉及刀路曲线的实时控制。 In the machining process of the workpiece, the numerical control equipment only has the auxiliary function operation and the logic of the I/O device.
Three working states, such as control and real-time control of the tool path curve. Therefore, the machining process of the workpiece can be generally divided into an auxiliary process, a tool change process and a pass process. The auxiliary process involves auxiliary function operation, the tool change process involves tool magazine control, and the pass process involves real-time control of the tool path curve.
与这三种 工作 状态相对应, 数控系统
有三类运动指令:状态指令、开关指令、轨迹指令。根据加工工艺确定的顺序,用户使用状态指令、开关指令、轨迹指令来描述 工件的整个加工过程。 Corresponding to these three working states, CNC system
There are three types of motion commands: state commands, switch commands, and track commands. According to the order determined by the machining process, the user uses the status command, the switch command, and the track command to describe the entire machining process of the workpiece.
这种由加工工艺确定了 顺序的运动指令之集合就是该 工件加工过程的数控加工程序,本发明 称之为 DRC
数控程序。 The set of motion instructions that are determined by the machining process is the NC machining program of the workpiece machining process, which is referred to as DRC.
CNC program.
DRC
数控程序是数字控制信息制造系统所制造的数字化产品,从而将控制信息的传统形态,如图纸、G代码程序等予以完全数字化。 DRC
The numerical control program is a digital product manufactured by a digital control information manufacturing system, thereby completely digitizing the conventional form of control information, such as a paper, a G code program, and the like.
DRC 数控程序 由运动指令构成,用于控制工件的加工过程;运动指令 包括状态 指令 、开关 指令
、轨迹指令; The DRC NC program consists of motion instructions for controlling the machining process of the workpiece; motion commands include status commands, switch commands
Trajectory instruction;
状态 指令 用于操作辅助功能。 Status Command Used to operate the auxiliary function.
开关 指令用于 控制 I/O 装置 。 The switch command is used to control the I/O device.
轨迹指令 用于 控制伺服驱动装置,完成一条刀路曲线的走刀过程。 The path command is used to control the servo drive to complete the path of a tool path curve.
三、DRC数控程序的结构 Third, the structure of the DRC NC program
作为数字控制信息的数字化产品,DRC数控程序的结构也就是产品的数字化结构。DRC数控程序的结构决定了DRC控制机的功能与结构,反之,DRC控制机的功能与结构又影响DRC数控程序的结构。
As a digital product of digital control information, the structure of the DRC NC program is also the digital structure of the product. The structure of the DRC NC program determines the function and structure of the DRC controller. Conversely, the function and structure of the DRC controller affect the structure of the DRC NC program.
工件的加工过程一般包括多个走刀过程。每个走刀过程完成一 条 刀路曲线的加工。 The machining of the workpiece generally involves multiple passes. Each pass process completes the machining of a tool path curve.
一条刀路曲线通常由若干段曲线构成,每段曲线的几何结构可能相同也可能不相同,合成每段曲线的坐标轴因之可能相同也可能不相同。
A tool path curve usually consists of several segments of curves. The geometry of each segment may or may not be the same. The axes of each curve may be the same or different.
本发明不按照曲线的几何结构分段,而是按联动的坐标轴分段。每段曲线中联动的坐标轴相同,用一条轨迹指令来描述。因而,一条刀路曲线的加工达程往往使用多条轨迹指令。
The invention does not segment according to the geometry of the curve, but is segmented according to the coordinate axes of the linkage. The coordinate axes of the linkages in each segment are the same and are described by a track command. Therefore, the processing of a tool path often uses multiple track commands.
轨迹 指令中的 顺序 码,用于对轨迹指令按加工顺序 编号。 The sequence code in the track command is used to number the track commands in the order in which they are processed.
在 本发明 中, 按照联动的坐标轴,所述联动表划分为轴联动表。 例如,关于 △
Xi (i = 1,…, n)的X轴联动表,关于 △ yi (i = 1,…, n)的y轴联动表,等等。In the present invention, the linkage table is divided into an axis linkage table according to the coordinate axes of the linkage. For example, an X-axis linkage table for Δ X i (i = 1, ..., n), a y-axis linkage table for Δ y i (i = 1, ..., n), and the like.
轨迹指令与刀路曲线的轴联动表、随动表相对应。 The trajectory command corresponds to the axis linkage table and the follower table of the tool path curve.
随动表中设置状态 字 ,用于标识该 段
曲线中联动的坐标轴。状态字为一个字节,字节的位数可以为32、16、8。例如,8位状态字可指定 8 个
联动的坐标轴。从低位到高位,状态字的每位控制一个伺服驱动装置的使能状态及数据通道。例如,状态字'11100000'指定X、y、Z等轴的伺服驱动装置、状态字'00011000'指定A、B等轴的伺服驱动装置。 Set the status word in the follow-up table to identify the segment
The coordinate axis of the linkage in the curve. The status word is one byte, and the number of bytes can be 32, 16, or 8. For example, an 8-bit status word can specify 8
The coordinate axes of the linkage. From low to high, each bit of the status word controls the enable state and data channel of a servo drive. For example, the status word '11100000' specifies a servo drive device such as an X, y, or Z axis, and a status drive word '00011000' to designate a servo drive such as A or B.
将状态字的位数与个数为用户参数。用户可通过状态指令设置状态字的位数与字节数。 The number of digits and the number of status words are user parameters. The user can set the number of bits and the number of bytes of the status word through the status command.
在每个轴联动表文件中设置特征表,用于标识该 段
曲线中坐标轴的逻辑属性;坐标轴的逻辑属性包括进给当量(纳米、微米等)、数据所占的字节数,还包括 电子齿轮传动比等伺服参数
。因此,在一次加工过程中,允许每个坐标轴具有不同的进给当量、不同的数据字节数、不同的 电子齿轮传动比 ,以适应高速高精度加工的需要。 Set a feature table in each axis linkage table file to identify the segment
The logical properties of the axes in the curve; the logical properties of the axes include the feed equivalent (nano, micro, etc.), the number of bytes occupied by the data, and the servo parameters such as the electronic gear ratio.
. Therefore, in one machining process, each coordinate axis is allowed to have different feed equivalents, different data bytes, and different electronic gear ratios to meet the needs of high-speed and high-precision machining.
为实现按名存取文件,文件目录中包括文件名、物理地址、文件结构、存取控制等大量信息。 In order to access files by name, the file directory includes a large amount of information such as file name, physical address, file structure, and access control.
DRC 数控程序、 轴联动表、
随动表均采用标准文件格式,其编程接口的信息之丰富、信息量之大是G代码程序编程接口难以实现的。 DRC CNC program, axis linkage table,
The follower table adopts the standard file format, and the rich information and the large amount of information of the programming interface are difficult to implement by the G code program programming interface.
DRC
数控程序为可执行文件;轴联动表、随动表为数据文件。DRC数控程序、轴联动表、随动表均采用诸如FAT16、FAT32之类的标准文件系统。 DRC
The NC program is an executable file; the axis linkage table and the follower table are data files. The DRC NC program, the axis linkage table, and the follower table all use standard file systems such as FAT16 and FAT32.
文件系统是在磁盘上组织文件的方法。FAT(File Allocation
Table)是一种广泛使用的标准化文件系统。为了实现单片机系统的海量数据存储并支持单片机系统与使用操作系统的计算机通过文件系统交换数据,已研发出一些名为文件管理
器的芯片 ,例如CH376,SL811、PB375A等。文件管理 器 内置了FAT16、
FAT32文件系统的文件分析固件,用于读取FAT表、FDT表、BPB表等相关的扇区地址和数据区的地址,无须配置操作系统,从而独立地完成文件管理的全部功能:打开、新建或删除文件、枚举和搜索文件、支持长文件名等。 A file system is a method of organizing files on disk. FAT (File Allocation
Table) is a widely used standardized file system. In order to realize the massive data storage of the single-chip system and support the single-chip computer system and the computer using the operating system to exchange data through the file system, some file management has been developed.
Chips, such as CH376, SL811, PB375A, etc. File Manager has built-in FAT16,
FAT32 file system file analysis firmware, used to read the FAT table, FDT table, BPB table and other related sector addresses and data area addresses, without having to configure the operating system, thus independently complete all functions of file management: open, new Or delete files, enumerate and search files, support long file names, and more.
四、控制流程 Fourth, the control process
数据流关联控制面向过程,按照制造数字控制信息的控制流程来配置控制资源。 The data flow association control is process oriented, and the control resources are configured in accordance with a control flow for manufacturing digital control information.
轴联动表分配过程的非实时化导致数字控制信息分配过程从数字控制信息的 实时控制过程中分离
,控制流程因之划分为数字控制信息生成过程、数字控制信息分配过程、数字控制信息发送过程与数字控制信息执行过程等四个子过程,数字控制系统的体系结构因之解耦为 数字
控制信息生成部件、数字控制信息分配部件、数字控制信息发送部件、数字控制信息执行部件等四个功能部件。 The non-real-timeization of the axis linkage table allocation process leads to the separation of the digital control information distribution process from the real-time control process of digital control information.
The control process 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 of the digital control system is decoupled into digital
The control information generating unit, the digital control information distributing unit, the digital control information transmitting unit, and the digital control information executing unit have four functional components.
从实时性来看,控制流程可分为实时过程与非实时过程。数字控制信息生成过程与数字控制信息分配过程为非实时过程,数字控制信息发送过程与数字控制信息执行过程为实时过程。
From a real-time perspective, control processes can be divided into real-time processes and non-real-time processes. The digital control information generation process and the digital control information distribution process are non-real-time processes, and the digital control information transmission process and the digital control information execution process are real-time processes.
1 )、数字控制信息生成过程 1), digital control information generation process
数字控制信息生成过程就是制造关联数据流的过程,即刀路曲线的联动表与随动表的生成过程。数字控制信息生成过程还包括DRC数控程序的生成过程即加工过程的编程过程。
The digital control information generation process is the process of manufacturing the associated data flow, that is, the linkage table of the tool path curve and the generation process of the follower table. The digital control information generation process also includes a process of generating a DRC numerical control program, that is, a programming process of the machining process.
数字控制信息生成过程是非实时过程。 The digital control information generation process is a non-real time process.
数字控制信息生成部件生成DRC数控程序,包括以下内容: The digital control information generating component generates a DRC numerical control program, which includes the following contents:
(1)、根据机械系统的运动学特征,建立正交离散坐标系/非正交离散坐标系; (1) Establish an orthogonal discrete coordinate system/non-orthogonal discrete coordinate system according to the kinematics of the mechanical system;
(2)、根据 机 械系 统
的机械属性,建立结构常数数据库用于存储所述机械属性;所述机械属性包括坐标轴的线位移误差、角位移误差、反向间隙等精细结构常数,以及坐标轴之间的不平行度、不垂直度等坐标系参数; (2), according to the mechanical system
a mechanical property, a structural constant database is created for storing the mechanical property; the mechanical property includes a linear structure error such as a linear displacement error of the coordinate axis, an angular displacement error, a backlash, and a non-parallelism between the coordinate axes, Coordinate system parameters such as non-perpendicularity;
(3)、根据加工工艺,进行刀路曲线规划,完成刀具补偿与刀路路径规划,生成刀路曲线文件; (3) According to the processing technology, plan the tool path curve, complete the tool compensation and tool path planning, and generate the tool path curve file;
(4)、对刀路曲线文件中的每条刀路曲线进行离散几何规划与离散运动规划,生成该刀路曲线的轴联动表与随动表,生成相应的轨迹指令及其轴联动表与随动表;
(4) Perform discrete geometric programming and discrete motion planning for each tool path curve in the tool path curve file, generate the axis linkage table and the follower table of the tool path curve, and generate corresponding track command and its axis linkage table and Follow-up table;
(5)、根据用户程序,生成相应的状态指令; (5) generating a corresponding status instruction according to the user program;
(6)、根据用户程序,完成I/O装置中的开关量控制,生成相应的开关指令; (6) According to the user program, complete the switch quantity control in the I/O device, and generate a corresponding switch command;
(7)、根据加工工艺,链接状态指令、开关指令、轨迹指令,生成DRC数控程序;最后一条运动指令为结束加工的'停机'状态指令。
(7) According to the processing technology, link state command, switch command, track command, generate DRC NC program; the last motion command is the 'stop' state command for ending the machining.
2 )、数字控制信息分配过程 2), digital control information distribution process
数字控制信息分配过程就是向伺服驱动装置分配轴联动表。分配控制信息在轴联动表的目录中。 The digital control information distribution process is to assign an axis linkage table to the servo drive. The assignment control information is in the catalog of the axis linkage table.
通过将轴联动表事先分配给相应的伺服驱动装置,从而将联动表的分配过程非实时化。 By assigning the axis linkage table to the corresponding servo drive in advance, the assignment process of the linkage table is de-realized.
3 )、数字控制信息发送过程 3), digital control information transmission process
数字控制信息发送过程与数字控制信息执行过程涉及DRC数控程序的运行过程。 The digital control information transmission process and the digital control information execution process involve the operation of the DRC NC program.
DRC
数控程序运行过程也就是运动指令的执行过程,包括从DRC数控程序中读取运动指令与执行该运动指令的解释程序。 DRC
The NC program running process is also the execution process of the motion instruction, including reading the motion instruction from the DRC NC program and the interpretation program for executing the motion instruction.
在取指过程中,运动指令的功能字节写入运动指令寄存器,下一条运动指令的地址写入运动指令指针, 分析处理
其他字节;在 执行 过程中,根据指令码与地址码执行该运动指令的解释程序,完成所述运动指令指定的功能。 In the fetching process, the function byte of the motion instruction is written into the motion instruction register, and the address of the next motion instruction is written to the motion instruction pointer, and the analysis processing
Other bytes; during execution, the instruction of the motion instruction is executed according to the instruction code and the address code, and the function specified by the motion instruction is completed.
如果译码判定为为状态指令,根据所述运动指令的地址表,则跳转至所述地址表所指定的入口地址,执行该状态指令的解释程序;
If the decoding is determined to be a status instruction, according to the address table of the motion instruction, jump to the entry address specified by the address table, and execute an interpreter of the status instruction;
如果译码判定为为开关指令,根据所述开关指令的地址表,则跳转至所述地址表所指定的入口地址,执行该开关指令的解释程序;
If the decoding is determined to be a switch instruction, according to the address table of the switch instruction, jump to the entry address specified by the address table, and execute an interpretation program of the switch instruction;
如果译码判定为为轨迹指令,则执行该轨迹指令的解释程序。 If the decoding is determined to be a track instruction, the interpretation of the track instruction is executed.
状态指令与开关指令执行过程属于辅助过程,对实时性的要求不高,属于常规技术。 The state instruction and the execution of the switch instruction are auxiliary processes, and the requirements for real-time performance are not high, which is a conventional technique.
轨迹指令的执行过程就是走刀过程,也就是一 条 刀路曲线的实时控制过程, 是数控系统的核心功能。 The execution process of the trajectory command is the pass process, which is a real-time control process of the tool path curve, which is the core function of the CNC system.
工件的加工过程一般包括多个走刀过程。每个走刀过程完成一 条 刀路曲线的加工。用一条轨迹 指令描述 一
条 刀路曲线的走刀过程,每条轨迹 指令对应一个 轴联动表与 一个 随动表。在DRC数控程序中,一般有m 条 轨迹 指令 ,因而,有m 个 轴联动表与m 个
随动表。 The machining of the workpiece generally involves multiple passes. Each pass process completes the machining of a tool path curve. Use a track instruction to describe one
The path of the tool path curve, each track command corresponds to an axis linkage table and a follower table. In the DRC NC program, there are generally m track commands, so there are m axis linkage tables and m
Follow the table.
一条刀路曲线通常由若干段曲线构成,每段曲线的几何结构可能不同。在 发明
中,几何结构不同的曲线段视为不同的刀路曲线。 A tool path curve usually consists of several segments of curves, and the geometry of each segment may be different. Invented
In the middle, the curve segments with different geometrical structures are regarded as different tool path curves.
数字控制信息分配过程非实时化后,m条轨迹指令的轴联动表存储在伺服驱动装置的文件存储器,m条轨迹指令的随动表存储数字控制信息发送部件的文件存储器。因而,必须为分离后的轴联动表与随动表建立联系。
After the digital control information distribution process is not real-time, the axis linkage table of the m track commands is stored in the file memory of the servo drive device, and the follow-up table of the m track commands stores the file memory of the digital control information transmitting unit. Therefore, it is necessary to establish a connection with the following table for the separated axis linkage table.
每条轨迹 指令携带 顺序 码,标识该轨迹指令在DRC数控程序中的位置。轴联动表中包括每条轨迹 指令的
轴联动表作为子文件,其目录包括 顺序 码;随动表中包括每条轨迹 指令的 随动表作为子文件,其目录也包括 顺序 码 。 因而,对于所有的轨迹 指令, 顺序
码为每条轨迹 指令与 其轴联动表、随动表建立了对应关系。 Each track command carries a sequence code that identifies the position of the track command in the DRC NC program. The axis linkage table includes each track command
The axis linkage table is used as a subfile, and its directory includes a sequence code; the follower table includes a follower table of each track instruction as a subfile, and the directory also includes a sequence code. Thus, for all trace instructions, the order
The code is a correspondence between each track command and its axis linkage table and follower table.
这样一来,
数字控制信息分配过程非实时化后,在刀路曲线的实时控制过程中,为控制相关坐标轴进行联动,只须按照状态字指定的坐标轴向相关伺服驱动装置 单向
发送同步脉冲。为叙述简单起见,将状态字控制下的这组同步脉冲称之为联动命令。 Thus,
After the digital control information distribution process is not real-time, in the real-time control process of the tool path curve, the control related coordinate axes are linked, and only the coordinate axis specified by the status word is required to be related to the servo drive device.
Send a sync pulse. For the sake of simplicity of the description, the set of synchronization pulses under the control of the status word is referred to as a linkage command.
因而,数字控制信息分配过程非实时化后,数字控制信息发送过程便简化为按照控制节律 △ t
i (i = 1,…, n),向轨迹指令的状态字指定的伺服驱动装置 单向 发送联动命令。Therefore, after the digital control information distribution process is not real-time, the digital control information transmission process is simplified to one-way transmission to the servo drive specified by the status word of the track command according to the control rhythm Δ t i (i = 1, ..., n). Linkage order.
4 )、数字控制信息执行过程 4), digital control information execution process
数字控制信息执行过程就是伺服驱动装置跟随联动命令控制坐标轴进给产生合成位移的过程。 The digital control information execution process is a process in which the servo drive device follows the linkage command to control the coordinate axis feed to generate a composite displacement.
伺服驱动装置接收联动命令后,根据L指针从轴联动表中读取坐标值增量,写入位置环,驱动坐标轴进给产生合成位移;L指针加1,直至L指针等于轴联动表的末地址。
After receiving the linkage command, the servo drive device reads the coordinate value increment from the axis linkage table according to the L pointer, writes the position loop, and drives the coordinate axis feed to generate a composite displacement; the L pointer is incremented by 1 until the L pointer is equal to the axis linkage table. Last address.
五、接口 Fifth, the interface
数控系统的接口一般可分为内部接口与外部接口。 The interface of the numerical control system can be generally divided into an internal interface and an external interface.
1 )、外部接口 1), external interface
外部接口指的是网络接口。 The external interface refers to the network interface.
所述 网络接口用于车间管理网中 不同 数字控制系统之间交换信息,一般可采用工业以太网接口等
,属于常规技术 。 The network interface is used for exchanging information between different digital control systems in the workshop management network, generally adopting an industrial Ethernet interface, etc.
, is a conventional technology.
2 )、联动接口 2), linkage interface
数字控制系统的内部接口用于 数字
控制信息生成部件、数字控制信息分配部件、数字控制信息发送部件、数字控制信息执行部件等四个功能部件之间交换信息。 本发明 将 内部 接口划分为实时 接口
与非实时 接口。 The internal interface of the digital control system is used for digital
Information is exchanged between four functional components such as a control information generating unit, a digital control information distributing unit, a digital control information transmitting unit, and a digital control information executing unit. The invention divides the internal interface into a real-time interface
Interface with non-real time.
实时 接口 包括联动 接口 与I/O接口。I/O接口用于向I/O装置中的 开关 发送
开关指令,属于常规技术 。 The real-time interface includes a linkage interface and an I/O interface. The I/O interface is used to send to the switch in the I/O device
Switching instructions are a common technique.
本 发明 将实时 接口称之为 联动接口,用于向伺服驱动装置发送联动命令。 The present invention refers to a real-time interface as a linkage interface for transmitting a linkage command to a servo drive.
在G代码程序中,实时接口极为复杂,没有可重构性,只能耗费大量计算资源配置不同的现场总线。这种状况导致中国国家标准'GB/T 18759.
2-2006•机械电气设备•开放式数控系统•第2部分 体系结构'
设置了5.6款,要求支持各类现场总线(例如CAN、Profibus、Sercos等)。
In the G code program, the real-time interface is extremely complex, has no reconfigurability, and can only allocate a large amount of computing resources to configure different fieldbuses. This situation led to the Chinese national standard 'GB/T 18759.
2-2006•Mechanical and electrical equipment • Open CNC system • Part 2 Architecture'
5.6 models have been set up to support various fieldbuses (eg CAN, Profibus, Sercos, etc.).
事实上,现场总线的国际标准已有12种之多,厂商的企业标准更多。不幸的是,多标准就意味着没有标准。
In fact, there are 12 international standards for fieldbus, and manufacturers have more enterprise standards. Unfortunately, multiple standards mean no standards.
在基于IEEE定义的现有开放式数控系统中, 现场总线采用周期通信方式 向伺服驱动装置实时
同步传输插补产生的坐标值增量,通信周期成为系统参数, 实时 同步机制、 数据表示的兼容性 成为传输的关键。 In the existing open CNC system based on IEEE definition, the field bus adopts the periodic communication mode to the servo drive in real time.
The coordinate value increment generated by the synchronous transmission interpolation, the communication cycle becomes the system parameter, and the real-time synchronization mechanism and the compatibility of the data representation become the key to the transmission.
在本发明中, 数字控制信息分配过程从数字控制信息的 实时控制过程中分离 后,轴联动 表
非实时地分配给伺服驱动装置,实时通信过程退化为按 照 控制节 律 ,向状态字指定的伺服驱动装置单向实时 发送 联动命令,实时控制过程得以高度简化,联动 接口
得以高度简化。 In the present invention, the digital control information distribution process is separated from the real-time control process of the digital control information, and the axis linkage table
Distributed to the servo drive device in real time, the real-time communication process is degenerated to control the rhythm according to the control rhythm, and the servo drive device specified by the status word transmits the linkage command in real time. The real-time control process is highly simplified, and the linkage interface is highly simplified.
It is highly simplified.
在发送端,联动 接口 类似按△ti(i = 1,…,
n)的节律不断地单向传输状态字的并行 接 口;在接收端,一个伺服驱动装置分别与 联动 接口 的一个数据位连接,类似一根中断控制线。At the transmitting end, the linkage interface similarly transmits the parallel interface of the status word in a one-way manner according to the rhythm of Δt i (i = 1,..., n); at the receiving end, one servo drive device is respectively connected with one data bit of the linkage interface , similar to an interrupt control line.
对于伺服驱动装置来说,联动命令只是同步脉冲,联动接口并非通信接口。因而,在本 发明中,不存
在实时通信过程。 For the servo drive, the linkage command is only a synchronization pulse, and the linkage interface is not a communication interface. Therefore, in the present invention, there is no
In the real-time communication process.
3 )、非实时 接口 3), non-real time interface
非实时 接口用于在辅助过程 向伺服驱动装置非实时地分配轴联动 表 。 The non-real-time interface is used to distribute the axis linkage table to the servo drive in a non-real time in the auxiliary process.
重要的是,轴联动 表的 分配过程是非实时的
,不存在实时性问题因而无须实时同步机制,不存在周期通信因而通信周期不再是系统参数。 轴联动 表为标准文件,不存在另外制定通信协议的问题。 Importantly, the assignment process for the axis linkage table is non-real time.
There is no real-time problem and thus there is no need for real-time synchronization mechanism, there is no periodic communication and thus the communication cycle is no longer a system parameter. The axis linkage table is a standard file, and there is no problem of separately developing a communication protocol.
因此, 非实时 接口可以是任何
标准串行接口,包括现场总线、RS232与RS485接口、USB接口、移动存储器、无线接口等。 Therefore, the non-real time interface can be any
Standard serial interface, including fieldbus, RS232 and RS485 interfaces, USB interface, mobile memory, wireless interface, etc.
六、编程接口 Six, programming interface
所谓 编程接口指的是 不同 数控系统之间交换加工程序时,加工程序之间的程序接口。 The so-called programming interface refers to the program interface between the machining programs when exchanging machining programs between different CNC systems.
在基于IEEE定义的开放式现有数控系统中,采用G代码标准作为数控加工程序 的 编程 接口 。 In the open-ended existing CNC system based on IEEE definition, the G code standard is adopted as the programming interface of the NC machining program.
与现有G代码的数控加工程序不同,DRC数控程序的特征在于: Unlike the NC machining program of the existing G code, the DRC NC program is characterized by:
1) 、G代码程序面向对象,DRC数控程序面向控制流程 1), G code program object-oriented, DRC NC program oriented control flow
在基于IEEE定义的现有开放式数控系统中,采用G代码标准作为数控加工程序的编程接口。上世纪50年代纸带作为输入的基本物理介质时,为规范在纸带上表示字符,制定了纸带穿孔的编码标准,即G代码标准。
In the existing open CNC system based on IEEE definition, the G code standard is adopted as the programming interface of the numerical control machining program. When the paper tape was used as the basic physical medium for input in the 1950s, the code standard for the paper tape perforation, that is, the G code standard, was established for the specification of characters on the paper tape.
G
代码程序是面向对象的。在G代码程序中,用不同的插补指令来描述一条刀路曲线中的不同曲线。对于不同的曲线又必须使用不同的插补迭代算法来实现不同的插补指令,曲线的实时加工过程被插补迭代算法实时化,从而导致插补迭代算法成为面向对象的封闭的实时控制算法。 G
The code program is object oriented. In the G code program, different interpolation commands are used to describe different curves in a tool path curve. For different curves, different interpolation iteration algorithms must be used to implement different interpolation instructions. The real-time processing of the curve is real-time by the interpolation iterative algorithm, which results in the interpolation iterative algorithm becoming an object-oriented closed real-time control algorithm.
在DRC数控程序中, 轨迹指令 面向刀路曲线的加工过程。DRC数控程序是面向控制流程的。 In the DRC NC program, the path command is oriented to the machining process of the tool path curve. The DRC NC program is oriented to the control process.
2 )、控制信息的标准化 2), standardization of control information
在插补迭代算法中,每个坐标轴必须具有相同的逻辑 属性
。一旦坐标坐标轴的逻辑属性不同,例如,进给当量(纳米、微米等)不同、数据的字节数不同等,数控系统的功能与结构都要发生相应的变化,从实时控制过程与实时通信过程两方面制约了系统的开放性与可重构性。 In the interpolation iteration algorithm, each axis must have the same logical attribute
. Once the logical attributes of the coordinate axes are different, for example, the feed equivalents (nano, micro, etc.) are different, the number of bytes of data is different, etc., the functions and structures of the numerical control system must be changed accordingly, from real-time control process and real-time communication. The two aspects of the process restrict the openness and reconfigurability of the system.
G
代码标准是信息技术起步阶段的原始产物,受纸带的限制不可避免地存在信息量过少的缺陷。各个厂商因而对G代码都进行了基本语义之外的扩张,导致G代码程序与相应硬件的依赖,数控加工程序在不同的数控系统之间不具有互换性,造成各种数控系统互不兼容,阻碍控制信息的交换与共享,不具备人机界面的一致性,从编程接口方面制约了数字控制系统的开放性与可重构性。 G
The code standard is the original product of the initial stage of information technology. Due to the limitation of the paper tape, there is inevitably a defect that the amount of information is too small. Therefore, each manufacturer has extended the basic semantics of the G code, resulting in the dependence of the G code program and the corresponding hardware. The CNC machining program is not interchangeable between different CNC systems, resulting in incompatibility between various CNC systems. It hinders the exchange and sharing of control information, does not have the consistency of human-machine interface, and restricts the openness and reconfigurability of digital control system from the aspect of programming interface.
轨迹指令 的轴联动表与随动表 携带 加工刀路曲线所需要的全
部数字控制信息,由数字控制信息生成部件非实时地制造出来,允许每个坐标轴具有不同的逻辑 属性 。 The axis linkage table and the follower table of the path command carry all the tools needed to process the tool path curve.
The digital control information is manufactured non-real-time by the digital control information generating component, allowing each coordinate axis to have different logical attributes.
DRC
数控程序、轴联动表、随动表等都以标准化文件的形态在系统中进行传送,也以文件的形态在不同的数控系统之间进行传送。这些文件符合文件规范,采用诸如FAT16、FAT32等标准文件系统。标准化文件成为数字控制信息的载体,与硬件平台无关,与操作系统等软件平台无关,具有广泛的平台无关性,实现了数字控制信息的开放性。标准化文件取代G代码程序,成为一种易于标准化的编程接口,有利于控制信息的标准化。 DRC
The NC program, the axis linkage table, the follower table, etc. are transmitted in the system in the form of standardized files, and are also transferred between different CNC systems in the form of files. These files conform to the file specification and use standard file systems such as FAT16 and FAT32. The standardized file becomes the carrier of digital control information, has nothing to do with the hardware platform, has nothing to do with the software platform such as the operating system, has extensive platform independence, and realizes the openness of digital control information. The standardized file replaces the G code program and becomes an easy-to-standardized programming interface that facilitates the standardization of control information.
七、 刀路曲线的 实时 控制 7. Real-time control of the tool path curve
轨迹指令 的 执行过程涉及数字控制信息发送部件 与
伺服驱动装置。为简单起见,数字控制信息发送部件简称为 实时 控制模块,包括联动坐标轴设 置 模块、联动命令设 置 模块、节律控制模块、终点控制模块。 The execution of the trajectory instruction involves digital control information transmitting components and
Servo drive unit. For the sake of simplicity, the digital control information transmitting component is simply referred to as a real-time control module, including a linkage axis setting module, a linkage command setting module, a rhythm control module, and an endpoint control module.
1 、 实时 控制模块发送联动命令 1. The real-time control module sends a linkage command.
T 指针:用于读取随动表中的 △ ti (i = 1,…, n)。T pointer: Used to read Δ t i (i = 1,..., n) in the follower table.
L 指针:用于读取轴联动表中的坐标值分量。 L pointer: Used to read the coordinate value component in the axis linkage table.
执行轨迹指令时,轨迹指令执行模块设置运行标志,启动 实时 控制模块。 When the trajectory instruction is executed, the trajectory instruction execution module sets the operation flag to start the real-time control module.
实时 控制模块 按照
控制节律主导着轨迹指令的执行过程,坐标轴联动的实时控制过程转化为下述过程: Real-time control module
The control rhythm dominates the execution of the trajectory command, and the real-time control process of the coordinate axis linkage is transformed into the following process:
步骤1、联动坐标轴设 置 步骤:根据轨迹指令的顺序码,联动坐标轴设 置
模块将随动表的首地址写入T指针,从随动表中读取状态字并写入状态字寄存器,指定联动的坐标轴; Step 1, linkage axis setting Step: According to the sequence code of the track command, the linkage axis setting
The module writes the first address of the follower table to the T pointer, reads the status word from the follower table and writes it to the status word register, specifying the coordinate axis of the linkage;
步骤2、联动命令设 置 步骤:根据T指针,联动命令设 置 模块读取随动表中的 △
ti (i = 1,…, n)并写入T分割定时器;Step 2: linkage command setting step: according to the T pointer, the linkage command setting module reads Δ t i (i = 1,..., n) in the follow-up table and writes to the T-split timer;
步骤3、节律控制步骤:T分割定时器中的定时时间到,节律控制模块启动
脉冲发生器输出一个脉冲,通过联动接口 向 状态字寄存器指定的 伺服驱动装置发送联动命令; Step 3. Rhythm control step: the timing time in the T split timer is up, the rhythm control module starts
The pulse generator outputs a pulse, and sends a linkage command to the servo drive device specified by the status word register through the linkage interface;
步骤4、终点控制步骤:终点控制模块控制轨迹指令的终点,如果T指针等于随动表的末地址,即到达轨迹指令的终点,关闭 运行标志 ;否则,T指针指向下一个 △
ti ,重复步骤2至步骤4;Step 4: End point control step: the end point control module controls the end point of the track command. If the T pointer is equal to the last address of the follower table, that is, the end point of the track command is reached, the running flag is turned off; otherwise, the T pointer points to the next Δ t i , repeating Step 2 to step 4;
轨迹指令执行模块查询 实时 控制模块 的
运行标志,如果到达轨迹指令的终点,则执行下一条运动指令。 Trajectory instruction execution module query real-time control module
The run flag, if the end of the track command is reached, the next motion command is executed.
2 、伺服驱动装置控制坐标轴进给 2, servo drive control axis feed
伺服驱动装置接收轴联动表后,将执行标志置'1';根据轨迹指令的轴联动表的顺序码,将轴联动表的首地址写入L指针;根据轴联动表文件中的特征表,设置坐标轴的逻辑属性。
After the servo drive device receives the axis linkage table, the execution flag is set to '1'; according to the sequence code of the axis linkage table of the track command, the first address of the axis linkage table is written into the L pointer; according to the feature table in the axis linkage table file, Set the logical properties of the axes.
伺服驱动装置接收联动命令后,跟随联动命令,轴联动表控制模块根据L指针从轴联动表中读取坐标值增量,写入位置环,驱动坐标轴进给产生合成位移;L指针加1,直至L指针等于轴联动表的末地址,将执行标志置'0',准备执行下一条轨迹指令的轴联动表。
After receiving the linkage command, the servo drive device follows the linkage command, and the axis linkage table control module reads the coordinate value increment from the axis linkage table according to the L pointer, writes the position loop, and drives the coordinate axis feed to generate a synthetic displacement; the L pointer adds 1 Until the L pointer is equal to the end address of the axis linkage table, set the execution flag to '0' to prepare the axis linkage table for the next track command.
这样一来,所谓刀路曲线的实时控制过程,就是按照控制节律,控制被 状态字指定的
伺服驱动装置从轴联动表中读取坐标值增量并写入其位置环的过程。 实时控制模块
产生联动命令;跟随联动命令,伺服驱动装置不断地驱动坐标轴进给产生合成位移。如此周而复始,直至T指针到达随动表的末地址,即到达所述轨迹指令的终点。 In this way, the real-time control process of the so-called tool path is to control the specified by the status word according to the control rhythm.
The process by which the servo drive reads the coordinate value increment from the axis linkage table and writes it to its position loop. Real-time control module
A linkage command is generated; following the linkage command, the servo drive continuously drives the coordinate axis feed to generate a composite displacement. This is repeated until the T pointer reaches the end address of the slave table, that is, the end of the track command is reached.
例如,对于X、y、Z、A、B等5轴联动,状态字为'11111000',其实时控制过程
就是,实时控制模块 不断地将随动表中的控制节律 △ t i (i = 1,…,
n)写入T分割定时器,产生联动命令并通过联动接口向X、y、Z、A、B等伺服驱动装置发送联动命令; X、y、Z、A、B等伺服驱动装置则跟随联动命令, 各自的
轴联动表控制模块分别 从各自的 轴联动表中不断地同步读取 △ Xi 、 △ yi 、 △ Z
i 、 △ A i 、 △ B i
并写入位置环,驱动坐标轴进给产生合成位移。如此周复始,直至所述 刀路曲线的终点。For example, for 5-axis linkage of X, y, Z, A, B, etc., the status word is '11111000', and its real-time control process is that the real-time control module continuously controls the control rhythm Δ t i (i = 1) in the follow-up table. ,..., n) Write the T-split timer, generate a linkage command and send a linkage command to the servo drive devices such as X, y, Z, A, B through the linkage interface; servo drives such as X, y, Z, A, B, etc. Then, following the linkage command, the respective axis linkage table control modules continuously read Δ X i , Δ y i , Δ Z i , Δ A i , Δ B i from the respective axis linkage tables and write them into the position loop. The drive axis feed produces a resultant displacement. This is repeated until the end of the path curve.
八、体系结构的系统实现技术方案 Eight, the system implementation of the technical solution
在基于IEEE定义的现有开放式数控系统中,实时操作系统的插补周期与现场总线的通信周期是两个系统时钟。跟随插补周期与通信周期的节拍,刀路曲线的 数字
控制信息不断地生成、分配、发送、执行,从而以 数字 控制信息的实时迭代与控制过程的 实时 迭代的方式周而复始。在这种体系结构中,刀路曲线的实时控制过程既包括
数字 控制信息的实时迭代与控制过程的实时迭代,又包括 实时 通信过程,涉及插补迭代算法的精度与速度、刀路曲线的几何特征、加工过程的 工艺 特征、
机械系统的运动学/动力学 特征、处理器的位数与运算速度等硬件平台、实时操作系统等软件平台等一系列复杂因素。
In the existing open CNC system based on IEEE definition, the interpolation cycle of the real-time operating system and the communication cycle of the field bus are two system clocks. Following the cycle of the interpolation cycle and the communication cycle, the number of the toolpath curve
Control information is continuously generated, distributed, transmitted, and executed, so that the real-time iteration of the digital control information and the real-time iteration of the control process are repeated. In this architecture, the real-time control of the toolpath curve includes both
The real-time iteration of the digital control information and the real-time iteration of the control process, including the real-time communication process, involving the accuracy and speed of the interpolation iterative algorithm, the geometric features of the tool path curve, the process characteristics of the machining process,
A series of complex factors such as kinematics/kinetics of mechanical systems, hardware platforms such as processor bits and computing speed, and software platforms such as real-time operating systems.
本技术方案按照数字控制信息的生成、分配、发送、执行的控制流程配置控制资源,其中,生成过程与分配过程为非实时过程,发送过程与执行过程为实时过程。
The technical solution configures control resources according to a control flow of generating, distributing, transmitting, and executing digital control information, wherein the generating process and the assigning process are non-real-time processes, and the sending process and the executing process are real-time processes.
本技术方案将刀路曲线的实时控制过程简化为按照随动表中的控制节律 △ ti (i
= 1,…, n), 通过 联动 接口
向状态字指定的伺服驱动装置单向发送联动命令;伺服驱动装置则跟随联动命令,将所述轴联动表中的坐标值增量逐次写入位置环,驱动相应坐标轴联动产生合成位移。因而,数字控制信息执行过程解耦为联动信息执行过程与位置信息执行过程。The technical solution simplifies the real-time control process of the tool path curve into a one-way transmission linkage command to the servo drive device designated by the state word through the linkage interface according to the control rhythm Δ t i (i = 1,..., n) in the follow-up table. The servo drive device follows the linkage command, and sequentially writes the coordinate value increments in the axis linkage table to the position loop, and drives the corresponding coordinate axes to generate a combined displacement. Thus, the digital control information execution process is decoupled into a linked information execution process and a location information execution process.
本技术方案 以 随动表中的控制节律 △ ti (i = 1,…,
n)取代了插补周期,取消了实时 操作系统对实时控制过程的控制权。 本技术方案以最简单的单向发送的联动命令取代了极为复杂的实时通信,取消了现埸总线
对实时控制过程的控制权 。因而,上述技术方案彻底清除了 操作系统与 现埸总线对 实时控制过程的制约, 为可重构数字控制系统的系统实现技术指明了方向。The technical solution replaces the interpolation period with the control rhythm Δ t i (i = 1,..., n) in the follow-up table, and cancels the control right of the real-time operating system to the real-time control process. The technical solution replaces the extremely complicated real-time communication with the simplest one-way transmission of the linkage command, and cancels the control right of the current bus to the real-time control process. Therefore, the above technical solution completely eliminates the constraints of the operating system and the current bus on the real-time control process, and points out the direction for the system implementation technology of the reconfigurable digital control system.
图1 为
基于控制流程的加工过程模型图,其中实线表示实时过程,虚线表示非实时过程。为清楚起见,可在图1中增添伺服驱动装置中反馈信息的执行过程,如图2。 Figure 1 shows
A process model diagram based on a control flow, where the solid line represents the real-time process and the dashed line represents the non-real-time process. For the sake of clarity, the execution of the feedback information in the servo drive can be added to Figure 1, as shown in Figure 2.
与基于IEEE定义的现有开放式数控系统的加工数据模型对比,上述加工过程模型极为清楚地描述了开放式数控系统的体系结构,揭示了在不同的控制流程中合理配置控制资源的技术方案与关键技术。
Compared with the processing data model of the existing open CNC system based on IEEE definition, the above process model clearly describes the architecture of the open CNC system and reveals the technical solutions for rationally configuring control resources in different control processes. Key technology.
为了更清楚地说明本技术方案,并与基于IEEE定义的现有开放式数控系统的系统实现技术进行对比,举一个形象化的例子。
In order to more clearly illustrate the technical solution and compare it with the system implementation technology of the existing open CNC system defined by IEEE, a visual example is given.
一个乐队演奏交响乐,交响乐 曲 相当于刀路曲线,各种乐器相当于坐标轴,演员相当于伺服驱动装置,实时
操作系统则 相当于乐队指挥。 A band plays a symphony, a symphony is equivalent to a knife curve, a variety of instruments are equivalent to the axis, the actor is equivalent to a servo drive, real-time
The operating system is equivalent to the band conductor.
在基于IEEE定义的现有开放式数控系统中,在交响乐 曲 的演奏 过程
(刀路曲线的加工过程)中,演员们(伺服驱动装置)事先不知道演奏什么曲调的 交 响 乐曲 (刀路曲线),乐队指挥(实时 操作系统 )必须在演奏现场将 交 响
乐曲 按 等长的时间片( 插补周期 )分成若干曲段(实时插补计算出坐标值增量),并将每段曲子 通过某种 实时 方式 逐次告知每个
演员(与伺服驱动装置通过现埸总线进行 实时 通信), 每个 演员 逐次实时记录每段曲子进行 演奏。这种模式的极端复杂性是显而易见的。 In the existing open CNC system based on IEEE definition, in the performance of the symphony
(The machining process of the tool path curve), the actors (servo drive units) do not know in advance what tune of the tune music (knife curve), the band conductor (real-time operating system) must be harmonized at the performance site.
The music is divided into several segments according to the equal-length time slice (interpolation cycle) (real-time interpolation calculates the coordinate value increment), and each piece is told each time in a real-time manner.
The actor (real-time communication with the servo drive via the current bus), each actor records each piece of music in real time for performance. The extreme complexity of this model is obvious.
在本技术方案中,通过排练( 离散几何规划与离散运动规划 ), 交 响 乐曲
按其内在的旋律(随动表中的不 等长 节律 △ ti )划分为 若干曲段,并为每个 演员事先 分配 一个标记着 曲段顺序的 乐谱 (分配
轴联动表 ) ,乐队指挥( 实时 控制模 块 )在演奏现场只须按照随动表 中 的控制节 律△ ti (i = 1,…, n ),
用指挥棒( 通过 联动 接口 发送联动命 令 ) 告知每个 演员, 每个 演员则跟随指挥棒发出的命令翻阅自己的乐谱 ( 轴联动表 )进行
演奏。这种模式的高度简单性也是显而易见的。In this technical solution, through rehearsal (discrete geometric programming and discrete motion planning), the symphony is divided into several segments according to its inner melody (the unequal rhythm Δ t i in the follower table), and for each actor A score (the distribution axis linkage table) marked in the order of the segments is assigned in advance, and the band command (real-time control module) only needs to follow the control rhythm Δ t i (i = 1,..., n ) in the follow-up table. Each actor is told by a baton (a linkage command via a linkage interface), and each actor follows the command from the baton to flip through his score (axis linkage table) for performance. The high degree of simplicity of this model is also obvious.
1 、若干定义 1, a number of definitions
1 )、数字控制信息生成部件 1), digital control information generating part
数字控制信息生成部件 基于PC, 包括
状态指令生成模块、开关指令生成模块、轨迹指令生成模块、DRC数控程序生成模块。 Digital control information generation component based on PC, including
State command generation module, switch command generation module, track command generation module, DRC NC program generation module.
2 )、数控应用程序系统 2), CNC application system
数控应用程序系统包括DRC数控程序文件存储器、解释程序存储器、DRC数控程序运行模块。 The numerical control application system includes a DRC numerical control program file memory, an interpreter memory, and a DRC numerical control program running module.
DRC
数控程序运行模块包括运动指令取指模块、状态指令执行模块、开关指令执行模块、轨迹指令执行模块。 DRC
The NC program running module includes a motion instruction fetching module, a state instruction execution module, a switch instruction execution module, and a track instruction execution module.
运动指令取指模块用于将DRC数控程序的首地址写入运动指令指针并读取运动指令, 将
运动指令的功能字节写入运动指令寄存器,将下一条运动指令的地址写入运动指令指针;所述运动指令指针用于指定下一条运动指令的地址; The motion instruction fetch module is used to write the first address of the DRC NC program to the motion instruction pointer and read the motion instruction.
The function byte of the motion instruction is written into the motion instruction register, and the address of the next motion instruction is written into the motion instruction pointer; the motion instruction pointer is used to specify the address of the next motion instruction;
如果运动指令为状态指令,状态指令执行模块执行该状态指令的解释程序;如果运动指令为开关指令,开关指令执行模块执行该开关指令的解释程序;如果运动指令为轨迹指令,轨迹指令执行模块执行该轨迹指令的解释程序。
If the motion instruction is a status instruction, the status instruction execution module executes an interpretation program of the status instruction; if the motion instruction is a switch instruction, the switch instruction execution module executes an interpretation program of the switch instruction; if the motion instruction is a track instruction, the track instruction execution module executes The interpreter for this trace instruction.
3 )、数字控制信息分配部件 3), digital control information distribution unit
数字控制信息分配过程就是将联动表中的坐标值增量分配给相关伺服驱动装置,例如,将 △
Xi 、 △ yi 、 △ Zi 、 △ Ai 、 △
Bi 分配给X、y、Z、A、B等5个坐标轴的伺服驱动装置。The digital control information distribution process is to assign the coordinate value increments in the linkage table to the relevant servo drive device, for example, assign Δ X i , Δ y i , Δ Z i , Δ A i , Δ B i to X, y, Servo drive devices with five axes, Z, A, B, etc.
数字控制信息分配部件包括轴联动表文件存储器、轴联动表分配模块、串行接口。 The digital control information distribution unit includes an axis linkage table file memory, an axis linkage table allocation module, and a serial interface.
4 )、数字控制信息发送部件 4), digital control information transmission unit
数字控制信息发送部件 用于 按照 控制 节 律 向 状态字
指定的伺服驱动装置实时发送联动命令。为简便起见,数字控制信息发送部件改称为 实时 控制模块。 Digital control information transmitting unit for using the control law to the status word
The specified servo drive sends the linkage command in real time. For the sake of simplicity, the digital control information transmitting unit is referred to as a real-time control module.
实时 控制模块 涉及从 文件存储器读取 随动表中的 控制 节 律△ t i (i
= 1,…, n)与状态字。 随动表 是由 PC 的 操作系统遵循诸如FAT16、 FAT32文件系统规范写入文件存储 器
的标准文件。在本发明中,文件存储器配置了固化的 随动表 文件 分析模块,用于读取FAT表、FDT表、BPB表等相关的扇区地址和数据区的地址,从而 与 操作系统
无关。The real-time control module involves reading the control rhythm Δ t i (i = 1,..., n) and the status word from the file memory from the file memory. The follower table is a standard file that is written to the file memory by the operating system of the PC, such as the FAT16, FAT32 file system specification. In the present invention, the file memory is configured with a solidified follower file analysis module for reading the associated sector address and data area address of the FAT table, FDT table, BPB table, etc., so as not to be related to the operating system.
5 )、数字控制信息执行部件 5), digital control information execution unit
数字控制信息执行部件包括伺服驱动装置与I/O装置。作为常规技术,本发明不涉及用于控制I/O装置的控制流。
The digital control information execution unit includes a servo drive device and an I/O device. As a conventional technique, the present invention does not relate to a control flow for controlling an I/O device.
数字控制信息执行过程就是伺服驱动装置将坐标值增量写入位置环,驱动坐标轴进给。 The digital control information execution process is that the servo drive device writes the coordinate value increment to the position loop and drives the coordinate axis feed.
6 )、运动控制接口 6), motion control interface
运动控制接口 包括 非 实时 接口 、 联动接口; The motion control interface includes a non-real-time interface and a linkage interface;
所述 非 实时 接口 为各种标准串行 接口,例如
现场总线、RS232接口、RS485接口、USB接口、移动存储器、无线接口等。 The non-real time interface is a variety of standard serial interfaces, such as
Fieldbus, RS232 interface, RS485 interface, USB interface, mobile memory, wireless interface, etc.
所述联动接口,在发送端,类似按△ti(i = 1,…,
n)的节律不断地单向传输状态字的并行 接 口,包括状态字寄存器、T指针、T分割定时器、脉冲发生器;在接收端,一个伺服驱动装置分别与联动 接口
的一个数据位连接,类似一根中断控制线。The linkage interface, at the transmitting end, continuously unidirectionally transmits a parallel interface of the status word in a unidirectional manner according to the rhythm of Δt i (i = 1, ..., n), including a status word register, a T pointer, a T-split timer, and a pulse Generator; at the receiving end, a servo drive is connected to a data bit of the linkage interface, similar to an interrupt control line.
2 、体系结构 2, the architecture
图3为
一种可重构数控系统的体系结构示意图,图4至图6为各部件的功能模块图。包括PC系统1、数据流控制器2、 伺服驱动装置3、I/O装置4 、 串行接口 6
、分配接口7、联动接口 8 、 I/O 接口9 ;PC系统1 通过串行接口6与 数据流控制器 2 连接; 数据流控制器 2 通过分配接口7、联动接口 8
与伺服驱动装置3连接,通过I/O接口9与I/O装置4连接。 Figure 3 is
A schematic diagram of an architecture of a reconfigurable numerical control system, and FIG. 4 to FIG. 6 are functional block diagrams of various components. Including PC system 1, data stream controller 2, servo drive unit 3, I/O device 4, serial interface 6
, distribution interface 7, linkage interface 8, I / O interface 9; PC system 1 through the serial interface 6 and data flow controller 2; data flow controller 2 through the distribution interface 7, linkage interface 8
It is connected to the servo drive unit 3, and is connected to the I/O device 4 via the I/O interface 9.
本发明将数字控制信息分配部件、 实时 控制模 块
、数控应用程序系统整合在一起,成为一个独立的部件,称之为数据流控制器。 The invention provides a digital control information distribution component and a real-time control module
The CNC application system is integrated into a separate component called a data flow controller.
PC 系统1为 数字控制信息生成部件,通过串行接口6与 数据流控制器2 连接。 数据流控制器2
作为一个嵌入式系统, 包括微处理器21、 数字控制信息分配部件( 文件存储器23
、轴联动表分配模块24)、数控应用程序系统(解释程序存储器22、DRC数控程序运行模块25)、数字控制信息发送部件(实时控制模块26)与中断管理模块27,通过分配接口7和联动接口8与伺服驱动装置3连接,通过I/O接口9与I/O装
置4 连接,构成分体 式 的体系结构。 The PC system 1 is a digital control information generating unit that is connected to the data stream controller 2 via the serial interface 6. Data stream controller 2
As an embedded system, including microprocessor 21, digital control information distribution unit (file memory 23
, axis linkage table allocation module 24), numerical control application system (interpreter program memory 22, DRC numerical control program operation module 25), digital control information transmitting component (real-time control module 26) and interrupt management module 27, through the distribution interface 7 and linkage The interface 8 is connected to the servo drive unit 3, and is mounted on the I/O interface 9 and I/O.
Set 4 connections to form a split architecture.
PC 系统1
可通过网络接口、现场总线、RS232与RS485接口、移动存储器或无线接口等种种串行接口8 将 加工工件的DRC数控程序、轴 联动表、随动表 等文 件传送给
数据流控制器2。 PC system 1
The DRC NC program, the axis linkage table, the follower table, etc. of the workpiece can be transmitted to the serial interface 8 through a network interface, a field bus, an RS232 and RS485 interface, a mobile memory or a wireless interface.
Data stream controller 2.
在 PC 系统中生成DRC数控程序,
成为数控编程的开放式平台;PC系统生成刀路曲线的轴联动表与随动表,成为数控技术的开放式开发平台。 PC 系统还 可通过互联网传输加工工件的DRC数控程序、轴
联动表、随动表 等文 件 。 Generate a DRC NC program in the PC system,
It becomes an open platform for NC programming; the PC system generates the axis linkage table and the follower table of the tool path curve, and becomes an open development platform for numerical control technology. The PC system can also transfer DRC NC programs and axes for machining workpieces via the Internet.
Linked tables, follow-up tables, and other documents.
数据流控制器2作为一个嵌入式系统,仅用于 运行 DRC 数控程序与发送联动命令,无须配置任何 嵌入式
操作系统,功能与结构极为简单,可靠性高。 The data stream controller 2 acts as an embedded system and is only used to run the DRC NC program and send linkage commands without configuring any embedded
The operating system, function and structure are extremely simple and highly reliable.
数据流控制器2 可独立配置在数控设备中,并与 PC 系统
完全独立。一台PC可为多台数控设备服务,特别适用于集成 控制 由多台数控机床、数字化夹具、搬运机械手等组成的可重构生产线。 Data Flow Controller 2 can be independently configured in a CNC device and with a PC system
Completely independent. A PC can serve multiple CNC equipment, especially for integrated control. Reconfigurable production line consisting of multiple CNC machine tools, digital fixtures, handling robots, etc.
PC
系统1用于生成控制工件加工过程的DRC数控程序,包括状态指令生成模块11、开关指令生成模块12、轨迹指令生成模块13、DRC数控程序生成模块14;状态指令生成模块11用于生成控制辅助过程的状态指令;开关指令生成模块12用于生成控制
I/O 装置的开关指令; 状态指令生成模块11还用于生成重构指令,所述重构指令用于修改所述状态指令与所述开关指令的解释程序;
轨迹指令生成模块13用于生成控制伺服驱动装置完成刀路曲线走刀过程的轨迹指令;DRC数控程序生成模块14用于根据加工工艺将状态指令、开关指令、轨迹指令链接为DRC数控程序。 PC
The system 1 is used to generate a DRC numerical control program for controlling the workpiece machining process, including a state instruction generation module 11, a switch instruction generation module 12, a track instruction generation module 13, a DRC numerical control program generation module 14, and a state instruction generation module 11 for generating control assistance. State instruction of the process; switch instruction generation module 12 is used to generate control
a switch instruction of the I/O device; the state instruction generation module 11 is further configured to generate a reconstruction instruction, where the reconstruction instruction is used to modify the state instruction and the interpretation program of the switch instruction;
The trajectory command generating module 13 is configured to generate a trajectory command for controlling the servo drive device to complete the path curve pass process; the DRC NC program generating module 14 is configured to link the state command, the switch command, and the trajectory command to the DRC numerical control program according to the machining process.
轨迹指令生成模块13包括离散几何规划模块131与离散运动规划模块132。离散几何规划模块131用于生成存储有刀路曲线的L分割的联动表;所述L分割用于控制坐标轴联动产生合成位移;所述联动表区分为各个轴的轴联动表,所述轴联动表用于存储相关坐标轴的L分割分量,控制该坐标轴产生轴位移。离散运动规划模块132用于存储有刀路曲线的T分割与状态字的随动表;所述T分割用于控制所述轴位移之间的时间间隔;所述状态字用于指定联动的坐标轴。
The trajectory instruction generation module 13 includes a discrete geometry planning module 131 and a discrete motion planning module 132. The discrete geometric planning module 131 is configured to generate an L-segment linkage table storing a tool path curve; the L segmentation is used to control the coordinate axis linkage to generate a composite displacement; the linkage table is divided into an axis linkage table of each axis, and the axis is divided into The linkage table is used to store the L-segment component of the relevant coordinate axis, and the axis is controlled to generate the axis displacement. The discrete motion planning module 132 is configured to store a T-segment of the tool path curve and a follow-up table of the status word; the T-segment is used to control a time interval between the axis displacements; the status word is used to specify the coordinate of the linkage axis.
数据流控制器 2 包括微处理器21、解释程序存储器22、文件存储器23、轴联动表分配模块24、DRC
数控程序运行 模块25、实时控制模块26与中断管理模块27。 The data stream controller 2 includes a microprocessor 21, an interpreter memory 22, a file memory 23, an axis linkage table allocation module 24, and a DRC.
The NC program runs module 25, real-time control module 26 and interrupt management module 27.
解释程序存储器22用于存储上述状态 指令 、开关 指令 、轨迹指令的解释程序。 The interpreter memory 22 is used to store an interpreter of the above-described status command, switch command, and track command.
文件存储器23用于通过串行接口6接收并存储 DRC 数控程序、随动表、 轴联动表。 The file memory 23 is used to receive and store the DRC NC program, the follower table, and the axis linkage table through the serial interface 6.
轴联动表分配模块24 用于 通过分配接口7向伺服驱动装置3分配轴联动表。 The axis linkage table assignment module 24 is for distributing the axis linkage table to the servo drive unit 3 via the distribution interface 7.
DRC 数控程序运行 模块25 用于运行 DRC 数控程序, 执行 状态 指令 控制辅助过程
、执行开关指令通过I/O接口9控制I/O装置4、执行轨迹指令通过联动接口8控制伺服驱动装置3完成 刀路曲线的加工过程。
包括运动指令取指模块251、状态指令执行模块252、开关指令执行模块253、轨迹指令执行模块254;运动指令取指模块251用于将DRC数控程序中运动指令的地址写入运动指令指针并读取运动指令,
将 运动指令的功能字节写入运动指令寄存器;如果运动指令为状态指令,根据运动指令的地址表,状态指令执行模块252跳转至地址表所指定的入口地址, 用于
执行该状态指令的解释程序;如果运动指令为开关指令,根据开关指令的地址表,开关指令执行模块253跳转至所述地址表所指定的入口地址, 用于
执行该开关指令的解释程序;如果运动指令为轨迹指令,轨迹指令执行模块254 用于 执行该轨迹指令的解释程序。 DRC NC program operation Module 25 is used to run the DRC NC program, execute the status command, control the auxiliary process
The execution switch command controls the I/O device 4 through the I/O interface 9 and executes the trajectory command to control the servo drive device 3 to complete the machining process of the tool path curve through the linkage interface 8.
The motion instruction fetch module 251, the state command execution module 252, the switch instruction execution module 253, and the track instruction execution module 254 are used; the motion instruction fetch module 251 is configured to write the address of the motion instruction in the DRC NC program to the motion instruction pointer and read Take the motion instruction,
Writing a function byte of the motion instruction to the motion instruction register; if the motion instruction is a state instruction, according to the address table of the motion instruction, the state instruction execution module 252 jumps to the entry address specified by the address table,
Executing an interpreter of the status instruction; if the motion instruction is a switch instruction, the switch instruction execution module 253 jumps to an entry address specified by the address table according to an address table of the switch instruction,
The interpreter of the switch instruction is executed; if the motion instruction is a track instruction, the track instruction execution module 254 is configured to execute an interpreter of the track instruction.
实时控制模块26用于按照 随动表中 的控制节律 △ t i (i = 1,…,
n),通过联动接口 8 向伺服驱动装置3发送 联动命令 。包括联动坐标轴设 置 模块261、联动命令设 置
模块262、节律控制模块263、终点控制模块264。联动坐标轴设 置
模块261用于将随动表的地址写入T指针,从1随动表中读取状态字并写入状态字寄存器,指定联动的坐标轴;1联动命令设 置 模块262用于读取所述随动表中的 △
ti (i = 1,…, n)并写入T分割定时器;T分割定时器中的定时时间到,节律控制模块263启动
脉冲发生器输出一个脉冲,并通过联动接口8 向 状态字寄存器指定的
伺服驱动装置发送联动命令;所述终点控制模块264用于控制轨迹指令的终点,如果T指针等于所述随动表的末地址,则关闭运行标志;否则,T指针指向下一个控制节律 △
ti 。The real-time control module 26 is configured to transmit a linkage command to the servo drive device 3 via the linkage interface 8 in accordance with the control rhythm Δ t i (i = 1, . . . , n) in the follow-up table. The linkage coordinate axis setting module 261, the linkage command setting module 262, the rhythm control module 263, and the endpoint control module 264 are included. The linkage coordinate axis setting module 261 is configured to write the address of the follow-up table to the T pointer, read the status word from the 1 follow-up table and write the status word register, and specify the coordinate axis of the linkage; 1 linkage command setting module 262 is used for Reading Δ t i (i = 1,..., n) in the follow-up table and writing to the T-split timer; the timing time in the T-segment timer is up, the rhythm control module 263 starts the pulse generator to output a pulse And transmitting a linkage command to the servo drive device specified by the status word register through the linkage interface 8; the end point control module 264 is configured to control the end point of the track instruction, and if the T pointer is equal to the last address of the follow-up table, the operation flag is turned off Otherwise, the T pointer points to the next control rhythm Δ t i .
中断管理模块27 用于处理来自 伺服驱动装置3的实时反馈信息。 The interrupt management module 27 is for processing real-time feedback information from the servo drive unit 3.
伺服驱动装置3设有轴联动表 初始化 模块31与轴联动表控制模块32。轴联动表 初始化
模块用于设置执行标志,并根据轨迹指令的顺序码,将轴联动表的首地址写入L指针;跟随所述联动命令,轴联动表控制模块根据L指针从轴联动表中读取该轴的坐标值增量并写入位置环,驱动坐标轴进给产生合成位移,直至L指针等于所述轴联动表的末地址,关闭执行标志。 The servo drive unit 3 is provided with an axis linkage table initialization module 31 and an axis linkage table control module 32. Axis linkage table initialization
The module is configured to set an execution flag, and write the first address of the axis linkage table to the L pointer according to the sequence code of the track instruction; following the linkage command, the axis linkage table control module reads the axis from the axis linkage table according to the L pointer. The coordinate value increment is written to the position loop, and the drive coordinate axis feed generates a composite displacement until the L pointer is equal to the last address of the axis linkage table, and the execution flag is turned off.
轴联动表文件还包括特征表;所述特征表用于标识该坐标轴的逻辑属性;逻辑属性包括进给当量、数据的字节数、电子齿轮传动比。在基于IEEE定义的现有开放式数控系统中,插补迭代算法要求联动的坐标轴必须具有相同的逻辑
属性
。一旦坐标坐标轴的逻辑属性不同,例如,进给当量(纳米、微米等)不同、数据的字节数不同等,数控系统的功能与结构都要发生相应的变化,从实时控制过程与实时通信过程两方面制约了系统的开放性与可重构性。因而,这一技术特征克服了上述缺陷。
The axis linkage table file further includes a feature table; the feature table is used to identify a logical attribute of the coordinate axis; the logic attribute includes a feed equivalent, a number of bytes of data, and an electronic gear ratio. In the existing open CNC system based on IEEE definition, the interpolation iterative algorithm requires that the linked axes must have the same logic.
Attributes
. Once the logical attributes of the coordinate axes are different, for example, the feed equivalents (nano, micro, etc.) are different, the number of bytes of data is different, etc., the functions and structures of the numerical control system must be changed accordingly, from real-time control process and real-time communication. The two aspects of the process restrict the openness and reconfigurability of the system. Thus, this technical feature overcomes the above drawbacks.
分配接口7也是一个串行接口 ,仅用于在非实时过程中向 伺服驱动装置3 传输
轴联动表,因而,其具体结构不受任任限制,现场总线、RS232接口、RS485接口、USB接口或无线接口等均可以 采用 。这就意味着,不必为分配接口7
制定标准,换言之, 分配接口 7 已经标准化了。 The distribution interface 7 is also a serial interface and is only used for transmission to the servo drive 3 in a non-real time process.
The axis linkage table, therefore, its specific structure is not limited by any means, field bus, RS232 interface, RS485 interface, USB interface or wireless interface can be used. This means that there is no need to assign interface 7
The standard is set, in other words, the distribution interface 7 has been standardized.
综上所述, 在 本技术方案中 , 可重构数控系统 的 系统实现技术方案具有下述技术特征: In summary, in the technical solution, the system implementation technical solution of the reconfigurable numerical control system has the following technical features:
控制流程划分为数字控制信息生成过程、数字控制信息分配过程、数字控制信息发送过程与数字控制信息执行过程等四个子过程并配置相应的控制资源;
The control flow 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, and corresponding control resources are configured;
数字控制信息生成过程与数字控制信息分配过程 非实时化 ; The digital control information generation process and the digital control information distribution process are not real-time;
状态指令、开关指令、轨迹指令编写的DRC数控程序作为编程接口; The DRC numerical control program written by the state command, the switch command, and the track command is used as a programming interface;
轨迹指令只有一种格式,与刀路曲线中的曲线类型无关。 The track command has only one format, regardless of the type of curve in the tool path curve.
轨迹指令与 联动表
、随动表分离;联动表中的每个坐标轴的轴联动表作为独立的子文件,在辅助过程中通过非实时串行接口分配给伺服驱动装置并存储在其轴联动表存储器中;随动表
设置状态字,用于指定联动的坐标轴 ,状态字的字节数为用户参数 ; 轴联动表文件 设置 特征表,用于设置坐标轴的 逻辑 属性,从而将坐标 轴逻辑
属性的处理问题前移至伺服驱动装置; Track command and linkage table
Separating the follower table; the axis linkage table of each coordinate axis in the linkage table is used as an independent subfile, and is allocated to the servo drive device through the non-real time serial interface in the auxiliary process and stored in its axis linkage table memory; Moving table
Set the status word to specify the coordinate axis of the linkage. The number of bytes of the status word is the user parameter. The axis linkage table file sets the characteristic table, which is used to set the logic attribute of the coordinate axis, so that the coordinate axis logic
The processing of the attribute is moved forward to the servo drive;
所述文件符合文件规范,采用诸如FAT16、FAT32等标准文件系统。标准化文件成为数字控制信息的载体,与硬件平台无关,与操作系统等软件平台无关。
The file conforms to the file specification and uses standard file systems such as FAT16, FAT32. Standardized files become the carrier of digital control information, independent of the hardware platform, and independent of software platforms such as operating systems.
本技术方案将数字控制信息分配部件、 实时 控制模 块
、数控应用程序系统整合在一起,成为一个独立的部件,称之为数据流控制器。 The technical solution divides the digital control information distribution component and the real-time control module
The CNC application system is integrated into a separate component called a data flow controller.
在体系结构方面, PC 系统为 数字控制信息生成部件,通过串行接口与 数据流控制器 连接。
数据流控制器 作为一个嵌入式系统, 包括
数字控制信息分配部件、数控应用程序系统、数字控制信息发送部件,通过分配接口和联动接口与伺服驱动装置,通过I/O接口与I/O装 置 连接,构成分体 式
的体系结构。 In terms of architecture, the PC system is a digital control information generating component that is connected to the data flow controller through a serial interface.
Data flow controller as an embedded system, including
The digital control information distribution unit, the numerical control application system, and the digital control information transmitting unit are connected to the I/O device through the distribution interface and the linkage interface and the servo drive device to form a split type.
The architecture.
PC 系统 将 刀路曲线 的实时控制过程的控制权移交给 数据流控制器 。 数据流控制器中的
实时控制模块 按照随动表 中的控制节 律△ t i (i = 1,…, n),通过联动接口 向状态字指定的伺服驱动装置发送 联动命令 ;
伺服驱动装置则跟随联动命令,将所述轴联动表中的坐标值增量逐次写入位置环,驱动相应坐标轴联动产生合成位移。The PC system transfers control of the real-time control process of the toolpath curve to the data flow controller. The real-time control module in the data flow controller sends a linkage command to the servo drive specified by the status word through the linkage interface according to the control rhythm Δ t i (i = 1,..., n) in the follow-up table; the servo drive device follows The linkage command sequentially writes the coordinate value increments in the axis linkage table to the position loop successively, and drives the corresponding coordinate axes to generate a combined displacement.
上述技术特征最大程度地简化了刀路曲线的实时控制方法,导致可重构计算机数字控制系统 的体系结构与
实时控制方法的重大变革,并以极为简单的技术手段解决了可重构计算机数字控制系统 的 重构问题。 The above technical features greatly simplify the real-time control method of the tool path curve, resulting in the architecture of the reconfigurable computer digital control system and
A major change in real-time control methods and the refactoring of reconfigurable computer digital control systems with extremely simple technical means.
基于上述可重构数控系统的数字控制方法,包括下述步骤: The digital control method based on the above reconfigurable numerical control system includes the following steps:
步骤1、DRC 数控 程序生成步骤: 用于PC系统1 生成DRC 数控 程序, 包括下述
步骤: Step 1. DRC NC program generation steps: For PC system 1 to generate DRC NC program, including the following
Steps:
步骤101、 轨迹指令生成 步骤:
轨迹指令生成模块生成控制伺服驱动装置完成刀路曲线走刀过程的轨迹指令,包括离散几何规划 步骤 与离散运动规划 步骤 ;离散几何规划 步骤
用于离散几何规划模块生成存储有刀路曲线的L分割的联动表;所述L分割用于控制坐标轴联动产生合成位移;所述联动表区分为各个轴的轴联动表,用于存储各个坐标轴的L分割分量,控制该坐标轴产生轴位移;离散运动规划
步骤 用于离散运动规划模块生成存储有刀路曲线的T分割与状态字的随动表;所述T分割用于控制所述轴位移之间的时间间隔;所述状态字用于指定联动的坐标轴。 Step 101: Track instruction generation Step:
The trajectory command generation module generates a trajectory command for controlling the servo drive device to complete the path curve pass process, including discrete geometric planning steps and discrete motion planning steps; discrete geometric planning steps
The discrete geometric planning module generates an L-segment linkage table storing a tool path curve; the L segmentation is used to control the coordinate axis linkage to generate a synthetic displacement; the linkage table is divided into an axis linkage table of each axis, and is used for storing each The L-segment component of the coordinate axis controls the axis to generate the axis displacement; discrete motion planning
The step is for the discrete motion planning module to generate a follow-up table of the T-segment and the status word storing the tool path curve; the T-segment is used to control the time interval between the axis displacements; the status word is used to specify the linkage Axis.
步骤102、 状态指令生成 步骤: 状态指令生成模块生成控制辅助过程的状态指令。 Step 102: State Instruction Generation Step: The state instruction generation module generates a state instruction that controls the auxiliary process.
步骤103、 开关指令生成 步骤: 开关指令生成模块生成控制 I/O 装置的开关指令。 Step 103: Switch instruction generation Step: The switch instruction generation module generates a switch instruction for controlling the I/O device.
步骤104、 DRC 数控程序生成 步骤: DRC
数控程序生成模块根据加工工艺将所述状态指令、所述开关指令、所述轨迹指令链接为DRC数控程序。 Step 104, DRC NC program generation Step: DRC
The numerical control program generating module links the state command, the switch command, and the track command to a DRC numerical control program according to a machining process.
步骤2、 轴联动表分配 步骤: 数据流控制器 2 中的 轴联动表分配
模块通过分配接口7向伺服驱动装置3分配 所述 轴联动表。 Step 2, Axis linkage table assignment Step: Axis linkage table assignment in data flow controller 2
The module assigns the axis linkage table to the servo drive unit 3 via the distribution interface 7.
步骤3、DRC 数控程序运行 步骤: 数据流控制器 2 中的DRC 数控程序运行 模块运行 所述
DRC 数控程序 , 包括下述 步骤: Step 3. DRC NC program operation Step: DRC NC program running in data flow controller 2 Module operation
The DRC NC program includes the following steps:
运动指令取指步骤:运动指令取指模块将DRC数控程序的首地址写入运动指令指针并读取运动指令, 将
运动指令的功能字节写入运动指令寄存器,将下一条运动指令的地址写入运动指令指针;所述运动指令指针用于指定下一条运动指令的地址; Motion instruction fetching step: the motion instruction fetching module writes the first address of the DRC NC program to the motion instruction pointer and reads the motion instruction,
The function byte of the motion instruction is written into the motion instruction register, and the address of the next motion instruction is written into the motion instruction pointer; the motion instruction pointer is used to specify the address of the next motion instruction;
状态指令执行步骤:如果运动指令取指步骤中的运动指令为状态指令,状态指令执行模块则根据所述状态指令的地址表,跳转至所述地址表所指定的入口地址,执行该状态指令的解释程序;
State instruction execution step: if the motion instruction in the motion instruction fetching step is a state instruction, the state instruction execution module jumps to the entry address specified by the address table according to the address table of the state instruction, and executes the state instruction Interpreter
开关指令执行步骤:如果运动指令取指步骤中的运动指令为开关指令,开关指令执行模块则根据所述开关指令的地址码指定的地址表,跳转至所述地址表所指定的入口地址,执行该开关指令的解释程序;
The switch instruction execution step: if the motion instruction in the motion instruction fetching step is a switch instruction, the switch instruction execution module jumps to an entry address specified by the address table according to an address table specified by the address code of the switch instruction, Execute the interpreter of the switch instruction;
轨迹指令执行步骤:如果运动指令取指步骤中的运动指令为轨迹指令,轨迹指令执行模块则执行该轨迹指令的解释程序。
The trajectory instruction execution step: if the motion instruction in the motion instruction fetching step is a trajectory instruction, the trajectory instruction execution module executes an interpreter of the trajectory instruction.
PC 系统1通过 串行接口 将 加工工件的DRC数控程序、轴 联动表、随动表 等文 件传送给
数据流控制器2。数据流控制器首先向伺服驱动装置3分配轴联动表,然后运行DRC数控程序。其中运行轨迹指令时, 轨迹指令执行模块
设置运行标志,启动实时控制模块26,将 刀路曲线的 实时控制过程的控制权移交给实时控制模块。 The PC system 1 transmits the DRC NC program, the axis linkage table, the follower table, etc. of the workpiece to the workpiece through the serial interface.
Data stream controller 2. The data flow controller first assigns an axis linkage table to the servo drive unit 3 and then runs the DRC NC program. When the trajectory command is run, the trajectory instruction execution module
The running flag is set, and the real-time control module 26 is activated to transfer the control of the real-time control process of the tool path to the real-time control module.
实时控制模块26 按照随动表 中的 控制节律△ t i (i = 1,…,
n),通过联动接口8 向伺服驱动装 置3 发送 联动命令 ;各个
伺服驱动装置3则跟随联动命令,将各自轴联动表中的坐标值增量逐次写入位置环,驱动各自的坐标轴进给,产生合成位移。如此周而复始,直至T指针等于随动表的末地址,即到达该轨迹指令的终点,关闭运行标志,DRC
数控程序运行 模块执行下一条运动指令。The real-time control module 26 sends a linkage command to the servo drive device 3 through the linkage interface 8 according to the control rhythm Δ t i (i = 1,..., n) in the follow-up table; each servo drive device 3 follows the linkage command, and each of them The coordinate value increments in the axis linkage table are successively written into the position loop, driving the respective coordinate axes to feed, and the resultant displacement is generated. So repeatedly, until the T pointer is equal to the last address of the slave table, that is, the end of the track command is reached, the running flag is turned off, and the DRC NC program running module executes the next motion command.
轨迹指令执行模 块254将控制权移交给实时控制模块26之后,处于查询状态,查询实时控制模块26的
运行状态 。如果 运行标志 关闭,则执行下一条运动指令,直至执行停机指令,结束工件的加工过程。 After the trajectory instruction execution module 254 hands over the control to the real-time control module 26, it is in the query state, and the real-time control module 26 is queried.
Operating status . If the run flag is off, the next motion command is executed until the stop command is executed, ending the machining of the workpiece.
具体地, 刀路曲线的 实时控制过程包括下述步骤: Specifically, the real-time control process of the tool path includes the following steps:
步骤a、联动坐标轴设 置 步骤:根据所述轨迹指令的顺序码,联动坐标轴设 置
模块261将随动表的首地址写入T指针,从随动表中读取状态字并写入状态字寄存器,指定联动的坐标轴; Step a, linkage coordinate axis setting Step: According to the sequence code of the track instruction, the linkage axis setting
The module 261 writes the first address of the follower table to the T pointer, reads the status word from the follower table and writes the status word register, and specifies the coordinate axis of the linkage;
步骤b、联动命令设 置 步骤:根据T指针,联动命令设 置 模块262读取随动表中的 △
ti (i = 1,…, n)并写入T分割定时器;Step b, linkage command setting step: according to the T pointer, the linkage command setting module 262 reads Δ t i (i = 1, ..., n) in the follow-up table and writes to the T-split timer;
步骤c、节律控制步骤:T分割定时器中的定时时间到,节律控制模块263启动
脉冲发生器输出一个脉冲,通过联动接口8 向 状态字寄存器指定的 伺服驱动装置3发送联动命令; Step c, rhythm control step: the timing time in the T split timer is up, the rhythm control module 263 starts
The pulse generator outputs a pulse, and sends a linkage command to the servo drive device 3 specified by the status word register through the linkage interface 8;
步骤d、联动表控制步骤:跟随所述联动命令,伺服驱动装置3的轴联动表控制模块31根据L指针从其轴联动表中读取坐标值增量,写入位置环,驱动坐标轴进给产生合成位移;
Step d, linkage table control step: following the linkage command, the axis linkage table control module 31 of the servo drive device 3 reads the coordinate value increment from the axis linkage table according to the L pointer, writes the position loop, and drives the coordinate axis into Give a synthetic displacement;
步骤e、终点控制步骤:终点控制模块264控制轨迹指令的终点,如果T指针等于随动表的末地址,即到达所述轨迹指令的终点,关闭运行标志;否则,T指针指向下一个 △
ti ,重复步骤b至步骤e。Step e: End point control step: the end point control module 264 controls the end point of the trajectory command. If the T pointer is equal to the last address of the follower table, that is, the end point of the trajectory command is reached, the running flag is turned off; otherwise, the T pointer points to the next Δt i , repeat steps b through e.
对于机械系统的重构,首先必须对机械系统进行运动规划。 For the reconstruction of mechanical systems, motion planning must first be performed on the mechanical system.
CAD/CAM/CAE
技术的广泛应用,特别是CAE技术用计算机辅助求解复杂机械系统的多维运动关系、刚度、稳定性、动力学响应、热变形等问题的分析计算以及结构性能的优化设计,已成为机械系统的运动规划和结构优化中必不可少的数值计算工具。因此,在
本实施 方 式 中,机械系统的运动规划视为常规CAE技术。 CAD/CAM/CAE
The wide application of technology, especially the CAE technology computer-aided solution to the multi-dimensional motion relationship, stiffness, stability, dynamic response, thermal deformation and other problems of complex mechanical systems, and the optimization of structural performance, has become the movement of mechanical systems. A numerical calculation tool essential for planning and structural optimization. Thus, in
In this embodiment, the motion planning of the mechanical system is considered a conventional CAE technique.
本 实施 方 式 可重构数控系统的重构涉及以下问题。 The reconstruction of the reconfigurable numerical control system of the present embodiment involves the following problems.
1 )、离散坐标系 的 重构问题 1), reconstruction problem of discrete coordinate system
机械系统重构后,CAE对机械系统进行运动规划和结构优化,得到机械系统的运动关系。对重构后的机械系统,必须重建离散坐标系。
After the mechanical system is reconstructed, CAE performs motion planning and structural optimization on the mechanical system to obtain the motion relationship of the mechanical system. For the reconstructed mechanical system, the discrete coordinate system must be reconstructed.
2 )、结构常数数据库 的 重构问题 2), the reconstruction problem of the structure constant database
机械系统重构后,机械属性发生变化。根据 机 械系 统 重构后的机械属性, 重构
结构常数数据库;所述机械属性包括坐标轴的线位移误差、角位移误差、反向间隙等精细结构常数,以及坐标轴之间的不平行度、不垂直度等坐标系参数。 After the mechanical system is reconfigured, the mechanical properties change. Reconstruction based on mechanical properties reconstructed from the mechanical system
The structure constant database; the mechanical attributes include the linear structure error of the coordinate axis, the angular displacement error, the backlash and other fine structure constants, and the coordinate system parameters such as non-parallelism and non-perpendicularity between the coordinate axes.
3 )、状态指令与开关指令 的 重构问题 3), state command and switch instruction reconstruction problem
所述重构指令用于状态指令与开关指令的重构。 The reconstruction instructions are used for reconstruction of state instructions and switch instructions.
在 本实施 方 式 中,状态指令与开关指令的格式完全一致。在 本实施 方 式
中,对于状态指令与开关指令的解释程序,特别设置了地址表,用于存储状态指令与开关指令的解释程序的入口地址。所述地址表对用户开放。 In this embodiment, the state command and the switch command have the same format. In this embodiment
In the explanation program of the status instruction and the switch instruction, an address table for storing the entry address of the interpreter of the status instruction and the switch instruction is specifically set. The address table is open to the user.
状态指令涉及辅助功能操作,开关指令涉及I/O装置中的开关量控制,二者都与 机 械系 统
的特定结构密不可分,属于个性化功能。机械系统重构后,状态指令与开关指令往往需要重构。用户可自行定义其辅助字节中的参数值并通过解释程序的重写自行定义其功能。 The status command involves an auxiliary function operation, and the switch instruction relates to the switch quantity control in the I/O device, both of which are related to the mechanical system.
The specific structure is inseparable and belongs to the personalization function. After the mechanical system is reconfigured, state commands and switching instructions often need to be reconstructed. The user can define the parameter values in their auxiliary bytes and define their functions by rewriting the interpreter.
为此,在 本实施 方 式
中,设置了重写解释程序的状态指令。这种重写解释程序的状态指令称之为重构指令。 To this end, in this embodiment
In the middle, the status command to rewrite the interpreter is set. This state instruction that rewrites the interpreter is called a refactoring instruction.
对于重构指令来说,解释程序的地址包括源地址与目标地址,其地址空间也不同,或16位、32位、64位等。对于不同的地址空间,重构指令携带不同性质不同个数的参数,例如,对于32位地址空间,重构指令携带3种不同性质的5个参数:
2个源地址参数, 2个目标地址参数,1个字节数参数。
For the refactoring instruction, the address of the interpreter includes the source address and the destination address, and the address space is also different, or 16 bits, 32 bits, 64 bits, and the like. For different address spaces, the reconstruction instructions carry different parameters of different nature. For example, for a 32-bit address space, the reconstruction instruction carries five parameters of three different properties:
2 source address parameters, 2 target address parameters, 1 byte number parameter.
用户从所述地址表中读取所述解释程序的入口地址作为目标地址参数,以自己编写的解释程序的起始地址作为源地址参数,以自己编写的解释程序的容量作为字节数参数,运用重构指令完成状态指令与开关指令的重构。
The user reads the entry address of the interpreter from the address table as a target address parameter, and uses the start address of the interpreter itself as the source address parameter, and the capacity of the interpreter itself written as the byte number parameter. The reconstruction instruction is used to reconstruct the state instruction and the switch instruction.
编写 状态指令与开关指令的解释程序是简单的常规技术。 Writing an interpreter for state and switch instructions is a simple, conventional technique.
4 )、实时控制过程 的 重构问题 4), real-time control process reconstruction problem
数字控制系统的核心问题是实时控制刀路曲线。相应于机械系统的重构,刀路曲线的实时控制过程必然需要重构。
The core issue of digital control systems is the real-time control of the toolpath curve. Corresponding to the reconstruction of the mechanical system, the real-time control process of the tool path curve necessarily needs to be reconstructed.
实时控制过程 的 重构涉及轨迹指令 的 重构与联动接口 的 重构。 The reconstruction of the real-time control process involves the reconstruction of the trajectory instructions and the reconstruction of the linkage interface.
基于IEEE定义的现有开放式数控系统是面向对象而不是面向过程的。在插补迭代控制方法中,实时控制过程既是数字控制信息的迭代过程又是实时控制过程的迭代过程。因而,实时控制过程与刀路曲线的几何特征、加工过程的工艺特征、机械系统的
运动学/
动力学特征等密不可分,与CPU的位数、运算速度等硬件平台密不可分,与实时操作系统等软件平台密不可分,与插补迭代算法密不可分。刀路曲线的实时控制过程无法开放,不具有可重构性。对于不同的曲线类型,必须定义专用的插补指令并配置特
定 的插补模块,因而,G代码标准下的插补指令是不可重构的。
Existing open CNC systems based on IEEE definitions are object oriented rather than process oriented. In the interpolation iterative control method, the real-time control process is both an iterative process of digital control information and an iterative process of real-time control process. Thus, the real-time control process and the geometric characteristics of the tool path curve, the process characteristics of the machining process, the mechanical system
Kinematics /
The dynamic characteristics are inseparable, and are inseparable from the hardware platforms such as the number of bits of the CPU and the operation speed. They are inseparable from the software platforms such as the real-time operating system, and are inseparable from the interpolation iterative algorithm. The real-time control process of the tool path curve cannot be opened and is not reconfigurable. For different curve types, special interpolation instructions must be defined and configured
The interpolation module is fixed, so the interpolation instructions under the G code standard are not reconfigurable.
本发明中的轨迹指令只与联动的坐标轴的个数有关,与刀路曲线中的曲线类型无关。不存在重构问题。 The trajectory command in the present invention is only related to the number of linked coordinate axes, regardless of the type of curve in the tool path curve. There is no refactoring problem.
现有技术将5轴联动视为最尖端技术。在本技术方案中,联动的坐标轴由 随动表中的
状态字指定,状态字的位数与字节数则是用户参数。一个8位的状态字可控制8个坐标轴联动,一个16位的状态字可控制16个坐标轴联动。因而,对于绝大多数的用户来说,不存在重构问题。
机 械系 统 的轴数如果超过一个状态字的位数 , 在本发明中, 只须将 状态字的用户参数设置为2个或2个以上字节,并配置2个或2个以上的联动 接口,因而也无须
重构。本技术方案 提出的 轨迹指令的格式适用于任何机械系统,具有广泛的通用性。 The prior art regards 5-axis linkage as the most advanced technology. In the technical solution, the coordinate axes of the linkage are in the following table.
The status word specifies that the number of bits and the number of bytes of the status word are user parameters. An 8-bit status word can control 8 coordinate axes, and a 16-bit status word can control 16 coordinate axes. Thus, for the vast majority of users, there is no refactoring problem.
If the number of axes of the mechanical system exceeds the number of bits of one status word, in the present invention, it is only necessary to set the user parameter of the status word to two or more bytes, and to configure two or more linkage interfaces. Therefore, there is no need
Refactoring. The format of the trajectory command proposed by the technical solution is applicable to any mechanical system and has wide versatility.
在 本技术方案 将 刀路曲线的实时控制过程简化为按随动表中的控制节律 △ ti
(i = 1,…, n), 通过 联动 接口向 状态字指定的伺服驱动装置 单向 发送 联动命令,从而 将 刀路曲线的实时控制过程简化为启动 实时 控制模 块
。通过内置固化的 随动表 文件分析模块,所述 实时 控制模 块 的运行与操作系统无关。In the technical solution, the real-time control process of the tool path curve is simplified to the one-way transmission linkage of the servo drive device specified by the state word through the linkage interface Δ t i (i = 1,..., n) in the follow-up table. The command simplifies the real-time control of the toolpath curve to start the real-time control module. The operation of the real-time control module is independent of the operating system by a built-in solidified follower file analysis module.
所述 随动表为采用诸如FAT16、FAT32等标准文件系统的数据文件,所述 随动表
文件存储器内置固化的 随动表 文件分析模块,用于读取所述 随动表中的 数字信息。因而,刀路曲线的实时控制过程与操作系统等软件平台无关。 The follower table is a data file using a standard file system such as FAT16, FAT32, etc., the follower table
The file memory has a built-in firmware follow-up table file analysis module for reading digital information in the follow-up table. Therefore, the real-time control process of the tool path curve has nothing to do with the software platform such as the operating system.
本技术方案的联动接口并非通信接口,联动命令只是同步脉冲。在发送端,联动 接口
类似按△ti(i = 1,…, n)指定的节律不断地单向传输状态字的并行 接 口;在接收端,一个伺服驱动装置分别与联动 接口
的一个数据位连接,联动 接口 类似一根中断控制线。因而,本技术方案 提出的 联动 接口不存在重构问题。The linkage interface of the technical solution is not a communication interface, and the linkage command is only a synchronization pulse. At the transmitting end, the linkage interface similarly transmits the parallel interface of the status word in a one-way manner according to the rhythm specified by Δt i (i = 1,..., n); at the receiving end, one servo driver and one data bit of the linkage interface respectively Connection, the linkage interface is similar to an interrupt control line. Therefore, the linkage interface proposed by the technical solution does not have a reconstruction problem.
5 )、非实时 接口的 重构问题 5), non-real-time interface reconstruction problem
非实时 接口是一个 标准串行接口,例如标准的USB接口或UART支持下的其他标准串行接口
,属于常规技术 。对于 机 械系 统的 重构, 所述 非实时 接口无须 重构。 The non-real-time interface is a standard serial interface such as a standard USB interface or other standard serial interface supported by the UART.
, is a conventional technology. For the reconstruction of the mechanical system, the non-real time interface does not need to be reconstructed.
具体的,本技术方案的可重构数控系统 的 重构方法,包括下述步骤: Specifically, the method for reconstructing the reconfigurable numerical control system of the technical solution includes the following steps:
步骤1、重构离散坐标系:数字控制信息生成部件重构离散坐标系;所述离散坐标系包括正交离散坐标系与非正交离散坐标系。
Step 1. Reconstruct the discrete coordinate system: the digital control information generating component reconstructs the discrete coordinate system; the discrete coordinate system includes an orthogonal discrete coordinate system and a non-orthogonal discrete coordinate system.
步骤2、重构结构常数数据库:数字控制信息生成部件重构结构常数数据库;所述结构常数数据库存储坐标轴的精细结构常数与坐标系参数;所述坐标轴的精细结构常数包括线位移误差、角位移误差、反向间隙;所述坐标系参数包括坐标轴之间的不平行度、不垂直度。
Step 2: reconstructing a structure constant database: the digital control information generating component reconstructs a structure constant database; the structure constant database stores a fine structure constant of the coordinate axis and a coordinate system parameter; the fine structure constant of the coordinate axis includes a line displacement error, Angular displacement error, backlash; the coordinate system parameters include non-parallelism and non-perpendicularity between the coordinate axes.
步骤3、构造状态 指令的 重构 指令: 数字控制信息生成部件构造所述状态 指令的 重构 指令
,包括下述步骤:步骤31、设置重构指令的目标地址参数: 将 所述状态指令 的 地址表中的入口地址设置为重构指令的目标地址参数 ;
步骤32、设置重构指令的源地址参数:将重新编写的解释程序的起始地址设置为重构指令的源地址参数;步骤33、设置重构指令的字节数参数:将重新编写的解释程序的容量设置为字节数参数。步骤34、构造重构指令:根据所述目标地址参数、所述源地址参数、所述字节数参数,构造所述状态指令的重构指令。 Step 3. Construction state Reconstruction of the instruction: The digital control information generation component constructs the state instruction reconstruction instruction
The method includes the following steps: Step 31: setting a target address parameter of the reconfiguration instruction: setting an entry address in an address table of the status instruction as a target address parameter of the reconfiguration instruction;
Step 32: Setting a source address parameter of the refactoring instruction: setting a starting address of the rewritten interpreter as a source address parameter of the refactoring instruction; and step 33, setting a byte number parameter of the refactoring instruction: an explanation to be rewritten The capacity of the program is set to the number of bytes parameter. Step 34: Construct a reconstruction instruction: construct a reconstruction instruction of the state instruction according to the target address parameter, the source address parameter, and the number of bytes parameter.
步骤4、构造开关 指令的 重构 指令: 数字控制信息生成部件构造所述开关 指令的 重构 指令
,包括下述步骤:步骤41、设置重构指令的目标地址参数: 将 所述 开关
指令的地址表中的入口地址设置为重构指令的目标地址参数;步骤42、设置重构指令的源地址参数:将重新编写的解释程序的起始地址设置为重构指令的源地址参数;步骤43、设置重构指令的字节数参数:将重新编写的解释程序的容量设置为字节数参数;步骤44、构造重构指令:根据所述目标地址参数、所述源地址参数、所述字节数参数,构造所述开关指令的重构指令。 Step 4: Constructing a switch Restructuring of an instruction: A digital control information generating component constructs a reconstruction instruction of the switch instruction
, comprising the following steps: Step 41: setting a target address parameter of the reconstruction instruction: the switch
The entry address in the address table of the instruction is set as the target address parameter of the reconstructed instruction; Step 42: setting the source address parameter of the reconstructed instruction: setting the start address of the rewritten interpreter as the source address parameter of the reconstructed instruction; Step 43, setting a byte number parameter of the refactoring instruction: setting a capacity of the rewritten interpreter to a byte number parameter; and step 44, constructing a reconfiguration instruction: according to the target address parameter, the source address parameter, The byte number parameter is configured to construct a reconstruction instruction of the switch instruction.
步骤5、运行重构指令:数字控制信息发送部件运行所述状态 指令的
重构指令,重构所述状态指令;运行所述开关 指令的 重构 指令, 重构所述开关指令。 Step 5: Running a reconfiguration instruction: the digital control information sending component runs the state instruction
Reconfiguring the instruction, reconstructing the state instruction, executing a reconstruction instruction of the switch instruction, and reconstructing the switch instruction.
以上内容是结合具体的优选实施方式对可重构数控系统所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。
The above is a further detailed description of the reconfigurable numerical control system in conjunction with the specific preferred embodiments, and the specific implementation of the present invention is not limited to these descriptions. It will be apparent to those skilled in the art that the present invention may be made without departing from the spirit and scope of the invention.
Claims (11)
- 一种 可重构数控系统 ,其特征在于,包括PC系统、数据流控制器、 伺服驱动装置、I/O装置 、 串行接口、分配接口、联动接口 、 I/O 接口 ; A reconfigurable numerical control system, comprising: a PC system, a data flow controller, a servo drive device, an I/O device, Serial interface, distribution interface, linkage interface, I/O interface所述 PC 系统 通过串行接口与所述 数据流控制器 连接;The PC system is connected to the data flow controller through a serial interface;所述 数据流控制器 通过分配接口、联动接口与所述伺服驱动装置连接,所述 数据流控制器 通过I/O接口与所述I/O装置连接;The data flow controller is connected to the servo driving device through a distribution interface and a linkage interface, and the data flow controller Connecting to the I/O device through an I/O interface;所述PC系统用于生成控制工件加工过程的DRC数控程序,包括状态指令生成模块、开关指令生成模块、轨迹指令生成模块、DRC数控程序生成模块;The PC system is configured to generate a DRC numerical control program for controlling a workpiece machining process, including a state instruction generation module, a switch instruction generation module, a track instruction generation module, and a DRC numerical control program generation module;所述状态指令生成模块用于生成控制辅助过程的状态指令;The state instruction generating module is configured to generate a state instruction that controls the auxiliary process;所述开关指令生成模块用于生成控制 I/O 装置的开关指令;The switch instruction generation module is configured to generate a switch instruction for controlling an I/O device;所述状态指令生成模块还用于生成重构指令,所述重构指令用于修改所述状态指令与所述开关指令的解释程序。The state instruction generation module is further configured to generate a reconstruction instruction, where the reconstruction instruction is used to modify the state instruction and the interpretation program of the switch instruction.所述轨迹指令生成模块用于生成控制伺服驱动装置完成刀路曲线走刀过程的轨迹指令;The trajectory command generating module is configured to generate a trajectory command for controlling a servo drive device to complete a path curve pass process;所述DRC数控程序生成模块,用于根据加工工艺将状态指令、开关指令、轨迹指令链接为DRC数控程序;The DRC numerical control program generating module is configured to link a state instruction, a switch instruction, and a track instruction to a DRC numerical control program according to a machining process;其中,所述轨迹指令生成模块包括离散几何规划模块与离散运动规划模块;The track instruction generation module includes a discrete geometric planning module and a discrete motion planning module;所述离散几何规划模块用于生成存储有刀路曲线的L分割的联动表;所述L分割用于控制坐标轴联动产生合成位移;所述联动表区分为各个轴的轴联动表,所述轴联动表用于存储相关坐标轴的L分割分量,控制该坐标轴产生轴位移;The discrete geometric planning module is configured to generate an L-segment linkage table storing a tool path curve; the L segmentation is used to control coordinate axis linkage to generate a composite displacement; the linkage table is divided into an axis linkage table of each axis, The axis linkage table is used for storing the L segmentation component of the relevant coordinate axis, and controlling the coordinate axis to generate the axis displacement;所述离散运动规划模块用于存储有刀路曲线的T分割与状态字的随动表;所述T分割用于控制所述轴位移之间的时间间隔;所述状态字用于指定联动的坐标轴;The discrete motion planning module is configured to store a T-segment of the tool path curve and a follow-up table of the status word; the T-segment is used to control a time interval between the axis displacements; the status word is used to specify linkage Axis;所述 数据流控制器 包括微处理器、解释程序存储器、文件存储器、轴联动表分配模块、DRC 数控程序运行 模块、实时控制模块与中断管理模块;The data flow controller includes a microprocessor, an interpreter memory, a file memory, an axis linkage table allocation module, and a DRC NC program running Module, real-time control module and interrupt management module;所述解释程序存储器用于存储所述状态 指令 、所述开关 指令 、所述轨迹指令的解释程序;The interpreter memory is configured to store the state instruction, the switch instruction, an interpreter of the trace instruction;所述文件存储器用于通过 所述 串行接口接收并存储 所述DRC数控程序、 所述 随动表、 所述轴联动表;The file storage is configured to receive and store the DRC numerical control program, the follow-up table, and the The shaft linkage table;所述轴联动表分配模块 用于 通过所述分配接口向 所述 伺服驱动装置分配 所述 轴联动表;The axis linkage table distribution module is configured to allocate the axis linkage table to the servo drive device through the distribution interface;所述DRC 数控程序运行 模块 用于运行 所述DRC 数控程序, 执行 所述状态 指令 控制辅助过程 、执行 所述 开关指令通过所述I/O接口控制所述I/O装置、执行 所述 轨迹指令通过所述联动接口控制 所述 伺服驱动装置完成 刀路曲线的加工过程;The DRC NC program running module is configured to run the DRC numerical control program, execute the status instruction, control an auxiliary process, and execute the And a switch command controls the I/O device through the I/O interface, and executes the track command to control the machining process of the tool path by the servo drive device through the linkage interface;所述 实时控制模块用于按照 所述随动表中 的 控制 节律 △ t i (i = 1,…, n),通过所述联动接口向所述伺服驱动装置发送 联动命令 ;所述联动命令用于控制所述状态字指定的坐标轴之间的同步;The real-time control module is configured to send a linkage command to the servo driving device through the linkage interface according to a control rhythm Δ t i (i=1, . . . , n) in the follow-up table; Controlling synchronization between coordinate axes specified by the status word;所述中断管理模块 用于处理来自所述 伺服驱动装置的实时反馈信息;The interrupt management module is configured to process real-time feedback information from the servo drive device;所述 伺服驱动装置设有轴联动表 初始化 模块与轴联动表控制模块;The servo drive device is provided with an axis linkage table initialization module and an axis linkage table control module;所述轴联动表 初始化 模块用于设置执行标志,并根据所述轨迹指令的顺序码,将所述轴联动表的地址写入L指针;The axis linkage table initialization The module is configured to set an execution flag, and write an address of the axis linkage table to the L pointer according to the sequence code of the track instruction;跟随所述联动命令,所述轴联动表控制模块根据L指针从所述轴联动表中读取该轴的坐标值增量并写入位置环,驱动坐标轴进给产生合成位移。Following the linkage command, the axis linkage table control module reads the coordinate value increment of the axis from the axis linkage table according to the L pointer and writes the position loop, and drives the coordinate axis feed to generate a composite displacement.
- 如权利要求1所述的可重构数控系统,其特征还在于,所述状态字的字节数为用户参数。The reconfigurable numerical control system of claim 1 further characterized in that the number of bytes of said status word is a user parameter.
- 如权利要求1所述的可重构数控系统,其特征还在于,所述轴联动表文件还包括特征表;所述特征表用于标识该坐标轴的逻辑属性;所述逻辑属性包括进给当量、数据的字节数、电子齿轮传动比。The reconfigurable numerical control system of claim 1 further characterized in that said axis linkage table file further comprises a feature table; said feature table is for identifying a logical attribute of the coordinate axis; and said logical attribute comprises a feed Equivalent, number of bytes of data, electronic gear ratio.
- 如权利要求1所述的可重构数控系统,其特征还在于, 所述 联动接口的每个数据位分别连接一个伺服驱动装置。A reconfigurable numerical control system according to claim 1 further characterized by Each data bit of the linkage interface is connected to a servo drive.
- 如权利要求1所述的可重构数控系统,其特征还在于, 所述 串行接口与 所述 分配接口分别为现场总线、RS232接口、RS485接口、USB接口或无线接口。The reconfigurable numerical control system of claim 1 further characterized by: said serial interface and said The distribution interfaces are fieldbus, RS232 interface, RS485 interface, USB interface or wireless interface.
- 如权利要求1所述的可重构计算机数字控制系统,其特征还在于,所述 数据流控制器 中的 文件存储器 包括 随动表文件 分析模块;所述 随动表文件 扇区分析模块用于读取 所述DRC数控程序、 所述 随动表、 所述轴联动表。A reconfigurable computer numerical control system according to claim 1 further characterized in that said file memory in said data stream controller comprises a follower table file. The analysis module; the follower table file sector analysis module is configured to read the DRC numerical control program, the follow-up table, and the axis linkage table.
- 如权利要求1至6中任意一项所述的可重构数控系统,其特征还在于,所述 数据流控制器 中的DRC程序运行模块包括运动指令取指模块、状态指令执行模块、开关指令执行模块、轨迹指令执行模块;The reconfigurable numerical control system according to any one of claims 1 to 6, further characterized in that said data flow controller The DRC program running module includes a motion instruction fetching module, a state instruction execution module, a switch instruction execution module, and a track instruction execution module;所述运动指令取指模块用于将DRC数控程序中运动指令的地址写入运动指令指针并读取运动指令, 将 运动指令的功能字节写入运动指令寄存器;The motion instruction fetching module is configured to write the address of the motion instruction in the DRC NC program into the motion instruction pointer and read the motion instruction, and The function byte of the motion instruction is written to the motion instruction register;如果所述运动指令为状态指令,根据所述状态指令的地址表,所述状态指令执行模块跳转至所述地址表所指定的入口地址, 用于 执行该状态指令的解释程序;If the motion instruction is a status instruction, the status instruction execution module jumps to an entry address specified by the address table according to an address table of the status instruction, Execute an interpreter of the status instruction;如果所述运动指令为开关指令,根据所述开关指令的地址表,所述开关指令执行模块跳转至所述地址表所指定的入口地址, 用于 执行该开关指令的解释程序;If the motion instruction is a switch instruction, the switch instruction execution module jumps to an entry address specified by the address table according to an address table of the switch instruction, Execute the interpreter of the switch instruction;如果所述运动指令为轨迹指令,所述轨迹指令执行模块 用于 执行该轨迹指令的解释程序。If the motion instruction is a trajectory instruction, the trajectory instruction execution module is configured to execute an interpreter of the trajectory instruction.
- 如权利要求7所述的可重构数控系统,其特征还在于,所述轨迹指令执行模块设置运行标志,用于启动 所述 实时控制模块 ;A reconfigurable numerical control system according to claim 7, wherein said trajectory instruction execution module sets a running flag for activating said real-time control module ;所述实时控制模块包括联动坐标轴设 置 模块、联动命令设 置 模块、节律控制模块、终点控制模块;The real-time control module includes a linkage coordinate axis setting module, a linkage command setting module, a rhythm control module, and an end point control module;所述联动坐标轴设 置 模块用于将随动表的地址写入T指针,从所述随动表中读取状态字并写入状态字寄存器,指定联动的坐标轴;The linkage axis setting The module is configured to write the address of the follow-up table to the T pointer, read the status word from the follow-up table and write the status word register, and specify the coordinate axis of the linkage;所述联动命令设 置 模块用于读取所述随动表中的 △ t i (i = 1,…, n)并写入T分割定时器;The linkage command setting module is configured to read Δt i (i=1, . . . , n) in the following table and write a T-split timer;T 分割定时器中的定时时间到,所述节律控制模块启动 脉冲发生器输出一个脉冲,并通过联动接口 向所述 状态字寄存器指定的 伺服驱动装置发送联动命令;The timing time in the T split timer is up, the rhythm control module starts the pulse generator to output a pulse, and assigns to the status word register through the linkage interface. The servo drive device sends a linkage command;所述终点控制模块用于控制所述轨迹指令的终点,如果所述T指针等于所述随动表的末地址,则关闭运行标志;否则,T指针指向下一个时间增量 △ ti 。The endpoint control module is configured to control an end point of the trajectory instruction, and if the T pointer is equal to the last address of the follower table, the running flag is turned off; otherwise, the T pointer points to the next time increment Δt i .
- 一种可重构数控系统 的 重构方法,其特征在于,包括下述步骤:A reconstruction method of a reconfigurable numerical control system, comprising the steps of:步骤(1)、重构离散坐标系:数字控制信息生成部件重构离散坐标系;所述离散坐标系包括正交离散坐标系与非正交离散坐标系;Step (1), reconstructing a discrete coordinate system: the digital control information generating component reconstructs a discrete coordinate system; the discrete coordinate system includes an orthogonal discrete coordinate system and a non-orthogonal discrete coordinate system;步骤(2)、重构结构常数数据库:数字控制信息生成部件重构结构常数数据库;所述结构常数数据库存储坐标轴的精细结构常数与坐标系参数;所述坐标轴的精细结构常数包括线位移误差、角位移误差、反向间隙;所述坐标系参数包括坐标轴之间的不平行度、不垂直度;Step (2): reconstructing a structure constant database: the digital control information generating component reconstructs a structure constant database; the structure constant database stores a fine structure constant of the coordinate axis and a coordinate system parameter; the fine structure constant of the coordinate axis includes a line displacement Error, angular displacement error, backlash; the coordinate system parameters include non-parallelism and non-perpendicularity between the coordinate axes;步骤(3)、构造状态 指令的 重构 指令: 数字控制信息生成部件构造所述状态 指令的 重构 指令 ;Step (3), construction state Reconstruction of instruction Instruction: Digital control information generation component constructs the state instruction reconstruction instruction ;步骤(4)、构造开关 指令的 重构 指令: 数字控制信息生成部件构造所述开关 指令的 重构 指令 ;Step (4), construction switch instruction reconstruction instruction: digital control information generation component constructs reconstruction instruction of the switch instruction ;步骤(5)、运行重构指令:数字控制信息发送部件运行所述状态 指令的 重构指令,重构所述状态指令;运行所述开关 指令的 重构 指令, 重构所述开关指令。Step (5), running a reconfiguration instruction: the digital control information transmitting component runs a reconfiguration instruction of the state instruction, reconstructs the state instruction, and performs reconfiguration of the switch instruction An instruction to reconstruct the switch instruction.
- 如权利要求9所述的可重构数控系统的重构方法,其特征还在于,所述步骤(3)包括下述步骤:The method of reconstructing a reconfigurable numerical control system according to claim 9, wherein said step (3) comprises the steps of:步骤(31)、设置重构指令的目标地址参数:将所述状态指令的地址表中的入口地址设置为重构指令的目标地址参数;Step (31), setting a target address parameter of the reconstruction instruction: setting an entry address in the address table of the state instruction as a target address parameter of the reconstruction instruction;步骤(32)、设置重构指令的源地址参数:将重新编写的解释程序的起始地址设置为重构指令的源地址参数;Step (32): setting a source address parameter of the refactoring instruction: setting a starting address of the rewritten interpreter as a source address parameter of the refactoring instruction;步骤(33)、设置重构指令的字节数参数:将重新编写的解释程序的容量设置为字节数参数;Step (33), setting a byte number parameter of the refactoring instruction: setting a capacity of the rewritten interpreter to a byte number parameter;步骤(34)、构造重构指令:根据所述目标地址参数、所述源地址参数、所述字节数参数,构造所述状态指令的重构指令。Step (34): Constructing a reconstruction instruction: constructing a reconstruction instruction of the state instruction according to the target address parameter, the source address parameter, and the byte number parameter.
- 如权利要求9所述的可重构数控系统的重构方法,其特征还在于,所述步骤(4)包括下述步骤:A method of reconstructing a reconfigurable numerical control system according to claim 9, wherein said step (4) comprises the steps of:步骤(41)、设置重构指令的目标地址参数:将所述 开关 指令的地址表中的入口地址设置为重构指令的目标地址参数;Step (41), setting a target address parameter of the reconstruction instruction: placing the switch The entry address in the address table of the instruction is set as the target address parameter of the reconstruction instruction;步骤(42)、设置重构指令的源地址参数:将重新编写的解释程序的起始地址设置为重构指令的源地址参数;Step (42): setting a source address parameter of the refactoring instruction: setting a starting address of the rewritten interpreter as a source address parameter of the refactoring instruction;步骤(43)、设置重构指令的字节数参数:将重新编写的解释程序的容量设置为字节数参数;Step (43), setting a byte number parameter of the refactoring instruction: setting a capacity of the rewritten interpreter to a byte number parameter;步骤(44)、构造重构指令:根据所述目标地址参数、所述源地址参数、所述字节数参数,构造所述开关指令的重构指令。 Step (44): Constructing a reconstruction instruction: constructing a reconstruction instruction of the switch instruction according to the target address parameter, the source address parameter, and the byte number parameter.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110207211.9 | 2011-07-22 | ||
CN2011102072119A CN102402197B (en) | 2011-07-22 | 2011-07-22 | Reconfigurable numerical control system and reconfiguration method |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013013580A1 true WO2013013580A1 (en) | 2013-01-31 |
Family
ID=45884509
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/078564 WO2013013580A1 (en) | 2011-07-22 | 2012-07-12 | Reconfigurable numerical control system, and reconfiguration method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102402197B (en) |
WO (1) | WO2013013580A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015106582A1 (en) * | 2014-01-17 | 2015-07-23 | 重庆大学 | Dsp/fpga-based dynamically-configurable tool intelligent controller, and control method |
CN107045317A (en) * | 2017-02-08 | 2017-08-15 | 温州职业技术学院 | A kind of control system of logic restructural |
US10545483B2 (en) | 2015-01-15 | 2020-01-28 | Siemens Aktiengesellschaft | Production system having additional functionality, and operating method |
CN110910003A (en) * | 2019-11-18 | 2020-03-24 | 纳铁福传动系统(重庆)有限公司 | Transmission shaft part production and manufacturing management system |
CN111443963A (en) * | 2018-12-27 | 2020-07-24 | 沈阳高精数控智能技术股份有限公司 | Numerical control system of reconfigurable formula |
CN112859757A (en) * | 2019-11-27 | 2021-05-28 | 宁波舜宇智能科技有限公司 | Edge calculation control method, edge calculation control device, edge computer and readable storage medium |
CN116880341A (en) * | 2023-09-07 | 2023-10-13 | 上海泛腾电子科技有限公司 | High-precision motion control system based on industrial Ethernet bus |
CN117519797A (en) * | 2024-01-02 | 2024-02-06 | 江苏博人文化科技有限公司 | Motion platform control system and method for amusement facility |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102402197B (en) * | 2011-07-22 | 2013-06-12 | 江俊逢 | Reconfigurable numerical control system and reconfiguration method |
CN102354147B (en) * | 2011-07-22 | 2013-06-12 | 江俊逢 | Reconfigurable computer numerical control system, numerical control method thereof and reconstruction method thereof |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7062351B2 (en) * | 2003-09-25 | 2006-06-13 | The Boeing Company | Clamp avoidance cutter path regeneration |
JP2008225825A (en) * | 2007-03-13 | 2008-09-25 | Shin Nippon Koki Co Ltd | Numerical control device |
CN101923335A (en) * | 2010-08-10 | 2010-12-22 | 济南大学 | An open CNC system based on the kernel platform and directly facing the processing path point |
CN101995850A (en) * | 2010-11-05 | 2011-03-30 | 江俊逢 | Computer aided numerical control method and system |
CN102063088A (en) * | 2010-11-05 | 2011-05-18 | 江俊逢 | Method and system for planning auxiliary discrete movement of computer |
CN102129232A (en) * | 2011-03-29 | 2011-07-20 | 华中科技大学 | Five-axis side milling machining process parameter design method |
CN102402197A (en) * | 2011-07-22 | 2012-04-04 | 江俊逢 | Reconfigurable numerical control system and reconfigurable method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3581259B2 (en) * | 1998-08-20 | 2004-10-27 | 株式会社ニッセー | Round die type rolling device control system |
KR20060076884A (en) * | 2004-12-29 | 2006-07-05 | 두산인프라코어 주식회사 | Software PLC contact processing device and method of numerical control device |
CN102081373B (en) * | 2009-11-27 | 2012-06-27 | 上海电气集团股份有限公司 | Numerical control system for roll grinder and control method thereof |
-
2011
- 2011-07-22 CN CN2011102072119A patent/CN102402197B/en not_active Expired - Fee Related
-
2012
- 2012-07-12 WO PCT/CN2012/078564 patent/WO2013013580A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7062351B2 (en) * | 2003-09-25 | 2006-06-13 | The Boeing Company | Clamp avoidance cutter path regeneration |
JP2008225825A (en) * | 2007-03-13 | 2008-09-25 | Shin Nippon Koki Co Ltd | Numerical control device |
CN101923335A (en) * | 2010-08-10 | 2010-12-22 | 济南大学 | An open CNC system based on the kernel platform and directly facing the processing path point |
CN101995850A (en) * | 2010-11-05 | 2011-03-30 | 江俊逢 | Computer aided numerical control method and system |
CN102063088A (en) * | 2010-11-05 | 2011-05-18 | 江俊逢 | Method and system for planning auxiliary discrete movement of computer |
CN102129232A (en) * | 2011-03-29 | 2011-07-20 | 华中科技大学 | Five-axis side milling machining process parameter design method |
CN102402197A (en) * | 2011-07-22 | 2012-04-04 | 江俊逢 | Reconfigurable numerical control system and reconfigurable method |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015106582A1 (en) * | 2014-01-17 | 2015-07-23 | 重庆大学 | Dsp/fpga-based dynamically-configurable tool intelligent controller, and control method |
US10078323B2 (en) | 2014-01-17 | 2018-09-18 | Chongqing University | Dynamically configurable intelligent controller and control method for machine tools based on DSP/FPGA |
US10545483B2 (en) | 2015-01-15 | 2020-01-28 | Siemens Aktiengesellschaft | Production system having additional functionality, and operating method |
CN107045317A (en) * | 2017-02-08 | 2017-08-15 | 温州职业技术学院 | A kind of control system of logic restructural |
CN111443963A (en) * | 2018-12-27 | 2020-07-24 | 沈阳高精数控智能技术股份有限公司 | Numerical control system of reconfigurable formula |
CN110910003A (en) * | 2019-11-18 | 2020-03-24 | 纳铁福传动系统(重庆)有限公司 | Transmission shaft part production and manufacturing management system |
CN110910003B (en) * | 2019-11-18 | 2023-09-05 | 纳铁福传动系统(重庆)有限公司 | Transmission shaft part production and manufacturing management system |
CN112859757A (en) * | 2019-11-27 | 2021-05-28 | 宁波舜宇智能科技有限公司 | Edge calculation control method, edge calculation control device, edge computer and readable storage medium |
CN116880341A (en) * | 2023-09-07 | 2023-10-13 | 上海泛腾电子科技有限公司 | High-precision motion control system based on industrial Ethernet bus |
CN116880341B (en) * | 2023-09-07 | 2023-12-05 | 上海泛腾半导体技术有限公司 | High-precision motion control system based on industrial Ethernet bus |
CN117519797A (en) * | 2024-01-02 | 2024-02-06 | 江苏博人文化科技有限公司 | Motion platform control system and method for amusement facility |
CN117519797B (en) * | 2024-01-02 | 2024-04-05 | 江苏博人文化科技有限公司 | Motion platform control system and method for amusement facility |
Also Published As
Publication number | Publication date |
---|---|
CN102402197B (en) | 2013-06-12 |
CN102402197A (en) | 2012-04-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2013013580A1 (en) | Reconfigurable numerical control system, and reconfiguration method | |
CN102354147B (en) | Reconfigurable computer numerical control system, numerical control method thereof and reconstruction method thereof | |
WO2013013570A1 (en) | Real-time core of open numeric control system and real-time control method for cutter path curve | |
Xu et al. | STEP-NC and function blocks for interoperable manufacturing | |
CN100370380C (en) | An open reconfigurable soft numerical control system | |
CN101226388A (en) | Open software CNC system | |
WO2008013968A2 (en) | Virtual processor generation model for co-simulation | |
WO2011050610A1 (en) | Standardized controller | |
CN102354154B (en) | Real-time kernel chip of open numerical control system | |
Ashiwal et al. | Identification and Evaluation of Pitfalls in the Migration from IEC 61131-3 to IEC 61499: A Review | |
Harrison et al. | Component based paradigm for the design and implementation of control systems in electronics manufacturing machinery | |
Gao et al. | Implementation of open-architecture kinematic controller for articulated robots under ROS | |
Birla et al. | Reconfigurable machine controllers using the OMAC API | |
CN115758789A (en) | Software architecture design and architecture transmission method of complex real-time embedded system | |
Li et al. | Motion control of 6-DOF manipulator based on EtherCAT | |
Fischer et al. | Conceptual design of an engineering model for product and plant automation | |
Yongzhang | Open architecture CNC system HITCNC and key technology | |
Gallo et al. | Minimum makespan assembly plans | |
Falsig et al. | An FPGA based approach to increased flexibility, modularity and integration of low level control in robotics research | |
Latif et al. | New open CNC machine motion control system for ISO 14649 and ISO 6983 | |
Balasubramanian | A metamorphic control architecture for holonic systems | |
Hongxing et al. | Research of open cnc system based on corba | |
Wang et al. | {GMI-DRL}: Empowering {Multi-GPU}{DRL} with {Adaptive-Grained} Parallelism | |
Rzońca et al. | Interfacing inputs and outputs with IEC 61131-3 control software | |
Vänninen | Accelerating the commissioning of PLCs using 3D simulations |
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: 12817486 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 PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30/06/2014) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12817486 Country of ref document: EP Kind code of ref document: A1 |