I did not know that LCNC/g-code supported scoping (implied by the 
gene:something), or was this just a stylistic nicety?

   EBo --

On Aug 17 2015 9:09 AM, Kenneth Lerman wrote:
> I would just have my subroutines all call a separate subroutine that
> initializes global named parameter.
> So:
> o<gene:Init> sub
>   #<_gene:height> = 62
>   #<_gene:chestSize> = 38
> o<gene:Init> endsub
>
> And:
> o<gene:millFront> sub
>   o<gene:Init> call
>   (do all sorts of stuff using global parameters that have been 
> setup)
> o<gene:millFront> endsub
>
> o<gene:millBack> sub
>    o<gene:Init> call
>    (do stuff for the back)
> o<gene:millBack> sub
>
> Regards,
>
> Ken
>
> [No nasty comments about a height of five-two and a chest size of 
> 38.]
> KL

------------------------------------------------------------------------------
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to