CN1936746A - Inlaid numerical control system G code interpretative device based on ARM - Google Patents

Inlaid numerical control system G code interpretative device based on ARM Download PDF

Info

Publication number
CN1936746A
CN1936746A CN 200610124743 CN200610124743A CN1936746A CN 1936746 A CN1936746 A CN 1936746A CN 200610124743 CN200610124743 CN 200610124743 CN 200610124743 A CN200610124743 A CN 200610124743A CN 1936746 A CN1936746 A CN 1936746A
Authority
CN
China
Prior art keywords
code
control system
arm
numerical control
inlaid
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 200610124743
Other languages
Chinese (zh)
Inventor
尹勇
周祖德
刘泉
龙毅宏
张金涣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan University of Technology WUT
Original Assignee
Wuhan University of Technology WUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan University of Technology WUT filed Critical Wuhan University of Technology WUT
Priority to CN 200610124743 priority Critical patent/CN1936746A/en
Publication of CN1936746A publication Critical patent/CN1936746A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Numerical Control (AREA)

Abstract

This invention releases to a kind of ARM embedded type digital system G-code converter. The main control system of the embedded type digital system uses the 32bit von Neumann AMR7 microprocessor S3C44B0 slug, and bases on this, we developes embedded type digital system G-code converter. Using the production-line to complication and explain the digital control processing G-code, taking place the traditional industry pc work by using the embedded type. Reading the digital control processing G-code into the ARM7 main control unit step by step, using the 'advance treatment-data conversion-post treatment' process, the data buffer is continuously treating, finally formatting the interpolated process to identify the data structure. It can reduce the time of the execution order, increase the efficiency of the compilation and the explanation G-code, enhance the G-code processing ability of the ARM7 embedded type converter. And it also can reduce the cost, capacity and power consumption, and enhance the dependability and the reconstruction ability.

Description

