Build error while using FB methods
I received an error - "CILG0027 - The method name 'Create' in program organization unit 'ProductHandler' is not allowed for user defined methods." when compiling the projet and I didn't find any information related to this error either on the forum or on the PLCNext Engineer help resources.
I'm currently using PLCNext Engineer 2021.3 on a axc-f-2152 PLC. I created a basic Funtion Block name ProductHandler with a simple method named Create. The method as public access in is signature. Using or not the method through the Main program doesn't change anythind as I'm still receiving the error. Commenting the whole code within the method or the FB doesn't change anythid either as I'm still receiving the error.
Any help would be appreciated. Thank you!
I'm currently using PLCNext Engineer 2021.3 on a axc-f-2152 PLC. I created a basic Funtion Block name ProductHandler with a simple method named Create. The method as public access in is signature. Using or not the method through the Main program doesn't change anythind as I'm still receiving the error. Commenting the whole code within the method or the FB doesn't change anythid either as I'm still receiving the error.
Any help would be appreciated. Thank you!
Comments