Codesys/Wago - Retain/ Persistent Variables

electro89

Member
Join Date
Mar 2012
Location
Canada
Posts
106
A couple questions regarding retentive and persistent variables in Codesys v2.3 using the wago 750-841. Cannot seem to find any information in the manual or online.

When I declare var_global retain persistent and give it a preset value like :=4, and I change it in online mode, the value is saved when I'm logged in but not when i'm logged out.
Also, if I were to change the value offline, it will still show me the value that was changed online.

Where is this data stored in the plc and is there a way to access it through codesys? I need someone to explain how the whole retentive memory thing works.

thanks
Martino
 
Persistent variables don't retain their value when you reset the controller. You need to use RETAIN.

Good luck,

(8{)} :) .)
(Yosi)
 
persistent variables are rest when resetting the PLC and retain stay old value.
when cold resetting the retains are reset, and the persistent are not touched (like an hour meter when downloading new software (however the persistents will reset if you do a reset.
if you do a reset original all is reset.
see page 4-71 for this.
.
 

Similar Topics

Hi, I have never used modbus communication in Codesys 2.3, any tips and tricks are much appreciated. The system is a Wago 750-881 that controls...
Replies
3
Views
1,763
Hello, These days I am trying to implement a communication via EthernetIP between a PowerFlex 525 drive and a WAGO PFC200 with EthernetIP...
Replies
7
Views
1,855
Dear people, Is there any way to use native 3Codesys functionalities within a Wago e!****pit ironpython script? I want for example to export...
Replies
0
Views
925
Codesys Ethernet IP Scanner - Won't connect to a Wago 750-353. The Ethernet device and the Ethernet IP Scanner are both running. but then I go...
Replies
2
Views
1,609
Hello, Maybe it is just a simple problem, but I cannot solve it. I have a Wago 750-881 connected to a Beier HMI through IP TCP, the connection is...
Replies
0
Views
872
Back
Top Bottom