Greetings, I am seeking assistance regarding the programming of a Frequency Generator on my M241 TM241CE24R hardware using SoMachine 4.3 software. After compiling, I encountered an error (C0138) stating that there is no matching FB_init method found for the instantiation of the FrequencyGenerator_M241. The same error occurred when attempting to program PWM. I am unsure of the problem and unable to locate or add the FB_init.tx method on the POU. Any insights on how to resolve this issue would be greatly appreciated.
Hello, have you found the answer yet? I am facing the same issue as well. Can you help me with it?
Is the FB_Init method included in your library? FB_Init is a crucial method that is automatically triggered during downloads and can vary based on its configuration.
I tried searching for the method in the library but couldn't find it. Is there a way for me to download it from another source?
Answer: Error code C0138 indicates that there is no matching FB_init method found for the instantiation of the FrequencyGenerator_M241. This error can also occur when working with PWM programming.
Answer: To resolve this issue, you may need to ensure that the FB_init method is correctly defined and implemented in your program. Check the POU (Program Organization Unit) where the FrequencyGenerator_M241 is instantiated to confirm that the FB_init method is present and properly linked.
Answer: When troubleshooting frequency generator issues, it is important to review the error messages carefully and verify the instantiation and method calls within your program. Ensure that all necessary methods, such as FB_init, are correctly defined and accessible in the relevant POUs. Additionally, checking the compatibility of the Frequency Generator configuration with the M241 hardware and SoMachine 4.3 software versions is recommended.