On Sun, 3 Mar 2019 at 01:03, Gene Heskett <[email protected]> wrote:
> 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... Do you really mean analog-OUT? The analog-out HAL pins are controlled by M68, copying a value from a G-code variable to a HAL pin. So, your "M68 E1 Q#<_off_angle>" sets motion.analog-out-01 to be equal to the value of your G-code variable #<_off_angle> so that you can use that value in HAL. So, can you explain if the FP value in question is calculated in G-code and sent to HAL, or comes from HAL and you want it in the G-code? Your " #<_angle> = motion.analog-out-01" is just completely wrong, you can't insert HAL labels in G-code like that. There _is_ a way to read HAL pins in G-code but you get the values at program-start, not the live value while the program is running. And there is no point reading the value of the motion.analog-out pins as they only ever have values that are already in the G-code. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1916 _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
