The C77 looks to me to have isolated outputs.
That tells me that it is an issue with one of the optocouplers on the C77 itself.
Any chance you could change things round and assign axis 5 or 6 to work as X instead?.
https://www.cnc4pc.com/pub/media/pro...7rev1.5_v2.pdf