![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
Guys - Is it better to clear local variables (Parameter 6001 bit 7=0) every time you re set your machine, or it does not matter. I'm confuse?? If I run G65P9001X10Z20A100B105 then I change program(different job) G65P9102X20Z10C250D205 does G65 resets new values???? Regards George |
|
#2
| |||
| |||
| 070216-1624 EST USA jorgehrr: Why does it matter? Local variables are volatile so you expect to load them before use. On a HAAS when you do a G65 call to a subroutine there is a whole new set of local variables created, and these are associated with parameters on the G65 calling line. Do your own experiments. Create a program like this: #1 = 10.0 #2 = 12.0 #101 = #1 #102 = #2 G65 P1000 B22.0 #111 = #1 #112 = #2 M00 N1000 #103 = #1 #104 = #2 #1 = 15.0 #105 = #1 M99 After execution on a 1993 HAAS VF-2 the results are: 101 = 10.0 102 = 12.0 103 = empty 104 = 22.0 105 = 15.0 111 = 10.0 112 = 12.0 Note: on going into the subroutine the local variables in the subroutine are cleared, and those associated with a parameter on the subroutine calling line are loaded with the calling line value. Changes to a local variable within a subroutine are not passed back out of the subroutine when the subroutine returns. Local variables that had a value before the subroutine call are unchanged when returning to the calling level. . Last edited by gar; 02-16-2007 at 06:45 PM. |
|
#4
| |||
| |||
| jorgehrr: Do not hesitate to ask questions when something is not clear. Often a bit of information is what you need to get by an impasse. Learn the fundamentals and develop an intuitive understanding of what you are working on. One kind of question I do not care for is when someone wants a specific question answered but is unwilling to learn the fundamentals so that they can answer a similar question on their own in the future. . |
![]() |
| 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 |
| Wisconsin area forming a local informal group | skypilot | Mentors & Apprentice Locator | 30 | 08-29-2011 08:58 PM |
| Anyone bitten by the cnc bug in Ohio? Local chapter starting! | ballscrewed | Mentors & Apprentice Locator | 126 | 03-06-2011 02:26 PM |
| any Australians in here with local suppliers | dave05 | DIY-CNC Router Table Machines | 6 | 09-05-2006 05:00 PM |
| G65 local variables help | FanukRC | G-Code Programing | 7 | 07-25-2006 06:00 PM |
| Local Transformer Source | andy_ck87028 | Australia, New Zealand Club house | 2 | 02-13-2006 02:40 AM |