Save Encoder Positi...
 
Notifications
Clear all

Save Encoder Position on Power loss

4 Posts
1 Users
0 Likes
9,962 Views
(@shagmwp)
Posts: 5
Active Member Guest
Topic starter
 

Is there a way to detect power loss and store the encoder value? Or is there a limit to how many times you can write to eeprom, other than the write-cycle limit?

 
Posted : 10/03/2014 2:00 pm
(@csearcy)
Posts: 316
Reputable Member Guest
 

The Class5 motors have a status bit that can be setup with an interrupt to "attempt" to store position, but this may not work if the axis is in a rapid move when power is interrupted... as the motor may still be coasting... thus the position trapped may not represent where the motor was when it actually stopped moving.
There is a limit to how many times you can write to EEPROM... though it's a very high number (hundreds of thousands). When the limit is reached, the EEPROM location being written too may not retain it's value.

The preferred method is to use a motor with the -DE(Drive Enable) option. This method allows separate drive and control power inputs... so the drive power can be removed for safety... while the control power is maintained thus retaining the current encoder position... even if the motor shaft moves after drive power is removed.
We do have an absolute encoder option... but it is only currently available on certain "newer" motors.

 
Posted : 10/03/2014 2:18 pm
(@shagmwp)
Posts: 5
Active Member Guest
Topic starter
 

Thanks for the quick reply!!

Is the status bit that you are referring to the Bo bit (Motor off)?

Which motors have the absolute encoder option?

 
Posted : 10/03/2014 3:28 pm
(@csearcy)
Posts: 0
New Member Guest
 

Bit 13 of Status word 6 is "Low Bus Voltage"... but this bit is only available in the Class5 motors(firmware revision 5.00 or higher).

 
Posted : 10/03/2014 3:51 pm
Share: