eFisher0409 Posted October 25, 2018 Report Share Posted October 25, 2018 I need to implement another timer in the middle of my program to allow time for my motor to stop spinning before switching directions, but everytime I do reverse is always stuck on, can anyone help with this? Also need to be able to control motor speed through analog outputs. Attached is my current program Smoker Project.vlp Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted October 26, 2018 MVP 2022 Report Share Posted October 26, 2018 That looks amazingly like the Example program Kikis posted for you. You're having trouble modifying the code because you didn't write it and you don't know how it works. The problem with a Set/Reset and Contact type program (A.K.A. "A Bit-Banger") is they are very difficult to insert new steps in after they've been written to perform a certain task. Fear not, young Padawan. There is a better way, but you must study the Ways of the Force. You are trying to program a sequence, which can easily be defined using a flow chart. Read the following post three times: Then download my State Machine example program and study how it works. Then list the steps of your sequence. On paper. Use circles and arrows. A paragraph on the back is optional. From your written steps, see if you can implement the State Machine. You should be able to do it in four networks with three timers, based on your previous posts and this new information. Upload what you come up with, even if it doesn't work right. We'll worry about the analog output for the speed after the output coils are working. Joe T. 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.