On Saturday 05 December 2015 13:51:36 andy pugh wrote: > On 5 December 2015 at 18:22, Gene Heskett <ghesk...@wdtv.com> wrote: > > I can't find a method to reference a numbered variable > > indirectly > > You can do: > > #3 = 12345 > #5 = 67890 > #6 = 3 > > #1 = ##6 > (DEBUG, The index is #6 and the value is #1) > #1 = #[1 + #6] > (DEBUG, the next number is #[#3 +1]) > Not exactly Andy.
> Is that what you mean? > > The debug statement doesn't parse ## the way that G-code does. Humm, my most recent attempt didn't even get that far. See the most recent msg. I can't even assign a value to a global named variable now. The last line here, fails: snip header, this is First active code line: #<_bb_section_lend> = 1.00000000 ( inches ) ( we want a nice 1/8" radius on the transitions where ) ( the width changes, but we are using a 1/16" tool ) #<_corner_rad> = [0.125000000 + 0.03125000] ( slot in lid panel ought to be longer than it is, so will have ) ( to be dug out to fit this for artistic reasons ) ( touch off Z at surface, X, Y at left rear corner of workpiece ) #<_lid_section_lend> = 3.00000000 ( inches ) #<_key_width_end> = 0.75000000 ( at least 3/4" for strength ) #<_key_width_lid> = 0.62500000 ( and 5/8" in lid so 1/2" can be buried/glued in slot ) #<_key_thick> = -0.25500000 ( trim to fit so it can move with the seasons ) #<_feed_rate_s> = 6.00000000 #<_feed_rate_f> = 42.0000000 #<_z_tmp> = 0.00000000 #<_z_safe> = 0.02500000 #<_z_step> = [#<_key_thick> / 20.00000000] (s/b minus value ) ( -0.012750 is correct ) ( now we need an array of data to feed nurbs with so initialize about 10 points for x,y ) ( twenty total, even are x, odd are y ) #<_angle_inc> = 9.00000000 ( in the code ) The above line fails, spitting out ###### for #<_angle_inc> Thanks Andy. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users