CN106134470B - A kind of DNC integrated management system and method - Google Patents

A kind of DNC integrated management system and method

Info

Publication number
CN106134470B
CN106134470B CN201218000244.1A CN201218000244A CN106134470B CN 106134470 B CN106134470 B CN 106134470B CN 201218000244 A CN201218000244 A CN 201218000244A CN 106134470 B CN106134470 B CN 106134470B
Authority
CN
China
Prior art keywords
program
numerical control
module
information
strlnputline
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.)
Expired - Fee Related
Application number
CN201218000244.1A
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.)
Beijing Satellite Manufacturing Factory Co Ltd
Original Assignee
Beijing Satellite Manufacturing Factory 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 Beijing Satellite Manufacturing Factory Co Ltd filed Critical Beijing Satellite Manufacturing Factory Co Ltd
Priority to CN201218000244.1A priority Critical patent/CN106134470B/en
Application granted granted Critical
Publication of CN106134470B publication Critical patent/CN106134470B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • General Factory Administration (AREA)

Abstract

A kind of DNC integrated management system and method based on PDM/CAPP/CAM, closely integrated by between PDM/CAPP/CAM system and DNC system, the collection, storage of incidence relation between designed graphic document, Three Dimensional Design Model, numerical control technical papers, nc program, new management are more realized, and input by the bar code at scene, workshop, numerical control technical papers and Site Design map file have been carried out to consistency checking. This method has overcome the weak point that parts papery designed graphic document, papery numerical control process chart and electronic numerical control procedure three under traditional work mode lack efficient association relation, solve the accurately bottleneck problem of correspondence of designed graphic document, numerical control process chart and nc program because product technology state variation causes, guarantee the correctness of numerical control program version, Processing Quality of NC Machining effectively ensured, efficiency is increased dramatically.

Description

