12/1/2015 4:56 PM | |
Joined: 8/3/2011 Last visit: 2/28/2025 Posts: 100 Rating:
|
Hi, if I set timer to S5#T100ms it has timebase 0.01ms or 0.1s? Thanks... ------------------------------------------------------------------------------------------ |
Last edited by: Min_Moderator at: 12/2/2015 11:27:12 AMNew subject after splitting |
|
12/1/2015 5:26 PM | |
Joined: 9/16/2013 Last visit: 11/12/2023 Posts: 145 Rating:
|
Hi jihosaft, 0,1s Regards hag010 |
12/2/2015 11:51 AM | |
Joined: 8/3/2011 Last visit: 2/28/2025 Posts: 100 Rating:
|
Hi, s5t#100ms looks,in BCD,like this 0000_0000_0001_0000 and so I think it is 0,01s timebase... have a nice day... |
12/2/2015 11:57 AM | |
Joined: 7/9/2015 Last visit: 3/14/2025 Posts: 4198 Rating:
|
Hi together,
Siemens has a nice FAQ for S5Time: https://support.industry.siemens.com/cs/de/en/view/22531788 and also https://support.industry.siemens.com/cs/de/en/view/16528756
Regards, Towome |
|
|
12/2/2015 1:23 PM | |
Joined: 9/16/2013 Last visit: 11/12/2023 Posts: 145 Rating:
|
Hi Jihosaft, your code BCD is 0000 0000 0001 0000 = 10 decimal time base is 00 = 10ms. time value is BCD 0000 00001 0000 = 10 decimal and we have duration= time base * time value therefore duration = 10ms * 10 =100ms = 100ms/1000ms = 0,1s because 1s = 1000ms hope this helps Hag010 |
12/2/2015 1:27 PM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating:
|
hi hag010, he is asking for the timebase of the timer, not for the value. 0000 0000 0001 0000 is meant. And this is 10ms or 0,01s. regards, |
FCK WAR! |
|
This contribution was helpful to
1 thankful Users |
12/2/2015 8:41 PM | |
Joined: 8/3/2011 Last visit: 2/28/2025 Posts: 100 Rating:
|
Hi, thanks,I really wanted to know timebase,not the value.... some time ago with siemens S5 I used Time constant KT for example: resolution 10ms KT 001.0 //10ms KT 500.0 //500ms resolution 100ms KT 001.1 //100ms etc...so it was clear... Have a nice day... |
12/3/2015 7:27 AM | |
Posts: 5225 Rating:
|
With the Step7 software you only need to specify the time as for example S5T#5s. The compiler (or PLC run time) decides what resolution is used. There is nothing stopping you however to build a WORD to the format you need with the most significant nible (4 bits) to specify your scale .. but is is not even close to what we had on the S5. With some 3rd party HMI models it is needed to know and implement the above as they do not always support the S5T data structure. ..just my 2c |
This contribution was helpful to
2 thankful Users |
12/3/2015 11:36 AM | |
Joined: 1/21/2013 Last visit: 11/20/2024 Posts: 4620 Rating:
|
Hello William, you're right, it is the easiest method, but if we can write it in this format below, (which you surely know), I find several of Timer still written in this format in S7 L 2#10000000000110 SV T0 |
This contribution was helpful to
1 thankful Users |
12/3/2015 11:44 AM | |
Joined: 6/24/2013 Last visit: 3/13/2025 Posts: 1674 Rating:
|
Hi for HMI / SCADA purporses I have created block which convert value 0..32767 to S5Time. it interprets it as time in seconds x 10 (in 99% cases resolution is enough). Have 2 blocks: time as int --> S5Time and S5Time --> Time as Int. the int value is displayed on hmi with one decimal point. |
Follow us on