10/4/2022 7:42 AM | |
Joined: 11/16/2018 Last visit: 10/25/2024 Posts: 22 Rating: (0) |
Guys, we are quite off topic! This is being discussed here and always here. (Anyway, I'm sorry Hati, but I attach here the result of the test. Did you mean something different? Also Einstein, is this what you meant?) So, "TOF timer not resetting, continues after PT time is elapsed (ET>PT)", I mean, how is ET>PT possible in TOF? |
Last edited by: vcamp7 at: 10/04/2022 07:44:11 |
|
10/4/2022 9:05 AM | |
Joined: 3/30/2020 Last visit: 11/18/2024 Posts: 4964 Rating: (1012) |
Hello. The PT value on the TOF is configurable in your use case. It is possible to have ET > PT and best illustrated with an example: If the above scenario is what is the case on your site is open for debate.. and somehow I doubt it. Other strange occurrences I have seen on older S7-1200 firmware V3.0 processors coded with Step7 pre V13 SP0. This would include where instances are re-initialized and loss of transitions on the timer input. Double use of the same timer was also a re-occurring issue. Having more information about your situation might be helpful. I have no comment to make on the code pieces you shared up to now. As added note.. the above example scenario can be guarded against by controlling how/when the PT value is changed or the coding: Consider creating a formal Support Request with the Siemens' Support Team if the contributions from the forum volunteers are not fruitful. ~ |
Last edited by: qwazee at: 10/04/2022 09:06:56Activities 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. |
|
10/5/2022 4:39 AM | |
Joined: 9/21/2012 Last visit: 11/18/2024 Posts: 4199 Rating: (474) |
The timer .Q is used multiple times, that is the reason why you feel it's not working. IEC timer are asyncrhronous, so the .Q output can change during cycle excecution. If you need the .Q information multiple times in your code, use the below method. |
10/5/2022 7:45 AM | |
Joined: 11/16/2018 Last visit: 10/25/2024 Posts: 22 Rating: (0) |
Ok, Hati. Anyway, the off-topic was about the scan cycle. In this case, I would split from here. Thank you, qwazee, I'm looking into that ;) |
This contribution was helpful to2 thankful Users |
Follow us on