Technical Forum

STEP 7 / STEP 7 Lite

Siemens S7 300 Timer problem solwing

Thread Starter: arpix   Started: 9/8/2011 8:20 AM   Replies: 4

« Previous thread Next thread »
Page 1 of 1 (5 items)
  9/8/2011, 8:20 AM
Joined 9/6/2011
Last visit: 11/17/2011
Posts: 4
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) 
Hello Guys!

Let me explain what is my problem.
Im still a learner in programming

I have two timers T1 and T2, When i detect a metal the M8.0 memory will addressed and start the T1 Timer. T1 counts 2sec after 2sec on the out T1 will adderss the M8.1 what is the activation for T2.
T2 will count 4 sec. and this is one cycle. T1+T2= 6sec witch is reapeating just when the metal detector is active.

I need to make that when i detected the metal the counter will start to work, but if the transporter stops working i want to pause the counting. and when the transporter start to work counter will start do count down wher it was paused. If it was stopt on 3 sec that means the T2 will start from 3.1 sec till 4 sec.

Can someone show or expalin how to do this?

Sorry fir my bad english and i hhope that my explanation is clear.

Thanx, and best regards
Top
  9/8/2011, 8:40 AM
Joined 4/22/2010
Last visit: 7/31/2014
Posts: 4892
Rating:
Rated: Excellent [4.22 out of 5 / rated 489 time(s)]. (489) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello,

Your problem is cleargrin
But the problem with the S5-timers is they can't be paused.
You have to create your own timers by using the clock pulses (if activated in your CPU properties)

Attached an example of a homemade timer.

Regards,

Marcjan

Attachment: timer.pdf  (65 Downloads)

Problem solved?
Please let us know!

Please no technical questions by PM, use the forum sections for your questions.

Top
Thank you for this post from:
  9/8/2011, 9:14 AM
Joined 9/6/2011
Last visit: 11/17/2011
Posts: 4
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) 
Thanx for quick answer.

But im still not at that level of programing,

Can i made something with the timers and counters combinations in LED?

Top
  9/8/2011, 10:24 AM
Joined 4/22/2010
Last visit: 7/31/2014
Posts: 4892
Rating:
Rated: Excellent [4.22 out of 5 / rated 489 time(s)]. (489) 
Rated: Excellent [5 out of 5 / rated 1 time(s)]. (1) 

Hello,

Made an example in lad, you just have to import the source.



Make sure your clock byte is selected in your CPU properties, in my case that is the M50.1

Regards,

Marcjan


Attachment: Forum1.zip  (24 Downloads)



=== Edited by Marcjan @ 9/8/2011 10:37 AM [GMT ] ===
Attached program.

=== Edited by Marcjan @ 9/8/2011 10:29 AM [GMT ] ===



Problem solved?
Please let us know!

Please no technical questions by PM, use the forum sections for your questions.

Top
Thank you for this post from:
  9/8/2011, 11:05 AM
Joined 9/6/2011
Last visit: 11/17/2011
Posts: 4
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) 
Ah, wery nice, Thanx

I was think that i can solwe that with five timers and counters.....

Regards Arpad
Top
Page 1 of 1 (5 items)
Actions