Error: C0138: No matching 'FB_Init' method found for instantiation of VisuClientObjectMgr

mr-ege
2025-11-25
2025-11-28
  • mr-ege - 2025-11-25

    Hi all!

    I'm trying to learn PLC Programing. Today I was making a simple PLC program, as you can see. When I compile the program without the visualization, there are no errors. However, when I add the visualization and then compile it, I get this error. I don’t know how to solve the problem. I have tried the following solutions: rebooting the PC and updating the software.

    Error Code: C0138: No matching 'FB_Init' method found for instantiation of VisuClientObjectMgr
    Compile complete -- 1 errors, 0 warnings
    Build complete -- 1 errors, 0 warnings : No download possible

    Version: CODESYS V3.5 SP21 Patch 3

     
  • TimvH

    TimvH - 2025-11-27

    Maybe check:
    - The library manager, are you maybe missing some libraries
    - Tools - CODESYS installer: update the CODESYS Visualization and Visualization support
    - Project - Project environment: maybe you need to update the visualization profile

     
    • mr-ege - 2025-11-27

      I have tried these steps, but it still does not work. What should I do? I'm stuck on this error. I cannot design the HMI, I need help.

       
  • imdatatas - 2025-11-28

    Unfortunately, the "C0138: No matching 'FB_Init" method found" error is a nightmare for CODESYS V3.5 SP21.
    I'm not sure if anything has been done about this or if anything will be fixed.

    I've encountered the same issue many times, and it was only resolved by completely uninstalling SP21, deleting all related files and folders from my computer, and then installing SP19.
    So, I've given up on using SP21 and switched back to SP19patch7.

    Here are some previous posts regarding the "C0138: No matching 'FB_Init" on SP21 of Codesys.
    https://forge.codesys.com/forge/talk/Visualization/thread/0763d6ca8e/
    https://forge.codesys.com/forge/talk/Motion/thread/9074005bf4/

     

Log in to post a comment.