Codesys RTE Softmotion Cycle Time Problem

88 Views Asked by At

I worked on Sinumerik CNC systems. Those systems have a postion control cycle. Typical control cycle for Sinumerik CNC is 250us. CNC task runs on Linux NCU controller and to carry on other tasks there is a PLC.

Now I am working on Codesys RTE Softmotion CNC project. System works on Windows 10 Intel-i5 processor Industrial PC which has 1.6GHz base frequency.

Problem here, all CNC and logic tasks works on same controller and once we proceed on the project, it is getting heavy and it affects ethercat task cycle time which runs the CNC axis servos and without completing half of the coding cycle time already reached 350us.

That means cycle time of the RTE already exceeded the cycle time of Sinumerik CNC system.

I am not sure cycle time will reduce under 250us once we finish the project even we get more powerful CPU.

What could be the possible solution? Better hardware or incorrect Windows/Bios settings or poor code optimization.

1

There are 1 best solutions below

0
Guiorgy On

You should try using a profiler (here's a webinar on CODESYS Profiler). A profiler will tell you how much of the execution time each function took, and how many times it was called. Find the parts of your code that are the heaviest, and then determine if and how you can optimize them. If you believe optimizations are impossible, then better hardware is needed.