I have some user defined Function Blocks in Control Builder M Professional, AC800M there is the possibility to add "EN" parameter in code and disable the Function Block, i understand in this case the code will not be executed. But i want to indicate this on the Faceplate in 800xA, so that the User knows the block is not enabled. I couldn't find the "EN" as Property, how can i read this or some other way to detect this case?
You can use "Late Binding" to try to connect the faceplate to the EN terminal if it exists. The problem you may have is that if the EN terminal does NOT exist, then the default value could be false, which means the graphic will think the block is disabled.
Note that there is a significant performance impact using late binding. Using a single late bind on the faceplate is probably fine, you wont notice. But excessive use of late binding rapidly leads to very slow opening times for graphics.
You may be better to simply add your own "En" parameter, which is default "True" and always present. The first line of code inside the function block is "If Not En then return();"