The numerical control graph that is based on AutoCAD is automatic process designing system

  • Time:
  • Click:111
  • source:SVEND CNC Machining
Summary introduction is based on AutoCAD one kind platform, comfortable the graph at system of industrial PC numerical control is automatic process designing system. Use this system to need to enter AutoCAD scale to process part drawing form first, do prognosis to be able to create ISOCNC Machining program automatically via systematic craft next. Machine program can be saved through save file to disk or be being printed. At the same time the system has dynamic imitate to examine the function of machine program. Keyword: Graph of AutoCAD platform numerical control is automatic This Paper Develops That An Automatic NC Graphic Programming System Based On AutoCAD Platform Fits In With IPC-CNC System of Abstract   of   of   of Peng Yanrong of   of Luo Wenbo of   of Automatic NC Graphic Programming System Based On AutoCADHu Zihua of PC of process designing industry.

It Is Needed To Draw Machined Part Graphics In AutoCAD System First, and Then ISO Standard Part Working Program Can Be Generated Automatically After Interposition Machining Processing Of The System.

The Working Program Can Be Either Stored Into Disk Or Printed.

Meanwhile There Is A Dynamical Simulative Testing Function For Working Program In The System.

Key Words:ATechnology of numerical control of foreword of UtoCAD Platform; NC; Automatic Graphic Programming; Industrial Personal Computer(IPC)1 serves as a crucial technology of modern production technology, it is to raise a machine tool effectively to produce the efficiency, important step that assures to machine precision stability and consistency. Current, it is pioneer with beautiful, day, Europe, a lot of countries are developing new generation to open type CNC with all one's strength system of high-grade numerical control, home already had a few units such as university of northwest industry university, Beijing spaceflight aviation, Zhejiang university also undertaking new generation is based on industrial PC (Industrial Personal Computer, the development of system of abbreviation IPC) numerical control and attempt. Succeed as the development of system of IPC numerical control, among them the design of software of numerical control system will be provided more open sex and easy patulous the characteristic that upgrade. Choose for this author " gallop " abbreviation VB) develops a tool under platform of PC hardware platform, Windows95 operation platform, development of AutoCAD For Windows, Visual Basic(, development is comfortable the numerical control figure that uses on system of industrial PC numerical control is automatic process designing system. This system is had can transplant the gender is good, the function is easy patulous upgrade, operation, use, safeguard handy wait for a characteristic, the main content that the article develops to the system gives the introduction. The frame structure of 2 systems and structure of functional system frame are shown 1 times like the graph, it basically includes AutoCAD graph to generate, code of interpose of input of graphical data information, craft, NC is generated, dynamic desired result and CNC Machining program output 6 functions module. Among them the graph generates module to be finished by AutoCAD; The others module all develops a tool to develop to be based on AutoCAD platform to use VB and become, the function is as follows: Graph 1 system is overall frame structure   (input of information of 1) graph data: It is the functional module that after AutoCAD substance builds a model, enters above all. Have AutoCAD graph to exchange file DXF interface, read take DXF interface file to prepare necessary graphical data for system of automatic process designing; (2) craft intervenes: It is afterwards (the core module that rework undertakes to graphical data after 1) pace is operated. Craft interpose content includes outline and feature two kinds of means, intervene the process begs mouse interpose position and substance through mouse incident most stone's throw comes true. Change considering size of spare parts dimension, this module still has the auxiliary function that viewport magnifies He Manbing shows, facilitate undertake active intervention; (3)NC code generates: After through craft interpose decides cutting tool takes cutter track line namely, can intervene graphical geometry information and craft information is changed into code of program of ISO standard CNC Machining according to format of code of ISO numerical control. At the same time with "  . NC " formal file name is permanent save; (4) dynamic desired result: The NC code that afore-mentioned generating undertakes school nucleus and check proved recipe can make control medium output whether correctly even, this module uses pointwise interpolation algorithm to undertake dynamic imitate examines code of ISOCNC Machining program is right, and whether can cutting tool and workpiece produce interference to wait. If examine incorrect need to be opposite afore-mentioned each link undertake iteration debugging until correct till; (5)CNC Machining program outputs: With the correct CNC Machining after desired result via debugging the program can pass copy, printed means output. Process of 3 software design makes a figure the main function module of system of automatic process designing has graphical information to input module, craft to intervene code of module, NC generates module and school nucleus to examine module. With graphical information input module is a demonstrative VB the process of programming. (Variable of type of 1) hypostatic data defines a system 4 kinds of substance use bit righter, linear, circular arc and full circle information of geometry of definition of construction of current data type, all element of this type all is string variable, basically save in module of graphical information input read the geometrical news that takes substance. Specific will save with array MM(200) variable, here asks hypostatic amount cannot exceed 200 at most. Namely name of type of data of hypostatic form of Type ENTITIES-TYPE ′ : ENTITIES - TYPE; Hypostatic type of ′ of STYLE As String is variable (its value is LINE, ARC, CIRCLE) ; The X of start coordinate heft of substance of ′ of X1 As String; The Y of start coordinate heft of substance of ′ of Y1 As String; The X of terminal coordinate heft of substance of ′ of X2 As String; The Y of terminal coordinate heft of substance of ′ of Y2 As String; ′ of X3 As String is hypostatic (circular arc or circle) X of heft of coordinate of the centre of a circle; ′ of Y3 As String is hypostatic (circular arc or circle) Y of heft of coordinate of the centre of a circle; ′ of R1 As String is hypostatic (circular arc or circle) radius R; ′ of WISE As String is hypostatic (circular arc or circle) suitable (= 0) , go against (= 1) direction; ′ of ANGLE1 As String is hypostatic (circular arc or circle) initiative horn; ′ of ANGLE2 As String is hypostatic (circular arc or circle) end part; ′ of End TypeGlobal MM(200) As ENTI-TIES-TYPE defines variable of overall situation of MM of one dimension group, its element is ENTITIES-TYPE ′ variable, hypostatic amount cannot exceed 200 at most. (Of 2)DXF file read the package of AutoCAD graph software that takes a program to combine platform of current personal computer to go up to be used extensively, the figure that this literary grace develops with this one platform is automatic process designing system, the powerful substance of AutoCAD of OK and sufficient play builds modular function, shorten at the same time the cycle that software develops. This system is used need to enter substance of spare parts of scale of AutoCAD graph system above all, end when spare parts scale, exchange file DXF to output with the graph, enter a graph next information of the graph of system of automatic process designing that start inputs module, read take graphical news. The programming that information of geometry of spare parts substance extracts introduces below. DXF file is the text file that has special pattern. A complete DXF file ends mark big paragraphs to form with a file by 4. Each paragraphs beginning comprises by 4 partly: Namely the set code of DXF 0 mix paragraph of mark SECTION, set code 2 and paragraph the name takes group each, intermediate part is paragraph actual content, paragraph of union part by set code 0 comprise two rows with EOF of file end accord with. DXF file has every data to all occupy the characteristic of group. But generate a graph to require entity only by DXF file paragraph (it is with ENTITIES paragraph renown) end sign with the file. Through analysing the pattern of DXF file, the source program specification that writes with VB now is read take DXF file substance paragraph the process of geometrical information. Sub DXF - IN 0Dim A As String:DIm B As STRING:DIm CC As ENTITIES - TYPE:DIm I, do Input #1 of   of   of Il As IntegerOpen FILENAME1 For Input As #1, loop Until B= of B     " ENTITIES "     Seek #1, do Input #1 of   of   of   of Do While Not EOF(1) of Seek(1)     , loop Until B of   of B     < > " 0 " Case of   of   of   of   of   of   of Selec Case B of   of   of   of I=i+1 of       " LINE " INDXF of   of   of   of   of       - CC of   of   of   of   of   of   of LINE 1   .

