I am interested in what you are trying to achieve. You say you want to use LinuxCNC, but no need for the UI, only ladder and HAL.
For several years (yes years on weekends) I have been trying to work with the MTConnect protocol inside the Robot Operating System (ROS) library. The MTConnect code is here:
github.com/mtconnect/ros_bridge/tree/mas...s_bridge/scripts/src
and you can find instructions for the build of ROS in Eclipse on the internets.
I am close to cracking this puzzle, but I could use a second test person. I don't know (or like) Python, so that makes it tricky, I am facing some TCP/IP issues, and I know I likely will end up breaking CORS security to test what I am writing, but it sounds like this might be a solution you are looking for.