Beckhoff TwinCAT FAQ - How to convert FBD function blocks into ST language

 If I define a standard function block for MC_Power, I want to know its corresponding ST language

















Right-click on MAIN (in the ST language interface), select Input Assistant, then find the Standard Function Blocks, locate the corresponding module under TcMC.lib (all TwinCAT standard modules can be found in the library you are referencing), and click OK to see the corresponding code.