![]() |
Stopping an Axis-Controlled Motor
Our robot has an arm that is supposed to pick up the ball and is controlled by a gearbox, which is connected to a CIM and a Mini-CIM. We used to have it programmed so that the arm was controlled by buttons (one to make it go up and one to go down), but we decided to change it by controlling it with one of the axes instead. This gave us more control, and, overall, we prefer it. However, we designed the arm so that it could stop halfway up to catch the ball, and now we can't stop the arm in the middle anymore. Is there a way for us to program it so that it can stop in the middle? Thank you.
|
Re: Stopping an Axis-Controlled Motor
Letting go of the joystick doesn't stop it?
You can add dual controls if the buttons worked better for the middle position, so that the buttons override the joystick. |
Re: Stopping an Axis-Controlled Motor
Going along what Mark said, you could try wiring a button in-between the axis and the MotorSet block. When the button is pushed (true), the MotorSet block would recieve the joystick value but otherwise (false) it is set to zero.
If the joystick isn't setting the motor back to zero like it's supposed to, this would guarantee a total stop because of the button override. Is that the problem you're having? |
| All times are GMT -5. The time now is 09:55. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi