CN101661277B - Part processing method and device used for numerical control machine - Google Patents

Part processing method and device used for numerical control machine Download PDF

Info

Publication number
CN101661277B
CN101661277B CN2009100928283A CN200910092828A CN101661277B CN 101661277 B CN101661277 B CN 101661277B CN 2009100928283 A CN2009100928283 A CN 2009100928283A CN 200910092828 A CN200910092828 A CN 200910092828A CN 101661277 B CN101661277 B CN 101661277B
Authority
CN
China
Prior art keywords
code
file
code library
parameter
library
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.)
Active
Application number
CN2009100928283A
Other languages
Chinese (zh)
Other versions
CN101661277A (en
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.)
Caxa Technology Co Ltd
Original Assignee
Caxa Technology Co Ltd
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 Caxa Technology Co Ltd filed Critical Caxa Technology Co Ltd
Priority to CN2009100928283A priority Critical patent/CN101661277B/en
Publication of CN101661277A publication Critical patent/CN101661277A/en
Application granted granted Critical
Publication of CN101661277B publication Critical patent/CN101661277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)

Abstract

The invention discloses a part processing method and a device used for a numerical control machine, wherein the method includes the following steps: reading a designated code file in a code call unit; searching the parameter of the designated code file and substituting the parameter by target parameter value to generate a target code file; and implementing the target code file to process parts.

Description

