News:

  • June 09, 2026, 06:24:48 AM

Login with username, password and session length

Author Topic: Timers  (Read 14502 times)

japman117201

  • Newbie
  • *
  • Posts: 3
Timers
« 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

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: Timers
« Reply #1 on: May 20, 2008, 02:41:48 PM »
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.
There are two types of people in the world; those that can extrapolate from incomplete data sets.

japman117201

  • Newbie
  • *
  • Posts: 3
Re: Timers
« Reply #2 on: May 21, 2008, 02:59:19 PM »
Where can I find the d2.user pdf manual?
And thanks for responding.
Terry

japman117201

  • Newbie
  • *
  • Posts: 3
Re: Timers
« Reply #3 on: May 21, 2008, 03:41:18 PM »
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

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Timers
« Reply #4 on: May 21, 2008, 09:57:54 PM »
An output is a PLC's way of getting its inputs to change.

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: Timers
« Reply #5 on: May 23, 2008, 04:57:32 PM »
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.
There are two types of people in the world; those that can extrapolate from incomplete data sets.