![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Parametric Programing (custom macro b, fadal macro, okuma user task) |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| I need a macro to rotate the co-ordinate system as I rotate a tombstone on a 4th axis vmc. I thought it would be farly straightforward but now I,m ready to throw nyself down the stairs!! I did'nt take into account quite what was involved, if the part is not exactly over the center of rotation this affects the output and how in the world do I deal with negative rotational positions? can anyone please help? |
|
#2
| |||
| |||
| K&T Gemini controls had an "implied offset" where you could pick up the offset at one index position & the control would compensate X, Y, and Z as the B indexed. I have yet to see this option available on another control. You could probably do it with a macro depending on what control you have. I know Kurt does this on their vise bodies as I had to incorporate the macro calls into the programs I wrote for them. Frankly I thought it was huge waste of time as the bodies were all machined on dedicated fixtures and the macro does NOT compensate for machine geometry error. |
|
#3
| ||||
| ||||
| you need to set your macro to use the offset position of the x and z from the center of rotation , program header is the best place to add these variables , eg: o00023 (header) #101= 1.025 (Y offset A0) #102= -.5 (Z distance between tool probe and part z zero @ A0) #103= 0 (ANGLE) #120= -2.525 (SHIFT FROM TOOL PROBE T0 Z0 AT A0 center of rotation) #103= 90. (rotation) M97 P8989 (macro sub call) G52 X-6. Y#109 Z#110 g0 a#103 main program if your qualifying tools from the top of the part then scratch the toolprobe and set z variable(eg #102) as the distance from the center of rotation ,then you'll need to do some addition , subtraction and a bit of trig in your macro in order to calculate the new rotated position , its not too bad once you get your head wrapped around it .
__________________ A poet knows no boundary yet he is bound to the boundaries of ones own mind !! http://cnctoybox.org |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Siemens Co-ordinate rotate 810M Control | stroker49 | CNC Machining Centers | 0 | 07-18-2011 07:10 PM |
| Tombstone | jcnewbie | Mastercam | 5 | 11-13-2009 02:43 PM |
| multiple co-ordinate systems | kccrusher | Cincinnati CNC | 3 | 10-13-2009 02:26 AM |
| Variaxis co-ordinate rotation help | out2thow | Mazak, Mitsubishi, Mazatrol | 0 | 06-25-2007 08:25 PM |
| Work Co-ordinate Systems? Keeps spitting out code in g56... | peter.blais | Mastercam | 7 | 07-09-2006 12:51 PM |