4.2 Saving and Restoring Motor Positions

 

It is important at the beginning of the run to save current motor positions, after the sample has been centered.  This will save you form lots of grieve in the event there is a crate failure, although this rarely happens.

4.2.1 To Save Motor Positions

Open IDL, and make the startup path as

J:\epics\R3.13.3\CARS\iocBoot\ioc13bmd

On the IDL prompt, run

Epics_backup, ‘auto_positions.req’, ‘filename.sav

This will save all current motor positions to the file filename.sav. Note that this file is automatically saved in the iocbmd folder on the J drive. You’ll need to move it to your current working folder (best to save it in the folder where you store all the data files.

4.1.2 To Restore Motor Positions

Open IDL and make the startup path as

 

J:\epics\R3.13.3\CARS\iocBoot\ioc13bmd

 

On IDL prompt, run

 

Epics_restore, ‘filename.sav’,’auto_positions.sav

 

This will copy all motor positions that you’ve saved in filename.sav to the file named auto_positions.sav.  Rebooting the crate will restore the positions of the motors on the crate.

 

Note: Please contact us before you do so as all previous motor positions will be lost!