4/11/2019 7:06 AM | |
Posts: 2 Rating:
|
Hi, I am looking for a way to change the TON Value after a specific day or date... for example, let say I have a motor running for 9m and stopping for 1 minute, but after 7 days I want it to change to running for 8m and stopping for 2minutes... I need help on this Please. ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 4/11/2019 9:38:00 AMNew subject after splitting |
|
4/11/2019 7:41 AM | |
Joined: 9/21/2012 Last visit: 9/28/2025 Posts: 4718 Rating:
|
You want to give a new PT (Preset time) value? You can use -[PT]- to give a new value for a timer. |
4/11/2019 2:33 PM | |
Posts: 2 Rating:
|
Yes Please, I am interested. Thank you. |
4/12/2019 7:43 AM | |
Joined: 5/6/2010 Last visit: 9/27/2025 Posts: 2031 Rating:
|
Hello, you can use a "time of day"-interrupt (OB) or you can use the function "FB LGF_TimerSwitch" from the LGF (Library of general functions) . regards |
Last edited by: Jen_Moderator at: 4/12/2019 8:03:55 AMOptimized link. |
|
This contribution was helpful to
1 thankful Users |
4/12/2019 12:26 PM | |
Joined: 4/7/2016 Last visit: 6/19/2025 Posts: 173 Rating:
|
Okay, well here’s a couple of different solutions. The cycle timer version uses only one timer and is clearly simpler, which is why I guess it is the one that most people would favour. But I’m not sure I don’t prefer the separate on and off timers. I suppose it is a question of whether you want the user to configure it as an on and off time or as a cycle time and on time. Of course, you can still have the user configure it either way with either solution, you just might have to do a little maths. AttachmentTimers Demo.docx (219 Downloads) |
4/12/2019 4:10 PM | |
Joined: 7/7/2010 Last visit: 9/26/2025 Posts: 16149 Rating:
|
Ok, so you need to monitor "runtime" - which I assume is system running, not motor running time - for 7 days. You can do this many ways. If your plc scan time is plenty fast, you can simply check the current runtime, compare it against your ON/OFF preset reschedule task (7 days). If it is at or above the rescheduled amount of time, adjust the preset tags for the ON / OFF timers.
|
science guy |
|
Follow us on