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
  1. more than a month ago
  2. PLCnext Engineer
  3. # 1
beecksche Accepted Answer Pending Moderation
0
Votes
Undo
Martin, that's OK.
  1. more than a month ago
  2. PLCnext Engineer
  3. # 2
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.
  1. more than a month ago
  2. PLCnext Engineer
  3. # 3
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.
  1. more than a month ago
  2. PLCnext Engineer
  3. # 4
tomtom Accepted Answer Pending Moderation
0
Votes
Undo
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
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
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).
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
tomtom Accepted Answer Pending Moderation
0
Votes
Undo
Hi Martin,

Ok, you can contact me by E-Mail.

regards,
Tom
  1. one week ago
  2. PLCnext Engineer
  3. # 7
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
Please check your inbox (and possibly your spam folder).

I will post the solution here for others, when we find the problem.
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
  1. one week ago
  2. PLCnext Engineer
  3. # 8
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
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.
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
  1. one week ago
  2. PLCnext Engineer
  3. # 9
  • Page :
  • 1


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