AngryRobot Posted May 28, 2019 Report Posted May 28, 2019 If I set a variable as retained, but then also set the initial value, does it re-initialize the variable anytime the PLC loses power, or only on a program change?
Crossbow Posted May 28, 2019 Report Posted May 28, 2019 If a variable is both retained and has initial value, the retained value is maintained unless battery dies, or unless the 'clear variables with retain attribute' check box is selected on the transfer to controller screen. 1
AngryRobot Posted June 1, 2019 Author Report Posted June 1, 2019 Thank you! That is what I assumed, but I wanted to verify.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now