Host Engineering Forum
General Category => DirectSOFT => Topic started by: japman117201 on May 20, 2008, 11:34:53 AM
-
My boss had someone else write this software program, but I have to modify it. The touch screen has three print time buttons; 2 mins,, 5 mins, 10 mins, and 15 mins. I am trying to change the programming in the DL260 from a 15 minute timer to a 30 minute timer. Any help?
Terry
-
Regular timers (TMR), can only have a maximum preset of K9999 which is 999.9 seconds, or 16 min 39.9 seconds. To do a time longer than this would require something more. Some ideas:
- Use a TMRA. This Accumulated Timer has 2 input legs. Top one is Start/Stop, and bottom one is Reset. The advantage of this timer in your case is that it can have a maximum preset of K99999999 which is 9,999,999.9 seconds, or over 3 years! So you could easily set this one to K18000 which is 1800.0 seconds, or 30 minutes. The thing to remember, however, is that unlike a TMR, this timer uses 2 consecutive "T" locations. So if it is T0, then it also uses T1, so the next available timer to use would be T2. Don't overlap them!
- Use a regular TMR set to K600 (60.0 seconds) and a CNT (counter) with a preset of K30 (30 counts). Let the timer done bit reset itself. Also use the timer done bit to increment the CNT. Then when the counter done bit gets set, you will know that you have counted 30 1-min timer cycles.
- Use a regular TMR set to K600 (60.0 seconds) and its timer done bit to INC a V-memory location (e.g. V2000), and then just monitor when V2000 reaches a value of 30 with a compare contact or something.
I know this is just a verbal description, but does that help? Use the d2user.PDF manual in Chapter 5 for details.
-
Where can I find the d2.user pdf manual?
And thanks for responding.
Terry
-
I'll try to give you an idea of the switch setup.
At switch 104 there four boxes to the right.
Top box labeled LD contains K900.0
Next box marked out contains V3170
Next box marked LD contains K15
Last box marked out contains V3171
Does this help?
Terry
-
The manual is here
http://web2.automationdirect.com/static/manuals/d2user/d2user.html (http://web2.automationdirect.com/static/manuals/d2user/d2user.html)
-
I'll try to give you an idea of the switch setup.
At switch 104 there four boxes to the right.
Top box labeled LD contains K900.0
Next box marked out contains V3170
Next box marked LD contains K15
Last box marked out contains V3171
Does this help?
Terry
This merely means that the value of 900 is loaded into V3170 and the value of 15 is loaded into V3171. I'd be more than happy to help you figure this out if you want to send me your project.