linuxcnc is a serious project, codesys is even more. I spent a long time trying to figure out how codesys did it. I don't want to make that perfect, nor do I want to make a complete iec environment, but I do want to make a real-time system that is rigorous, convenient, and extendable. It didn't seem feasible until I saw the hal code. I realize that after some modifications, it may be able to implement part of the codesys functions in the current way, so that industrial automation engineers can easily complete their work.
I'm actually saying that the current linuxcnc can't do this well. Maybe this is too offensive. My job is to get a project that uses linuxcnc out of trouble. It has been in development for 4 years, and now it can neither make it easy for software engineers to debug, nor can it be used by automation engineers. Maybe the problem is the engineer: D
I once set up an industrial robot project on codesys, and I remember how easy it is. And I know that one of Beckhoff’s brothers spent many years and didn’t make it. Codesys' cnc and robot are like a bunch of toys. If the business code has been done very maturely, then only the real-time thread of codesys and the ethercat master are needed to make a very simple and stable cnc project. Even these business codes can be written in IEC's ST language, which is even more convenient to debug. But I believe linuxcnc and HAL can do this.
Since I still need to use linuxcnc now, I am going to implement another layer above the HAL layer, using the real-time thread of hal to implement control modules and connect them, but the modules and variables need to have the characteristics I mentioned before (this is the key , Please point out if you have different opinions). This is my plan. I don't think I can do better, with me alone in such a short time, but I will start to do it. This is my job after all. I don't want to offend so many outstanding engineers who have contributed a lot to this project by saying these things. Sorry if so. But I do want to see if you have more ideas.
Sorry that my English is not very good, so I have to use translation tools. If anyone is interested, I am willing to share more of my views