Counting Down a Timer?

henno2000

Member
Join Date
Jan 2007
Location
UK
Posts
72
Hi, I am wanting to know if this is possible using S7:

When a 1 hour timer has been triggered (count up timer), to detect when the 1 hour timer is 5 seconds from the end of the cycle (IE - 59 minutes and 55 seconds), in order to trigger another event.

If someone could provide a logical explanation if this is possible/not possible, it would be greatly apprecaited.

Regards,
henno2000
 
If your using normal ladder timers, you would have two outputs, BI (Integer) and BCD formats.

You could use these outputs by assigning words to them, you could then compare to whatever preset values you want.
 
Also
You can run another timer of that much time.
If 1 hour time is variable then you can subtract 5 seconds and run another timer.
 
manmeetvirdi said:
Also
You can run another timer of that much time.
If 1 hour time is variable then you can subtract 5 seconds and run another timer.

Could you give an example of what you mean?

Regards,
henno2000
 
If timer T0 is running for 1 hour
Then run T1 for 1 hour and 55 min

Both should be triggerd at same instant.


Using FC40 would be usefull if 1 hour time is not fixed.
 
I would increment a Integer using the CPU 1 sec clock pulse, then compare the integer count with your desired time (3595 pulses).

Once the desired time is =>I ~ trigger the event you want to happen.

Then reset to 0 at 3600 pulses.
 
Last edited:
Simple math and comparrison
(Elapsed Time) < (Timer Preset -5 )

1 hour is 3600 seconds long.

Another way of arranging the math and comparrison is
(Timer Preset - Elapsed Time) < 5
 
Last edited:

Similar Topics

Hello, all! Maybe someone had the same problem? I use the Rockwell Automation software. I need to make 24 hours timer indicator with minutes on...
Replies
6
Views
1,802
Hi ,I need your help. I have Mitsubishi FX1N and GT-11 Nais screen and I have to show time counting down on the screen . May be someone knows how...
Replies
2
Views
2,086
How do I make a counter that will count down from 10000 in step 7.The count down counter can only count down from 999,right??? So how do I do...
Replies
25
Views
5,660
Hello I am looking for tips on how to count the duration of a given function and then how to display it on the hmi panel in the hh:mm:ss format...
Replies
4
Views
1,698
Guys, I know it will be silly but can't get my head around it. I have 3 conveyors, every one on a separate servo drive, and 2...
Replies
25
Views
3,496
Back
Top Bottom