Manufacturing Information Solutions Forum Index Manufacturing Information Solutions
Your Place for Support and Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How To Use a Probe to Verify that a Tilting Table is at 90

 
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> G-Code Programming
View previous topic :: View next topic  
Author Message
franke
Master Poster


Joined: 26 Jun 2004
Posts: 161
Location: Indiana, USA

PostPosted: Fri Jul 02, 2004 1:31 pm    Post subject: How To Use a Probe to Verify that a Tilting Table is at 90 Reply with quote

If you have a CNC tilting table on your mill you have probably overloaded it and caused it to move off location. This macro uses your spindle mounted probe to verify/set the table to 90 degrees. This macro verifies that the current G55 X, Y and Z values are appropriate before probing. This is done to prevent damage to the probe if the coordinate system is set wrong. You will need to modify the values in the macro to fit your machine's configuration but the effort is worth it if it prevents one crash of the probe.

For example:
IF[ABS[#5241+32.984]GT.2]GOTO997 checks to see if G55 X is within .2 of 32.984 which is the X center of the tilting table. If the coordinate system has been changed by more than .2, the macro will jump to an error message. Change 32.984 to match the table on your machine. T30 is the tool number of the probe, modify it to fit your application.

This table has a rotary and a tilt axis and the tilt axis is programmed as the B or 5th axis. The macro uses #5245=#5245-.5 to force a .5 degree error in the table's tilting axis. This is so that I'm not doing trig on very small values. Most machine control's recommend against using trig functions on very small values. In this example, Z zero is the center of rotation of the table and the probe uses Z values that are 2" apart. This program typically sets the table to within a couple tenths in 2 inches.

Code:
%
O606
(THIS PROGRAM CHECKS ROTARY AT 90 DEG.)
G90 G40 G80 G17 G95
G91 G30 Z0.
G30 X0. Y0.
G90 G00 G55 B0.0
G90T30T0M6
IF[ABS[#5241+32.984]GT.2]GOTO997
IF[ABS[#5242+8.760]GT.2]GOTO998
IF[ABS[#5243+21.4967]GT.2]GOTO999
(FORCE .5 DEGREE OF ERROR IN B)
#5245=#5245-.5
#5201=0(CLEAR COMMON X)
#5202=0(CLEAR COMMON Y)
#5203=0(CLEAR COMMON Z)
(X4.332 IS FACE OF ROTARY)
G0G90G94G55X6.432A0B90.
G0Y0
G65P9810Z7.630F200.
G65P9810X4.582F200.
G65P9811X4.332Q.25
#100=#135
G65P9810Z5.630F100.
G65P9811X4.332Q.25
#101=ATAN[[#100-#135]/2]
(#101 IS THE ERROR VALUE IN B)
#5245=#5245-#101
G91G30Z0
G91G30X0Y0
GOTO1000
N997#3000=1(G55 X SET WRONG)
N998#3000=1(G55 Y SET WRONG)
N999#3000=1(G55 Z SET WRONG)
N1000M30
%



Legal stuff: I provide this "As Is" and make no express guarantees that it will work and/or will work on your machine. It is intended as a guide and as with all programs should be fully tested before it is ran.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> G-Code Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group