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?
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?
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]
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."
Thank you both for your help.
What'd you end up using or doing here?
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
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) ?
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.
what does the use of G92 do in this cycle? what is it different from G90?
vwka worked great but i couldnt find any reference to it in my manuals
G92 renames the coordinate values. In this case, both X and Y are Now 0.
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.
Hello,
May I ask where I can get detailed description on VNCOM? Say, what would the command do if I put VNCOM[2] = 1?
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.
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?