![]() | |
| 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
| |||
| |||
| Hi, so i have been trying to make a "loop" for milling a cone like thing, but that's not so important. But the thing is I want to use variables for different things. I have tried using variables in a single program and it works perfect. Example: O6000 N1 ( ----- START BLOCK ----- ) N5 G80 G40 G90 N6 G53 N10 M6 T3 N15 S1000 F350 N20 G00 X0 Y0 Z100 N21 ( ---- PROGRAM ---- ) N25 #1 =-90 N26 G01 Z#1 N30 M30 This works without problems, but I don't know how too create a loop in this. I normaly use sub programs too loop but since they can't pass variables as far as i know it won't work. And yes, i have tried macros too. But im not sure if it is my NC "emulator" that doesn't support this or if im doing something wrong. Using "EMCO WinNC". |
|
#2
| |||
| |||
O6000 N1 ( ----- START BLOCK ----- ) N5 G80 G40 G90 N6 G53 N10 M6 T3 N15 S1000 F350 N20 G00 X0 Y0 Z100 N21 ( ---- PROGRAM ---- ) #100= 5.0 (NO OF LOOPS) WHILE[#100 GT O.O]DO1 #100=#100-1.0 N25 #1 =-90 N26 G01 Z#1 END1 N30 M30 |
|
#4
| |||
| |||
| Sorry for being dense. If you are trying to pass values to a subprogram, then use the G65 Macro call. You can set variables in a subprogram that will be used by another sub or the main program. If you are strictly asking about the WinNC software, then I can't help you. Never used this type of software. However I might be able to help you if we are talking about the machine running your programs. |
|
#6
| |||
| |||
Does all Fanuc systems support G65 / GOTO and so on or is this something you will have too pay extra for to get unlocked (if not already unlocked)? |
|
#7
| |||
| |||
|
They are part of what is known as Macro B. You will have to pay extra if they aren't already on, tho older controls can be illegally (per Fanuc rules) turned on by parameter changes. My understanding is that the new controls need someone from Fanuc to turn them on. |
![]() |
| 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 |
| Open Loop to Closed Loop Stepper Conversion | beamhome | Stepper Motors and Drives | 9 | 05-24-2012 02:46 AM |
| EMC2 variable pitch / variable diameter threading. | samco | General Metalwork Discussion | 0 | 03-09-2008 01:40 PM |
| question on closed loop vs open loop (servo systems) | boonie | Servo Motors and Drives | 20 | 11-09-2007 12:30 PM |
| Lathe conversion - open loop vs closed loop | bhowden | General Metal Working Machines | 7 | 03-21-2006 03:56 PM |
| Closed loop....open loop? | DAB_Design | General Electronics Discussion | 10 | 06-26-2004 04:02 PM |