CODESYS Talk
Hello, I can use {attribute 'reflection'} FUNCTION_BLOCK POU VAR {attribute 'instance-path'} {attribute 'noinit'} str: STRING; END_VAR to get name of FB. How I can get the comment of FB, in the same way in the FB? Thank you for your time!
If you’re getting unexpected behavior in CODESYS, double-check that your task priority and cycle times are set correctly — often issues come from tasks preempting each other or running faster/slower than expected. Also make sure your variable scopes and retentive settings are configured as intended, since uninitialized or overwritten variables can lead to inconsistent results. If you can share the relevant part of your project or error messages, it’ll be easier for others to pinpoint the exact cause....
Hello, I can use {attribute 'reflection'} FUNCTION_BLOCK POU VAR {attribute 'instance-path'} {attribute 'noinit'} str: STRING; END_VAR to get name of FB. How I can get the comment this FB, in the same way in the FB? Thank you for your time!
Here I have attached the task monitor data. What is very weird is that I am using MC__MoveDirectAbsolute FB, when I choose Vel/ACC/Jerk Factor to 1.0 it run fine. It ran 10 hours without the issue. But I get the error randomly when I use factor as 0.5
Please check the jitter in the online taskmonitoring. cylce time of the motion task and jitter in case of the error.