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 recently did a program conversion from logix 500 to studio 5000 and when machine runs it depends on two ton instructions to keep the machine in...
Replies
17
Views
577
Hi, I'm quite new to Rockwell PLC and currently trying to implement the following if Sw1 then for i:=1 to 20 by 1 do xEnable := 1...
Replies
9
Views
426
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
150
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
664
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,969
Back
Top Bottom