Communication error while updating values
Hi
I am using Model predictive control block from Simulink in PLCnext engineer, when I increase my prediction horizon beyond 500 for MPC block, i get the following error.
Hi
I am using Model predictive control block from Simulink in PLCnext engineer, when I increase my prediction horizon beyond 500 for MPC block, i get the following error.
Comments
What do the LEDs on the PLCnext Control device look like when this happens?
Are there any other notifications in PLCnext Engineer that might give a clue about why these errors occurred?
What steps did you take to restore normal operation?
One possibility is that the execution time of the Simulink model exceeded the Watchdog time for the Task that is executing that model instance.
There is no change in the LEDs. The image attached previously is all the PLCnext engineer shows.
I have to reconnect the controller, change the prediction horizon to a lower value.
I am not sure of the last one, what should i do if execution time is greater than watchdog time.
For a cyclic task, the Task Watchdog time is normally set to a value less than or equal to the Task Interval. That means that the task execution time will never exceed the task interval time without triggering the watchdog. It is usually not a good idea for the execution time of a cyclic task to exceed the task interval time, especially consistently.
In this case, because the task Watchdog value is so much higher than the task Interval value, it could be that the task execution time is exceeding the task Interval value consistently, which will probably affect other processes on the device (like communications to PLCnext Engineer).
In this case I would:
I just observed that on my axc f 2152 controller the red led (FAIL) is on.