Micro850 CCW - How do you NOT retain a variable on power cycle?

rknopf

Member
Join Date
Dec 2022
Location
Boston
Posts
2
Hi All,

Hoping the community here can help as I'm new to PLC programming. The project I'm working on is using a Micro850 2080-LC50-24QBB and programming in ST. I have the program running mostly as needed, however, only just discovered in the manual that "Micro830 and Micro850 controllers retain all user-created variables" on power cycle.

Here's the thing. I do NOT want that behavior for all my variables. I am specifically implementing a power state machine, and I want the state variable of the state machine to reset to a known value when power to the controller is lost. I had assumed I could achieve this by just giving it an "Initial Value" which the variable would receive when power is restored and the program starts. Is there a way to achieve this functionality (have a user variable get written to say, 0, whenever power is cycled)?

Appreciate any pointers, thanks!
 
there should be a first pass system bit that is true for the first single scan after the PLC transitions to RUN mode. So that bit could trigger a routine that resets all the bits in the state machine.

__SYSVA_FIRST_SCAN - first scan bit

_
 
Last edited:
there should be a first pass system bit that is true for the first single scan after the PLC transitions to RUN mode. So that bit could trigger a routine that resets all the bits in the state machine.

__SYSVA_FIRST_SCAN - first scan bit

_

+1

In CCW, the "Initial Value" is what the variable defaults to when a fresh download occurs. Any changes made to the variable in the program during normal operation will be maintained through a power cycle.

I've used the variable mentioned by drbitboy multiple times for exactly what you are describing. As the name implies it is only true for the first scan, so you can use it by itself to trigger whatever power cycle initialization may be necessary.
 

Similar Topics

Hi guys, I have had some issues with uploading a program from a Micro 850 PLC. This is the first time connecting so I don’t have a file on my...
Replies
8
Views
266
Currently a student, so somewhat new to this. But working with an AB 2080-LC50-24QWB, CCW version 21.01.00. CCW will connect okay to the Micro850...
Replies
9
Views
286
I'm controlling an Applied Motion HW23-601D using a Leadshine EM542S connected to a 2080-LC50-48QBB, using CCW, and experiencing some weird...
Replies
2
Views
598
I am working with Rockwell Micro850 PLCs and CCW. In our application we use various arrays for pretty much everything. Some logics require...
Replies
2
Views
1,091
Back
Top Bottom