Technical Forum

SIMATIC S7-200

T!-!0 timer ( TON )

Thread Starter: FBettosini   Started: 9/29/2011 11:34 PM   Replies: 1

« Previous thread Next thread »
Page 1 of 1 (2 items)
  9/29/2011, 11:34 PM
Joined 8/9/2006
Last visit: 5/21/2013
Posts: 24
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Maybe you can help me with another timer.
It's a T!-!0 timer ( TON ) But it is activated by de Not M10.0 value. The Q value of the timer set M10.0 value.  I think it is wrong , the timer never can count to the TW value. It is active one cicle and off the next.

Is this correct ?

This is the code of the segment

     :UN  M   10.0
     :U(
     :UN  M   10.2                  01
     :U(                            01
     :U(                            02
     :UN  M   10.0                  03
     :L   KT 035.0                  03
     :SE  T    1                    03
     :NOP 0                         03
     :NOP 0                         03
     :NOP 0                         03
     :U   T    1                    03
     :)                             03
     :=   M   10.0                  02
     :U   M   10.0                  02
     :)                             02
     :S   M   10.1                  01
     :U   M   10.0                  01
     :U   M   10.2                  01
     :R   M   10.1                  01
     :U   M   10.1                  01
     :)                             01
     :S   M   10.2
     :UN  M   10.1
     :UN  M   10.0
     :R   M   10.2
     :NOP 0
     :***

Regards
Fernando

Splitted from Migrate S5 101U to S7-200.



=== Edited by O_Moderator @ 9/30/2011 8:23 AM [GMT ] ===
new subject after splitting

Top
  9/30/2011, 10:56 AM
Joined 4/22/2010
Last visit: 5/25/2013
Posts: 3215
Rating:
Rated: Excellent [4.11 out of 5 / rated 295 time(s)]. (295) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello,

I put the code in a plc to see what actualy happens, its making 2 fast pulses, M10.1 and 10.2

  
Attached the code in fbd.

Regards,

Marcjan

Attachment: timer.JPG  (29 Downloads)



=== Edited by Marcjan @ 9/30/2011 11:00 AM [GMT ] ===



Problem solved?
Please let us know!

Please no technical questions by PM, use the forum!

Top
Page 1 of 1 (2 items)
Actions