What is the difference between WAIT LIMSW and WAIT REFSW commands in TMCL?
The terms “reference switch”, “limit switch”, “stop switch” and “end switch” all mean the same thing.
However, when it comes to the TMCL command "WAIT", WAIT LIMSW and WAIT REFSW have a key difference that isn't immediately clear in documentation.
WAIT LIMSW waits for the right reference/limit/stop/end switch to be pressed.
WAIT REFSW waits for the left reference/limit/stop/end switch to be pressed.
Both commands behave the same, but they wait for different switches.
These commands were separated for historical reasons and have not changed due to compatibility issues with older modules.
Please ensure that you use WAIT LIMSW when waiting for the right switch, and use WAIT REFSW when waiting for the left switch.