Hi.I use codesys and PL700 PLC. When I cut the power Retain variable go to zero. I declarate variable for example:
VAR_GLOBAL PERSISTENT RETAIN
scaAkuSP :INT;
END_VAR
VAR_GLOBAL RETAIN
scaAkuSP:int;
END_VAR
How can i do it.
PersistentVars
-
- Posts: 2
- Joined: 10/10/2023, 16:39
PersistentVars
You do not have the required permissions to view the files attached to this post.
-
- Moderatore
- Posts: 1699
- Joined: 29/10/2010, 10:09
- Contact:
Re: PersistentVars
Hi,
please go to "[PL700] CODESYS programming examples" section and take a look to the example number 7.
https://forum.pixsys.net/viewtopic.php?f=25&t=2642
To manage retain variables, you need to use the Persistent Manager service.
please go to "[PL700] CODESYS programming examples" section and take a look to the example number 7.
https://forum.pixsys.net/viewtopic.php?f=25&t=2642
To manage retain variables, you need to use the Persistent Manager service.
-
- Posts: 2
- Joined: 10/10/2023, 16:39
Re: PersistentVars
How long can the plc keep its variable value in memory when it is not powered?
-
- Moderatore
- Posts: 1699
- Joined: 29/10/2010, 10:09
- Contact:
Re: PersistentVars
Hi,
memory file is stored in a EMMC flash memory type so the duration is almost infinite.
memory file is stored in a EMMC flash memory type so the duration is almost infinite.