HomeWindO/I-NV3

Programming software for our FT1A Touch PLC+HMI

Random Messages in this topic - RSS

James Soler
James Soler
Posts: 2

6/3/2019
I need to generate a random integer. Does anyone have an example program?
0 link
Shane
Shane
Moderator
Posts: 273

6/18/2019
One pretty simple method would be to run a timer continuously and based on some input trigger event an SOTU move the current value of that timer to your "random # register". Make the timer run within your desired integer range in milliseconds. You could have it go up to max then reset to min or have it go up to max, then reverse and go to min linearly.
0 link




Powered by Jitbit Forum 8.2.0.0 © 2006-2013 Jitbit Software