Persistent variables from old Codesys V2 project..

2019-03-21
2019-03-21
  • hence.persson - 2019-03-21

    Hello.

    I have a converted project from Codesys 2 where persitent variables are declared in several different GVLs.

    As i understand it in Codesys 3 persistent variables have to be declared in FB, PRG or in the special Persistent variables list. Is this true?

    If so i need to move my persistent variables that are scattered in several GVLs to this list.

     
  • dFx

    dFx - 2019-03-21

    as said here : https://help.codesys.com/webapp/_cds_var_persistent;product=codesys;version=3.5.14.0

    Codesys Help hat geschrieben:
    these are the locations where you can declare persistent var :
    - Directly in the persistent global variable list
    - Locally in a program with an instance path in the persistent variable list
    - Locally in a function block with an instance path in the persistent variable list
    - Locally in a function

    Codesys Help hat geschrieben:
    Hint
    Declare variables directly in the list of persistent variables and avoid inserting instance paths. As a result, this takes up twice as much memory and also increases the cycle time.

     

Log in to post a comment.