11/29/2021 10:49 PM | |
Joined: 6/9/2017 Last visit: 11/29/2024 Posts: 2 Rating:
|
when migrating from S5 to S7 I found this error // T #TX; with TX is a TIMER Please how I can transfer the contents of accumulator 1 to a TIMER in STEP7 |
12/13/2021 9:21 AM | |
Joined: 12/18/2020 Last visit: 10/3/2024 Posts: 23 Rating:
|
Hello, Timer is a value in ms. From T#-24d_20h_31m_23s_648ms to T#+24d_20h_31m_23s_647ms. S5Time is a value for S5 timer. Value is XXXY in Hexa. XXX is from 0 to 999 in binary-coded decimal Y is a value from 0 to 3. It's the base time. 0 = 0,01 s 1 = 0,1 second 2 = 1 s 3 = 10s Best regard |
1/13/2022 5:57 PM | |
Joined: 1/12/2022 Last visit: 7/3/2023 Posts: 2 Rating:
|
As mention the time value in s5 is in bcd format XXX.Y where the xxx corresponds to 000-999 and are stored in the accu in bit 0-11. The Time base (Y) is stored in bits 12-15. therefore it is not possible to convert the S5 time BCD value direct to integer. bit 12-15 must be 0000 before conversion to integer. And after multiply with the value that corresponds to the Y part |
1/13/2022 6:59 PM | |
Joined: 12/18/2014 Last visit: 2/24/2025 Posts: 34764 Rating:
|
No, that's not correct. Only in the Bits 12+13. Bits 12 = 0, Bit 13 = 0 then 0.01s |
1/14/2022 1:29 PM | |
Joined: 1/12/2022 Last visit: 7/3/2023 Posts: 2 Rating:
|
In Step7 TIA Portal you can use the timers under Legacy that uses the S5Time format. If the value in the ACCU is in S5Time format transfer the value to MW and use it as TV on the timer |
1/27/2022 11:26 AM | |
Joined: 1/27/2022 Last visit: 1/29/2022 Posts: 1 Rating:
|
Asmentioned,the Time value in S5 is intheformat XXX.Y,whereXXX corresponds to000-999 andisstored inbits0-11. The Time base (Y) is stored in bits 12-15. You can get here. |
Last edited by: Liamjan at: 01/29/2022 11:53:25 |
|
1/27/2022 12:12 PM | |
Joined: 3/30/2020 Last visit: 2/21/2025 Posts: 5048 Rating:
|
Perhaps it is best to put some detail into that statement, just to avoid bad understanding for a future audience. Loading an S5TIME value in an S5 program, would look something like:
The attached picture confirms what was already said.
|
Last edited by: qwazee at: 01/27/2022 12:13:38Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
This contribution was helpful to
1 thankful Users |
SiePortal combines our Industry Mall with the Industry Online Support pages in a common interface. Step by step, all functions will be transferred to the new design. To learn more about the new design and navigation, we recommend you to take the Guided Tour. Here you will get some information on the main changes.
Taking the tour will redirect you to our new platform. You can always come back either by hitting back button on the browser or by opening the URL again.
Follow us on