On Saturday 02 March 2019 16:00:14 Gene Heskett wrote: > Greetings all; > > I have, in this panel carving code, combined with my modified align > subroutine kit, freshly modified to pass the data it develops back to > the main panel cutter code by passing the detected angle back via an > M68 E1 Q#<_off_angle>, and that is working, I can see its data with a > hal meter. At motion.analog-out-01. > > But lcnc is complaining about line 8: unknown operation where unary > operation could be". This is the real line 7: > #<_angle> = motion.analog-out-01 > > Syntax error, or bug?
Finally noticed the "note" at the bottom of the M68 section that says it only works if hooked up in the hal file, like with that single example of a "net" statement hooking a digital output up to a parport pin. Several paragraphs above it. No examples of how one might save that analog value read from a motion.analog pin into a variable usable by the gcode. so how do I move the motion.analog-out-01 FP variable to a global variable for later use in my gcode? Even if its only 1 line later... Is a simple: net off_angle <= motion.analog-out-01 But that makes off_angle a label, not a variable according to my understanding. So please show me, I'm from just 150 miles north of Missouri. > I'm trying this way because unless the main code has been run prior to > the alignment stuff, #<_angle> has not yet been created. So I'm using > the M68 as a holding register until the above code creates it, and > then does a G10 L2 P0 R#<_angle> to apply the correction. Small > fraction of a degree in this case. > > Thanks all; > > Cheers, Gene Heskett 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> _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
