Home finding routine on boot up
5 years 2 weeks ago #29533490
by call8212
Home finding routine on boot up was created 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: www.roboteq.com/index.php/technology-menu/microbasic-technology 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.
- Gabriel_Isko
5 years 5 days ago #29533503
by Gabriel_Isko
Replied by Gabriel_Isko on topic Home finding routine on boot up
Hey, Sorry for the late response. Somehow this post slipped through my radar.
The idea behind loading home counter values is that you can set reference values for your encoder and home counter that correspond to your applications home position. Therefore, if you modify the position of your output, you have a simple way to re-calibrate the home of your system. Check out the documentation for the BHOME, EHOME, and H commands in Section 19 in our User Manual .
The idea behind the sample script is that it moves until the limit switch is pressed, and then sets the motor channel up for position relative mode. I'm actually working on an improved version of that script that should be agnostic to the motor output mode that you wish to use. For now, the main useful part of that script is the part that monitors for a digital input to find the home position of a system.
Let me know your progress on this script and I can provide more assistance.
The idea behind loading home counter values is that you can set reference values for your encoder and home counter that correspond to your applications home position. Therefore, if you modify the position of your output, you have a simple way to re-calibrate the home of your system. Check out the documentation for the BHOME, EHOME, and H commands in Section 19 in our User Manual .
The idea behind the sample script is that it moves until the limit switch is pressed, and then sets the motor channel up for position relative mode. I'm actually working on an improved version of that script that should be agnostic to the motor output mode that you wish to use. For now, the main useful part of that script is the part that monitors for a digital input to find the home position of a system.
Let me know your progress on this script and I can provide more assistance.
Please Log in or Create an account to join the conversation.
5 years 5 days ago #29533504
by call8212
Replied by call8212 on topic Home finding routine on boot up
Thanks for the response, I got it working! I came across EHOME and H commands and understanding those commands got it working good.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 4
- Thank you received: 0
3 months 2 weeks ago #29536204
by CamilleBondurant
Replied by CamilleBondurant on topic Home finding routine on boot up
Okay, if you're looking for a residential area to live in, check out
Cairnhill 16 Showflat
. Here, you can view very beautiful flats that you can purchase based on your needs. You can buy 2 or 3 bedrooms. Visit this website to learn more.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 1
- Thank you received: 0
3 days 4 hours ago #29536227
by ameliasarah
Replied by ameliasarah on topic Home finding routine on boot up
On your Android phone or tablet, open the Google Home app Google Home . · On the Home screen Home , tap Routines · Add at least one starter and one action. · If ...When you set up Routines, you and members of your home can get help from Google Assistant with tasks throughout the day. Schedule a Routine for when you ...By creating a routine around your work schedule, you give yourself the comfort in
spacebar counter
knowing that there is a structure in place to perform at your highest. Because many of us do not have the consistency of the office life to push us towards more production, we have to replicate many of those things at home Household Routines help automate shared home devices for everyone in your home. For example, if you've turned on presence sensing for your phone, your cameras turn off automatically when you come home, or when you manually set your home's status to Home.Hal Erod discovered the six morning habits that aid in productivity and performance at work. The six tactics can are known as SAVERS
Please Log in or Create an account to join the conversation.
Time to create page: 0.077 seconds