Line " CC of   of   of   of   of       .

CC of   of   of   of   of   of X1=Str$(x1)     .

CC of   of   of   of   of   of Y1=Str$(y1)     .

CC of   of   of   of   of   of X2=Str$(x2)     .

Case of   of   of   of   of Xx1=x2   of   of   of   of   of   of Y2=Str$(y2)     " ARC " INDXF of   of   of   of   of       - CC of   of   of   of   of   of   of ARC 1   .

ARC " CC of   of   of   of   of       .

CC of   of   of   of   of   of X1=Str$(x1)     .

CC of   of   of   of   of   of Y1=Str$(y1)     .

CC of   of   of   of   of   of X2=Str$(x2)     .

CC of   of   of   of   of   of Y2=Str$(y2)     .

CC of   of   of   of   of   of X3=Str$(x3)     .

CC of   of   of   of   of   of Y3=Str$(y3)     .

CC of   of   of   of   of   of R=Str$(R)     .

CC of   of   of   of   of   of ANGLE1=Str$(ANGLE1)     .

If Abs(x1-xx1)> of   of   of   of   of   of ANGLE2=Str$(ANGLE2)     .

5CC of   of   of   of   of   of   of Then     .

WISE= " 0 " A=CC of   of   of   of   of   of       .

X1:CC.