A kind of DNC integrated management system and method
Technical field
The present invention relates to product data management modular system (PDM), CAPP system(CAPP), computer-aided manufacturing module (CAM) system and distributed digital control system (DNC)The integrated and method of information, belong to Technique of Information Integration field.
Background technology
The digital control processing of part is carried out based on designed graphic document or Three Dimensional Design Model. Original design,In the management system of technique, nc program, designed graphic document and Three Dimensional Design Model are in product data managementIn system, manage, after examination & approval, issue to instruct and produce; Based on designed graphic document, technologist is at computer aided manufacturingIn assistant engineer's skill planning system, write numerical control process chart, after examination & approval, distribute with paper-based form; Numerical control techniqueNc program corresponding to card based on Three Dimensional Design Model after computer aided manufacture system generates,Be sent to corresponding numerical control device by network or movable storage device. Under original mode, parts paperyDesigned graphic document, papery numerical control process chart and electronic numerical control procedure separately issue, and between three, lack and haveEffect incidence relation, cannot tackle the quick variation of product technology state, easily causes designed graphic document, numerical control workThe confusion of skill card and nc program corresponding relation and version, has greatly restricted digital control processing production efficiencyLifting. In addition,, under original mode, nc program adopts manual mode to carry out cutting, works as programWhen large, quantity is more, manual working process is loaded down with trivial details, and the time is tediously long, and the efficiency of cutting is lower, program matterAmount is difficult to be guaranteed.
Summary of the invention
Technology of the present invention is dealt with problems and is: overcome the deficiencies in the prior art, provide a kind of based on PDM/DNC integrated management system and the method for CAPP/CAM, realize designed graphic document, Three Dimensional Design Model, numberThe collection of incidence relation between control technical papers, nc program, storage, renewal and comparison management, andBy the bar code input at scene, workshop, numerical control technical papers and Site Design map file have been carried out to consistency checking,Guarantee the correctness of nc program.
Technical solution of the present invention is: a kind of DNC integrated management system based on PDM/CAPP/CAMSystem, comprise product data management module, CAPP module, computer-aided manufacturing module,Related information acquisition module, related information administration module, related information comparing module, bar code information gather mouldPiece, consistency checking module, numerical control program scheduler module, numerically controlled processing equipment module;
CAPP module in CAPP system according to designed graphic document, Three Dimensional Design Model,Generate numerical control process chart information, and numerical control process chart information is sent into product data management module;
Computer-aided manufacturing module according to designed graphic document, Three Dimensional Design Model, generates number in CAM systemControl procedure, and nc program is sent into product data management module;
The numerical control that product data management module is sent into according to CAPP module in PDM systemThe nc program that process chart information and computer-aided manufacturing module are sent into, generates designed graphic document, threeDimension designs a model, efficient association relation between numerical control process chart information and nc program, and establishesPut numerical control program attribute information, examine by numerical control process chart information and numerical control in product data management moduleAfter procedure, send examining by information into related information acquisition module;
Related information acquisition module is receiving examination & approval that product data management module sends into by after information,From product data management module, gather efficient association relation, nc program and numerical control program attribute information,And the efficient association relation of collection, nc program and numerical control program attribute information are sent into related information pipeReason module;
The efficient association that related information administration module is sent into related information acquisition module with the form of database closesSystem, nc program and numerical control program attribute information carry out data maintenance and management;
Bar code information acquisition module obtains the bar code information on Site Design map file and numerical control process chart, and willThe bar code information of the two is sent into related information comparing module;
The bar code information that related information comparing module is sent into bar code information acquisition module and related information management mouldThe compare logic judgement of corresponding informance in piece, and by the bar on Site Design map file and numerical control process chartCode information and corresponding logic judged result are sent into consistency checking module;
The bar code information that consistency checking module is sent into related information comparing module and logic judged result are carried outShow, and this logic judged result is sent to numerical control program scheduler module;
The logic judged result that numerical control program scheduler module is sent into according to consistency checking module, from related informationIn administration module, obtain corresponding nc program and numerical control program attribute information, and belong to according to numerical control programProperty information is carried out cutting to nc program, and the nc program after cutting is sent into digital control processing and establishStandby module, the nc program by numerically controlled processing equipment module after according to cutting is processed.
A DNC integrated management method based on PDM/CAPP/CAM, realizes by following steps:
The first step, according to the designed graphic document of parts to be processed and Three Dimensional Design Model, in CAPP system,Set up corresponding numerical control process chart information;
Second step, according to the designed graphic document of parts to be processed and Three Dimensional Design Model, in CAM system,Set up corresponding nc program;
The 3rd step: by numerical control process chart information and the nc program set up in the first step, second stepSend in PDM system, in PDM system, set up above-mentioned designed graphic document, Three Dimensional Design Model, numerical controlIncidence relation between process chart information and nc program, and numerical control program attribute information is set;
The 4th step, will examine by numerical control process chart information corresponding incidence relation, numerical control in PDM systemProcedure and numerical control program attribute information adopt the form of database to store, when designed graphic document, numerical controlWhen change occurs for technical papers or nc program, corresponding incidence relation automatically upgrades in database;
The 5th step: in PDM system, print designed graphic document and the numerical control process chart of parts to be processed, andPrint corresponding bar code;
The 6th step: before digital control processing, the bar code information on scanning Site Design map file and numerical control process chart;The incidence relation information of carrying out in this bar code information and database is compared to logic judgement, by Site Design map fileShow with bar code information and corresponding logic judged result on numerical control process chart;
The 7th step according to user's request, is obtained the consistent logic judged result correspondence of contrast from PDM systemNc program, and according to numerical control program attribute information, numerical control program is carried out to cutting, according to after cuttingNumerical control program process.
It is as follows that the 6th described step is compared logic determining step to the incidence relation information of carrying out:
A6.1 inquires about the map file identical with the on-the-spot designed graphic document bar code of obtaining in related information management databaseInformation;
If A6.2 does not inquire identical map file information in related information management database, associated failure;If inquire identical map file information in related information management database, extract this map file letter in databaseThe associated code name of breath;
A6.3 inquires about identical with the on-the-spot numerical control process chart bar code of obtaining in related information management databaseCard image;
If A6.4 does not inquire identical card image in related information management database, associated failure;If inquire identical card image in related information management database, extract this card letter in databaseThe associated code name of breath;
A6.5 is by the card letter extracting in the map file information association code name extracting in steps A 6.2 and steps A 6.4Cease associated code name and compare, if comparison result unanimously illustrates on-the-spot numerical control process chart and Site Design figureShelves are successfully associated, otherwise associated failure.
The 7th described step is carried out cutting to numerical control program and is divided into following three kinds of situations:
(1) if numerical control program attribute information is Fa Nake controller type, take the following step to carry out programCutting:
Program cutting status indicator bCutting is set to False by A7.1, by program line number counterNCounter is set to 0;
A7.2 reads a line program sequentially from nc program, deposits the trip order in character stringIn variable strlnputLine;
If A7.3 strlnputLine is EOF EOF, program cutting finishes; Otherwise execution step A7.4;
If A7.4 present procedure cutting state is False, whether judge this string variable strlnputLineFor %, if judged result is true, the text of newly-built suffix .txt by name, deposits character string % inThe first row of text, as the initial character string of text file, and by program cutting status indicatorBCutting is set to True, and program line number counter nCounter is set to 1, returns to steps A 7.2 simultaneously;If judged result is false, directly return to steps A 7.2;
If A7.5 present procedure cutting state is True, deposit strlnputLine in text, and programThe value of line number counter nCounter is from increasing 1;
Whether the value of A7.6 determining program line number counter nCounter is 2, if judged result is true, willStrlnputLine is as the root name of text file;
A7.7 judges whether strlnputLine is %, if judged result is true, using % as this article hereinThe Termination String of part, Saves and Closes newly-built text, and by program cutting status indicator bCuttingBe set to False, program line number counter nCounter is set to 0, return to steps A 7.2 simultaneously; If judgementResult is false, directly returns to steps A 7.2;
(2) if nc program attribute information is Siemens Control device type, take the following step to carry outProgram cutting:
Program cutting status indicator bCutting is set to False by B7.1;
B7.2 reads a line program sequentially from nc program, deposits the trip order in character stringIn variable strlnputLine;
If B7.3 strlnputLine is EOF EOF, program cutting finishes; Otherwise execution step B7.4;
If B7.4 present procedure cutting state is False, judge that this string variable strlnputLine startsWhether 4 characters are %_N_, if judged result is true, and the text of newly-built suffix .mpf by name,StrlnputLine is deposited in to the first row of text, as the initial character string of text file, willAll the other character strings in strlnputLine except %_N_ are as the root name of text file, and by programCutting status indicator bCutting is set to True, returns to step B7.2 simultaneously; If judged result is false, straightConnect and return to step B7.2;
If B7.5 present procedure cutting state is True, deposit strlnputLine in text;
B7.6 judges whether strlnputLine is M30, if judged result is true, using M30 as this articleThe Termination String of presents, Saves and Closes newly-built text, and by program cutting status indicatorBCutting is set to False, returns to step B7.2 simultaneously; If judged result is false, directly return to step B7.2;
(3) if nc program attribute information is Heidenhain controller type, take the following step to carry outProgram cutting:
Program cutting status indicator bCutting is set to False by C7.1;
C7.2 reads a line program sequentially from nc program, deposits the trip order in character stringIn variable strlnputLine;
If C7.3 strlnputLine is EOF EOF, program cutting finishes; Otherwise execution step C7.4;
If C7.4 present procedure cutting state is False, judge that this string variable strlnputLine isNoly start with character string BEGIN PGM, with character string, MM finishes, if judged result is true, newly-builtA suffix is called the text of .h, strlnputLine is deposited in to the first row of text, as this articleThe initial character string of presents, makes the character string between BEGIN PGM and MM in strlnputLineFor the root name of text file, and program cutting status indicator bCutting is set to True, returns simultaneouslyReturn step C7.2; If judged result is false, directly return to step C7.2;
If C7.5 present procedure cutting state is True, deposit strlnputLine in text;
C7.6 judges whether strlnputLine starts with character string END PGM, and MM finishes with character string,If judged result is true, the Termination String using strlnputLine as text file, Saves and ClosesNewly-built text, and program cutting status indicator bCutting is set to False, return to step simultaneouslyC7.2; If judged result is false, directly return to step C7.2.
The present invention's beneficial effect is compared with prior art:
(1) the present invention is by the tight collection of CAPP system, CAM system, PDM system and DNC systemBecome, realize the efficient association of designed graphic document, Three Dimensional Design Model, numerical control process chart and nc program,Ensure design data, relevance and the uniformity of manufacturing process data in transmission, changed traditional work sideThe data that under formula, designed graphic document, numerical control process chart, nc program easily cause when separately transmitting, issuingChaotic problem, has guaranteed accuracy and the uniformity of data.
(2) designed graphic document in the present invention, numerical control process chart, nc program and Three Dimensional Design ModelEtc. data either party while changing, all temporary transient quilts of corresponding incidence relation in product data management systemLocking, while passing through, can change and generate new association for incidence relation in product data management system to examination & approvalBe related to version, guarantee upgrading in time of version, realize effective control of version.
(3) the numerical control program automatic segmentation method that the present invention adopts relates to Fa Nake (FANUC), Siemens(SIEMENS), the various control system such as Heidenhain (HEIDENHAIN), the method is by numerical controlThe automatic identifying processing of program initial character string and Termination String, can not only realize the fast of miniature numerical control programSpeed cutting, can also solve the quick cutting difficult problem of the large-sized numerical control program of big data quantity, many entries, and it is suitable forController kind many, numerical control program scope is wide, is that one has high flexibility and extensive adaptive numerical control journeyOrder automatic segmentation method.
Brief description of the drawings
Fig. 1 is module map of the present invention;
Fig. 2 is flow chart of the present invention;
Fig. 3 is that the present invention compares logic decision flow chart;
Fig. 4 is Fa Nake of the present invention (FANUC) numerical control program cutting flow chart.
Fig. 5 is Siemens of the present invention (SIEMENS) numerical control program cutting flow chart.
Fig. 6 is Heidenhain of the present invention (HEIDENHAIN) numerical control program cutting flow chart;
Fig. 7 is the incidence relation exploded view between the each data items of database of the present invention;
Fig. 8 is the incidence relation exploded view between the each data items of database in the embodiment of the present invention;
Fig. 9,10 is respectively the code name schematic diagram of designed graphic document in the embodiment of the present invention, numerical control process chart.
Detailed description of the invention
The DNC integrated management system of realization based on PDM/CAPP/CAM as shown in Figure 1, comprises product numberAccording to administration module 1, CAPP module 2, computer-aided manufacturing module 3, related informationAcquisition module 4, related information administration module 5, related information comparing module 6, bar code information acquisition module 7,Consistency checking module 8, numerical control program scheduler module 9, numerically controlled processing equipment module 10; Be situated between in detail belowThe implementation procedure of each module that continues:
(1) product data management module 1, CAPP module 2, computer-aided manufacturingModule 3
Product data management module 1, CAPP module 2, computer-aided manufacturing module 3In PDM system, CAPP system and CAM system, realize respectively, be known to the skilled personSystem, is not elaborated.
CAPP module 2 in CAPP system according to designed graphic document, Three Dimensional Design Model,Generate numerical control process chart information, and sent into product data management module 1;
Computer-aided manufacturing module 3 according to designed graphic document, Three Dimensional Design Model, generates in CAM systemNc program, and sent into product data management module 1;
Product data management module 1 is sent into according to CAPP module 2 in PDM systemThe nc program that numerical control process chart information and computer-aided manufacturing module 3 are sent into, generates design drawingEfficient association relation between shelves, Three Dimensional Design Model, numerical control process chart information and nc program,And numerical control program attribute information is set. Examine by numerical control process chart information in product data management module 1After nc program, send examining by information into related information acquisition module 4;
There is one group of designed graphic document, Three Dimensional Design Model, numerical control process chart and the numerical control of effective incidence relationProcedure is integrated in PDM system and is endowed identical and unique associated code name, and PDM system is in additionDesigned graphic document and numerical control process chart distribute corresponding bar code information. In the present invention, associated code name is used asWhether associated unique foundation between each data.
(2) related information acquisition module 4
Related information acquisition module 4 passes through information receiving the examination & approval that product data management module 1 sends intoAfter, from product data management module 1, gather efficient association relation corresponding to this numerical control process chart information,Nc program and numerical control program attribute information, and by the efficient association relation, the nc program that gatherSend into related information administration module 5 with numerical control program attribute information.
(3) related information administration module 5
Effective pass that related information administration module 5 is sent into related information acquisition module 4 with the form of databaseConnection relation is carried out data maintenance and management;
Maintenance and management is herein mainly that the efficient association information to sending into is stored or revised. For exampleWhen system of the present invention has generated an efficient association pass according to the designed graphic document that will process and Three Dimensional Design ModelAfter system, related information administration module 5 meetings record in database (being related information management database). WithTime database will there is designed graphic document, Three Dimensional Design Model, numerical control process chart, the number of identical associated code nameMultiple documents such as control procedure deposit in an object and carry out maintenance and management, have ensured associated closing between dataThe validity of system, Fig. 7 is the incidence relation exploded view between the each data items of database.
(4) bar code information acquisition module 7, related information comparing module 6
Bar code information acquisition module 7 is by carrying out associatedly with equipment such as production scene barcode scanner, and establish at the scene of obtainingBar code information on meter map file and numerical control process chart, and the bar code information of the two is sent into related information comparisonModule 6;
The bar code information that related information comparing module 6 is sent into bar code information acquisition module 7 and related information pipeThe logic judgement of comparing of the corresponding informance of reason in module 5, and by Site Design map file and numerical control process chartOn bar code information and corresponding logic judged result send into consistency checking module 8;
The incidence relation information of carrying out is compared to logic determining step as follows:
(1) the inquiry map file identical with the on-the-spot designed graphic document bar code of obtaining in related information management databaseInformation;
(2) if do not inquire identical map file information in related information management database, associated failure;If inquire identical map file information in related information management database, extract this map file letter in databaseThe associated code name of breath;
(3) in related information management database, inquiry is identical with the on-the-spot numerical control process chart bar code of obtainingCard image;
(4) if do not inquire identical card image in related information management database, associated failure;If inquire identical card image in related information management database, extract this card letter in databaseThe associated code name of breath;
(5) by the card letter extracting in the map file information association code name extracting in step (2) and step (4)Cease associated code name and compare, if comparison result unanimously illustrates on-the-spot numerical control process chart and Site Design figureShelves are successfully associated, otherwise associated failure.
(5) consistency checking module 8
The bar code information that consistency checking module 8 is sent into related information comparing module 6 and logic judged resultShow, and this logic judged result is sent to numerical control program scheduler module 9;
(6) numerical control program scheduler module 9
The logic judged result that numerical control program scheduler module 9 is sent into according to consistency checking module 8, Yi JiyongFamily demand is obtained corresponding nc program from related information administration module 5, and numerical control program is carried outCutting, and the nc program after cutting is sent into numerically controlled processing equipment module 10, by numerically controlled processing equipmentModule 10 is processed according to the nc program after cutting.
The cutting of numerical control program is divided into following three kinds of situations:
(1) if numerical control program attribute information is Fa Nake (FANUC) controller type, take following stepSuddenly carry out program cutting:
Program cutting status indicator bCutting is set to False by 1.1, by program line number counter nCounterBe set to 0;
1.2 read a line program sequentially from nc program, deposit the trip order in character string and becomeIn amount strlnputLine;
If 1.3 strlnputLine are EOF EOF, program cutting finishes; Otherwise execution step 1.4;
If 1.4 present procedure cutting states are False, whether judge this string variable strlnputLineFor " % ", if judged result is true, the text of newly-built suffix .txt by name, by character string " % "Deposit the first row of text in, as the initial character string of text file, and by program cutting state markKnow bCutting and be set to True, program line number counter nCounter is set to 1, return to step 1.2 simultaneously;If judged result is false, directly return to step 1.2;
If 1.5 present procedure cutting states are True, deposit strlnputLine in text, and program lineThe value of number counter nCounter is from increasing 1;
Whether the value of 1.6 determining program line number counter nCounter is 2, if judged result is true, willStrlnputLine is as the root name of text file;
1.7 judge whether strlnputLine is " % ", if judged result is true, by " % " as this articleThe Termination String of presents, Saves and Closes newly-built text, and by program cutting status indicatorBCutting is set to False, and program line number counter nCounter is set to 0, returns to step 1.2 simultaneously;If judged result is false, directly return to step 1.2;
(2) if nc program attribute information is Siemens (SIEMENS) controller type, adoptGet the following step and carry out program cutting:
Program cutting status indicator bCutting is set to False by 2.1;
2.2 read a line program sequentially from nc program, deposit the trip order in character string and becomeIn amount strlnputLine;
If 2.3 strlnputLine are EOF EOF, program cutting finishes; Otherwise execution step 2.4;
If 2.4 present procedure cutting states are False, judge that this string variable strlnputLine startsWhether 4 characters are " %_N_ ", if judged result is true, and the text of newly-built suffix .mpf by nameFile, deposits strlnputLine in the first row of text, as the initial character string of text file,Using all the other character strings except " %_N_ " in strlnputLine as the root name of text file, andProgram cutting status indicator bCutting is set to True, returns to step 2.2 simultaneously; If judged result is false,Directly return to step 2.2;
If 2.5 present procedure cutting states are True, deposit strlnputLine in text;
2.6 judge whether strlnputLine is " M30 ", if judged result is true, " M30 " are doneFor the Termination String of text file, Save and Close newly-built text, and by program cutting stateMark bCutting is set to False, returns to step 2.2 simultaneously; If judged result is false, directly return to stepRapid 2.2;
(3) if nc program attribute information is Heidenhain (HEIDENHAIN) controller type,Take the following step to carry out program cutting:
Program cutting status indicator bCutting is set to False by 3.1;
3.2 read a line program sequentially from nc program, deposit the trip order in character string and becomeIn amount strlnputLine;
If 3.3 strlnputLine are EOF EOF, program cutting finishes; Otherwise execution step 3.4;
If 3.4 present procedure cutting states are False, whether judge this string variable strlnputLineStart with character string " BEGIN PGM ", finish with character string " MM ", if judged result is true,A newly-built suffix is called the text of .h, strlnputLine is deposited in to the first row of text, asThe initial character string of text file, by strlnputLine between " BEGIN PGM " and " MM "Character string as the root name of text file, and program cutting status indicator bCutting is set toTrue returns to step 3.2 simultaneously; If judged result is false, directly return to step 3.2;
If 3.5 present procedure cutting states are True, deposit strlnputLine in text;
3.6 judge whether strlnputLine starts with character string " END PGM ", with character string " MM "Finish, if judged result is true, the Termination String using strlnputLine as text file, preservesAnd close newly-built text, and program cutting status indicator bCutting is set to False, return simultaneouslyStep 3.2; If judged result is false, directly return to step 3.2;
Below in conjunction with instantiation, implementation method of the present invention is described, implementation method flow chart as shown in Figure 2.
The first step, according to the designed graphic document of parts to be processed and Three Dimensional Design Model, in CAPP system,Set up corresponding numerical control process chart information;
Second step, according to the designed graphic document of parts to be processed and Three Dimensional Design Model, in CAM system,Set up corresponding nc program, program name is XX-CX-1112-0;
The 3rd step: by numerical control process chart information and the nc program set up in the first step, second stepSend in PDM system, in PDM system, set up above-mentioned designed graphic document, Three Dimensional Design Model, numerical controlIncidence relation between process chart information and nc program, and numerical control program attribute information is set; ThisIn example, for designed graphic document, Three Dimensional Design Model, numerical control process chart and nc program set up identical andUnique associated code name GL-512, and the attribute that numerical control program is set is Heidenhain (HEIDENHAIN) numberControl system;
The 4th step, after the examination & approval of PDM system are by numerical control process chart information and nc program, by rightIncidence relation, nc program and the numerical control program attribute information of answering adopts the form of database to storeWith management, the incidence relation in this example between the each data items of database as shown in Figure 8;
The 5th step: in PDM system, print designed graphic document and the numerical control process chart of parts to be processed, andPrint corresponding bar code, in map file bar code, contain map file code name information, in card bar code, contain card code name letterBreath; In this example, the code name of designed graphic document is XX-TD-1112-0, and the code name of numerical control process chart isXX-KP-1112-0, as shown in Fig. 9,10;
The 6th step: before digital control processing, the bar code information on Scan Design map file and numerical control process chart; ShouldThe incidence relation information of carrying out in bar code information and database is compared logic judgement, by Site Design map file and numberBar code information and corresponding logic judged result on control process chart are shown;
The concrete steps of incidence relation being carried out to the judgement of information comparison logic are as follows:
A6.1 inquires about and the on-the-spot designed graphic document bar code of obtaining in related information management databaseThe map file information that XX-TD-1112-0 is identical;
A6.2 inquires identical map file information in related information management database, and extract in database shouldThe associated code name GL-512 of map file information;
A6.3 inquires about and the on-the-spot numerical control process chart bar code of obtaining in related information management databaseThe card image that XX-KP-1112-0 is identical;
A6.4 inquires identical card image in related information management database, and extract in database shouldThe associated code name GL-512 of card image;
A6.5 will extract in the map file information association code name GL-512 extracting in steps A 6.2 and steps A 6.4The associated code name GL-512 of card image compare, comparison result unanimously illustrates on-the-spot numerical control process chartBe successfully associated with on-the-spot map file;
The 7th step according to user's request, is obtained the consistent nc program of contrast from PDM system, andAccording to numerical control program attribute information, numerical control program is carried out to cutting, process according to the numerical control program after cutting.
In this example, nc program attribute is Heidenhain (HEIDENHAIN) controller type, therefore adoptGet the following step and carry out program cutting:
Program cutting status indicator bCutting is set to False by C7.1;
C7.2 reads a line program sequentially from nc program, deposits the trip order in character stringIn variable strlnputLine;
If C7.3 strlnputLine is EOF EOF, program cutting finishes; Otherwise execution step C7.4;
If C7.4 present procedure cutting state is False, judge that this string variable strlnputLine isNo with character string " BEGIN PGM " beginning, with character string " MM " end, if judged result is true,A newly-built suffix is called the text of .h, strlnputLine is deposited in to the first row of text, doesFor the initial character string of text file, by " BEGIN PGM " and " MM " in strlnputLine itBetween character string as the root name of text file, and program cutting status indicator bCutting is set toTrue returns to step C7.2 simultaneously; If judged result is false, directly return to step C7.2;
If C7.5 present procedure cutting state is True, deposit strlnputLine in text;
C7.6 judges whether strlnputLine starts with character string " END PGM ", with character string " MM "Finish, if judged result is true, the Termination String using strlnputLine as text file, preservesAnd close newly-built text, and program cutting status indicator bCutting is set to False, return simultaneouslyStep C7.2; If judged result is false, directly return to step C7.2;
Carry out after cutting according to above-mentioned steps, it is 9 numerical control programs that former nc program is split, titleBe respectively: 1100.h, 1200.h, 1300.h, 1400.h, 1500.h, 1600.h, 1700.h, 1800.h,1900.h, above numerical control program will be used to this parts numerical control processing.
The unspecified part of the present invention belongs to general knowledge as well known to those skilled in the art.

Claims (4)

1. the DNC integrated management system based on PDM, CAPP and CAM, is characterized in that:Comprise product data management module (1), CAPP module (2), computer-aided manufacturingModule (3), related information acquisition module (4), related information administration module (5), related information comparison mouldPiece (6), bar code information acquisition module (7), consistency checking module (8), numerical control program scheduler module (9),Numerically controlled processing equipment module (10);
CAPP module (2) in CAPP system according to designed graphic document, three dimensional design mouldType, generates numerical control process chart information, and numerical control process chart information is sent into product data management module (1);
Computer-aided manufacturing module (3) in CAM system according to designed graphic document, Three Dimensional Design Model,Generate nc program, and nc program is sent into product data management module (1);
Product data management module (1) in PDM system according to CAPP module (2)The nc program that the numerical control process chart information of sending into and computer-aided manufacturing module (3) are sent into, rawBecome between designed graphic document, Three Dimensional Design Model, numerical control process chart information and nc program effectivelyIncidence relation, and numerical control program attribute information is set, examine by numerical control in product data management module (1)After process chart information and nc program, send examining by information into related information acquisition module (4);
Related information acquisition module (4) is to receive the examination & approval that product data management module (1) sends into logicalCross after information, from product data management module (1), gather efficient association relation, nc program and numberControl program attribute information, and by the efficient association relation gathering, nc program and numerical control program attribute letterBreath is sent into related information administration module (5);
Related information administration module (5) is sent into related information acquisition module (4) with the form of databaseEfficient association relation, nc program and numerical control program attribute information carry out data maintenance and management;
Bar code information acquisition module (7) obtains the bar code information on Site Design map file and numerical control process chart,And the bar code information of the two is sent into related information comparing module (6);
The bar code information that related information comparing module (6) is sent into bar code information acquisition module (7) is with associatedThe compare logic judgement of corresponding informance in information management module (5), and by Site Design map file and numerical controlBar code information on process chart and logic judged result are sent into consistency checking module (8);
Bar code information and logic that consistency checking module (8) is sent into related information comparing module (6) are sentencedDisconnected result is shown, and this logic judged result is sent to numerical control program scheduler module (9);
The logic judged result that numerical control program scheduler module (9) is sent into according to consistency checking module (8),From related information administration module (5), obtain corresponding nc program and numerical control program attribute information, andAccording to numerical control program attribute information, nc program is carried out to cutting, and by the nc program after cuttingSend into numerically controlled processing equipment module (10), added according to the numerical control after cutting by numerically controlled processing equipment module (10)Engineering order is processed.
2. the DNC integrated management method based on PDM, CAPP and CAM, is characterized in that leading toCrossing following steps realizes:
The first step, according to the designed graphic document of parts to be processed and Three Dimensional Design Model, in CAPP system,Set up corresponding numerical control process chart information;
Second step, according to the designed graphic document of parts to be processed and Three Dimensional Design Model, in CAM system,Set up corresponding nc program;
The 3rd step: by numerical control process chart information and the nc program set up in the first step, second stepSend in PDM system, in PDM system, set up above-mentioned designed graphic document, Three Dimensional Design Model, numerical controlIncidence relation between process chart information and nc program, and numerical control program attribute information is set;
The 4th step, after the examination & approval of PDM system are by numerical control process chart information and nc program, by rightIncidence relation, nc program and the numerical control program attribute information of answering adopts the form of database to store,In the time that change occurs for designed graphic document, numerical control technical papers or nc program, corresponding incidence relation is being countedAccording to automatically upgrading in storehouse;
The 5th step: in PDM system, print designed graphic document and the numerical control process chart of parts to be processed, andPrint corresponding bar code;
The 6th step: before digital control processing, the bar code information on scanning Site Design map file and numerical control process chart;The incidence relation information of carrying out in this bar code information and database is compared to logic judgement, by Site Design map fileShow with bar code information and corresponding logic judged result on numerical control process chart;
The 7th step according to user's request, is obtained the consistent nc program of contrast from PDM system, andAccording to numerical control program attribute information, nc program is carried out to cutting, carry out according to the numerical control program after cuttingProcessing.
3. a kind of DNC integrated pipe based on PDM, CAPP and CAM according to claim 2Reason method, is characterized in that: the 6th described step to incidence relation carry out information comparison logic determining step asUnder:
A6.1 inquires about the map file identical with the on-the-spot designed graphic document bar code of obtaining in related information management databaseInformation;
If A6.2 does not inquire identical map file information in related information management database, associated failure;If inquire identical map file information in related information management database, extract this map file letter in databaseThe associated code name of breath;
A6.3 inquires about identical with the on-the-spot numerical control process chart bar code of obtaining in related information management databaseCard image;
If A6.4 does not inquire identical card image in related information management database, associated failure;If inquire identical card image in related information management database, extract this card letter in databaseThe associated code name of breath;
A6.5 is by the card letter extracting in the map file information association code name extracting in steps A 6.2 and steps A 6.4Cease associated code name and compare, if comparison result unanimously illustrates on-the-spot numerical control process chart and Site Design figureShelves are successfully associated, otherwise associated failure.
4. a kind of DNC integrated pipe based on PDM, CAPP and CAM according to claim 2Reason method, is characterized in that: the 7th described step is carried out cutting to numerical control program and is divided into following three kinds of situations:
(1) if numerical control program attribute information is Fa Nake controller type, take the following step to carry out programCutting:
Program cutting status indicator bCutting is set to False by A7.1, by program line number counterNCounter is set to 0;
A7.2 reads a line program sequentially from nc program, deposits the trip order in character stringIn variable strlnputLine;
If A7.3 strlnputLine is EOF EOF, program cutting finishes; Otherwise execution step A7.4;
If A7.4 present procedure cutting state is False, whether judge this string variable strlnputLineFor %, if judged result is true, the text of newly-built suffix .txt by name, deposits character string % inThe first row of text, as the initial character string of text file, and by program cutting status indicatorBCutting is set to True, and program line number counter nCounter is set to 1, returns to steps A 7.2 simultaneously;If judged result is false, directly return to steps A 7.2;
If A7.5 present procedure cutting state is True, deposit strlnputLine in text, and programThe value of line number counter nCounter is from increasing 1;
Whether the value of A7.6 determining program line number counter nCounter is 2, if judged result is true, willStrlnputLine is as the root name of text file;
A7.7 judges whether strlnputLine is %, if judged result is true, using % as this article hereinThe Termination String of part, Saves and Closes newly-built text, and by program cutting status indicator bCuttingBe set to False, program line number counter nCounter is set to 0, return to steps A 7.2 simultaneously; If judgementResult is false, directly returns to steps A 7.2;
(2) if nc program attribute information is Siemens Control device type, take the following step to carry outProgram cutting:
Program cutting status indicator bCutting is set to False by B7.1;
B7.2 reads a line program sequentially from nc program, deposits the trip order in character stringIn variable strlnputLine;
If B7.3 strlnputLine is EOF EOF, program cutting finishes; Otherwise execution step B7.4;
If B7.4 present procedure cutting state is False, judge that this string variable strlnputLine startsWhether 4 characters are %_N_, if judged result is true, and the text of newly-built suffix .mpf by name,StrlnputLine is deposited in to the first row of text, as the initial character string of text file, willAll the other character strings in strlnputLine except %_N_ are as the root name of text file, and by programCutting status indicator bCutting is set to True, returns to step B7.2 simultaneously; If judged result is false, straightConnect and return to step B7.2;
If B7.5 present procedure cutting state is True, deposit strlnputLine in text;
B7.6 judges whether strlnputLine is M30, if judged result is true, using M30 as this articleThe Termination String of presents, Saves and Closes newly-built text, and by program cutting status indicatorBCutting is set to False, returns to step B7.2 simultaneously; If judged result is false, directly return to step B7.2;
(3) if nc program attribute information is Heidenhain controller type, take the following step to carry outProgram cutting:
Program cutting status indicator bCutting is set to False by C7.1;
C7.2 reads a line program sequentially from nc program, deposits the trip order in character stringIn variable strlnputLine;
If C7.3 strlnputLine is EOF EOF, program cutting finishes; Otherwise execution step C7.4;
If C7.4 present procedure cutting state is False, judge that this string variable strlnputLine isNoly start with character string BEGIN PGM, with character string, MM finishes, if judged result is true, newly-builtA suffix is called the text of .h, strlnputLine is deposited in to the first row of text, as this articleThe initial character string of presents, makes the character string between BEGIN PGM and MM in strlnputLineFor the root name of text file, and program cutting status indicator bCutting is set to True, returns simultaneouslyReturn step C7.2; If judged result is false, directly return to step C7.2;
If C7.5 present procedure cutting state is True, deposit strlnputLine in text;
C7.6 judges whether strlnputLine starts with character string END PGM, and MM finishes with character string,If judged result is true, the Termination String using strlnputLine as text file, Saves and ClosesNewly-built text, and program cutting status indicator bCutting is set to False, return to step simultaneouslyC7.2; If judged result is false, directly return to step C7.2.
CN201218000244.1A 2012-02-08 2012-02-08 A kind of DNC integrated management system and method Expired - Fee Related CN106134470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201218000244.1A CN106134470B (en) 2012-02-08 2012-02-08 A kind of DNC integrated management system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201218000244.1A CN106134470B (en) 2012-02-08 2012-02-08 A kind of DNC integrated management system and method

