Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Can't download program to Codesys Control Win V3 x64

dhumphries
2022-08-25
2022-08-26
  • dhumphries - 2022-08-25

    I'm using Codesys 3.5.17.0, when I create a new project using the standard project template and set the device to the Codesys Control Win V3 x64 PLC and attempt to login to the PLC I get the following message: Download failed: Unknown reason. See Log Page in Device Dialog for details. If I click on details the log message says: EXCEPTION [GlobalInit] code: App=[Application], Exception=[AccessViolation]. The problem is unique to one workstation, I am running the same version on 2 other PCs without problem. If I open a project created on another workstation I can login to the PLC and download the program without any problem.

    I sent a message to tech support and got the following reply:

    This exception usually indicates an issue with the initialization of variables in the application. Most likely there is some kind of uninitialized or invalid pointer or an array is used out of bounds, for example during the initialization of a global function block or block instance.
    β€’ Please try build->clean all and rebuild the application
    β€’ Check your application code for any pointers and global variables that may not be initialized correctly

    I have tried these suggestions, but haven't found a solution. My is very basic, one rung of ladder logic

    PROGRAM PLC_PRG
    VAR
    Button: BOOL;
    Lamp: BOOL;
    END_VAR

    Button Lamp
    ||----------------()

    I don't have any global variables, just the two declared for the one rung of logic, no arrays or pointers, just one simple line of logic based on a blank template. Following the exact same steps on a different PC works fine.

    Any ideas what's going on?

     
  • necati - 2022-08-26

    It is worth to try that you delete folder (name is like 859689C4) in the "C:\ProgramData\CODESYS\CODESYSControlWinV3x64" location. And then try redownload project.

     
  • dhumphries - 2022-08-26

    I tried deleting the folder and re-downloading. No change, I still get the same error.

     
  • dhumphries - 2022-08-26

    Looking further down the device log, there is an error "CodeMCreateInitialSoftcontainer: ERROR: $Firmware$/.SoftContainer_CmRuntime.wbb file missing"

    I don't know much about CodeMeter it has just worked when installed on other machines, do I need to configure something?

     

Log in to post a comment.