I've been reading the manual and trying to figure out what the M-FIN switch does.
Right now, M21 is hooked up to the outside M function connector on the side of the haas.
If I issue:
M51;
Then the M21 relay is closed.
If I use M61; then M21 relay is turned off.
Questions:
1) What does M-FIN do? In the technical manual it says it is normally open (connected to +12V) and closed if connected to gnd.
2) Does the issue of "M51;" wait until it receives a closing of "M-FIN" before processing the next line OR does one need to poll read M-FIN somehow in a loop?
4) How does one "read" M-FIN? Like how would one write the following in G-Code:
-turn on M21 relay
-if M-FIN is closed then turn off M21 relay
-else wait and continuously recheck M-FIN
3) Why is M51 mapped to turn on M21 instead of M21 directly? What does "M21;" do if issued in MDI mode?
Thanks in advance for any help!