X1=CC.

X2:CC.

A=CC of   of   of   of   of   of   of X2=A     .

Y1:CC.

Y1=CC.

Y2:CC.

A=CC of   of   of   of   of   of   of Y2=A     .

ANGLE1:CC.

ANGLE1=CC.

ANGLE2:CC.

Else CC of   of   of   of   of   of   of   of ANGLE2=A     .

WISE= " 1 " Case of   of   of   of   of End If Xx1=x2 of   of   of   of       " CIRCLE " INDXF of   of   of   of   of   of   of Il=il+1 of   of   of   of       - CC of   of   of   of   of   of CIRCLE 1   .

CIRCLE " CC of   of   of   of       .

CC of   of   of   of   of X1=Str$(x1)     .

CC of   of   of   of   of Y1=Str$(y1)     .

CC of   of   of   of   of R=Str$(R1)     .

X2=CC.

Case of   of   of   of Xx1=x1   of   of   of   of   of Y1     " POINT " INDXF of   of   of   of       - CC of   of   of   of   of   of POINT 1   .

Y POINT " CC of   of   of   of       .

CC of   of   of   of   of ZHX1=Str$(x1)     .

CC of   of   of   of   of   of   of Case Else of   of   of   of Xx1=x1   of   of   of   of   of ZHX2=Str$(x1)     .

NONE " Seek #1 of   of   End Select, the programming of module of other of   of Seek(1)   J=Str$(i)LoopClose #1End Sub no longer give uncecessary details. 4 example the article is with treatment of milling of numerical control of 2 dimension part exemple, if the graph is shown 2 times,enter outline of AutoCAD scale spare parts above all. After via the graph commutative file DXF transmits a system, craft interpose can get the ISOCNC Machining course that takes a knife along clockwise of graphic representation 1-2-3-4-5-6-7, and this program examines smoothly already through school nucleus. N001002 EM of   of N0009G01 X1 Y1 LFM of   of N0008G01 X141 Y1 Lf of   of N0007G01 X141 Y81 LF of   of N0006G02 X101 Y81 R20 LF of   of N0005G02 X61 Y81 R20 LF of   of N0004G01 X41 Y61 LF of   of N0003G01 X1 Y61 LF of   of N0002G01 X1 Y1 LF of   of N0001G90 G92 X0 Y0 S500 M03 LF pursues outline of spare parts of scale of 2   AutoCAD 5 last words can get following verdict by above example: (The numerical control that this 1) system was based on AutoCAD platform to implement part of 2 dimension outline successfully is automatic process designing, a lot of flaw that remedied onerous and manual process designing to bring thereby; (2) this system can regard the function that system of automatic process designing uses the graph to be able to serve as system of industrial PC numerical control to realize automatic process designing again as module alone already; (Once this 3) system is united in wedlock with CAPP system, develop the CAD/CAM unifinication software that goes up for personal computer platform; (Cutting tool of this implementation of systematic aux will be able to after 4) adds cutting tool radius to compensate a function slants buy is compensated automatically; (5) develops this system is the effective trial and error that automatic process designing realizes on PC personal computer, the function remains to complement and be perfected. CNC Milling CNC Machining