![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| NCPlot G-Code editor / backplotter Discuss NCPlot software here. |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Hi Scott, Possibly another problem with local variables, they seam to clear on M99, but this does not happen on the m/c. Is this set on a parameter on the m/c? % O0001(NCPLOT CLEARING VARS ON M99) G65P2A10.B20. (NEXT LINE SHOULD MOVE TO X30.0 ) ( BUT GOES TO X20.0 AS #1 HAS BEEN CLEARED ) G0X[#1+20.0] M30 O0002 G21G55G17G0 T1M6 G40G0X0.Y0. Z2. X#1Y#2 M99 % thanks Turner. |
|
#2
| ||||
| ||||
| Hi Turner, It seems odd that your control *wouldn't* clear the local variables on M99. The reason that they are called "local" variables is because they are only valid for the sub that they are used in. Say for example your program O0001 used variable #3 as a loop counter. Let's also say that your program O0002 also used variable #3 for something. The idea is that program O0002 can use this variable *without* disturbing the value of #3 that program O0001 is using. So after the M99 in O0002, the value in #3 that program O0001 sees is the same is it was before the subprogram call, even if program O0002 also used #3. What control are you seeing this on? Thanks, Scott |
|
#3
| |||
| |||
Turner |
![]() |
| 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 |
| local variables of a macro | sinha_nsit | Fanuc | 8 | 01-16-2008 07:19 AM |
| Local Suppliers | jhudler | Suggestions for the CNCzone.com site. | 0 | 11-17-2007 09:12 PM |
| Local variables | jorgehrr | G-Code Programing | 4 | 02-19-2007 04:03 PM |
| any Australians in here with local suppliers | dave05 | DIY-CNC Router Table Machines | 6 | 09-05-2006 06:00 PM |
| G65 local variables help | FanukRC | G-Code Programing | 7 | 07-25-2006 07:00 PM |