Technical Forum

SIMATIC S5 / STEP 5

Current time value

Thread Starter: Byblos02   Started: 7/16/2012 8:55 PM   Replies: 1

« Previous thread Next thread »
Page 1 of 1 (2 items)
  7/16/2012, 8:55 PM
Joined 1/19/2012
Last visit: 7/21/2012
Posts: 2
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,

Please, help me understand this..

L        KT 999.2
SD     T       1
A       T       1
=       M   254.1
L       T        1
T       MW250

I know that it means this:

- Start timer 1 (on-delay) with 999s.
- When time has elapsed turn on M254.1 and load current time value of T1 to MW250 as binary.

Here comes the question:

What time format will MW250 be loaded with...?

Always milliseconds...?
Or is it depending on the format I loaded the timer with..? In this case seconds...

Thanks in advance,

Regards Kristian
Top
  7/16/2012, 9:29 PM
Joined 12/22/2006
Last visit: 5/18/2013
Posts: 1295
Rating:
Rated: Excellent [4.01 out of 5 / rated 151 time(s)]. (151) 
Rated: Outstanding [4 out of 5 / rated 1 time(s)]. (1) 
Hello,
The value will be a number between 0 and 999
And in your example, in seconds (depends on time base)

If you would use LC T1, the value will be BCD coded (12 bits), between 0 and 999 in BCD this time.
And you would get the time base in bits 13 and 14

Best regards
jklm

Suggestion was helpful? Thanks to rate it.
Top
Thank you for this post from:
Page 1 of 1 (2 items)
Actions