Why do I get error messages when compiling a CFC module?
Most probably you have a case of version incompatibility of the engineering tools. For example, you are implementing CFC V4 in conjunction with SCL V5. You also get error messages when you want to view the SCL code generated.
Because of the IEC standardization of SCL V5, this version is not compatible with CFC V4.
Use SCL V5 in conjunction with CFC V5. This gives you version compatibility.