![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I am writing a grinding dress program for our 3 axis grinder. My problem is that Cutter comp is throwing up problems. Is it possible to not use cutter comp in y? Here is the program: N9 G40 G17 G129 N13 M52 (TURN DRESSER ON) N21 G43 H15 G00 Z-[#195+.125] M08 (MOVE INTO POSITION Z) N25 G00 G90 X-8.5 Y2.0 S3000 F0.50 M03 (MOVE INTO POSITION X Y) N27 G41 X-8.25 Y-[#2415/2] D15 N33 #110= 0.002 (DRESS DEPTH PER DRESS CYCLE) N37 #109= 10 (NUMBER OF DRESS PASSES) N41 #111= 2.75(DIAMETER OF DRESSER DIAMOND WHEEL) N45 #112=#111/2 (10 X .002=.020 TOTAL DRESS OF WHEEL EACH DRESS CYCLE) N49 #195=.500 (WHEEL THICKNESS) N53 WH [ #109 GE 0 ] DO1 (dress 10 times) N55 G41 G00 X-6.5 D15 (approach) N57 G01 X[#111+[#2415/2]] (move in x to dress,) N59 G04 P10 (dwell) N65 #2415=#2415-#110 (writes tool #15 to tool dia offset, since dia changes after each dress) N81 #109= #109 - 1 N85 END1 After it goes through one loop, y automatically moves but I need it to stay in the Y0 instead it offsets in Y the cutter comp(half the wheel dia). Basically I need a straight move in X,with cutter comp) Y does not move after approach. Then a retract in X then move back in X. If this makes sense is there anything I am doing wrong or a way to fix my problem?? thanks |
|
#2
| ||||
| ||||
| What control are you working with? Have you looked into G45-G48? On some controllers, G45 = Single increase (increases movement by offset amount) G46 = Single decrease G47 = double increase G48 = double decrease Fairly non-used G codes, but may be helpful here |
|
#6
| |||
| |||
| Just a quick look at your code brings to question lines like this one. N27 G41 X-8.25 Y-[#2415/2] D15 Where you are turning on cutter comp and using the tool data directly from the tool table. Maybe I am not visuallizing your setup properly but I would think you would want to do one or the other but not both. Were it me I would not use G41/42 comp in the dressing code, just include the $24xx values into the movements. The next thing that jumps out is in the while loop you using the #24xx number to do the dress but are not incrementing it until after the dress is complete, meaning the #24xx number represents how big the tool will be after the next dress and not the current size of the wheel. |
|
#7
| ||||
| ||||
Try moving line N27 past N49 and get rid of the G41 in line N55. I think cutter comp can get confused if there are several non moving lines inbetween. Good Luck |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cutter comp on an id hole< cutter diam.?? | PaintItBlue | Haas Mills | 5 | 05-05-2008 06:30 PM |
| cutter comp in eia | mrwright | Mazak, Mitsubishi, Mazatrol | 3 | 05-21-2007 07:53 AM |
| Cutter Comp. | Big"E" | General Metalwork Discussion | 8 | 03-28-2007 11:05 AM |
| 18-it cutter comp | newcinhypro | Fanuc | 1 | 01-25-2006 08:00 PM |
| Not using cutter comp | HuFlungDung | OneCNC | 6 | 05-28-2003 04:59 AM |