Sign in to follow this  
Followers 0
atomic_robo

Recover machine after power up

2 posts in this topic

Hello, 

I am using an NX1P2 for a prototype. I'd like to detect when the power fails so I can resume the state of the machine. I thought of energizing a retentive bit using P_First_Run. I am not sure how to go about this. Any suggestions are appreciated. 

Thank you in advance 

 

Share this post


Link to post
Share on other sites

Check the list of system variables.  There may be one that suits your needs.

Also, you can set a bit on the first scan flag to know its powered on, then don't make it retentive so you can see it is off after a power cycle.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0