Bit change problems during a project

take a look here. https://forum.onefinitycnc.com/t/bit-setter-macro-v2-0/2757