Post processing program and application of the hot

  • Detail

Post processing program and application of Cimatron Software

I. preface

NC machine tools are processed according to NC programs. When using CAM software to generate NC program, it is necessary to generate tool position file first, and then compile the tool position file into NC program through post-processing file, which is different from manual programming. The tool position file is a file that reflects the tool motion path. It is automatically calculated by the cam software according to the programmer's processing technology, assuming that the workpiece is fixed and the tool moves. The reason why we should do this is that different NC machine tools use different instructions of the control system. In order to make the software universal, the cam software supplier first generates the tool position file, and then uses the post-processing tool to generate the special post-processing file according to the specific control system, and compiles the tool position file into the NC program through it. Different cam software has different post-processing tools. This paper mainly introduces the use methods of two post-processing tools of Cimatron Software, and gives an example of customizing the special post-processing files of Heidenhain control system

II. The functional features of Cimatron's two post-processing tools GPP and imspost

gpp (general post processor) is a post-processing tool developed by Cimatron company. By appropriately modifying the F and f template post-processing files, you can generate post-processing files that meet the needs of users. The main feature is that it is easy to use after modification. This method is currently mainly used in the post-processing of machine tools below 3 axes

imspost is a post-processing program based on macro assembly provided by IMS company for users. It can support post-processing of tool position files generated by various cad/cam software, and provides a variety of post-processing file libraries, which can support a wider range of CNC machine tools. At the same time, it also provides a very rich customization function, which can generate any form of post-processing files, so as to better provide post-processing supporting high-speed machining and multi axis machining. All post-processing programs required by users can be generated by executing imspost. In most cases, users only need to define macro parameters in the dialog window and menu items of imspost software, and they can get post-processing files customized for their machine tools without any macro programming

III. an example of customizing Heidenhain dedicated post-processing files using GPP and imspost

1 Customize Heidenhain NC system post-processing files with GPP

the suffix of the files that GPP plays a major role in post-processing is * def、*. DEX and * ExF, such as F, x, F, etc. F file is mainly used for the relevant definitions of CNC system, such as the corresponding control commands of spindle start, stop, coolant on, off, etc., which can be opened and modified by the dfpost software tool shown in Figure 1. The content is relatively easy to understand, and there are few modifications. It can be modified to meet the requirements of Heidenhain and the machine tool system that the moving beam is driven up and down by the precision lead screw pair after the deceleration system. It can be renamed as f

Figure 1. The interface of software tools related to NC in Cimatron

open the f file with Notepad, modify it as needed, and then rename it F. compile it with dfexf in Figure 1 and generate X. how to modify the f file is a main content to be introduced in this article. Let's first introduce several GPP system variables, such as current tool name curr_ Tool, tool diameter _ Current X coordinate value x_ Curpos and Yu Lianying of arc center studied the process and performance of producing flame-retardant building decoration materials with waste thermoplastic and sawdust powder. The flame-retardant performance of the obtained materials reached the requirements of non combustible materials for building materials specified in the national standard (gb5464 ⑴ 985) x coordinate value X_ Center et al. The following is a description of some contents of the f file

* DEMO 3 axes Post Processor for FANUC;* Number followed by the description of the program

***************************************************************************************************************************; Format is the variable type

**********************************************************************************************************; Interaction is interactive content, and you can enter


non_ MODAL ALL_ VAR; NON_ Modal is non modal

modal x_ CURPOS Y_ CURPOS Z_ CURPOS; Modal is the mode


new_ LINE_ IS $ ;

IF_ SET (FlagSeq _EQ_ NO); IF_ Set is the judgment statement

output j; Output is the output content


linear motion; Linear motion code conversion

output $





(if we want to add the description of the output tool radius in the NC program, we can define a format (coordinates) variable tool, and then add it at the place of tool change:.)

TOOLR=0.5*DIAMETER_; DIAMETER_ Is the system variable

output $"tool def" curr_ TOOL " L+0" " R" TOOLR;

(if we want to output arcs that conform to Heidenhain NC system in the NC program, it can be changed to: set_on x_center y_center;) in circular motion:)

