S7 timers

spaderkung

Member
Join Date
Aug 2007
Location
South Sweden
Posts
389
Hello,

How are timers handled in the otherwise so linear program scan?

Will a 5 ms on 5 ms off cyclic timer in a function block called once every scan of 60 ms have a 10 ms period?

If a timer output in a FC early in the scan enables a timer in another FC late in the scan - will there be almost 1 scan cycle delay of the start of the second timer?

/Jon
 
What sort of timers, IEC or S5 ?

Which S7 CPU are you using ?

How are you generating the 50ms on 50ms off ?
 
Last edited:
spaderkung said:
Hello,

How are timers handled in the otherwise so linear program scan?

Will a 5 ms on 5 ms off cyclic timer in a function block called once every scan of 60 ms have a 10 ms period?

If a timer output in a FC early in the scan enables a timer in another FC late in the scan - will there be almost 1 scan cycle delay of the start of the second timer?

/Jon

No


Yes





EDIT:

As a footnote, these would be the same answers for any PLC.
 
At the time of the question it was the S5 timer on S7-3x. I have since learned of the IEC timer and that the S5 timer is implemented on a lower level in the hardware. This would also explain the restrictions due to different processors as the timers require some (or at least more) multitasking as opposed to the linear scan.

The underlying question is how much "PLC"-functionality that can be programmed on a 8-bit MCU. Suitable for linear programming, challenging for multitasking and nested interrupts.
 

Similar Topics

I'm writing some alterations to an FPWin program and need to see the running value of timers so I can set them correctly. It's my first time with...
Replies
0
Views
118
Hi everyone I am using Winproladder software for programming FATEK FBs PLCs and in programming, we often use Timers for activation of the...
Replies
4
Views
475
Hi all, I have what is likely not a complex issue, but I am working in Automation Studio and want an accumulating/retentive timer when a...
Replies
17
Views
1,830
Dear all, I want to use the interrupt service routine in FATEK PLC using WinproLadder Software. I had configured the interrupt in software as...
Replies
17
Views
1,512
Dear all, I have some query about the use of Timers in Fatek PLC Module by using WinproLadder Software. I am trying to use one timer instance in...
Replies
4
Views
1,145
Back
Top Bottom