Function Debugging Error

Hi, I’m Working with PLCNext Engineer 2021.0.2 (Build 4.7.1183.0). I get some errors when trying to debug my methods of my created function block. The errors are: Code: None, Description: E2001:E2001:E2001:E2001: Code: CILC0001, Description: Fehler beim Generieren des nativen Code I can run the code but not debug it, so I found out that this only happes, if I call a method in a method. A non-sense MWE, where a FB consits of two functions: Method1 and Method2. Method1 just calls Method2: Method1 := THIS.Method2(); With this snippet I’m not able to debug the functions and got the errors. Is this a Bug?

Unfortunately I cannot reproduce that error. We will need your PLCnext Engineer project to investigate further. With your permission, I will send an email to the address you used to register for this forum, with instructions on where to send the project. ~ Martin.

Martin, that’s OK.





Hi Martin, beecksche, if have exact the same effect here on my side! Engineer : 2021.0.2 Firmware: 2021.0.3 @beecksche: thank you for the hint. When commenting out the the method access via THIS operator the project compiles again.

Unfortunatly, the solution sent me by one of the Phoenix Team member does not fix the problem (at least for my setup): Add the PLCnext Controller.pcwlx library to the project. So far no update.

Hi, I ran into the same problem today when i called a method from within another methodof the same FB. Engineer: 2021.0.1 Firmware: 2021.0.3 Any hints on this to solve the problem? regards, Tom

Hi Tom, is it OK if we contact you for more information about the structure of your PLCnext Engineer project? (we can use the email address you used to register on this forum, if that’s OK).

Hi Martin, Ok, you can contact me by E-Mail. regards, Tom

Please check your inbox (and possibly your spam folder). I will post the solution here for others, when we find the problem.

The problem appears to have been solved by upgrading to PLCnext Engineer 2021.6 (Build 4.10.142.0). Thanks Tom for letting us know.