The method of processing parts and the device that are used for numerically-controlled machine
Technical field
The present invention relates to the numerically-controlled machine field, in particular to a kind of method of processing parts and device that is used for numerically-controlled machine.
Background technology
Along with the high speed development of computer technology, traditional manufacturing industry has begun fundamental change, and each industrially developed country drops into huge fund, and Modern Manufacturing Technology is researched and developed, and has proposed brand-new manufacturing mode.In modern manufacturing system, Numeric Control Technology is a gordian technique, has characteristics such as high precision, high-level efficiency, flexible automation, and manufacturing industry is realized that flexible automation, integrated, intellectuality play a part very important.At present, the height of Numeric Control Technology level has become the core sign of weighing a national manufacturing industry up-to-dateness, therefore, realizes machining tool and production run numerical controlization, has become a current manufacturing main developing direction.
Numerically-controlled machine is the high-efficient automatic equipment of automatically workpiece being processed according to the job sequence that weaves in advance.On numerically-controlled machine during processing parts, be whole technological processs, technological parameter and the displacement data of processing parts, be recorded on the control medium with the form of information, control lathe with the information on the control medium, realize whole process of part.Calling program composition to all processes that obtains the required control medium of numerically-controlled machine from detail drawing.
Part for simple shape generally adopts manual programming, and each one written program preserves separately, generally is kept on the computer or hard disk of oneself.When running into similar part processing again, also need coding again.
The inventor need write machining code again or existing machining code is made amendment when finding to run in the prior art similar part processing, repetitive operation is more, and required process is tediously long, complicated, causes production efficiency lower.
Summary of the invention
The present invention aims to provide a kind of method of processing parts and device that is used for numerically-controlled machine, can solve and to write machining code when running into similar part processing in the prior art again or existing machining code is made amendment, repetitive operation is more, required process is tediously long, complicated, causes the lower problem of production efficiency.
In an embodiment of the present invention, provide a kind of method of processing parts that is used for numerically-controlled machine, may further comprise the steps:
Read the appointment codes file in the code call unit;
Search the parameter of appointment codes file, and parameter is replaced the generation object code file with the target component value;
Carrying out object code file processes part.
In an embodiment of the present invention, also provide a kind of part processing device that is used for numerically-controlled machine, having comprised: code library definition unit, code library call unit and code performance element, wherein
The code library definition unit is used for editor and storage code file;
The code library call unit is used for reading the appointment codes file of code library definition unit, the parameter of searching the appointment codes file, and with the target component value parameter is replaced and to generate object code file;
The code performance element is used to carry out object code file part is processed.
In the above-described embodiments, when needs are processed similar part, by calling the code file that is kept in the code library, each parameter in the automatic searching code file, and replace with actual parameter value, thereby obtain the code of actual processing usefulness, simplified the process of manual programming, improved efficient, strengthened prgraming automatized and intelligently, overcome and need write machining code again when running into similar part processing in the prior art or existing machining code is made amendment, repetitive operation is more, required process is tediously long, complexity causes the lower problem of production efficiency.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 shows the method for processing parts process flow diagram that is used for numerically-controlled machine according to an embodiment of the invention;
Fig. 2 shows according to one embodiment of the invention application parameter code generating method synoptic diagram;
Fig. 3 shows the processing flow chart of opening code library according to an embodiment of the invention;
Fig. 4 shows edit code storehouse processing flow chart according to an embodiment of the invention;
Fig. 5 shows the part processing device synoptic diagram that is used for numerically-controlled machine according to an embodiment of the invention;
Fig. 6 shows the system architecture diagram of code generating unit according to an embodiment of the invention;
Fig. 7 shows code tree effect screen sectional drawing according to an embodiment of the invention.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 1 shows the method for processing parts process flow diagram that is used for numerically-controlled machine according to an embodiment of the invention, may further comprise the steps:
S102 reads the appointment codes file in the code call unit;
S104, the parameter of searching the appointment codes file, and parameter replace is generated object code file with the target component value;
S106 carries out object code file part is processed.
In the present embodiment, when needs are processed similar part, by calling the code file that is kept in the code library, each parameter in the automatic searching code file, and replace with actual parameter value, thereby obtain the code of actual processing usefulness, simplified the process of manual programming, improved efficient, strengthened prgraming automatized and intelligently, overcome and need write machining code again when running into similar part processing in the prior art or existing machining code is made amendment, repetitive operation is more, required process is tediously long, complexity causes the lower problem of production efficiency.
In an embodiment of the present invention, user's parameter format is according to the rules write parameter, when requiring automatic generating code, system will resolve the code file of user's appointment automatically, search parameter, and the parameter value that sets according to the user, alternative parameter, and then obtain the code of actual processing usefulness.For example, the form of constraints is: $ (variable name, unit, initial value), and format description: must be beginning with ' $ ' character, a pair of bracket of heel.Bracket is interior to be three parts with two CSVs.First is a variable name, can be Chinese character or English character, not can be sky; Second portion is the organization of this variable, can be sky; Third part is the initial value of this variable, can be sky, replaces with 0 when empty.Parameter is divided into systematic parameter and custom parameter again, and is as broad as long in the use.Systematic parameter certain numerical value confession of can extracting that is provided by device in the embodiments of the invention is provided directly calls, as s_LineNo (capable number), s_time (time) etc.Custom variable, careless definition, the variate-value that is provided with according to the user during replacement is replaced.
Fig. 2 shows according to one embodiment of the invention application parameter code generating method synoptic diagram, the code library file that write for the user in the left side, comprising: system variable: s_time; Custom variable: name of product, start angle, angle step, end angle, radius of corner, ball cutter radius, height Z.Parameter value in the code library file is as initial value.The right side is for adopting said method, the machining code of generation.
Preferably, in above-mentioned method of processing parts, the appointment codes file that reads in the code call unit specifically comprises: open code library and call window, open the code library that will extract; Read the appointment codes file in the code library, show the deploy content of appointment codes file, deploy content comprises parameter, synoptic diagram and note.In the present embodiment, provide patterned interface display, simple to operate.And in needs, can call the appointment codes file, convenient management.
Preferably, in above-mentioned method of processing parts, search the parameter of appointment codes file, and parameter replacement generation object code file is specifically comprised: the character string of resolving the appointment codes file line by line with target component; Judge whether contain parameter in the character string, if the character string after employing target component value is replaced parameter is as the place line character string of object code file; Otherwise, directly with the place line character string of character string as object code file.In the present embodiment, when needs extracted code library, the user only needed configuration parameter, has improved work efficiency.
Preferably, in above-mentioned method of processing parts, further comprising the steps of before the appointment codes file in reading the code call unit: open code library definition window, code library and relevant information thereof are edited, and the code file in the preservation code library; Turn back to code library and call window, refresh the deploy content that shows the code library after editing, deploy content comprises parameter, synoptic diagram and note.In the present embodiment, the built-in or some code library files of user's definable of system have made things convenient for the management of program and have called.
Fig. 3 shows the processing flow chart of opening code library according to an embodiment of the invention, may further comprise the steps:
S202 opens code library;
S204 preserves the former code library configuration of choosing;
S206 loads the current code library configuration of choosing;
S208, configurations shown content (parameter, synoptic diagram, note).
In the present embodiment, system at first with the former data storage of choosing code library in configuration file, and then read the current configuration file of choosing node, show corresponding code library information.
In an embodiment of the present invention, configuration file can write down code library information with XML form storage: comprise synoptic diagram path, note, parameter (parameter name, unit, value, in proper order).In the classification of each grade code library, include a config file, in order to deposit synoptic diagram file and configuration file, wherein configuration file is identical with the code library file.
For example, the configuration file (part.xml) that code library (part.1ibs) is corresponding thes contents are as follows:
<ParaCodeLib>
<CodeNode?name=″part″figure=″fig1.bmp″>
CodePara name=" name of product " unit=" " value=" elliptical-intracavity (089) " index=" 0 "/〉
<CodePara name=" start angle " unit=" degree " value=" 0.0 " index=" 1 "/〉
<CodePara name=" angle step " unit=" degree " value=" 9 " index=" 2 "/〉
<CodePara name=" end angle " unit=" degree " value=" 90.0 " index=" 3 "/〉
<CodePara name=" radius of corner " unit=" mm " value=" 5.0 " index=" 4 "/〉
<CodePara name=" ball cutter radius " unit=" mm " value=" 5 " index=" 5 "/〉
<CodePara name=" height Z " unit=" mm " value=" 0 " index=" 6 "/〉
</CodeNode>
</ParaCodeLib>
" CodeNode " represents code library, and " name " is library name, and " figure " is synoptic diagram (representing with relative path); " CodePara " represents parameter, and " name " is variable name, and " unit " is unit, and " value " is variate-value, and " index " is the variable order.
Fig. 4 shows edit code storehouse processing flow chart according to an embodiment of the invention, may further comprise the steps:
S302, the edit code storehouse;
S304 preserves the former code library configuration of choosing;
S306, in generation, opened code library definition window;
S308, edit code storehouse and relevant information;
S310 preserves the code library file;
S312, return code library call window;
S314 refreshes reveal codes library information (parameter, synoptic diagram, note).
In the present embodiment, system will be saved in the former code library information of choosing in the configuration file earlier, enter the code library definition unit then.The user can write operations such as code, variable ordering.After finishing editing, system will preserve the code library file, withdraw from the code library definition unit, turn back to the code library call unit, and refresh the reveal codes database data.
Fig. 5 shows the part processing device synoptic diagram that is used for numerically-controlled machine according to an embodiment of the invention, comprising: code library definition unit 10, code library call unit 20 and code performance element 30, wherein
Code library definition unit 10 is used for editor and storage code file;
Code library call unit 20 is used for reading the appointment codes file of code library definition unit 10, the parameter of searching the appointment codes file, and with the target component value parameter is replaced and to generate object code file;
Code performance element 30 is used to carry out object code file part is processed.
In the present embodiment, when needs are processed similar part, by calling the code file that is kept in the code library, each parameter in the automatic searching code file, and replace with actual parameter value, thereby obtain the code of actual processing usefulness, simplified the process of manual programming, improved efficient, strengthened prgraming automatized and intelligently, overcome and need write machining code again when running into similar part processing in the prior art or existing machining code is made amendment, repetitive operation is more, required process is tediously long, complexity causes the lower problem of production efficiency.
Simultaneously, the digital control system of prior art generally can use some variablees to programme, and the user also can use some variablees to come parameter in the logging program, but when re-using next time, also needs to change once more by hand.If the variable that the user write does not originally add any note, then spent a period of time after, can be confused when opening program once more, cannot tell each variable of Chu and represent what meaning, as easy as rolling off a log makeing mistakes; And in an embodiment of the present invention, manage by the code library call unit, overcome the problems referred to above.
Fig. 6 shows the system architecture diagram of code generating unit according to an embodiment of the invention, as shown in Figure 6, comprises code library definition unit 10 and code library call unit 20.Code library definition unit 10 is to be used for edit code, reveal codes, the user can import any character, when user's input meets the character string of parameter-definition form, will show with a kind of eye-catching blueness, showing difference, each variable with variable name as unique identification.Code library definition unit 10 mainly comprises code editor module 101, parameter parsing module 102, code display module 103, data disaply moudle 104.Code library call unit 20 is to be used for management code storehouse, edit code storehouse, invoke code storehouse, configuration parameter, and the instrument of generation machining code is represented code library (being called code tree in this explanation) with the form of tree.Code library call unit 20 mainly comprises code tree administration module 201, code tree editor module 202, code library display module 203, code library configuration module 204, information indicating module 205.
Preferably, in above-mentioned part processing device, the code library call unit comprises: code tree, and corresponding one by one with the file path of code library, be used for the code file of code library is browsed and edited.In the present embodiment, the user can classify to machining code, and sets up code library and relation thereof by classification, and the user can browse fast, search code library, is convenient to management.
Fig. 7 shows code tree effect screen sectional drawing according to an embodiment of the invention.Code tree plays whole code library and browses and managerial role, editting function such as newly-built classification, newly-built code library, deletion, shearing, copy, stickup, rename are arranged, drag.Illustrate code tree synoptic diagram according to an embodiment of the invention, code tree is corresponding one by one with file path, and each node on the tree is similar to the relation of file and file.When to the node editor on the tree, be equivalent to file on the hard disk or file are operated.During as a newly-built code library file, can be in hard disk the relevant position new files.Conversely, can directly operate, also be equivalent to code library is edited the file or the file of code library on the hard disk.By this corresponding relation, be convenient to the management of code library, make operation simple more, convenient.For example: when need merge certain code library, as long as with this document folder and under All Files, the relevant position that copies to code library gets final product.
Preferably, in above-mentioned part processing device, code tree specifically comprises: the code tree administration module is used for the code file of code library is browsed; The code tree editor module is used for the code file of code library is edited.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. a method of processing parts that is used for numerically-controlled machine is characterized in that, may further comprise the steps:
Open code library definition window, code library and relevant information thereof are edited, and preserve code file in the described code library;
Turn back to code library and call window, refresh the deploy content that shows the described code library after editing, described deploy content comprises parameter, synoptic diagram and note;
Read the appointment codes file in the code call unit;
Search the parameter of described appointment codes file, and described parameter is replaced the generation object code file with the target component value;
Carrying out described object code file processes part.
2. method of processing parts according to claim 1 is characterized in that, the appointment codes file that reads in the code call unit specifically comprises:
Open code library and call window, open the code library that will extract;
Read the appointment codes file in the described code library, show the deploy content of described appointment codes file, described deploy content comprises parameter, synoptic diagram and note.
3. method of processing parts according to claim 1 is characterized in that, searches the parameter of described appointment codes file, and with the target component value described parameter replacement generation object code file is specifically comprised:
Resolve the character string of described appointment codes file line by line;
Judge whether contain parameter in the described character string, if employing target component value is replaced the parameter in the described character string, and with its place line character string as object code file;
Otherwise, directly with the place line character string of described character string as object code file.
4. a part processing device that is used for numerically-controlled machine is characterized in that, comprising: edit cell, display unit, code library definition unit, code library call unit and code performance element, wherein
Described edit cell is used to open code library definition window, code library and relevant information thereof is edited, and preserved code file in the described code library;
Described display unit is used to turn back to code library and calls window, refreshes the deploy content that shows the described code library after editing, and described deploy content comprises parameter, synoptic diagram and note;
Described code library definition unit is used for editor and storage code file;
Described code library call unit is used for reading the appointment codes file of described code library definition unit, the parameter of searching described appointment codes file, and with the target component value described parameter is replaced and to generate object code file;
Described code performance element is used to carry out described object code file part is processed.
5. part processing device according to claim 4 is characterized in that, described code library call unit comprises:
Code tree, corresponding one by one with the file path of code library, be used for the code file of described code library is browsed and edited.
6. method of processing parts according to claim 5 is characterized in that, described code tree specifically comprises:
The code tree administration module is used for the code file of described code library is browsed;
The code tree editor module is used for the code file of described code library is edited.
CN2009100928283A 2009-09-09 2009-09-09 Part processing method and device used for numerical control machine Active CN101661277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100928283A CN101661277B (en) 2009-09-09 2009-09-09 Part processing method and device used for numerical control machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100928283A CN101661277B (en) 2009-09-09 2009-09-09 Part processing method and device used for numerical control machine

