-

Writing user-defined FUs/FBs with EN/ENO - Best Practice

When writing user-defined POUs, observe the rules and recommendations listed below.

User-defined IEC 61131-3 function POUs

User-defined C# function POUs

In addition to the above-mentioned points for IEC functions, the following applies to C# user functions:

User-defined IEC 61131-3 function block POUs

User-defined C# function blocks

Analog to the IEC FB, the C# FB must define the EN/ENO parameters (as first parameters, in capital letters).

Example for a C# function block with internal EN/ENO handling