C# Naming input 'EN'

Dear all, When creating an Function Block in PLCNext Engineer, i noticed naming the input from my block to ‘EN’ changed the functionality of the block.

I wanted to know if this was a build in function when creating any C# Function block? If so, is there a possibility to also create an ENO (Enable Out)? Kind regards, Coen

Hi Coen, That is interesting behaviour that I am not 100% sure is supposed to happen, at the moment at least. As you probably know, it is not possible to declare a variable in a PLCnext Engineer FB named “EN”, and this is in anticipation of the EN/ENO feature being implemented in a future version of PLCnext Engineer. But it looks like there is already something like that going on under the hood, which you have seen when you snuck in a parameter named “EN” in your C# FB. It may be that defining a parameter named “EN” in a C# FB will cause problems for you when the EN/ENO feature is finally available in PLCnext Engineer, but we are currently checking this and will let you know. ~ Martin.

Hi Coen, The feedback from the developers is that you should not create Function or Function Block parameters named “EN” or “ENO”, because this is likely to cause problems when the EN/ENO feature is fully enabled in PLCnext Engineer in a future version. ~ Martin.