Publications (2)

Publication Number Publication Date
CN101661277A CN101661277A (en) 2010-03-03
CN101661277B true CN101661277B (en) 2011-09-14

Family

ID=41789345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100928283A Active CN101661277B (en) 2009-09-09 2009-09-09 Part processing method and device used for numerical control machine

Country Status (1)

Country Link
CN (1) CN101661277B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508660A (en) * 2011-10-26 2012-06-20 青岛海信宽带多媒体技术有限公司 Generation method and device of executable file
CN103869754A (en) * 2014-02-27 2014-06-18 安徽省捷甬达智能机器有限公司 Numerical control machining method
CN106843863A (en) * 2017-01-06 2017-06-13 青岛海信日立空调系统有限公司 A kind of airconditioning control parameter visual code amending method and code revision device
CN108958168A (en) * 2017-05-27 2018-12-07 贺尔碧格(上海)有限公司 A kind of air valve part by numerical control milling parameter modularization system of processing and method

Also Published As

Publication number Publication date
CN101661277A (en) 2010-03-03

Similar Documents

Publication Publication Date Title
US7617444B2 (en) File formats, methods, and computer program products for representing workbooks
JP2007179492A (en) Division program, connection program and information processing method
US20120210298A1 (en) Locating changes in source code
JP2000148461A (en) Software model and existing source code synchronizing method and device
CN107622080B (en) Data processing method and equipment
CN101661277B (en) Part processing method and device used for numerical control machine
CN103744647A (en) Java workflow development system and method based on workflow GPD
CN113761859B (en) Electronic report definition method and device and electronic equipment
CN105868168A (en) A document operation method and a terminal
CN101388018A (en) Computer aided design document management method
CN110659393B (en) Method and system for generating xml code
CN110502735B (en) Method and system for quickly manufacturing universal process file of electronic equipment
JPH02297284A (en) Document processing system and version control system
CN105426676A (en) Drilling data processing method and system
CN111026704B (en) Method for generating and storing processing of processing tool path information in numerical control system and storage medium thereof
CN115858685B (en) Online synchronization method and device for demand files, terminal and readable storage medium
CN104424334A (en) Method and device for constructing nodes of XML (eXtensible Markup Language) documents
RU2379748C2 (en) Method of managing data in document created by computer and machine-readable medium on which program is recorded
CN111125227B (en) Interactive electronic manual data processing method, device, storage medium and equipment
CN116627525A (en) Method and system for web front-end application appointment type state management configuration
JP5894475B2 (en) Sorting support program and sorting method
CN112329396A (en) Online document paging method, device, equipment and readable medium
JPH11224279A (en) Cad data managing device
JPH0251738A (en) Automatic translation method into logical simulation describing language from digital circuit data
JPS62217320A (en) List compilation processing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: CAXA TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: BEIJING DIGITAL DAFANG TECHNOLOGY CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 100080, Room 802, satellite building, No. 63, Zhichun Road, Beijing, Haidian District

Patentee after: Beijing CAXA Technology Co., Ltd.

Address before: 100080, Room 802, satellite building, No. 63, Zhichun Road, Beijing, Haidian District

Patentee before: Beijing Digital Dafang Technology Co., Ltd.