s7 iec timer

There isnt a standard IEC timer with retentivity.
But in the standard library under TI-S7 converting blocks you can find FC80 TONR which is a timer with retentivity.

Notice that it uses DINT and not TIME for the setpoint. It is basically the same (the time measured in milliseconds).

Also notice that you have to copy #OB1_PREV_CYCLE in OB1 to a variable that is loaded into FC80 at DELTA_T.
 

Similar Topics

I recently discovered that when downloading an online edit [S7-1500] that requires the initialization of the modified FB's iDB, an IEC timer whose...
Replies
36
Views
11,886
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...
Replies
8
Views
3,395
After a previous post I have been trying my best to set up a simple s7 IEC timers within a FB (Timings) and then use it from a FC (FC1). I have...
Replies
24
Views
3,339
Hi all, :huh: How the IEC timer works? I tried to simulate the IEC timer SFB4 in FB but it seems its hard for me to analyse where I...
Replies
6
Views
4,369
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
Back
Top Bottom