603,363 active members*
4,486 visitors online*
Register for free
Login
Page 1 of 2 12
Results 1 to 20 of 25
  1. #1
    Join Date
    Jul 2011
    Posts
    21

    Variable H read offset tool

    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. #2
    Join Date
    Apr 2006
    Posts
    825
    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.

  3. #3
    Join Date
    Jul 2011
    Posts
    21

    Need help

    fanuc control, no any alarm at all, just when run the program show me that, the variable H is using offset tool
    Thank Brian

  4. #4
    Join Date
    Jul 2011
    Posts
    21
    The machine is Mori Saeki MC50VA

  5. #5
    Join Date
    Mar 2003
    Posts
    2932
    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.

  6. #6
    Join Date
    Jul 2011
    Posts
    21
    the Zero Set (H1)said X=3.0728 Y=1.2669 Z=5.4134 when the program find location for make a hole the the control used X and Y but the Z is from tool offset T01=3.699 shout be Zero Set Z=5.4134 I hope you undertand
    Thanks

  7. #7
    Join Date
    Mar 2003
    Posts
    2932
    No, I don't. What does H1 have to do with X and Y?
    What MODEL Fanuc is this?

  8. #8
    Join Date
    Apr 2006
    Posts
    825
    Can you post your program for us to see what you are trying to do??

  9. #9
    Join Date
    Jul 2011
    Posts
    21
    ok, I will do it,
    Thanks

  10. #10
    Join Date
    Apr 2006
    Posts
    825
    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.

  11. #11
    Join Date
    Jul 2011
    Posts
    21
    Hey no problem I will post today afternoon, I need help, so I will do it, I have not time right now.
    Thanks
    Sergio

  12. #12
    Join Date
    Jul 2011
    Posts
    21
    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

  13. #13
    Join Date
    Mar 2003
    Posts
    2932
    Sure doesn't look like any Fanuc code I've ever seen... looks more like an Okuma.

  14. #14
    Join Date
    Apr 2006
    Posts
    825
    I agree with dcoupar, this code below, for example is DEFINITELY Okuma code specific!

    -snip-
    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
    -snip-

    With this in mind, and your previous indication that you were running a Fanuc controlled machine, I would guess you would be having lots of problems.
    As far as your program goes there are lots of problems with the way you are calling up the tool length offset for each tool, but that statement is only true if you are using an Okuma control system.
    I do not use any Mills with a Fanuc controller, but I am guessing that even on a Fanuc, your code would have problems running also.

    You really need to tell up EXACTLY what controller you are trying to run this program on.
    Regards
    Brian.

  15. #15
    Join Date
    Jul 2011
    Posts
    21
    I'm sorry is my mistake it is OKUMA.
    Thanks

  16. #16
    Join Date
    Apr 2006
    Posts
    825
    Well I guess you have finally got one thing correct... BTW no way is the machine a Mori Seki, that would use a FANUC control system but I am guessing that you do actually have a Okuma MC50VA, but as for which control... OSP5000M, OSP5020M, OSP7000M OSPE100, P100, P200??? Can you actually figure out that the more accurate and informative your description of your problem the easier it is for us to help you?
    But enough of that...


    /GOTO N0010
    CALL OFX20 Unable to know what is going on here, no listing
    CALL OZOFZ XP1=16.85 YP1=05.57 ZP1=7.505 FON=1 ZPOS=0.500 same here...
    $PRB=1 continuation of above line above...
    CALL OZOFY YP1=04.64 XP1=16.500 ZP1=7.69 YP2=05.08 YP3=2.65 same here...
    $ YP4=2.21 FON=1 YPOS=0 PRB=1continuation of above line above...
    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 continuation of above line above...
    G30 P2 Positioning to P2
    M01
    N0010 G40 G90 G17 G15 H1 G15 H1= Select coordinate system 1
    N0020 M06 T12 (2.00 DIA FACE MILL) Tool change To Tool#12
    N0030 H1 M03 S900 T3 Pre Stage Tool 3
    N0040 G00 X0.0 Y0.0 M08
    N0050 G56 H1 Z3.5819 PROBLEM!! You are calling up Tool Length offset #1 but you have TOOL 12 in the spindle!! This should be G56 H12
    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) No need to specify T3 again, machine already has T3 ready to go.
    N0460 H1 M03 S1000 T4 What is the H1 on this line for? NOT REQ, Pre-Stage tool #4
    N0470 G00 X4.208 Y-3.022 M08
    N0480 G56 H1 Z4.3934 Once again, you are calling up Tool length offset no1, Should now be G56 H3 as tool 3 is now in the spindle
    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 ditto for last tool change
    N0600 G00 X-4.00 Y0.8750 M08
    N0610 G56 H1 Should be G56 H4
    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 TAP TORQUE monitoring ON
    N0860 VTMNO=2 Select level 2 for Monitor Level
    N0870 G56 H=VATOL M08 Activate tool length offset for Active Tool
    N0880 G284 Z=0.4529 R2.0539 P0.5 F18.
    N0890 M326 TAP TORQUE MONITORING OFF
    N0900 G00 Z7.00
    N0910 X4.00 Y0.3750 G94
    N0920 M327 MONITOR ON
    N0930 VTMNO=2 LEVEL 2 MONITOR
    N0940 G56 H=VATOL NO NEED TO REPEAT LENGTH OFFSET SELECTION, IT IS ALREADY SELECTED!!
    N0950 G284 Z=0.717 R2.0539 P0.5 F18.
    N0960 M326 MONITOR OFF
    N0970 G00 Z7.00
    N0980 G80 M09
    N0990 M01
    N1000 G30 P2
    N1010 M30


    As you can hopefully see, you are not correctly referencing the current tool offset.
    Another more idiot proof way to program tool length offsets is to use G56 HA.
    The HA command tells the machine to access the first tool offset group for the tool that is active in the spindle.

    The G15 Hx command tells the machine to select coordinate system designated by the Hx value, were "x" is the number of the coordinate system you desire.

    Hope this helps a little...
    Regards
    Brian.

  17. #17
    Join Date
    Mar 2003
    Posts
    2932
    Quote Originally Posted by fdonosos View Post
    I'm sorry is my mistake it is OKUMA.
    Thanks
    So, 14 replies later, we learn that we've all been chasing our tails trying to help you. I would suggest that next time you have a problem, get your facts straight BEFORE you post a question.

    This is a great place to get help, but if you won't take the time to even look at the machine and control to see what they are, I'm sure a lot of the folks here will tire of trying to pry information out of you.

    Also, I might suggest that if you have an Okuma problem, the Okuma forum would be a more appropriate place to post.

    Good luck.

  18. #18
    Join Date
    Apr 2006
    Posts
    825
    Quote Originally Posted by dcoupar View Post
    So, 14 replies later, we learn that we've all been chasing our tails trying to help you. I would suggest that next time you have a problem, get your facts straight BEFORE you post a question.

    This is a great place to get help, but if you won't take the time to even look at the machine and control to see what they are, I'm sure a lot of the folks here will tire of trying to pry information out of you.

    Also, I might suggest that if you have an Okuma problem, the Okuma forum would be a more appropriate place to post.

    Good luck.
    Hear Hear!!

  19. #19
    Join Date
    Jul 2011
    Posts
    21
    Thank you very much for the help, I did change and it worked very well and I'm sorry for not giving all the incorrect information, I know the answer would have been faster and easier to understand the problem.
    It's my first visit to CNCZONE and truth do not know where the post
    Thanks Dcoupar and Broby
    Sergio

  20. #20
    Join Date
    Jul 2011
    Posts
    21
    My Company got new Machine Okuma Millac 761V Serie 31i Model A5 with Facnuc Control I writing program now but I have some issue to get in the program amchine home position, this what I have so far:
    G80 ;
    M09 ;
    G91 G30 Z10 M19 ;
    G90 ;
    M01 ;
    M30 ;

    This does'n work, somebody can help me and tell me what is the worng with it
    Thanks

Page 1 of 2 12

Similar Threads

  1. Replies: 4
    Last Post: 04-18-2013, 07:46 PM
  2. Read variable with Python
    By albova in forum LinuxCNC (formerly EMC2)
    Replies: 7
    Last Post: 05-26-2012, 12:53 PM
  3. OSP-P200L want to read z offset
    By 1noodle in forum Okuma
    Replies: 5
    Last Post: 10-22-2010, 04:56 PM
  4. Fanuc 16i variable offset issue
    By PCCDon in forum Fanuc
    Replies: 3
    Last Post: 11-26-2009, 08:04 AM
  5. How do I read the value of an F-type parameter into a macro variable?
    By Jan d. in forum Mazak, Mitsubishi, Mazatrol
    Replies: 24
    Last Post: 02-18-2009, 05:47 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •