Topic-icon Home finding routine on boot up

1 week 2 days ago #29533490 by call8212

I am new to microbasic, but not new to programming, and am trying to get a homing code to find the reverse limit switch on boot up. I downloaded an example of a home finding script from here: and have been trying to understand it. Basically I have a SDC2160 controller connected to an quadrature encoder. I have a limit switch (NC) on digital pin 3. I don't understand what it means to load the home counter. I can get it into the "if" statement and start to move back but then it will freeze and stop moving and I can't regain control until I manually press the limit switch.

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Go to top