Reset variables of functionblock after disabling(AC500)
How can i reset all varibles(timer,memory,...)of functionblock after disabling that functionblock?
You already asked this. You can't
If you disable the function block entirely, then there is no code executing that can reset variables inside the function block or output parameters of the block. This is a basic feature of object orientated programming. The variables are owned by the function block and private to that block.
If you want to reset everything inside the block, then you have to write code to do this, and you have to actually execute that code.