10/18/2021 4:17 PM | |
Joined: 9/27/2006 Last visit: 4/1/2023 Posts: 12000 Rating:
|
Hello JabbarKamali; What data type are you using for "my_time"? If it is an IEC time (from SFB4 "TON", for example) you are limited to about 24 days. Coincidence? The screenshot below is from the Programming with Step 7 manual: https://support.industry.siemens.com/cs/ww/en/view/109751825 One possible alternative to limited timers time span is to create your own, using the Clock byte to generate a 1-second pulse and ADDing 1 to a DINT register every second., for example. Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 10/18/2021 16:21:55Last edited by: dchartier at: 10/18/2021 21:23:26Last edited by: dchartier at: 10/19/2021 02:12:34 |
|
This contribution was helpful to
2 thankful Users |
10/18/2021 8:08 PM | |
Joined: 3/14/2008 Last visit: 3/29/2023 Posts: 1913 Rating:
|
Hi, In addition to Daniels post, take a look at the CountOh block from the AP library. It is a counter that counts days/hours and minutes complete with alarms.
|
If I could help you, you can use the RATE button. Thank you. |
|
Follow us on