![]() | |
| 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
| |||
| |||
Hello, I'm a mechanical engineer, and I'm developing a set of macros to ease the work of similar parts on our lathes. What I need now is to use the G71 built in macro inside a custom macro. The use of G71 is clear to me: in the second line of the G71 calling I have to put e.g. P100 Q200 (together with some other parameters) to tell the control that my profile is defined between lines N100 and N200. But how can I put the G71 command inside a CUSTOM MACRO having the profile defined in the MAIN PROGRAM? In other words, how can I realize something similar to what Fanuc programmed, when it created a macro (G71) that uses a block (of profile definition) in the main program? I need this for a lot of reasons that I can't explain now. Any idea? |
|
#3
| |||
| |||
| What you can do is define the shape using variables in your main program and then use the subprogram to machine the part with G71. O0001(main program) #100=10.(od diameter) #101=1.(z distance to cut) #102=.01(finish stock on x) #103=.05(pick size) #104=.01(feed) #105=200(speed) M98P2 M30 O0002(sub program) … G0X11.Z1. Z.1 G96S#200M3 G71P100Q200U#102W0D#103F#104 N100G0X#100 Z-#101 N200X#101+.1 G0Z1. M99 I just slapped this together as a reference so I am sure that there are some errors in it but it gives you the general idea. Just as a side note I don’t like canned cycles. They usually have a lot of wasted time in them. If you are going to go this far I would just write a macro designed to do what you need instead of putting a canned cycle in it. But there is nothing wrong with doing it as above. Stevo |
![]() |
| Tags |
| g71, macro, profile |
| 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 |
| Passing Geometry back and forth between Cad and Cam | Mike RZMachine | Dolphin CADCAM | 4 | 10-13-2009 08:31 AM |
| Need Help!- Macro A or Macro B On fanuc o-md | macrosat | Fanuc | 1 | 07-29-2009 06:49 AM |
| Testing program for Macro (Fanuc Macro B) | NickDP | Fanuc | 2 | 03-27-2009 03:15 PM |
| Convert Fanuc Macro to Fadal Macro | bfoster59 | Fadal | 1 | 11-08-2007 11:41 PM |
| passing arguments to a sub program | kiprip | Mazak, Mitsubishi, Mazatrol | 1 | 07-13-2006 11:11 AM |