Simplify sodick gear drawing cxz 21:28 04.12.01
Due to the tooth shape generated by the gear macro command in Sodick, rarely adopted in actual production.
Generally, the parameters (round radius) of C1-C10 (round radius) are copied by painting the gears in Agie. Painting with C R command in Sodick
Line, then use the Overdraw command to reapperse, form half of teeth, and copy it.
But every time you draw a gear, you have to copy thirty data, which is inevitable. It is generally necessary to check it several times for cautious. In addition, due to
Sodick's accuracy is different from Agie (Sodick puts the data in Agie!) When using the overdraw command, it is generally unable.
connection. At this time, the circle that cannot be connected should be deleted. Use 2 el r to draw rounds, repeat several times to succeed. In fact, the gear drawn from this
Agie has an entry. Because the circle can be drawn with a 2 EL R command to draw countless circles. (Because it is not a common circle, but cut an outsider.)
To this end, we need to simplify the gear drawing of sodick. After more than a month, I have compiled a small program to achieve this.
Now, no one can make it easy.
To run this program, you need to install "CXZ's Toolkit". (In fact, there are some macros of two executable files, you can also directly put Got.exe
Copy and Out.exe to the AGIE's progs directory, copy macro to the libary directory of Agie. After the installation is complete, please quit Easycut re-enter.
You will see a "C" menu on the side menu. Its submenu is my new command. There is a painting line, the horizon slide, and seeking two points
Two straight clamps, set origin coordinates, and more. Among them, this program will be used by Gear Out (OUT) and GEAR GOT (GOT). Now you can draw teeth
Rotary (or open any gear graphic file), then click Gear Out (or enter the out command directly on the command line, this is for painting assistance
Line) Click OK. Click GEAR GOT (or enter the got command directly on the command line, which is used to portray the white line) Click three OK.
Save the graphic file. Run two executable files (Got.exe out.exe), select you to save the graphic file. Determine after exiting. Copy Pic.dxf
And gear.nc to a disk. In Sodick UTY-HEART NC: File-Open A: /PIC.dxf You can get half a teeth, copy it.
If you want to check if it is correct, you can choose in Edit-Load A: /gear.nc, copy UTY-Heart NC: Second Lines - C R CIRC
In the input area: Right click to select it. CONFIRM! (Note: If the AGIE gear contains a straight line, please use 2-Pt Lines in Sodick!)
Ok, now take a look at how I implements. First use the AGIE window automatic assignment function to save the data to the command chain.
In the PRG file, then a small program extract the required parameters and convert it into a DXF file.
Using a window method is perhaps the only way to automatically write a parameter to the graphic file (* .prg) of the AGIE. The gear pattern in Agie can be roughly divided into
Three categories: there is no line (WITHOUTL), all the lines, need to manually add wire. For the last, we need to manually add a straight line. (C9 and C2's criterion,
At this point, C1 is useless) I am from the number of straight lines in AGIE to distinguish these three types of gears. (To this, you can't copy the graphic gcopy command, because
This will affect the number of straight lines. The intersection of each graphic is obtained separately. Use "SVAR / ArcDef1 $ =,", "command to assign a string
And passed to the next command window. (Through "Syntax 4 1,0, 6 1,0,6 1,0,6 1,0,6 params a1 $, a2 $, A3 $, A4 $
Inputs myForm1 "Receive) simultaneously writes directly to the AGIE graphics file. You cannot write a data transfer in the file with other methods. In Agie, there is no function of the string merge. (You can't use strcat or , this macro Ordered to assign a value by manual), it is difficult to say
How to write data into the graphic file of the AGIE. If you use the command line to receive parameters, each time you must manually enter all coordinates, or use
Cursor - Circle X, Y capture function Enter the coordinates of the point on the arc (but this also requires the user to switch to this capture mode). Window
Another benefit is to avoid the limitations of extracting data through temporary documents - each time you must re-enter the AGIE and do it in step.
The command chain is actually very simple, you only need to add Chain6 $ = 'OUT, DG' in Agie.cfg. This way you enter OUT.
The DG command will be executed automatically. This creates the formatted data file we need. One of the OUT is used to draw a secondary line (red line)
Circle (XC, YC R) You only need to remove a few comma, save it as * .nc file. The three lines behind the GOT are the center coordinates for painting lines (white lines),
Start point coordinates, end coordinates. If there are six zero (0, 0, 0, 0, 0, 0) in front of the third line, ignore it.
Turn a book, you will know the batch input supporting data in Sodick so you can save the data as an NC file in the following format:
Point (x, y,), line (x1, y1 x2, y2), circle (XC, YC R), arc (XC, YC XS, YS Xe, Ye). This can pass
Simple to extract parameters in graphical files with gear parameters. Remove the line, excess commas. Such as"
While (str = fgets (fpin)) {if (! Memicmp (STR, "DG", 2)) {STR = STR 3; Str = Move (STR); FPUTS (STR, FP); "
I.e. But in SODIK
You can only copy a line each time, when you use uTy-heart nc-sceond lines-arcs - c 2PT, you must divide it into
Three sections (3, 3, 4). This way you must go to the Heart NC three times.
In fact, Sodick supports the import of DXF files. You can convert the data into a DXF file. I am using the DXF file generated by Master Cam.
formula. (AutoCAD generated DXF file has too much control information, R14 and R13 have a big difference) This DXF file format is very concise, except
Tail, (0, section, 2, Entities 0, Endsec, 0, EOF) are useful graphics information. You can pass "0, ARC, 8, 1, 62, 0, 10, XC,
20, YC, 30, 0.000, 40, R, 50, SANG, 51, EANG "to generate this DXF file. Of course, you need to convert coordinates into an angle relative to the center.
DXF files a data, no calories. In Matercam, you can read this DXF file by file-conversion-dxf-batch. In AutoCAD
You can import this DXF file with the import command (but you can't get the graphic, that is, it is also very small). SoDick seems to be only
Support DXF this data exchange format. (Import DXF in MasterCam, but do not support the polycycline PLINE in AutoCAD, this program should be relatively simple! If you still feel too complicated. Then yourself or hand it! Of course, this program is
With CMM (Simplified Edition C -), the interface is not very good (class windows3.x) because I don't have the reference material of Agie macro language, I am from it.
In the example, you guessed its grammar! If you have in-depth research on the AGIE macro, you can have a better macro order. You can also do it
More beautiful interfaces provide more interaction. When I draw a circular arc, I put a lot of redundancy information. In fact, most arc startings
The coordinates coincide with the end point coordinates of the previous arc, you can only save it. However, you must transfer the type information of the gear to the program. In addition, this
The program only supports the support of the gear, which is not versatility for other graphics. You can pass
Analyze the data in the NC file (* .tap) of the AGIE, then form a DXF file. But Agie is also a lot of machine tools in us.
Now it is usually programmed with Sodick. There is no practical value in this conversion. But if you want to set Sodick's graphic file (* .asc)
The program file (* .prg) converted into Agie is very simple, I have a small program (Sodick.exe) to achieve this.
(See "Converting Sodick's graphics files to agie graphics files")
Thank you for your support during this period. And give me a valuable suggestion. Even thanks to my sister, it is her, once again
I am too annoying one time, or it is hand-made! This spur me once again improved. Finally finally finished. I refuse to change again!
By cxz 22:51 05.12.01