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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
as said here : https://help.codesys.com/webapp/_cds_var_persistent;product=codesys;version=3.5.14.0