Internet PLC Forum
General => Technical support => Topic started by: marius 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!
-
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.