is yours system have option to conect encoder to mach 4 for each axiss?
Some SmartBOB boards support an encoder. But it is 1 encoder, which is usually used either as an MPG or for measuring spindle RPM and/or position (for threading).
Why do you want an encoder on each axis? If you are using servo motors, the encoders need to go to the servo driver. And if you are using stepper motors and are somehow trying to track actual position (other than that reported by the SmartBOB), Mach4 has no built-in provision for handling that, and certainly no way to "correct" the position (during an operation) if the motors cog.