10/13/2023 9:22 AM | |
Joined: 7/9/2015 Last visit: 8/29/2025 Posts: 4443 Rating:
|
Hi, use LGF function LGF_RandomRange_Real. Library of general functions (LGF) for SIMATIC STEP 7 (TIA Portal) and SIMATIC S7-1200 / S7-1500Regards, Towome |
|
|
10/13/2023 12:27 PM | |
Joined: 12/20/2021 Last visit: 9/5/2025 Posts: 24 Rating:
|
Hi Towome, thank you for the library, it will be very useful also in the future. I made a network (I attached it) that simulates the temperature of a motor (and round it at two decimal digits). Since the real is always greater then 0, how can I make the random number also negative? Otherwise, the motor temperature will increase forever. If my random number will be negative (sometimes) I can obtain temperature around a starting point. Thank you, Federico |
Follow us on