Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. beecksche
  2. PLCnext Engineer
  3. Tuesday, 23 March 2021
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?
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
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.
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
beecksche Accepted Answer Pending Moderation
0
Votes
Undo
Martin, that's OK.
idee Accepted Answer Pending Moderation
0
Votes
Undo
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.
beecksche Accepted Answer Pending Moderation
0
Votes
Undo
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.
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.