Hello macbahi,
I'm not a ST or C coder so I asked around and this is what I got.
"If the customer makes his POU a FUNCTION_BLOCK then the value of ordinary VAR variables will be kept between the calls, just like a static in C-code
ie:
FUNCTION_BLOCK MyBlock
VAR
var1 : INT := 0;
END_VAR
"
I hope it helps.