vamsiAtSiemens
Member
Hello,
I am using about 16 IEC timers (TON) and want to add the remaining Time (ET) from these when a certain event occurs to a DB containing TIME variables. I read that TIME data type is 32 Bit, so I decided to use ADD_DI block to do this task.. However, I'm getting rubbish values in the data block (sometimes even negative values). Am I doing some thing wrong?
[A few more Details about the task:] The timers are for checking how long each equipment has been active. So, I'm setting the addition of ET to the existing record every time the equipment is stopped. Also, the timers aren't being run for very long- just a few seconds, so I doubt if it is crossing the range...
Thanks in advance for helping!
Vamsi Vegamoor
I am using about 16 IEC timers (TON) and want to add the remaining Time (ET) from these when a certain event occurs to a DB containing TIME variables. I read that TIME data type is 32 Bit, so I decided to use ADD_DI block to do this task.. However, I'm getting rubbish values in the data block (sometimes even negative values). Am I doing some thing wrong?
[A few more Details about the task:] The timers are for checking how long each equipment has been active. So, I'm setting the addition of ET to the existing record every time the equipment is stopped. Also, the timers aren't being run for very long- just a few seconds, so I doubt if it is crossing the range...
Thanks in advance for helping!
Vamsi Vegamoor