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

Update automatically generated project information POUs

ranie
2013-12-18
2013-12-19
  • ranie - 2013-12-18

    When I set the project information object using python like this:

    projInfo = proj.get_project_info()
    projInfo.version = "1.2.3.4"
    

    The automatically generated POUs (GetVersion, GetTitle, etc.) are not updated.

    Is there any way to force a update of these using python?

    (I am using CODESYS 3.5.3.7)

    /Rasmus

     
  • Anonymous - 2013-12-18

    Originally created by: M.Schaber

    Hi, Ranie,

    You found a bug. I filed CDS-37548 in our jira bug database.

    CDS-37548.

    As a workaround, you can re-set the accessor generation setting to the same value:

    projInfo.change_accessor_generation(projInfo.generate_accessors)
    

    This will regenerate the accessor POUs.

     
  • Anonymous - 2013-12-19

    Originally created by: M.Schaber

    Hi,

    good news: The fix for this is currently scheduled for the next service pack (V3.5 SP5, which is currently scheduled for July.)

     

Log in to post a comment.