V700 Posted December 5, 2020 Report Share Posted December 5, 2020 I use a bargraph in my project that is linked to a timer.(TD1) I set bargraph's max value using an MI which has the preset value of (TD1). when the timer takes values > 00:05:27 the bargraph does not work at all when the timer takes values >00:11:10 it works only for some seconds, when i run the simulation i see at the preset value MI a small value, i think it has to do with the overflow, it works only at 0 to +32767 what operand should i use to fit max time of a timer(99h) ? Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted December 6, 2020 MVP 2023 Report Share Posted December 6, 2020 Timers work in longs. You'll have to convert your timer preset to units of 0.01 seconds into an ML, using the Load Timer Preset function. Then link the ML to your bargraph. Here's a longer answer on the value in a timer preset: Joe T. 1 Link to comment Share on other sites More sharing options...
V700 Posted December 6, 2020 Author Report Share Posted December 6, 2020 Yes i changed MI to ML and it works. Thank you! Link to comment Share on other sites More sharing options...
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