s7-1200 acting wierd - timer issue

rQx

Lifetime Supporting Member
Join Date
Oct 2010
Location
Trelleborg
Posts
1,051
Hi!

I have a strange problem I can't come up with a solution to.

I have a TONR in my program set at 7 minutes. When the timer reaches 7 minutes it will reset a M-bit. This M-bit is set in a diffrent place in the program. However, when my timer reaches 7 minutes it doesn't get activated, I have checked online and the timer has reached its time but it is still blue (not green as in activated). In what situation can my timer reach its time and not get activated? It has happend on two diffrent TONR in my program (identical programmed)

/Tim
 
Not scan time, scan sequence.
Make sure the routine the timer is in gets processed.
Jumping over, or not processing timers can have weird consequences.
 
I have no JMP instructions, I suppose that if I have many OBs they just scan in sequence. I have no interupt or anything :/
 
change your m bit to a different spare one to prove the timer is working correctly. It is a issue with your set/reset
 
If you go online and watch the timer, do you see it counting regularly all the way up to the 7 minutes?

If you do a latched Set of the done bit, does the latched bit occur?

I have also made the mistake of getting my order wrong and resetting the timer in my scan sequence before I've checked the done bit - so I basically ripped the rug out from under myself. Made that mistake WAY too many times...
 
If you go online and watch the timer, do you see it counting regularly all the way up to the 7 minutes?

If you do a latched Set of the done bit, does the latched bit occur?

I have also made the mistake of getting my order wrong and resetting the timer in my scan sequence before I've checked the done bit - so I basically ripped the rug out from under myself. Made that mistake WAY too many times...

I haven't seen it counting, but when the problem occure the ET is 7 minutes and the timer is still Green. I will post a screenshot when I get back to the office.
 

Similar Topics

Hi! I've got a counter with the memory MW1 on the preset value. I have it in my HMI, I can change it and all works fine. Until I press a button...
Replies
8
Views
3,237
Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
6
Views
252
HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
81
Hi, I have attached herewith one image which our programmer has been used in S7 1500 PLC. Now we need to use the same instructions in S7 1200 PLC...
Replies
4
Views
118
commentaire communiqué siemens s7-1200 avec vfd delta ? (cablage et sur tia portal )
Replies
0
Views
127
Back
Top Bottom