Technical Forum

STEP 7 / STEP 7 Lite

programming the timer

Thread Starter: Import-User-1   Started: 8/2/2012 12:32 PM   Replies: 5

Tags HD_S5TIMER data type

« Previous thread Next thread »
Page 1 of 1 (6 items)
  8/2/2012, 12:32 PM
Joined 8/10/2005
Last visit: 5/22/2013
Posts: 3036
Rating:
Rated: Outstanding [3.12 out of 5 / rated 17 time(s)]. (17) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Import of a technical question of the user jhenah
jhenah wrote:
Hello Sir,

I'm new in programming of s7300 plc. I have difficulty in programming the timer. Can you tell me what I am supposed to do, I want to have "variable" input to the timer, so that I may adjust the delay. Can you create a ladder diagram regarding on this?

You reply is very much appreciated.
Regards

Top
  8/2/2012, 1:07 PM
Joined 3/21/2006
Last visit: 5/21/2013
Posts: 9063
Rating:
Rated: Outstanding [3.78 out of 5 / rated 820 time(s)]. (820) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello,

You can use Change timing value from scada  idea.

Best regards,
Hristo Mihalev
Top
  8/2/2012, 1:47 PM
Joined 1/28/2009
Last visit: 5/25/2013
Posts: 2872
Rating:
Rated: Excellent [4.1 out of 5 / rated 396 time(s)]. (396) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Import-User-1 wrote:
Import of a technical question of the user jhenah
jhenah wrote:
Hello Sir,

I'm new in programming of s7300 plc. I have difficulty in programming the timer. Can you tell me what I am supposed to do, I want to have "variable" input to the timer, so that I may adjust the delay. Can you create a ladder diagram regarding on this?

You reply is very much appreciated.
Regards



Hello,

To have a variable S5 timer from an HMI,Send time
value in second into a "Int" variable.Next setp is
to convert "INT" to "Double Integer" and multiply it
by1000 to convert the time value to "TIME" data type.
By using "FC40" data type "TIME" is converted to
"S5 Timer".Pdf version of a sample is provided with
comment.
Also check:

S5 Timer Value needs to be changed from WinCC

Simatic Timer tag
S5Time value set from WinCC
Linear scaling in WinCC
How can you have a tag of the S7 data type S5TIME displayed in WinCC?


Best regards,
Hamid Hosseini

Attachment: S5_TIMER.zip  (28 Downloads)

Human beings are members of a whole , In creation of one essence and soul
Sa'adi



Top
  8/3/2012, 3:24 AM
Joined 4/13/2012
Last visit: 5/21/2013
Posts: 3
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) 
Hi Sir Rnf:lblSmileyTooltip_

Yehey I made it, because of you Sir Hd!!!!! you are an EXPERT laugh
But how can I change the output time into elapsed time?
Thank you.

Top
  8/3/2012, 4:29 AM
Joined 1/28/2009
Last visit: 5/25/2013
Posts: 2872
Rating:
Rated: Excellent [4.1 out of 5 / rated 396 time(s)]. (396) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
jhenah wrote:


But how can I change the output time into elapsed time?
Thank you.


Hello again,

for checking the elapsed time, I suggest the LAD program
in the attachment. Converting BCD output of a timer to
"TIME" data type by using "FC33" and finding elapsed time
out of remaining time by a simple subtraction.Rnf:lblSmileyTooltip_ Update
if it is not your case.

Best regards,
Hamid Hosseini

Attachment: zeit.zip  (18 Downloads)



=== Edited by hdhosseini @ 8/3/2012 4:37 AM [GMT ] ===
// typo


Human beings are members of a whole , In creation of one essence and soul
Sa'adi



Top
  8/6/2012, 8:41 AM
Joined 4/13/2012
Last visit: 5/21/2013
Posts: 3
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) 
Super thank you blink.. I've made it! Great support team siemens!
Keep it up
Top
Thank you for this post from:
Page 1 of 1 (6 items)
Actions