Publications (1)

Publication Number Publication Date
CN106134470B true CN106134470B (en) 2014-08-27

Family

ID=57251027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201218000244.1A Expired - Fee Related CN106134470B (en) 2012-02-08 2012-02-08 A kind of DNC integrated management system and method

Country Status (1)

Country Link
CN (1) CN106134470B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919138A (en) * 2015-12-24 2017-07-04 发那科株式会社 Control numerical control device, method and the computer program of lathe
CN108519874A (en) * 2017-02-27 2018-09-11 腾讯科技(深圳)有限公司 The generation method and device of Python project packets
CN109143977A (en) * 2017-06-19 2019-01-04 西门子(中国)有限公司 Numerical control processing integrated management system, method and manufacture operational management unit
CN110751892A (en) * 2018-07-23 2020-02-04 西门子(中国)有限公司 Discrete manufacturing demonstration system and demonstration method, demonstration device and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919138A (en) * 2015-12-24 2017-07-04 发那科株式会社 Control numerical control device, method and the computer program of lathe
CN106919138B (en) * 2015-12-24 2019-10-25 发那科株式会社 Control numerical control device, method and the storage medium of lathe
CN108519874A (en) * 2017-02-27 2018-09-11 腾讯科技(深圳)有限公司 The generation method and device of Python project packets
CN109143977A (en) * 2017-06-19 2019-01-04 西门子(中国)有限公司 Numerical control processing integrated management system, method and manufacture operational management unit
CN110751892A (en) * 2018-07-23 2020-02-04 西门子(中国)有限公司 Discrete manufacturing demonstration system and demonstration method, demonstration device and storage medium

