On 2/29/24 04:03, andy pugh wrote:
On Wed, 28 Feb 2024 at 21:29, gene heskett <ghesk...@shentel.net> wrote:
and I've copies of it in nc_files and in nc_files/subs, error msg claims
EOF while searching for it.
That isn't the most helpful message, it means that it hasn't found the
subroutine in the current G-code file (and had got to the end of the
file looking)
What this normally means is that the subroutine file has not been
found in the subroutine path.
Working out why can be difficult.
I think I have that sorted Andy, deep in the docs is a mention that it
need the "o<name> sub" at the head of the file, an ends with "o<name>
endsub", and I had never added that stuff to the file. So I did now. So
that s/b fixed. But I was getting wet running back and forth to the
machine as it rained fairly steadily all day yesterday
Since theres a bucket of holes to be drilled, I have setup a slew of
vars, #<_arx, #<-ary, #<_arz with a single digit hex value as the next
character and of coarse a closing ">. I'll only drill every 2nd or 3rd
hole as this is the X axis for a 3d printer, 490mm long. 9mm wide linear
bearings top and bottom of a 540mm long 20x20 cf tube. Puting flying
weight on a starvation diet, printing parts that were originally poorly
designed and made from 8mm steel plate!
Now, I know bash can do it, I've done it decades ago in amigados and
either bash or ARexx, but can lcnc concatenate 4 strings, starting with
"#<_ar" one the axises(x,y,z), as the 2rd arg, the while counter value
in hex and the 4th the ">" in order to dynamically generate the var name
"#<_arx5>" that can then be used to address that particular variable?
That would allow me to write this as a while loop as opposed to
unrolling this into 1600 LOC. Most of which is copy, paste, edit.
If lcnc can do this, what section discusses the howto?
Thanks Andy. Take care & stay well.
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers