I have strange problem which get me worried about all my working I doing .

when I adding new variable of type word then my programm not working well so the interrupt is not accurate and get encoding number wrong but when i remove this variable then all return working alright.

I don't know what is the reason ?