585,775 active members*
4,425 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > How to read the current position coordinate.
Results 1 to 15 of 15
  1. #1
    Join Date
    Jun 2007
    Posts
    99

    How to read the current position coordinate.

    I have an OSP 200M controller on my VMC. I am using G31 to move the Renishaw probe until it touches. I then want to store that position in a variable such as VC5 = current x position.
    What are the variable names of the current x, y, z positions?

  2. #2
    Join Date
    Jun 2008
    Posts
    372

    Re: How to read the current position coordinate.

    You need need to work out that position from the encoder

    for z axis; current z pos encoder - work offset z and tool length, something like

    VC18=VRCOZ-VMOFZ-VZOFZ[VACOD]-VTOFH[VATOL]


    For XY
    VC19=VRCOX-VMOFX-VZOFX[VACOD]
    VC20=VRCOY-VMOFY-VZOFY[VACOD]

  3. #3
    Join Date
    Jul 2010
    Posts
    287

    Re: How to read the current position coordinate.

    Why not try VWKB[*]? Or VWKA[*]?
    P228 of my P200M programming manual.
    "VWKA*
    It can read current position of work coordinate system with offset amount of current tool length,
    attachment rotation, and rotary spindle head. The mark * refers to an axis name.
    VWKB*
    It can read current position of work coordinate system without offset amount of current tool
    length, attachment rotation, and rotary spindle head. The mark * refers to an axis name."

  4. #4
    Join Date
    Jun 2007
    Posts
    99

    Re: How to read the current position coordinate.

    Thank you both for your help.

  5. #5
    Join Date
    Jul 2010
    Posts
    287

    Re: How to read the current position coordinate.

    What'd you end up using or doing here?

  6. #6
    Join Date
    Jun 2007
    Posts
    99

    Re: How to read the current position coordinate.

    I AM USING THE FOLLOWING PROGRAM TO TO SELF CALIBRATE THE PROBE TIP OFFSET. I USE IT WHENEVER I NEED IT AND I CANNOT REMEMBER THE LAST TIME IT WAS USED. IT HAS THE POSITION READING CODES. FEEL FREE TO USE IT. NOTE THAT I USED SPECIFIC NUMBERS FOR MY GAUGE RING SIZE.

    G15H1
    M6T28(RENISHAW)
    G56H28
    (MOVE RUBY INTO 22.987MM GAUGE RING HOLE)
    G92Z0 (THE PROBE SHOULD BE MANUALLY PLACED HALF-WAY THROUGH THE RING )

    CALL OO18
    CALL OO10 PMOD=7 PDI=.75(FIND INITIAL CENTER AS A START POINT)

    G92X0Y0
    VNCOM[1]=8 (TELL G31 WHERE OR WHAT TO TRIGGER)
    M19RS=0 (MAKE SURE SPINDLE IS AT O DEGREES)
    M130(ALLOW MACHINE TO MOVE WITHOUT SPINDLE)

    G1 Y=-.315 F15
    G31 Y=-.5 F1
    VC5=VRCOY (LOW Y AXIS VALUE)
    G1Y0 F18
    M131 (RELEASE SPINDLE)
    M19 RS=180(PUT SPINDLE AT 180 DEGREES)
    M130
    G1 Y=.315 F15
    G31 Y=.4 F1
    VC6= VRCOY (HIGH Y AXIS VALUE)
    G91 (INCREMENTAL)
    VC10=[[VC5-VC6]/2]
    G1 Y=VC10 F18(Y CENTER IS FOUND)
    G90
    M131
    M19 RS=90 (PUT SPINDLE AT 90 DEGREES)
    M130
    G1 X=-.315 F15
    G31 X=-.4 F1
    VC7= VRCOX
    G1X0 F15
    M131
    M19RS=270 (PUT SPINDLE AT 270 DEGREES)
    M130
    G1X.315 F15
    G31 X.4 F1
    VC8= VRCOX
    G91
    G1X=[[VC7-VC8]/2]F15
    G90
    G92X0Y0
    M131

    (PROBE TIP IS NOW IN CENTER)
    CALL OO21
    CALL OO10 PMOD=9 PDI=[22.987/25.4]
    CALL OO19

    M2

  7. #7
    Join Date
    Oct 2014
    Posts
    1

    Re: How to read the current position coordinate.

    how can i read the current position in the local coordinate systems used in the
    coordinate conversion function (Parallel/rotary shift of coordinate system (G11/G10) ?

  8. #8
    Join Date
    Jul 2010
    Posts
    287

    Re: How to read the current position coordinate.

    I believe what you're after is either VAPA*, VWKA* or VWKB*. All three do similar things. VWKA* will include tool offset, VWKB* will not include that, VAPA* is defined as just "actual position data". I cannot remember if that is an encoder position or what. I use VWKA* most of the time for what i'm doing probe related.

  9. #9
    Join Date
    Apr 2014
    Posts
    44

    Re: How to read the current position coordinate.

    what does the use of G92 do in this cycle? what is it different from G90?

  10. #10
    Join Date
    Apr 2014
    Posts
    44

    Re: How to read the current position coordinate.

    vwka worked great but i couldnt find any reference to it in my manuals

  11. #11
    Join Date
    Jun 2007
    Posts
    99

    Re: How to read the current position coordinate.

    G92 renames the coordinate values. In this case, both X and Y are Now 0.

  12. #12
    Join Date
    Jul 2010
    Posts
    287

    Re: How to read the current position coordinate.

    It's listed in the programming manual under user task 2 when it lists all the system variables. There's all kinds of goodies in there.

  13. #13
    Join Date
    Dec 2013
    Posts
    8

    Re: How to read the current position coordinate.

    Hello,

    May I ask where I can get detailed description on VNCOM? Say, what would the command do if I put VNCOM[2] = 1?

  14. #14
    Join Date
    Jun 2007
    Posts
    99

    Re: How to read the current position coordinate.

    I am not near my machine or any manuals. However, I believe I saw it in a couple of manuals and possibly on the machine. You should be able to get them on line. If not, send another email and I will try to look it up when I am back in the shop.

  15. #15
    Join Date
    Dec 2013
    Posts
    8

    Re: How to read the current position coordinate.

    Thanks for your kind reply.

    As a matter of fact, I have gone through our manuals but am yet to find the answer. We have three different manuals: 1) OSP P200M operation manual; 2) OSP P200M programming manual; 3) OSP P200M gauging manual.

    VNCOM is not mentioned in the operation manual;
    is briefly mentioned in programming manual with the text as follows: "For communications for automating equipment";
    is briefly mentioned in gauging manual, just to say to the user that we need to set VNCOM[1]=8 before using the probe.

    Except from the above, I couldn't find anything regarding to VNCOM. So if that's not too much trouble, could you send me the manual that gives descriptions on this issue?

Similar Threads

  1. What is your current CNC Position?
    By rodneydeeeee in forum Polls
    Replies: 5
    Last Post: 09-15-2015, 01:13 AM
  2. can we read the current status of a parameter
    By sinha_nsit in forum Fanuc
    Replies: 12
    Last Post: 12-07-2009, 01:44 PM
  3. Read Current Position?
    By andypugh in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 4
    Last Post: 05-08-2009, 12:40 PM
  4. How can I read the running current?
    By rolveram in forum Gecko Drives
    Replies: 1
    Last Post: 07-03-2007, 07:22 PM

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
  •