charles.lin Posted February 4, 2021 Report Share Posted February 4, 2021 Hi, I would like to have a timer box on HMI, so that the user can input a time on it. However, I don't use this timer to count down. Instead, I would like to take the value, and do some calculation with other input values. I can't find the information about how to convert the timer box's time into an int or real value for further calculation. Please help. Thanks, Charles Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted February 5, 2021 MVP 2022 Report Share Posted February 5, 2021 Both the Preset and Current values of a timer are UINT integers. Just use them directly as you wish or convert them into other types as you would any other integer. I think they are in units of milliseconds. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.