hrc
Electrical
- Nov 8, 2001
- 104
I have a Koyo DL05 PLC. I have the code written (is that really a good term for developing ladder logic?) to generate a 1 min timer to increment a counter, so I can program a delay of 45 minutes. Now, what I need to do is have a random amount of time from 1 minute up to 15 minutes added to this intial 45 minutes. Using a microcontroller its easy, but how do you generate a seed for a random number generator? I played with barrel counters and IF I could have it so it could "pick" a contact when the intial counter reached 45 minutes, that might work. After the 45 min + random time, a second fixed time sequence occurs. So far, everything works except for the random time adder. Any ideas?