Random number

It depends on the range of random numbers you need and how often you apply to them.
In most cases asynchronous reading of free running counter is good enough.
You can have one by running a PLSY instruction in continuous mode.
Then read as many last digits as you need from D8140 register..
 
Thanks for your replay. I want to generate random numbers between 2 to 300. I want to use it in every execution cycle contineously. I would be very greatful if you tell me in details, I am new in PLC.
 

Similar Topics

Hey folks, I was just wondering what thoughts were about a completely 100% random number generator. I looked on The Google but didn't really open...
Replies
54
Views
16,436
Hello, Could somebody please help me out with coding a 'Random number generator' in vijeo citect. For example if i create an analog Local...
Replies
3
Views
3,726
http://www.codeproject.com/KB/recipes/SimpleRNG.aspx I came across this simple version a couple of years ago. It is simple enough to implement...
Replies
5
Views
3,527
i need to set a unit up with random number generation to enable the timing on a switch to be 'erratic', does anybody know if its possible? i need...
Replies
16
Views
5,581
Hi,Does anybody know if there are any routines in unity pro that produce random numbers like the routine rand() in C ?
Replies
1
Views
4,021
Back
Top Bottom