4/6/2020 2:21 PM | |
Joined: 11/25/2015 Last visit: 5/12/2025 Posts: 54 Rating:
|
Topic Infos: - Windows 10 x64 - TIA Portal V15.1 Upd 4 - CPU 1518-4 PN/DP V2.5 (6ES7 518-4AP00-0AB0) Problem: For project purposes, I had to build a timer block with extra features, based on the TONR instruction (you can find a stripped down version of it in the attached project). This block was itself integrated within much more complex functions. Theses functions were not functioning right under certain circumstances, and I figured out that it was that "Timer" block that was the root cause of the dysfunction. After analyzing it, I found out that the reset of the TONR instruction was not behaving like I was expecting. In the help of TONR timer for CPU S7-1500, it is stated that "The R input resets the ET and Q outputs regardless of the signal state of the start input". My tests shows a different behaviour: RESET of TONR instruction is not always complete after a pulse on the R input. I'd like to know if this is an expected behavior, and somehow I misinterpret the help, or if this is not normal? You can find a TEST application attached with the bare minimum to emphasize the observed behavior. Also below you can find more information about the problem and how the application and "Timer" block are build and must be used. Thank you very much for your help. AttachmentProject1.zip (458 Downloads) |
Follow us on