![]() | |
| 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 need help with a program, when I use the variable H1 or H2 or any of this, read the X and Y but I don't know why they read the offset of the tool and do not read the Z as it should be, I used this: G15 H1 or 2 or 3 etc does not work and read the dimensions of the tool offset number 1 or 2 or 3 depending on which use H |
|
#2
| ||||
| ||||
| what machine/controller are you using? Are you getting any alarms? if so what are they? We need more information from you, if possible a reasonable code fragment along with an explanation of what you are trying to achieve. Regards Brian. |
|
#5
| ||||
| ||||
| On most Fanuc controls, G15 is Polar Coordinate Interpolation. It doesn't use H that I'm aware of. Please explain your problem more clearly, and as Broby suggested post the section of code where the problem is occuring, and explain what it's doing or not doing. |
| Sponsored Links |
|
#10
| ||||
| ||||
| Thanks. About time! We are NOT asking for the whole program, nor any of your intellectual property, drawings product information or anything like that, but hey... YOU are the one that has asked for help and YOU have been unwilling to help us to help you. |
| Sponsored Links |
|
#12
| |||
| |||
| Here is the program. In the beginning of the program find X, Y and Z, after that load this information in H1 so when I run the program it read X and Y whit no problem at all because the values of X and Y are taken from H1 but the value of Z is taken from the tool offset number 1 and you can see into the program as information and T01 = 3.6990 but it value should be taken from H1, this is a bit confusing but I hope you can help me Ejem H1 or H2 Or H3 load values of X, Y and Z (Zero Offset) and it doesn't have relation whit tool offset, my Zero Setup should be H1 = X, Y, Z $O6306.MIN% (SEND-O6306K) (H1 X=-3.0927 Y=-4.3777 Z=8.0962) (TOOL SET) (T12 FACE MILL 2.0" DIA) (T03 END MILL 1.0" DIA) (T04 SPOT DRILL 0.5" DIA) (T02 DRILL 0.265" OR F DIA) (T11 TAP 5/16-18 UNC) (OFFSET T01 3.6990) ( PROVEN PROGRAM 07/02/2011 SDF ) ( 863B-7-42 REV. 3 ) ( X-ZERO = CENTER OF PART ) ( Y-ZERO = CENTER OF PART ) ( Z-ZERO = WHERE PART SITS ) ( PROBE SEQUENCE ) ( TURN ON BLOCK DELETE TO PROBE FIRST PART ) /GOTO N0010 CALL OFX20 CALL OZOFZ XP1=16.85 YP1=05.57 ZP1=7.505 FON=1 ZPOS=0.500 $PRB=1 CALL OZOFY YP1=04.64 XP1=16.500 ZP1=7.69 YP2=05.08 YP3=2.65 $ YP4=2.21 FON=1 YPOS=0 PRB=1 CALL OZOFX YP1=03.70 XP1=13.763 ZP1=7.69 XP2=13.323 XP3=19.44 $ XP4=19.8 FON=1 XPOS=0 PRB=0 G30 P2 M01 N0010 G40 G90 G17 G15 H1 N0020 M06 T12 (2.00 DIA FACE MILL) N0030 H1 M03 S900 T3 N0040 G00 X0.0 Y0.0 M08 N0050 G56 H1 Z3.5819 N0060 G01 Z2.554 F10.7 N0070 Y1.9438 N0080 X-3.3973 N0090 G03 X-3.4973 Y1.8438 I0.0 J-0.10 N0100 G01 Y-1.9012 N0110 G03 X-3.3973 Y-2.0012 I0.10 J0.0 N0120 G01 X3.3927 N0130 G03 X3.4927 Y-1.9012 I0.0 J0.10 N0140 G01 Y1.8438 N0150 G03 X3.3927 Y1.9438 I-0.10 J0.0 N0160 G01 X-0.5 N0170 Y0.0 N0180 Z2.534 N0190 Y1.9438 N0200 X-3.3973 N0210 G03 X-3.4973 Y1.8438 I0.0 J-0.10 N0220 G01 Y-1.9012 N0230 G03 X-3.3973 Y-2.0012 I0.10 J0.0 N0240 G01 X3.3927 N0250 G03 X3.4927 Y-1.9012 I0.0 J0.10 N0260 G01 Y1.8438 N0270 G03 X3.3927 Y1.9438 I-0.10 J0.0 N0280 G01 X-0.5 N0290 Y0.0 N0300 Z2.514 N0310 Y1.9438 N0320 X-3.3973 N0330 G03 X-3.4973 Y1.8438 I0.0 J-0.10 N0340 G01 Y-1.9012 N0350 G03 X-3.3973 Y-2.0012 I0.10 J0.0 N0360 G01 X3.3927 N0370 G03 X3.4927 Y-1.9012 I0.0 J0.10 N0380 G01 Y1.8438 N0390 G03 X3.3927 Y1.9438 I-0.10 J0.0 N0400 G01 X-0.5 N0410 Y0.0 N0420 G00 Z20. M09 N0430 G30 P2 N0440 M01 N0450 M06 T3 (1.00 DIA END MILL) N0460 H1 M03 S1000 T4 N0470 G00 X4.208 Y-3.022 M08 N0480 G56 H1 Z4.3934 N0490 Z2.7934 N0500 G01 X-4.456 F10. N0510 G00 Z14.0 N0520 X4.208 Y3.095 N0530 G00 Z2.7934 N0540 G01 X-4.456 F10. N0550 G00 Z20.0 M09 N0560 G30 P2 N0570 M01 N0580 M06 T4 (SPOT DRILL 0.500") N0590 H1 S2500 M03 T2 N0600 G00 X-4.00 Y0.8750 M08 N0610 G56 H1 N0620 G81 Z3.363 R4.439 F28. P.2 N0630 G00 Z20.00 N0640 X4.000 Y0.375 N0650 G56 H1 N0660 G81 Z3.363 R4.439 F28. P.2 N0670 G00 Z20. M09 N0680 G30 P2 N0690 M01 N0700 M06 T2 (DRILL 0.265INCH OR F HOLE) N0710 S800 M03 T11 H1 N0720 G00 X-4.00 Y0.8750 M08 N0730 G56 H1 Z3.76 N0740 G83 Z2.02 R3.26 Q0.5 F18. P0.2 N0750 G00 Z20. N0760 X4.000 Y0.3750 N0770 G56 H1 Z3.76 N0780 G83 Z2.165 R3.26 Q0.5 F18. P0.2 N0790 G00 Z20. M09 N0800 M01 N0810 G30 P2 N0820 T11 M06 (5/16-18NC TAP) N0830 S324 M03 T1 N0840 G00 X-4.00 Y0.8750 G94 N0850 M327 N0860 VTMNO=2 N0870 G56 H=VATOL M08 N0880 G284 Z=0.4529 R2.0539 P0.5 F18. N0890 M326 N0900 G00 Z7.00 N0910 X4.00 Y0.3750 G94 N0920 M327 N0930 VTMNO=2 N0940 G56 H=VATOL N0950 G284 Z=0.717 R2.0539 P0.5 F18. N0960 M326 N0970 G00 Z7.00 N0980 G80 M09 N0990 M01 N1000 G30 P2 N1010 M30 |
![]() |
| 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 |
| Read variable with Python | albova | LinuxCNC (formerly EMC2) | 7 | 05-26-2012 06:53 AM |
| OSP-P200L want to read z offset | 1noodle | Okuma | 5 | 10-22-2010 10:56 AM |
| Fanuc 16i variable offset issue | PCCDon | Fanuc | 3 | 11-26-2009 01:04 AM |
| Problem- Mirrioring x using G51.1, but will not read fixture Z offset? | Shaun Smth | Fadal | 2 | 08-10-2009 04:24 PM |
| Need Help!- How do I read the value of an F-type parameter into a macro variable? | Jan d. | Mazak, Mitsubishi, Mazatrol | 24 | 02-17-2009 10:47 PM |