4/2/2024 1:02 PM | |
Joined: 3/11/2024 Last visit: 4/17/2024 Posts: 4 Rating: (0) |
May I come back to this? I have a 1500 in hands. Is there a conversion block? In my case I have a pre-configured system, so the user can choose if the timer will be based upon ms, sec, or min. My variable is named timeoutSP, it's a UDint and I want to convert to T#[timeoutSP]ms, or T#[timeoutSP]sec, or T#[timeoutSP]min, depending on the case. CASE #timeSEL OF 0: // SP in milliseconds #timer01.PT := T#timeoutSPinMS; 1: // SP in seconds #timer01.PT := T#timeoutSPinSEC; 2: // SP in minutes #timer01.PT := T#timeoutSPinMIN; END_CASE; ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 04/03/2024 05:10:08New subject after splitting. Quotes inserted. |
|
4/4/2024 11:23 AM | |
Joined: 3/11/2024 Last visit: 4/17/2024 Posts: 4 Rating: (0) |
Thanks, Jacek. That's exactly what I was looking for. |
This contribution was helpful to1 thankful Users |
Follow us on