Leon de Mooij Posted January 23, 2019 Report Share Posted January 23, 2019 Hello, I'm using the Samba to control a simple servo. It works with the step control hso. Everething works ok , only it is not possible to make a homing cycle. How can i reset DW0 in the file included ? I can't do anything with this operand. There must be a solution because when there is no homing you can't use the stepper function to positioning ?? test stappenmotor.vlp Quote Link to comment Share on other sites More sharing options...
MVP 2022 Ausman Posted January 23, 2019 MVP 2022 Report Share Posted January 23, 2019 Can't you use Store/Direct to put 0 into DW0 when at the home point? I also note that in a very quick look at your program that you have DW0 power up value set at 0. There are pros and cons to this, retaining the value might be beneficial. cheers, Aus Quote Link to comment Share on other sites More sharing options...
Leon de Mooij Posted January 24, 2019 Author Report Share Posted January 24, 2019 No it is not possible to store/direct into DW0. When i do power up at 0 it is the only way to get DW0 to 0 Quote Link to comment Share on other sites More sharing options...
MVP 2022 Ausman Posted January 24, 2019 MVP 2022 Report Share Posted January 24, 2019 I can't run your program as I don't have a Samba. And I don't normally play with steppers so this is new to me too. From what you are saying it would appear that because the hardware config is told DW0 (in your case) is the count, then there is an automatic system lock on it being changed through normal methods. In this case I would have thought there was a reset SB/MB somewhere, but not found. Have you tried "Reset Numeric"? Or include it in your display with a numeric entry possible? Someone else chime in who actually knows? Pretty please! cheers, Aus Quote Link to comment Share on other sites More sharing options...
Leon de Mooij Posted January 24, 2019 Author Report Share Posted January 24, 2019 Problem solved. When you store 1 in the freq. and set the run bit ,the counter comes 0. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Ausman Posted January 25, 2019 MVP 2022 Report Share Posted January 25, 2019 @Cara Bereck Levy Cara, I'm happy that Leon has found a solution, but this seems a very strange way to achieve the desired result. What are we missing here? cheers, Aus Quote Link to comment Share on other sites More sharing options...
Leon de Mooij Posted January 25, 2019 Author Report Share Posted January 25, 2019 I 'm also think this can be better/easier, so when somebody has a better sollution just post it please. The machine is working now so i'm happy..... Quote Link to comment Share on other sites More sharing options...
Cara Bereck Levy Posted January 29, 2019 Report Share Posted January 29, 2019 @Ausman, I'll check into it Quote Link to comment Share on other sites More sharing options...
MVP 2022 Ausman Posted January 29, 2019 MVP 2022 Report Share Posted January 29, 2019 Great, Cara. And Leon....did you also try Reset Numeric as suggested? cheers, Aus Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.