585,582 active members*
4,722 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > G31 not stoppiing when touching
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2012
    Posts
    84

    G31 not stoppiing when touching

    I am trying to use the G31 skip move function on an Okuma MA600HB with an OSP 200 control. In my program I use probing cycle calls which use this function with no issue. I on the other hand have a problem somewhere becuase I turn off the feed limit and do a move which it does start moving, but when it touches the part it does not stop! Any certain reason why a probe doesn't stop when touching? It is a new machine and a new probe and like I said after digging through the Renishaw macros it is using the G31 quite a bit. Thanks!
    M130
    G31 X=LV11 Y=LV12 F200.
    M131

  2. #2
    Join Date
    Mar 2013
    Posts
    12
    Shags,

    Below is an example probing program from an Okuma MB-5000H Horizontal Machining Center. The only thing that really catches my eye with the small bit of code you posted is probing at a feed of 200 ipm is above the recommended feed rate that I have been told to use by our distributor. I usually never exceed 75.0 to 100.0 ipm. This will really not impact your cycle time a great deal... I was told 200 ipm gets flaky whether or not the probe will trigger, even with my Renishaw OSP400 Strain Gauge style.


    (USE THIS PROGRAM TO FIND Z OFFSET OFF OF TOP OF PART WITH PROBE)
    (EDIT PHN TO PALLET # 1-12)
    (EDIT B DEGREES TO WORK FROM)
    (PHN IS THE OFFSET TO WORK FROM)
    (AND CORRECT WITH THE PROBE)

    (WORK OFFSET VARIABLE)
    PHN=1

    G30 P1 (MOVE TO SAFE HOME POSITION #1)
    G116 T200 (RENISHAW OMP400 SPINDLE PROBE)
    G15H=[PHN] (CALL WORK OFFSET)
    G56 H200 (CALL HEIGHT OFFSET FOR PROBE TOOL)
    G00 X0.0 Y19.1875 B0.0 (RAPID POSITION PROBE)
    G00 Z12.33 (EXPECTED LOCATION PLUS 2.25 INCHES)

    CALL OO18 (FLASH PROBE ON MACRO)

    (PROBE Z FACE AT B180)
    VSAPX=0 VSAPY=0 VSAPZ=0 (CLEAR SKIP SIGNAL DATA)
    VNCOM[1]=8 (MONITOR SPINDLE PROBE ON SKIP SIGNAL)
    M130 (ENABLE FEED WITHOUT ROTATION OF SPINDLE)
    G31Z10.326 F75.0 (FEED UNTIL SKIP SIGNAL)
    IF[VSAPX+VSAPY+VSAPZ NE 0]NALM1 (IF DOES HIT WILL ALARM)

    (OKUMA Z FACE PROBE MACRO)
    CALL OO10 PMOD=3 PEI=10.076 (PEI EXPECTED LOCATION)

    CALL OO20 PHN=[10] PZ=0

    GOTO NEND (SKIP OVER ALARM IF PROGRAM RAN SUCCESSFULLY)


    (DEFINE ALARM)
    NALM1
    CALL OO19 (PROBE OFF MACRO)
    M131 (DISABLE FEED WITHOUT ROTATION)
    VUACM[1]='BAD PROBE HIT'
    VDOUT[992]=9004


    (END PROGRAM)
    NEND
    CALL OO19 (PROBE OFF MACRO)
    G30 P1
    M30

  3. #3
    Join Date
    Oct 2012
    Posts
    84
    Thanks for the reply Matt. I am programming in metric so it is 200mmpm. But looking through your code showed me the VNCOM[1]=8 and I added that and it did stop at the touch and wrote so vsapx. But now when I go to clear away from the part I get a path obstructed error. I am trying to touch multiple times and do some calcs with the results. Thanks for the code btw. Is this looking for the existence of something at this location and errors if there is something there? Clamp,stop?

    Here is part of my code. This is probing a gear to find center of tooth and it is called from the main program.

    (XY CLEAR PT)
    LV21=0
    LV11=LV24+[COS[LV28+[LV21*LV30/10.]]*[LV29+[LV23*LV32]+[LV23*LV22]]]
    LV12=LV25+[SIN[LV28+[LV21*LV30/10.]]*[LV29+[LV23*LV32]+[LV23*LV22]]]
    CALL O9810 PX=LV11 PY=LV12 F5000.

    LV13=LV26
    CALL O9810 PZ=LV13

    (TOUCH PITCH/10 INCR FIND LOWEST RAD)
    LV21=0

    N9 (IF #1)
    IF[LV21 GE 9]N10 (REPLACE WHILE IF #1)

    (XY CLEAR PT)
    LV11=LV24+[COS[LV28+[LV21*LV30/10]]*[LV29+[LV23*LV32]+[LV23*LV22]]]
    LV12=LV25+[SIN[LV28+[LV21*LV30/10]]*[LV29+[LV23*LV32]+[LV23*LV22]]]
    CALL O9810 PX=LV11 PY=LV12

    (XY TOUCH PT)
    LV11=LV24+[COS[LV28+[LV21*LV30/10]]*[LV29+[LV23*LV32]-[LV32*LV22]]]
    LV12=LV25+[SIN[LV28+[LV21*LV30/10]]*[LV29+[LV23*LV32]-[LV32*LV22]]]
    M130
    VNCOM[1]=8 (MONITOR SPINDLE PROBE ON SKIP SIGNAL)
    G31 X=LV11 Y=LV12 F200.
    M131
    G4P2
    LV34=VSAPX-VMOFX-VZOFX[VACOD]
    LV35=VSAPY-VMOFY-VZOFY[VACOD]
    LV14=SQRT[[[LV34-LV11]*[LV34-LV11]]+[[LV35-LV12]*[LV35-LV12]]]
    IF[LV14 LE LV33]N997
    VC[20+LV21]=SQRT[[[LV34-LV24]*[LV34-LV24]]+[[LV35-LV25]*[LV35-LV25]]]

    (XY CLEAR PT)
    LV11=LV24+[COS[LV28+[LV21*LV30/10]]*[LV29+[LV23*LV32]+[LV23*LV22]]]
    LV12=LV25+[SIN[LV28+[LV21*LV30/10]]*[LV29+[LV23*LV32]+[LV23*LV22]]]
    CALL O9810 PX=LV11 PY=LV12

    LV21=LV21+1
    GOTO N9 (IF #1)

    N10 (REPLACE WHILE IF #1)

  4. #4
    Join Date
    Mar 2013
    Posts
    12
    This is just probing a face in the Z direction to set a Z work offset.

    This piece of code will trigger an alarm if something is obstructing the path of the probe during its travels to the probe position.
    I use this all the time in case there is something in the way, or an operator miss-loads a part.

    (PROBE Z FACE AT B180)
    VSAPX=0 VSAPY=0 VSAPZ=0 (CLEAR SKIP SIGNAL DATA)
    VNCOM[1]=8 (MONITOR SPINDLE PROBE ON SKIP SIGNAL)
    M130 (ENABLE FEED WITHOUT ROTATION OF SPINDLE)
    G31Z10.326 F75.0 (FEED UNTIL SKIP SIGNAL)
    IF[VSAPX+VSAPY+VSAPZ NE 0]NALM1 (IF DOES HIT WILL ALARM)

    (DEFINE ALARM)
    NALM1
    CALL OO19 (PROBE OFF MACRO)
    M131 (DISABLE FEED WITHOUT ROTATION)
    VUACM[1]='BAD PROBE HIT'
    VDOUT[992]=9004


    If you are getting the path obstructed alarm when trying to move away, it could be one of two things.

    1. Your macro turns off the probe after its routine is complete before moving away with a probe trigger sensing G31 move. Check to see if you need to flash the probe back on before you safe move away, as this will cause an alarm because the probe thinks it hit something instantly.

    2. Use VSAPX=0 VSAPY=0 VSAPZ=0 (CLEAR SKIP SIGNAL DATA) before your move away. This will clear all the skip signal data that the machine has stored. Make sure to do your calculations before you clear this data, as your calculations will be manipulationg 0.000's in the skip signal data buffer.

  5. #5
    Join Date
    Oct 2012
    Posts
    84
    The probe is not off that I can tell, ie lights are still flashing.I will try this. I found that my return move is a 9810 which will stop if it hits something and it is already triggered so am trying to figure out what I need to do to get the probe safely off of the touch. I saw something about G31.1. I am going to try that with a move to the next start point. But I will be clearing the vars just to do a check to see if it actually hit anything on the move. I will reply with results as soon as I get it in and tested.

    This did not work, I must not have that 31.1 option. So what would be the safest way to back off a touch position? I am leaning towards a G1 move to the start position but really don't like not using a protected move of some kind.

  6. #6
    Join Date
    Oct 2012
    Posts
    84
    I went ahead and did a G1 back to start position and then restarting the probing. So this part of the macro is working. Now on to the rest of the macro! So I had to allow movement with a dead spindle, M130, and then while using skip I had to turn on the skip monitor, VNCOM[1]=8 and then use a G1 to pull back from the touch to get this to work.

Similar Threads

  1. Touching off Tooling
    By Jdmmk3 in forum CNC Tooling
    Replies: 0
    Last Post: 12-18-2012, 01:06 AM
  2. touching off core on citizen A20
    By maliveline in forum CNC Swiss Screw Machines
    Replies: 10
    Last Post: 11-09-2012, 06:26 AM
  3. Touching lines do not seem 'joined'
    By leprechaun in forum BobCad-Cam
    Replies: 7
    Last Post: 07-13-2011, 08:30 PM
  4. Touching-off
    By bloefeld in forum Haas Mills
    Replies: 4
    Last Post: 08-03-2008, 11:07 AM

Posting Permissions

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