On Tuesday, March 06, 2012 10:07:12 PM Kenneth Lerman did opine: > Hi Gene, > > Remember that a variable must be defined (assigned to) before it is > used. In this case, before means at run time; not necessarily lexically. > > I don't know if that is the problem, but it is a place to look. > > Regards, > > Ken > I have my doubts Kenneth. That var is used all the way thru the upper loop that does the roughing cuts, and then saved after the roughing cuts are finished, to serve as a reference for the starting position of the next, much finer cutting so it leaves a decent finish on the shank of the taper.
I had grep spit out the line number the matches were found on, and it is line 60 below that Linuxcnc is complaining about. Line 60 is the end of the roughing cuts, and that var is used in lines 42, 49 and 51 before line 60 is executed. I agree that its probably something even I'd have to call dumbass once I find it. But I spent the day trying to install a heavy duty hitch on my Toyota, but didn't get the wiring harness install finished before I wore me out. So I need to take my bedtime pills & take my aches & pains to bed. I need to get the Toy capable of pulling a trailer as there is a new reman'd 350 for my pickup sitting at Adv. Auto waiting for me to pick that up and get started on pulling the old colander out. It has a pan full of antifreeze, the Chevy/GMC bad alu heads in the 99 models finally got to be my turn. :( > On 03/05/2012 05:46 PM, gene heskett wrote: > > On Monday, March 05, 2012 05:45:02 PM gene heskett did opine: > >> linuxcnc is now complaining that a named var isn't defined, after it > >> has been used quite a few times: > >> > >> gene@shop:~/linuxcnc/nc_files$ grep -n "#<_loop_rad>" taper_hub.ngc > >> 42:#<_loop_rad> = [#<_tmp_rad> + abs[#<_tempz>] * > >> tan[#<_tpr_angle>]] 45:o301 if [#<_loop_rad> lt #<_start_rad>] > >> 46:(debug, o301 loop_rad=#<_loop_rad>) > >> 49:g1f#<_feedrate> x[0.0000 - #<_loop_rad>] y0.0 > >> 51:g2f#<_feedrate> i#<_loop_rad> z#<_tempz> > >> 60:#<_old_rad> = #<_loop_rad> > >> 63:#<_new_start> = [#<_loop_rad> -0.002] > >> 93:#<_loop_rad> = [#<_tmp_rad> + abs[#<_tempz>] * > >> tan[#<_tpr_angle>]] > >> 96:o501 if [#<_loop_rad> lt #<_new_start>] > >> 99:g1f#<_feedrate> x[0.0000 - #<_loop_rad>] y0.0 > >> 100:g2f#<_feedrate> i#<_loop_rad> z#<_tempz> > >> > >> It is complaining about line 60. I have stared at this for an hour& > >> cannot see the reason. > >> > >> Code is at the usual place in the sig. taper_hub.ngc Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) My web page: <http://coyoteden.dyndns-free.com:85/gene> Familiarity breeds contempt -- and children. -- Mark Twain ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users