Stack size

The default size of 64 KB is usually sufficient for image processing applications. When using larger image formats or special functions such as the F_VN_Clahe this value is too small and the stack size must be increased. Then it is recommended to use 512 KB or larger directly.

It can be set in the TwinCAT system configuration under the Real-Time node in the Settings tab:

Stack size 1: