by Mcasey » Wed Dec 08, 2021 9:54 pm
I don't quite understand how to use variables, I thought they were used just for calculations, the manual is a bit vague on these, this was my understanding from the manual
The following code example shows how to use the variables:
#1 = 5 (Sets the value of variable #1 to 5)
#2 = 10 (Sets the value of variable #2 to 10)
G0 X#1 Y#2 Z1 (Moves the axis with rapid to coordinates X=5, Y=10, Z=1)
#2 = 1.5 (Sets the value of variable #2 to 1.5)
G1 X#1 Y#2 Z#2 (Moves the axis with set feedrate to coordinates X=5, Y=1.5,
Z=1.5)
#3 = #1 + #2 (Sets the value of variable #3 to 6.5)
#4 = 100 (Sets the value of variable #4 to 100)
G1 X#3 F#4 (Moves the axis with set feedrate of 100 unit/min to coordinates
X=6.5)
Typing ?#4 into the MDI will return the value stored within variable #4 to the
status message box on screen.
How can I use this to say put 5v for example on the analog pin 6 or 7? Sorry I'm just a little lost with this