zavis Posted February 24, 2021 Report Posted February 24, 2021 Please can someone help me with this ? Iam really beginner I want to set the timer so that after pressing the key 3 there is a delay of 5 seconds, then both bulbs 1 and 2 light up at the same time. Bulb 1 would illuminate for 5 seconds and bulb 2 for 10 seconds. then the whole cycle would be repeated until I press button 3 again to interrupt the cycle. Thanks a lot
MVP 2023 Flex727 Posted February 25, 2021 MVP 2023 Report Posted February 25, 2021 I did this quick and dirty. I'm sure there are more elegant ways to do it.
MVP 2023 Ausman Posted February 25, 2021 MVP 2023 Report Posted February 25, 2021 I didn't have time for this yesterday, and Flex has gone to trouble to knock something up for you. Go Flex. I also have 2 suggestions, that don't have screenshots just to annoy Joe T, but really because I don't have time to do so. 1). This could all be easily achieved with a drum. Drums are a bit hidden in the Help files, but well worth a read and are very usefull. Use the search tab in Help, type drum, and up will come Drum Sequencer. Note that drums can be manually triggered to go all over the place in the drum configuration, before the drum naturally gets to the next step specified by the current step's timer. 2). I've said it before, but Counts are a forgotten method that are a really simple way of doing something multiple timers often struggle with. Set up a count that increases every second by using SB3, or SB7 for 1/10th of a second. Then do compares to activate your lights whenever the count is at the correct amounts. To reset things or interrupt the cycle, you simply manipulate the increase of the count, be it by stopping, restarting, or writing a different value to it. cheers, Aus edited moments later, I mistakenly thought this was in the Vision forum. slight change to help wording, SBs etc..
MVP 2023 Flex727 Posted February 25, 2021 MVP 2023 Report Posted February 25, 2021 I also have two comments. It's been awhile since I worked with U90 ladder and had forgotten that there is no Toggle Coil. Ugh, this situation really calls for it. 1 hour ago, Ausman said: This could all be easily achieved with a drum. I immediately thought this was a great application for Joe's famous state machine. I did not opt for that because it would take more time on my part and would require more explanation to zavis than I had time for and may not be appropriate for a beginner.
MVP 2023 Joe Tauser Posted February 26, 2021 MVP 2023 Report Posted February 26, 2021 17 hours ago, Ausman said: that don't have screenshots just to annoy Joe T, 16 hours ago, Flex727 said: was a great application for Joe's famous state machine. It is good to be loved. 😍 There is a Drum function in Jazz. It's one of the internal functions without blocks but it's well-documented in the Help and it has its own configuration on the Project Tree. I agree that this application would be well-suited for that. @zavis- if you want to have a go at this and upload your PLC program we can be helpful. I used to teach the State Machine method on Vision PLCs when I still did a PLC class locally. All the students wanted to learn Allen Bradley, but the local Electrical Board didn't want to pony up the money for trainers and AB doesn't donate equipment. So I did Unitronics because that's what I had. I have been sorely tempted to make a video of this using Unitronics, as the current "programming" videos are more about how to use a particular function. Then Aus and Flex could seriously abuse me. Of course I would be smoking a cigar in the video. Joe T.
sgull Posted February 26, 2021 Report Posted February 26, 2021 That is a video I would definitely watch. The chiefs at Unitronics should jump at this offer. would make a great training presentation for all levels of user.
MVP 2023 Flex727 Posted February 26, 2021 MVP 2023 Report Posted February 26, 2021 @zavisis AWOL, but perhaps he has a day job like the rest of us. zavis, if you do return to this thread, I want to mention something I neglected previously. In the picture you pasted you have two logic threads in ladder rung 5. Do not do that. Separate those two statements into two different ladder rungs. Also, though it's not hurting anything, you don't need SB 1 there. I'm not sure why you felt the need to include it.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now