![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Fanuc Discuss Fanuc controllers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#2
| |||
| |||
| We need more info. What do you use to set the part origin? Are you using workoffsets G54-G59? Is there a known number or area that the part is setup within so that you can compare and make sure they are within a certian amount or distance? How are you planning on running this macro? Do you want to make it a custom M-code so you can put the M-code were you want to check the setup and it will run the program to verify? Stevo |
|
#3
| |||
| |||
| The machine has a probe to set position and uses G56 for the parts origin. I figure we can repeat the setup with in .100 easily and if I knew where to find the machine position Varible # like 5263 then I should be able to verify this to the new setup position the next time I run that job? I think if in MDI #901=#5263 this should give me that number I need in Z so if it is with in .100 things continue if not an alarm to recheck origin needs to pop up? |
|
#4
| |||
| |||
| There are a few ways that you can do this. You can set #901 to the part height every time that you probe it. Problem with that is it will be an ever moving number. For example if your parts are being set up and the Z keeps getting larger every time for whatever reason you will be comparing it to the changing number. IOW you are not comparing it to a particular number just what the last part was set up to. Make sense? I would not do it that way. I would first set #901(or any variable above #500) to the nominal value of the part. A number that you always want to shoot for no matter what. Now right after your probe routine sets the G56 value in the Z I would program: IF[#5263GT[#901+.1]]GOTO1000 IF[#5263LT[#901-.1]]GOTO1000 M99 or M30(depending if it’s a sub or main program) N1000 #3006=1(RECHECK ORIGIN OF PART Z) #3006=1 will give an operator message of what is between the (). If you want it to be an alarm then use #3000=1 Stevo |
![]() |
| 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 |
| need help with macro | raj gill | Commercial CNC Wood Routers | 1 | 04-06-2009 07:43 AM |
| macro help | dasandy | Fanuc | 5 | 03-17-2008 08:20 AM |
| Convert Fanuc Macro to Fadal Macro | bfoster59 | Fadal | 1 | 11-08-2007 11:41 PM |
| M6 Macro | ben_heinman | Fanuc | 5 | 03-29-2007 04:02 PM |
| what is a macro? | ljoe1969 | Autodesk Software (Autocad, Inventor etc) | 3 | 07-12-2006 08:12 AM |