What the difference between assigning a parameter with dot and put as an array to a function block?
here is a simple code as an example.
Timer1(IN:=TRUE,PT:=T#2S);
IF Timer1.Q THEN
i:=i+1;
Timer1.IN:=FALSE;
END_IF
Timer2(IN:=TRUE,PT:=T#2S);
IF Timer2.Q THEN
j:=j+1;
Timer2(IN:=FALSE);
END_IF
It expected that Timer1 be reset by this Timer1.IN:=FALSE; assignment but nothing happened, although it shows FALSE in the code as a real-time value!
any help would be appreciated.
