0

There is a visual problem as I declare an enumeration on TwinCAT3 as has been shown in the following: enter image description here

here is my simple declaration;

VAR
state:(init , operate, stop);//a simple example of enum declaration 
END_VAR

and here is the code that I faced before crashing:

enter image description here

Current XAE version: 3.14024.47

Any help would be appreciated.

asys
  • 667
  • 5
  • 20
  • Can you try to change the enum names, lets say state_[name]? It could be some error due to reserved global names, I use local enums all the time, no problems, same version of TC. – ziga Aug 28 '23 at 16:26
  • Oh, I was too quick and didnt notice the gif problem when you clicked the button... That is definetly a TC issue, you should report it to Beckhoff if it happes with multiple versions. – ziga Aug 28 '23 at 16:32
  • This is a hard crash, you should report it to the vendor (Beckhoff in this case) – Guiorgy Aug 28 '23 at 20:02
  • PS. I replicated the same issue on Schneider Electric Machine Expert 2.0.2.1, so it's probably a bug in the CODESYS core – Guiorgy Sep 01 '23 at 10:28

0 Answers0