Technical Forum

SIMATIC WinCC flexible

PLC Type S5TIME

Thread Starter: Per Olof   Started: 5/30/2012 3:49 PM   Replies: 2

« Previous thread Next thread »
Page 1 of 1 (3 items)
  5/30/2012, 3:49 PM
Joined 5/8/2010
Last visit: 5/24/2013
Posts: 149
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,

What type should I use in WinCC Flexible to set time to a PLC variable of type S5TIME ? I have tried INT but is does not work.

Regards
Per Olof

Top
  5/30/2012, 4:36 PM
Joined 4/19/2008
Last visit: 5/11/2013
Posts: 1261
Rating:
Rated: Outstanding [3.96 out of 5 / rated 113 time(s)]. (113) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Per Olof wrote:

Hello,

What type should I use in WinCC Flexible to set time to a PLC variable of type S5TIME ? I have tried INT but is does not work.

Regards
Per Olof



Hello Per Olof,

How do you specify the runtime for a timer via an operator panel, or how do you output the remaining runtime?

Ammy

New for every one..............

“No duty is more urgent than that of returning thanks.”
If Problem Solved......!

Top
  5/30/2012, 5:29 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) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Per Olof wrote:

Hello,

What type should I use in WinCC Flexible to set time to a PLC variable of type S5TIME ? I have tried INT but is does not work.

Regards
Per Olof

Hello   Per Olof,


It is also possible to do it simply in PLC side.An integer
in HMI transferred to "MW 10",this value (number of seconds)
converted to DINT,multiplied by "1000" to be interpreted as
data type "time".Finally using FC40 "TIM_S5TI" to convert it
to S5 Timer.Note limitation of "9990s" as S5T#2h46m30s.

 

     


Best regards,
Hamid Hosseini


Attachment: s5time_HMI.zip  (8 Downloads)



=== Edited by hdhosseini @ 5/30/2012 5:34 PM [GMT ] ===
//codes added


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



Top
Page 1 of 1 (3 items)
Actions