![]() | |
| 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 |
|
#1
| |||
| |||
I am just learning the power of macros and attempting my first program using them. I have alot going on in this program as I am nesting 24 parts in 3 double vises and thus macros seem to be a very powerful tool for me in allowing the operator to make adjustments by simply modifiying a variable. Please tell me if this is possible: 1. Begin master program with a list of variables (common variables #100-#145) with values. 2. Do simple formulas within the master program using some variables 3. Call macros and assign local variable to the macro using common variables assigned in the beginning of the program Up until this point I have been programming my programs using the Fadal format of programming. The controller also has Fanus format 6M/10M/11M. This will be my first time using Fanuc style. As for work offsets, can I replace E1, E2,.... with G54.1 P1, P2......? |
|
#2
| ||||
| ||||
| a fanuc control allows mixing regular g-code and macro statements for example this is valid.... (note this is not a real working program) #100=123.456 #101=[5.6-3.0] #102=2.9 G00 X100.0 Z20.0 G01 X#101 #103=COS[3*1.5]-0.68 G01 Z5.0 G01 X#102 G0TO 1 G00 X200.0 Z200.0 N1 G01 X#103 G00 X#100 G00 X200.0 Z200.0 Regular fanuc work shift offsets are G54 G55 G56 G57 G58 G59 G54.1 Px is an option alllowing more work offsets (up to 48 if I recall correctly) |
|
#3
| |||
| |||
|
![]() |
| 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 |
| macros | rusty1979 | Haas Mills | 1 | 11-06-2010 12:39 PM |
| macros | georgebarr | Mach Mill | 1 | 06-03-2009 08:11 AM |
| Need Help!- X3 CNC macros | trainfred | Syil Products | 6 | 05-20-2008 07:42 PM |
| Need Help!- help with macros | gj83 | General CNC (Mill and Lathe) Control Software (NC) | 2 | 04-11-2008 08:42 PM |
| Macros | cncfreak | General CAM Discussion | 24 | 05-06-2005 05:04 PM |