(0)| 11/27/2023 10:11 AM | |
|
Joined: 9/23/2005 Last visit: 12/29/2025 Posts: 4435 Rating:
|
Hi As from TIA V19, it is possible to generate random numbers by the “random” instruction. Random numbers are used in the industry for process simulations (digital twins, optimizations, training, etc), quality (samplings), maintenance procedures, etc. TIPs:
In this example a random number is generated at each new piece that comes and with a probability of 0,2% (0,002), the piece is separated to the inspection. There are also example of the use of SCALE / UNSCALE to change the range (including a FC to do it). Sample project (archived from TIA Portal as .zap19 and after that compacted in .zip format to be uploaded here) Attachmentrandom.zip (353 Downloads) |
|
Denilson Pegaia |
|
This contribution was helpful to
|
|
| 11/27/2023 10:15 AM | |
|
Joined: 7/9/2015 Last visit: 12/17/2025 Posts: 4493 Rating:
|
Hi, That´s fine! For all other users with TIA smaller V19, use LGF_Random instructions. Library of general functions (LGF) for SIMATIC STEP 7 (TIA Portal) and SIMATIC S7-1200 / S7-1500Regards, Towome |
|
|
|
This contribution was helpful to
|
|
Follow us on