5/25/2009 12:50 PM | |
Posts: 2 Rating:
|
Hi, I am trying to make a system for LOGO! that can randomly choose from 4 outputs. It seems that either LOGO! or my programming-skills are somewhat limited in this area. I am aware there is a random generator in the builder but this one only switches on and off at random times and it is hard to convert this to a normal random switch. It seems that I finally more or less succeeded in this, when reviewing the software simulations, but when it is used in the PLC, it malfunctions. This is my first program written for the LOGO!, maybe someone can have a look at it. Please tell me if the thing I am trying to accomplish is possible for this type of PLC. If anyone has any better suggestions for the programming, I would be happy to hear those. Ronald Attachmentrandomizer.zip (561 Downloads) |
5/26/2009 3:51 AM | |
Posts: 191 Rating:
|
Hi!! there are many ways to solve a problem.. this is just one idea.. hope this helps!! ROSA Attachmentrandom.zip (657 Downloads) |
6/4/2009 11:43 AM | |
Posts: 173 Rating:
|
I got the attached program from a LOGO! Guru in the UK. It generates a random binary output on the 4 LOGO! outputs. I used these as the address lines into a DEMULTIPLEXER, to get 1 of 16 lights to flash randomly. It worked great. There are also some other Random number generators that I played around with. Maybe you could use some of the logic!?!? Cheers AttachmentRandomLOGO.zip (657 Downloads) |
This contribution was helpful to
1 thankful Users |
6/4/2009 9:57 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating:
|
Hi LOGO!Barbarian, that are some interrest circuits, thanks. Best regards Betel _________________________________________________ Perhaps helpful links: Collection of notes and circuits for the use and programming the LOGO! Scalingof signals with analog blocks retreving data from logo |
Last edited by: Betel at: 6/4/2009 11:21 PM==> Meine TAG-Listen: "deut." |
|
This contribution was helpful to
1 thankful Users |
6/10/2009 11:05 AM | |
Posts: 153 Rating:
|
Hi, all. I have a two ideas AttachmentRandom_str.zip (577 Downloads) |
6/10/2009 9:08 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating:
|
Hi Andrey, some interest ideas! If you wont (or must), you can reduce the number of blocks (sum of 10) by the following way: a) delete all the blocks B008, B011 und B012 b) get an "AND"-block and connect B002 and B005. c) invert (by a dubble click at the pin) the pin of the line from B002 d)..and at the other 3 parts do this modification identikal e) delete B010 and the LOW before) and B033, invert the pin "S" of B002 and connect B001 and B034 direct. Best regards Betel |
==> Meine TAG-Listen: "deut." |
|
This contribution was helpful to
1 thankful Users |
Follow us on