Limit switch


If the limit switch is hit when using the ticcmd with the velocity or position arguments does it initialize the position? or does initializing position only happen when homing?


The “current position” variable is set as part of the homing procedure (e.g. using the --home DIR option). It will not get set when the limit switch is triggered during normal use (e.g. after using the --position NUM or --velocity NUM options).

Additionally, you can set the current position to be the 0 position using --halt-and-set-position 0.