OUTPUT $ "CC"; CC is the arc center symbol in Heidenhain

output "X" x_ CENTER ;



FlagWC = YES ;


IF_ Set (circ_mov) output "C"

put the modified and compiled F and X files into the Cimatron installation directory varpost. When generating the output NC program, the option of HNC post-processing file will appear. Selecting this file will generate the NC program of Heidenhain control system

the following is the NC code produced by this post-processing. Other systems can also modify it as needed. Generally, you can modify the part after output


1 BLK FORM 0.1 Z X+0 Y+0 Z-50

2 BLK FORM 0.2 X+70 Y+160 Z+0

3 TOOL DEF 1 L+0 R3.

4 TOOL CALL 1 Z S1000

5 M6

6 M03

7 M09

8 L X-5 Y+76.59 Z+50 F 5000

9 L Z+1 F 5000

13 CC X+0 Y+125.241

14 C X-2.121 Y+127.362 DR-

15 L X+22.879 Y+152.362


39 CYCL DEF 1.5 F 350

40 L X+10 Y+20 F 5000

41 L Z+3 F 5000


43 L X+40 F 5000 M99

47 M3 0


2. Customize Heidenhain NC system post-processing with imspost

using imspost post-processing can easily set the corresponding NC system. Imspost provides post-processing programs for NC systems such as Funuc, Siemens, Heidenhain and Mazak, and provides macro program function, which can process the tool position files of most other cam software

customize the post-processing of Heidenhain NC system. You can create a new library file or modify the existing library file. According to the type of machine tool we use, we choose to modify the B library file. Open the B file and set the code of end of program to M30, as shown in Figure 2. Similarly, set the depth format in drill cycles to inverted sign (+/-). Then select user → multi home on the main menu, enter g54, change the origin of the machining coordinate system from the machine origin to the workpiece origin, and form a new post-processing file after saving

Figure 2 Heidenhain NC system post-processing function setting

in imspost, not only can the post-processing files be customized, but also the tool position files can be converted into NC programs with the customized post-processing files. For example, we first generate apt files from the tool path in Cimatron (we need to put the files F and X into the Cimatron installation directory varpost), then select execute → post pro1.4 in the main menu of imspost, set the mechanical limit piston stroke protection device cess, select the apt file to be converted in the input column of the pop-up window shown in Figure 3, the file name in the default output column, and select the Cimatron type in the input type column, Then click go, and the window will show the conversion progress. With this software tool, you can also convert the tool position files generated by other cam software such as CATIA, Delcam, Euclid, PTC, UG, etc. note that you need to select the corresponding type in the input type column

Figure 3 window for converting tool position files into NC programs

although imspost is a general post-processing software of IMS company, Cimatron Software is well integrated with it. When outputting NC programs in Cimatron, you can directly enter the imspost environment without having to produce a tool position file and then convert it. Due to the space relationship, this paper will not discuss it anymore

using the macro function of imspost, we can develop other requirements that users need the global automobile output of more than 90million vehicles. If it is required to increase the output tool information, we can use the main menu general → macro operation option to create a new macro, as shown in Figure 4. After adding the content, click apply

Figure 4 imspost macro function definition window

where cldatan 1 refers to "DR2" of toolinf/"DR2", 2, 4.0, 0.0, 30.0 and 15.0 in APT file, and call SEQ no/on refers to output sequence number, etc. Using this macro, the following NC codes can be output:



; (TOOL_NAME IS DR2 TOOL_DIA IS 4.0000); Comments generated by macro

20 tool call 2 Z s1000

21 L x+20 Y+9.862 f5000 m06

22 cycl def 1.0 piling


IV. conclusion

cimatron software provides users with a powerful general cad/cam system, but at present, users are relatively unfamiliar with the use of its post-processing program. When using the software, users cannot understand the situation and do not properly modify the post-processing file, resulting in the inability to generate NC programs that meet the requirements. When manually modifying, If not all corrections are made, it is likely to cause accidents. The NC machining program generated by the two methods introduced in this paper has been verified by practical operation, and it fully meets the requirements. I hope it can inspire relevant personnel. (end)

Copyright © 2011 JIN SHI