Siemens IEC timer maximum time

radfahrer

Lifetime Supporting Member
Join Date
Nov 2006
Location
Boston
Posts
156
Tried Googling and searching this forum for the answer to this, but no luck, so figured start a new post to see if anyone can help me...or confirm my calcs.



Question is what is the maximum length for a timer you can track with a Siemens IEC timer. From what I understand, it uses a DINT for the preset in milliseconds.
If that's an unsigned DINT then it would be 2^32/3,600,000 or ~1193 hours (49 days). If it's a signed DINT then would be half of that.



Have an application looking to do several days of timing, and want to see if I need to go to using 1 sec timer with counters or if the IEC will work as is.


-G
 
Tried Googling and searching this forum for the answer to this, but no luck, so figured start a new post to see if anyone can help me...or confirm my calcs.



Question is what is the maximum length for a timer you can track with a Siemens IEC timer. From what I understand, it uses a DINT for the preset in milliseconds.
If that's an unsigned DINT then it would be 2^32/3,600,000 or ~1193 hours (49 days). If it's a signed DINT then would be half of that.


Have an application looking to do several days of timing, and want to see if I need to go to using 1 sec timer with counters or if the IEC will work as is.

-G

It is somewhere around 24Day20H which is still accepted to PT

(Time is signed Dint, so it is around 24,855 days)
 
When I see a field and it doesn't tell me the range, I'll enter a really big number and when I try to accept/enter many software packages will tell you it is invalid and show what the valid range is.

And while the timer can time that long, you might consider the readability of the value. If I see 1.3 billion milliseconds have passed, I'll have to do the math to get that to a usable number. You might add logic to do that if operators need to see that as meaningful data.

OG
 
Fun fact, if you need to go bigger (or smaller) the 1500 also supports the LTIME data type for timers, which counts in nanoseconds and goes up to 106751 days. I won't live long enough to see an LTIME timer overflow, so that's PROBABLY big enough for the foreseeable future.
 
You could use the dtl data type and the 'Date and Time of Day' commands in Extended Instructions instead of an IEC Timer.

dtl data type.JPG
 
What if PLC reboots between timing.

IEC timer would go zero if input goes to 0.

Would it be better to program with ADD block, so it would keep last value?
 

Similar Topics

Hello! I intend to use the iec timer SFB4 for alarm blocks. In order not to use up one instance data block for each timer, my intention was to...
Replies
4
Views
7,741
Hi all, is it possible to compare the Elapsed time from an iec timer (SF4) with another value using a compare block.
Replies
2
Views
3,772
Hello, I want to create a FC function that uses SCL code that checks deviation of a controllers actual measured value from its setpoint and then...
Replies
3
Views
7,102
Hi, Im investigating for my work if it is possible to transfer a simple program from Step7 to RSLogix5000. According to the site of siemens this...
Replies
6
Views
8,721
Hi, In one of my projects i am using Siemens Siprotec Numerical Relays (7SJ611,7SJ641,7RW600) for IEC-103 communication with Telvent RTU. I have...
Replies
9
Views
9,471
Back
Top Bottom