Author Topic: Timers  (Read 11774 times)

marius

  • Newbie
  • Posts: 3
  • I love YaBB 1G - SP1!
    • View Profile
Timers
« on: February 27, 2002, 11:47:27 PM »
I used one control panel and one T100MD-888+.
From the control panel I change values for timers using this code :

FOR I = 11 TO 19
SetTimerSV I-10, DM
NEXT

In the 1st Scan I use

FOR I=1 TO 9
DM[10+I] = GetTimerSV (I)
NEXT

When I cut the current and plug again the new values are lost.

Could you please tell me what I need to do for retaining values!
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
ARoBS Transilvania Software srl
Cipariu Nr 9 / 69
3400 Cluj-Napoca, Romania

Ph:        +40 64 198204,198454
Fax:       +40 64 198426
Cel:       +40 94 768489
eMail:     mc@arobs.ro

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: Timers
« Reply #1 on: February 28, 2002, 06:35:57 AM »
I wrote a program using your provided code. It worked perfectly when tested on a T100MD888+. You are setting timer 1-9 using data from DM[11] to [19]. After power on, make sure that your first part of the statement (which is SETTIMERSV) is not executed somehow before the 1st scan pulse execute the GetTimerSV(1).  Use a simple input to control a CF that execute the SettimerSV, then after power on reset the GetTimerSV will load the value into DM correctly.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS