diff -r 90782e241346 -r d7d92b2f87e9 lib/timer.txt --- a/lib/timer.txt Wed Mar 30 19:53:32 2011 +0100 +++ b/lib/timer.txt Thu Mar 31 10:45:34 2011 +0100 @@ -80,7 +80,7 @@ CURRENT_TIME, START_TIME : TIME; END_VAR - {data__->CURRENT_TIME = __CURRENT_TIME;} + {__SET_VAR(data__->CURRENT_TIME,__CURRENT_TIME)} IF ((STATE = 0) AND NOT(PREV_IN) AND IN) (* found rising edge on IN *) THEN @@ -161,7 +161,7 @@ CURRENT_TIME, START_TIME : TIME; END_VAR - {data__->CURRENT_TIME = __CURRENT_TIME;} + {__SET_VAR(data__->CURRENT_TIME,__CURRENT_TIME)} IF ((STATE = 0) AND NOT(PREV_IN) AND IN) (* found rising edge on IN *) THEN @@ -245,7 +245,7 @@ CURRENT_TIME, START_TIME : TIME; END_VAR - {data__->CURRENT_TIME = __CURRENT_TIME;} + {__SET_VAR(data__->CURRENT_TIME,__CURRENT_TIME)} IF ((STATE = 0) AND PREV_IN AND NOT(IN)) (* found falling edge on IN *) THEN