Inlaid numerical control system G code interpretative device based on ARM
Technical field
The invention belongs to a kind of fields of numeric control technique of electromechanical integration, is at the inlaid numerical control system G code interpretative device of a kind of digital control processing of being developed on based on the basis of ARM7 chip as the built-in digital control system of master controller based on ARM specifically.
Background technology
The G code interpreter of traditional digital control system is based on the digital control system of Industrial PC Computer, its major function is with the part program with text formatting (normally ASCII character) expression, is that unit is converted to needed data structure of down-stream or form with the program segment.Traditional standard NC code (ISO6983) written program based on Industrial PC Computer does not have structures such as branch and circulation, the structure imperfection, and the compilation process of digital control system generally is special-purpose, different digital control systems has different compiling systems, thereby the versatility of this G code interpreter is relatively poor.At present, the bigger Research on Open-architecture CNC System project of influence has OMAC, the OSACA of the European Community, the OSEC of Japan etc. of the U.S. in the world, and China has also developed digital control system in open type such as Central China I type, space flight I type in succession.Calendar year 2001, the Chinese government supported to have carried out the research of open digital control system standard (ONC), and this research makes full use of the PC resource, and development is based on the digital control system of PC.This digital control system based on PC has good opening, software and hardware aboundresources, intellectuality and networked degree than advantages such as height, relatively is applicable to middle and high shelves digital control processing field.And industrial PC computer in when operation owing to adopt general operating system, taken very big system resource, with the irrelevant task of the digital control processing system's more work share that may account for, they are disturbing the timely response of system to in-situ processing, reduced the processing speed of system to the important control time, increase system's operation expense, can cause the instability of system.Like this, the G code interpreter of traditional digital control system based on PC is very long to the interpretation time of G code in digital control system, sometimes can't satisfy the control requirement of high-speed, high precision, and the stability and the reliability of software are relatively poor.
Yet, in popular and economical nc field, built-in digital control system has original advantage, it adopts " cutting the garment according to the figure " mode that required function is embedded in the application system, can overcome control system based on the general purpose PC structure in the defective aspect the volume power consumption, become the direction of on-the-spot industrial digital control processing development; It can move embedded real-time multi-task operating system, and software development and transplanting are fit to be applied to the Industry Control occasion easily very much.And one as just only more than 100 yuan of the embedded microprocessor of built-in digital control system master controller, add the real-time control operation system that the is adopted source code that opens for free, do not have the overhead that software copyright uses, these all make cost that reduction has significantly been arranged.。
Summary of the invention
The purpose of this invention is to provide a kind of with traditional numerical control system G code interpretative device based on industrial PC computer compares, real-time and reliability have been improved, reduced the inlaid numerical control system G code interpretative device based on ARM of system bulk and cost, to overcome above-mentioned deficiency.
For achieving the above object, the technical measures that the present invention takes are: built-in digital control system adopts the ARM microprocessor of 32 bit architectures as master controller, the embedded G code interpreter of exploitation adopts the G code interpretation procedure of pipeline processing mode on this basis, mode with streamline compiles-explains machining code, a section reads in program in machine code in the internal memory, in " pre-process-data-switching-postposition is handled " process, constantly obtain in the data buffer handling, forming patching plug program at last can the recognition data structure, carries out work as a streamline.When processing parts, program input, decoding, interpolation and 4 processes of position control are overlapping on the processing time, and in decode procedure, each subprocess also is overlapping on the processing time simultaneously.The course of work of G code interpreter is divided into 4 subprocess: program is read in, syntax check, explanation and cutter compensation.In the master controller of ARM built-in digital control system, transplanted the U-cos11 real-time multi-task operating system, when design G code interpreter, top 4 procedure definitions are become 4 tasks, carry out the message transmission by mailbox between each task, in case CPU has aperture time, the decoding task promptly is activated, and sends message according to different states to each task, carries out the processing to buffer zone.When the G code interpreter is worked, explain task run, deposit the intermediate result of compiling according to actual conditions distribute data buffer zone.Open up the decoding buffer zone in the decoding task start, discharge when task termination, between the whole decoding buffer zone lifetime, data constantly write, revise, read and remove.In inlaid numerical control system G code interpretative device, the superiors' application program mode with graphic interface in ARM7 provides to the user.Be characterized in:
The master controller of described built-in digital control system based on ARM adopts 32 Feng. promise. as master controller, realize file system management, memory management, man-machine interface, network interface, system management interface, emulation demonstration and G code compiling and explanation function according to the microprocessor S3C44B0 chip of graceful structure.
Described G code interpreter adopts the G code interpretation procedure of pipeline processing mode, mode with streamline compiles-explains machining code, a section reads in program in machine code in the internal memory, in " pre-process-data-switching-postposition is handled " process, constantly obtain in the data buffer handling, forming patching plug program at last can the recognition data structure, carries out work as a streamline.
Transplanted the U-cos11 real-time multi-task operating system in the described built-in digital control system in the ARM master controller, with program read in, syntax check, explanation become 4 tasks with 4 procedure definitions such as cutter compensations, carry out the message transmission by mailbox between each task, when the G code interpreter is worked, explain task run, deposit the intermediate result of compiling according to actual conditions distribute data buffer zone.
The present invention adopts embedded thought, adopts the master controller of the microprocessor S3C44B0 chip of ARM7 series as digital control system, and has developed a kind of embedded G code interpreter on this basis.The present invention can choose and dispose the flush bonding module of difference in functionality neatly at the feed shaft of different lathes, different processing objects, different numbers, different servomotors on hardware; On software, adopt standard C language to write, can be suitable for different software operating environments, have very strong portability.Because the present invention has adopted above technical scheme, overcome at present digital control system based on the PC system in the defective aspect architecture, real-time, reliability and the cost, mode with streamline compiles and explains numerical control machining code, reduce the time that instruction is carried out, strengthen the G code processing power of flush bonding processor.
Description of drawings
Fig. 1 is a hardware block diagram of the present invention.
Fig. 2 is a G code interpreter workflow diagram of the present invention.
Fig. 3 is G code interpreter buffer zone list structure figure of the present invention.
Embodiment
Below in conjunction with accompanying drawing the present invention is made further detailed explanation.
Fig. 1 is the hardware block diagram of built-in digital control system, in the ARM7 master controller, has comprised Ucosii real time operating system, dsp interface, memory module and various peripheral interface module that G code explanation module, soft PLC examine, transplant.The main task of ARM7 master controller is to realize man-machine interface, finishes the tasks such as analog simulation of input, precompile, track calculating, speed calculation and the processing parts figure of job sequence.In the ARM7 master controller, the G code explanation module is a nucleus module.Its course of work is: after the user imports G code, become digital control system can control the instruction of each motor code translation by code interpretative device, comprise G instruction, M instruction, S instruction, F instruction and T instruction etc.When carrying out the G instruction, system call interpolation algorithm module, compensating module and position control module are directly controlled the motion of feeding motor.M instruction in the G code program, S instruction and T instruction etc. belong to extra-instruction, are the critical functions that digital control system is implemented peripheral operation, as the start-stop of control spindle motor, the switch of liquid coolant, the pine folder of anchor clamps, lubricated work, the switch of protective door etc.When the G code interpreter is carried out extra-instruction, it delivers to PLC to control routine, deciphers the operation requirement of distinguishing numerical control program by PLC, carries out by PLC programmed control external circuit again, PLC module in the system realizes with software, can save cost and reduce volume.
Fig. 2 is the G code interpreter workflow diagram of built-in digital control system, adopt a kind of G code interpretation procedure of pipeline processing mode, mode with streamline compiles-explains machining code, reduces the time that instruction is carried out, thereby has strengthened the processing power of flush bonding processor.Like this, a section reads in program in machine code, in " pre-process-data-switching-postposition handle " process, constantly obtains in the data buffer handling, and forming patching plug program at last can the recognition data structure, carries out work as a streamline.When processing parts, program input, decoding, interpolation and 4 processes of position control are overlapping on the processing time, and in decode procedure, each subprocess also is overlapping on the processing time simultaneously.In this built-in digital control system, in the ARM master controller, transplanted the U-cos11 real-time multi-task operating system, when design G code interpreter, program input, decoding, 4 procedure definitions of interpolation and position control are become 4 tasks, carry out the message transmission by mailbox between each task, in case CPU has aperture time, the decoding task promptly is activated, send message according to different states to each task, carry out processing buffer zone.
Fig. 3 is the G code interpreter buffer zone list structure of built-in digital control system, and when the G code interpreter was worked, the explanation task was deposited the intermediate result of compiling in operation according to actual conditions distribute data buffer zone.Open up the decoding buffer zone in the decoding task start, discharge when task termination, between the whole decoding buffer zone lifetime, data constantly write, revise, read and remove.Buffer zone is pre-assigned, need not dynamic assignment.In native system, be provided with 6 buffer zones and form list structure, at each buffer zone a zone bit BufFlag is set, when being 0, BufFlag represents that buffer zone is empty; When being 1, BufFlag represents that the data in the buffer zone need carry out some data processing, as cutter compensation, speed calculation etc.; When BufFlag was 2, the content in the expression buffer zone had been finished data processing, can pass to the motion of patching plug program control motor.
The inlaid numerical control system G code interpretative device that the present invention develops on the basis of being developed based on the built-in digital control system of ARM, adopt the G code interpretation procedure of pipeline processing mode, substitute the G code compiling and the interpretive mode of traditional Industrial PC Computer in Embedded mode.Adopt the mode of streamline that numerical control machining code is compiled and explains, can reduce the time that instruction is carried out, strengthen the G code processing power of flush bonding processor.This inlaid numerical control system G code interpretative device is developed and is debugged under the ADS of ARM company (ARMDeveloper Suite) 1.2 Integrated Development Environment, be implanted in the ARM7 master controller S3C44B0 chip of built-in digital control system, and a real-time processing tasks as multitasking moves in the Ucosii embedded real-time operating system in being transplanted to ARM7 master controller S3C44B0 chip.
The flush bonding module of difference in functionality be chosen and be disposed to the above-mentioned a specific embodiment of the present invention that provided can neatly at the feed shaft of different lathes, different processing objects, different numbers, different servomotors on hardware; Adopt standard C language to write on software, can be suitable for different software operating environments, have very strong portability, those skilled in the art can select suitable implementation according to actual conditions.
The content that is not described in detail in this instructions belongs to this area professional and technical personnel's known prior art.

Claims (4)

1, a kind of inlaid numerical control system G code interpretative device based on ARM is realized the compiling and the explanation of digital control processing G code on the embedded master controller of 32 ARM7, wherein:
A, described built-in digital control system master controller adopt 32 Feng. promise. according to the ARM7 microprocessor S3C44B0 chip of graceful structure, realize file system management, memory management, man-machine interface, network interface, system management interface, emulation demonstration and G code compiling and explanation function;
B, described inlaid numerical control system G code interpretative device adopt the G code interpretation procedure of pipeline processing mode, in the mode of streamline numerical control machining code are compiled and explain;
Transplanted the U-cosll real-time multi-task operating system in c, the described master controller, with program read in, syntax check, explanation become 4 tasks with 4 procedure definitions such as cutter compensations, carry out the message transmission by mailbox between each task, when the G code interpreter is worked, explain task run, deposit the intermediate result of compiling according to actual conditions distribute data buffer zone.
2, the inlaid numerical control system G code interpretative device based on ARM as claimed in claim 1, it is characterized in that: the G code interpretation procedure of pipeline processing mode is that a section reads in the internal memory with program in machine code, in " pre-process-data-switching-postposition is handled " process, constantly obtain in the data buffer handling, forming patching plug program at last can the recognition data structure, carries out work as a streamline.
3, the inlaid numerical control system G code interpretative device based on ARM as claimed in claim 1, it is characterized in that: master controller is the ARM7 microprocessor S3C44B0 of 32 risc architectures, and the G code interpreter based on the built-in digital control system of pipeline processing mode of exploitation on this basis.
4, the inlaid numerical control system G code interpretative device based on ARM as claimed in claim 1, it is characterized in that: the G code interpreter is developed and is debugged under the ADS of ARM company (ARM Developer Suite) 1.2 Integrated Development Environment, be implanted in the ARM7 master controller S3C44B0 chip of built-in digital control system, and a real-time processing tasks as multitasking moves in the Ucosii embedded real-time operating system in being transplanted to ARM7 master controller S3C44B0 chip.
CN 200610124743 2006-10-12 2006-10-12 Inlaid numerical control system G code interpretative device based on ARM Pending CN1936746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610124743 CN1936746A (en) 2006-10-12 2006-10-12 Inlaid numerical control system G code interpretative device based on ARM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610124743 CN1936746A (en) 2006-10-12 2006-10-12 Inlaid numerical control system G code interpretative device based on ARM

