Hello guys.
I am trying to write a program that uses the I macro variable. Not I as in IJK, this is I as in IO.
Section 18 of the manual says that the I(x) macro will return the state of various inputs to the control and I am looking specifically at I(7), the touch probe state.
(I am aware of and do not want to use G31, G31.1, L9101, etc - simply want to know the status of the probe without making a move)
I've tried a bunch of things to get the value of I(7) into a variable, including
V5=I(7) like written in the manuals, and V5=I7 like referencing a fixture offset "FX3" for example. Anyway, it just keeps barfing on the code telling me that I have an error.
I know there must be a way to accesss these functions, else why would they be in the manual ?
One thing I think of now that I didnt try would be
#IF ( I7 ) THEN GOTO :TURNONPROBE
Any thoughts oh great gurus ?? Maybe my brain just isn't working but I could use a little pointer here!
:drowning: