On Modicon Momentum & M340, with PLC using State Ram: increasing or decreasing the number of %M or %MW lead to wrong values for %I or %IW, after a build change.
A rebuild all is manadatory.
The hotfix UnityPro_V110_ HF0323828R fixes the issue on Unity Pro V11
The hotfix UnityPro_V100_ HF0323828R will fix the issue on Unity Pro V10