Publications (1)

Publication Number Publication Date
CN1936746A true CN1936746A (en) 2007-03-28

Family

ID=37954295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610124743 Pending CN1936746A (en) 2006-10-12 2006-10-12 Inlaid numerical control system G code interpretative device based on ARM

Country Status (1)

Country Link
CN (1) CN1936746A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102540964A (en) * 2010-12-09 2012-07-04 中国科学院沈阳计算技术研究所有限公司 Processing program interpreter implementation method for numerical control system with single motor to drive multiple shafts
CN109839903A (en) * 2017-11-27 2019-06-04 大族激光科技产业集团股份有限公司 Multitask cutting on line control method, system and laser cutting device
CN114563978A (en) * 2022-02-24 2022-05-31 乐健科技(珠海)有限公司 Drilling machine instruction generation method and drilling machine instruction generation device
CN115729174A (en) * 2022-12-07 2023-03-03 十堰高周波科工贸有限公司 Control system of non-marking machine tool
WO2024031553A1 (en) * 2022-08-11 2024-02-15 西门子股份公司 Real-time control method, real-time control apparatus, computing device, and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102540964A (en) * 2010-12-09 2012-07-04 中国科学院沈阳计算技术研究所有限公司 Processing program interpreter implementation method for numerical control system with single motor to drive multiple shafts
CN102540964B (en) * 2010-12-09 2013-08-21 中国科学院沈阳计算技术研究所有限公司 Processing program interpreter implementation method for numerical control system with single motor to drive multiple shafts
CN109839903A (en) * 2017-11-27 2019-06-04 大族激光科技产业集团股份有限公司 Multitask cutting on line control method, system and laser cutting device
CN109839903B (en) * 2017-11-27 2020-08-14 大族激光科技产业集团股份有限公司 Multi-task online cutting control method and system and laser cutting equipment
CN114563978A (en) * 2022-02-24 2022-05-31 乐健科技(珠海)有限公司 Drilling machine instruction generation method and drilling machine instruction generation device
CN114563978B (en) * 2022-02-24 2024-06-25 乐健科技(珠海)有限公司 Drilling machine instruction generation method and drilling machine instruction generation device
WO2024031553A1 (en) * 2022-08-11 2024-02-15 西门子股份公司 Real-time control method, real-time control apparatus, computing device, and storage medium
CN115729174A (en) * 2022-12-07 2023-03-03 十堰高周波科工贸有限公司 Control system of non-marking machine tool

Similar Documents

Publication Publication Date Title
CN107710086B (en) Translation module, processing module and control system
CN106737676B (en) It is a kind of based on script can secondary development industrial robot programing system
EP2169547A1 (en) Compilation model for programmable logic controllers (PLC)
CN103941650B (en) Logical AND motion integrated manipulator
CN106125664A (en) A kind of Embedded PLC control system
CN106844310A (en) A kind of structured text code process method and system
CN101196738A (en) Open type numerical control system based on PC
CN103814333A (en) Method and device for the programming and configuration of programmable logic controller
CN202372834U (en) Embedded numerical control system with dual-core central processing unit (CPU)
CN105159656A (en) PLC software programming aided design method
CN1936745A (en) Inlaid numerical control system based on ARM and DSP
CN1936746A (en) Inlaid numerical control system G code interpretative device based on ARM
CN106648681A (en) System and method for compiling and loading programmable language
Slavkovic et al. An indirect method of industrial robot programming for machining tasks based on STEP-NC
CN101382788A (en) Embedded digital control system based on ARM7 and FPGA
CN101226388A (en) Open type software numerical control system
CN105137800A (en) PLC cooperative control device based on SOPC technology
CN103676781A (en) Siemens 840D secondary interface based error dynamic compensation system
Xu et al. Research and development of open CNC system based on PC and motion controller
CN1752874A (en) Embedded type motion control method based on plate system and its device
CN104281096A (en) Construction method of numerical-control code compiler
Zhou et al. A new architecture of open CNC system based on compiling mode
CN207488786U (en) A kind of industrial automatic controller
CN102621960A (en) Advanced RISC machine-Linux (ARM-Linux)-based compiled programmable automation control (PAC)
CN109937404A (en) Real Data Exchangs between program module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication