I am writing a program and is stuck. I am using an incremental encoder to determine angular position. I want the PI_Counter value to be saved when the control unit loses power, and at startup the PI_Counter value should be the previously saved value. I am using an Epec 3606 control unit. Pulse counter is 2-channel directional mode.
An example of what I am looking for in the program:
1. Control unit switches on. PI_Counter value is 0.
2. System operates, counter value adds to 400, system loses power.
3. System starts back up, counter value is 400.
If anyone can help with the program, I would greatly appreciate it.
Log in to post a comment.