We found a strange iussue on flex2008 (in flex 2005 and 2007 works better), on IPC 427C with WINAC 4.5
and we make a little example to explain to Siemens the problem, so I share with You this little example so maybe someone have any idea.
The problem is related to the refresh on flexible of a value on the plc.
all the variable in flexible is setup to 100msec and continuosly cycle
-so we have an OB at 10msec
in this OB we have a simple istruction : a varibale that increment +1 everycycle
Code: Select all
IF (Var_counter <0 or Var_counter>1000) THEN
Var_counter := 0;
ELSE
Var_counter := Var_counter + 1;
END_IF;
make the difference from the actual value and the old value saved on the cycle before, and we show on the page this GAP:
Code: Select all
SmartTags("VAR_GAP") = SmartTags("VAR_Counter") - SmartTags("VAR_old_value")
SmartTags("VAR_old_value") = SmartTags("VAR_Counter")
I hope this example is clear and I hope someone can Help us, Siemens are looking for, but until now no answer;)
Best regards
PS. if we use the variable :: SmartTags("VAR_old_value") and SmartTags("VAR_GAP") as internal variable of flexible nothing change, we have the same iussue!