https://bugs.winehq.org/show_bug.cgi?id=14943
--- Comment #17 from andrej.skvortzov@gmail.com --- Just FYI Anastasius Focht reported the issue as fixed, but tested the problem on different version of CODESYS (2.3.9.3) than original reporter.
2.x is completely different from 3.x. 3.x is written from scratch using .NET. I'm afraid the problem is not fixed.