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) ? Quote Link to comment Share on other sites More sharing options...
MVP 2021 Joe Tauser Posted December 6, 2020 MVP 2021 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 Quote 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! 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.