charles.lin Posted February 4, 2021 Report 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
MVP 2023 Flex727 Posted February 5, 2021 MVP 2023 Report 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now