Similar Documents

Publication Publication Date Title
CN106294572B (en) A kind of elevation map rapid generation based on AutoCAD data source and ArcGIS tool
CN100474318C (en) Automatic generation system for designing BOM
CN106874244A (en) A kind of construction method of the document Auto-generation Model based on work sequence
CN106134470B (en) A kind of DNC integrated management system and method
CN101819529A (en) System and method for realizing visual development of workflow task interface
CN104573231A (en) BIM based smart building system and method
CN106022708A (en) Method for predicting employee resignation
CN112131782A (en) Multi-loop intelligent factory edge side digital twin scene coupling device
CN103489061A (en) Batch data processing device and batch data processing method
CN103065356A (en) Offshore oil facility three-dimensional model building method
CN104135521A (en) Method and system of identifying data abnormal values of environment automatic monitoring network
CN115713161A (en) Building information management system based on BIM technology
CN103399848B (en) Engine test data normalization specific format imports processing method
CN109298882A (en) Management method, computer readable storage medium and the terminal device of interface
CN111368391B (en) Model conversion method oriented to carrier rocket system simulation
CN109325200A (en) Obtain the method, apparatus and computer readable storage medium of data
CN105159831A (en) Method for automatically monitoring quality of software code
CN103455896A (en) Paperless assembling quality control method based on internet of things
CN104156198A (en) Method and device for automatically generating software integration version updating description
KR100982527B1 (en) Total Dimensional Accuracy Control System and Method for Block Assembly
CN107291933B (en) Petri network-based soft PLC system data synchronization method
CN103440302A (en) Real-time data exchange method and system
CN103034917A (en) Device and method for designing material tracking system
CN105607957B (en) A kind of data acquisition analysis system based on OPC DA
CN110209722A (en) A kind of data-interface for data exchange

Legal Events

Date Code Title Description
GR03 Grant of secret patent right
GRSP Grant of secret patent right
DC01 Secret patent status has been lifted
DCSP Declassification of secret patent
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140827