DonNH Posted August 7 Share Posted August 7 Another simple problem I believe . . . I'm turning on a motor, keeping it on for a specified time, then shutting it off. The thing is, I have to use a function block to turn on the motor (ARCL connection with mobile robot). So, I'm setting variables MotorOn to activate the timer once the initial function block is complete , and Timer_done to activate the function block to turn off the motor. This works fine, unless I try to stop the motor before the timer has expired, by turning off the Start_motor switch. In that case, Timer_done never becomes True, so the motor continues indefinitely. Seems like there should be a fairly simple way to activate the Motor_Off function block when the Start_motor switch is turned off. 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.