Q&A Community

Troubleshooting Frequency Generator Issue on Modicon M241 with SoMachine 4.3

Question:

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.

Top Replies

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?

More Replies

Frequently Asked Questions (FAQ)

FAQ: 1. What does the error code C0138 mean when working with a Frequency Generator on Modicon M241 using SoMachine 4.3?

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.

FAQ: 2. How can I resolve the issue of not finding or adding the FB_init.tx method on the POU when programming a Frequency Generator on M241 hardware?

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.

FAQ: 3. Are there any specific steps or guidelines to follow when troubleshooting frequency generator issues on Modicon M241 with SoMachine 4.3?

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.

You must be a registered user to add a comment. If you've already registered,
sign in. Otherwise, register and sign in.