I have a spindle motor that can be controlled using Modbus with a list of addresses sent as shown in the image.
I want to control it using USB/RS485, but I don't fully understand the Linux CNC documentation. Furthermore, there are not enough project examples and the configuration settings are not intuitive. So, I'd like to ask a question here.
I've included all the configuration programs in my GitHub link. I plan to use mb2hal for general function code, and Python for custom function code (0x44).
The program on GitHub has the same issue as the one I've included.
github.com/yuuahmad-aii/axisXYZ-linuxcnc
github link