MC_MoveAbsolute: C0138: No matching 'FB_Init' method found for instantiation of SMC_MoveAbsRelPerformerImpl [ERROR]

imdatatas
2025-07-24
2025-10-02
  • imdatatas - 2025-07-24

    Hello everyone,

    Updating and converting an existing working Codesys Softmotion axis control project to the latest Codesys IDE and Softmotion version always gives the following error message during compilation.

    "
    [ERROR] sm3_basic, 4.18.0.0 (codesys): MC_MoveAbsolute: C0138: No matching 'FB_Init' method found for instantiation of SMC_MoveAbsRelPerformerImpl
    "
    -- Previously working version:
    Codesys IDE SP18.50, Softmotion 4.10.0.0

    -- Later updated version with the error:
    Codesys IDE SP21.10, Softmotion 4.18.0.0

    Has anyone encountered a similar issue?
    How can this be resolved?

    Regards,
    Imdat

     
  • gseidel - 2025-09-08

    Hi Imdat,

    can you please provide the exact version of CODESYS and the compiler version in the project settings?

    Thanks,

    Georg

     
  • imdatatas - 2025-09-26

    Dear @gseidel,
    Thank you for your reply.

    The exact version of Codesys and its compiler was 3.5.21.20.
    The compiler version was fixed and could not be changed in project settings.

    Since I couldn't continue due to this compilation error, I temporarily overcame this issue as follows.
    -- I completely uninstalled Codesys 3.5.21.20 and completely deleted the Codesys folder in the C:\ProgramData folder.
    -- I restarted my computer and installed Codesys 3.5.19.70.
    -- I updated the Codesys Installer and all its add-ons to the latest versions.
    -- The project that was giving me the compilation error I mentioned before is now open with Codesys 3.5.19.70, compiled it, and successfully downloaded it on the device.
    -- I haven't encountered the same problem anymore. I think this issue is related to SP21 and its compiler.

    Frankly, I'd expect a project created with an older version to compile without errors after opening it with the latest Codesys version and updating all libraries.

    Regards,
    imdatatas

     
  • gseidel - 2025-10-02

    Hi imdatatas,

    sorry to hear this issue caused so much overhead for you.

    Frankly, I'd expect a project created with an older version to compile without errors after opening > it with the latest Codesys version and updating all libraries.

    Yes, that is a reasonable expectation. I tried a few times but could not reproduce the problem.

    In case you run into the problem again, we can investigate the issue if you send a project archive.

    Best regards,

    Georg

     

Log in to post a comment.