Random numbers
Random numbers
(OP)
Hi,
Can any of you clever chaps give me(lazy I know!) structured text code that will generate a pseudo random number between 1 and 10?
Thanks
Can any of you clever chaps give me(lazy I know!) structured text code that will generate a pseudo random number between 1 and 10?
Thanks





RE: Random numbers
RE: Random numbers
It has been designed using Omron but should be adaptable.
RE: Random numbers
I'll try and get the ladder version to work.
RE: Random numbers
RE: Random numbers
RE: Random numbers
RE: Random numbers
These random numbers will be used for timer values. Its for a security lighting project I'm working on.
The PLC is a WAGO 750-841 and the software I'm using is CoDeSys.
Happy New Year.
RE: Random numbers
RE: Random numbers
Thanks
RE: Random numbers
Will see if I can set something up for you tomorrow.
Bob
RE: Random numbers
Pleas be patient for another day or two.
RE: Random numbers
Still looking for help with random numbers? In MATLAB, use the command rand. I beleive C/C++ also have the function rand().
RE: Random numbers
http://www.cherry-hill.com/GrantsGulch.htm
fun project....