Haakon Posted May 29, 2014 Report Posted May 29, 2014 (edited) Hi! I need to loop my program. The best way i think of doing it is by using a timer. This is what I need to do: A pushbutton starts motor 1, then the motor goes in 5 seconds before motor 2 starts. Both two motors will go in 10 seconds before they stop in 10 seconds and start from the beginning again. In the pictures you see what I have done so far, the process works like I want to, but the timer that loops the program is starting to count the second the plc get power... Edited May 29, 2014 by Haakon Quote
Mendon Systems Posted May 29, 2014 Report Posted May 29, 2014 T0003 will start as soon as the PLC powers on. It looks like you need at least one (probably two) more bits involved. You need to set a bit when 0.01 is on (cycle start bit) and add this bit to the T0003 logic. You probably also need a cycle stop input that turns off that cycle start bit. Quote
Haakon Posted May 29, 2014 Author Report Posted May 29, 2014 Can you tell me a little deeper how I do this? I am going at school and we have just worked with PLC in since December, so I'm not that good with PLC yet I'm really interrested in PLC, and planning to take education as an automation technician :) Quote
Mendon Systems Posted May 29, 2014 Report Posted May 29, 2014 OK .... You could set an unused I/O bit when 0.01 turns on with an SET instruction then use another input (or some other logic) to reset the bit with an RSET when you want to stop the process. You would then add the bit to the logic for T0003. In this example I used 50.01 for the cycle start bit Quote
Haakon Posted May 29, 2014 Author Report Posted May 29, 2014 (edited) Ok, thanks! I kinda figured out myself, and managed to get it to work like i wanted to. I used a "fake" coil to start one timer that resets the whole process. Edited May 29, 2014 by Haakon Quote
Mendon Systems Posted May 29, 2014 Report Posted May 29, 2014 That should work just fine. You could put a NO contact of 100.04 in series with your T0003 logic and probably don't need T0004. Quote
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.