![]() |
![]() ![]()
Experimental Physics and
| ||||||||||||||||
|
Hi,
>To explain a little more, it is important that the driver has completed
the first poll cycle for the position and status of each axis before
iocInit. >This is because the motor record looks at those positions
during iocInit, and if there are non-zero it uses
those values as the current position. >You can add the following to
your startup script after you create the controller and axes to sleep
for 1 second.
>epicsThreadSleep(1.0) I did add
epicsThreadSleep(1.0). There are 5 motors(axis 1 to 5) connected to the motor controller. After
epicsThreadSleep(1.0) added, it seems that the VAL/RBV of motor records of axis 2 to 5 can be successfully loaded back from the controller after IOC reboot. But the behavior of axis 0 (this axis is the most important) is strange. After IOC reboot, the motor record of axis 0 will move. It seems that the VAL field is set to a new value and I can't figure out the relationship between the new and old values. The axis 0 is the main axis(Bragg angle) of a double crystal monochromator, and it has corresponding pseudo motor to represent the Energy of x-ray beam. On Wed, Nov 20, 2024 at 11:04 PM Mark Rivers <rivers at cars.uchicago.edu> wrote:
| ||||||||||||||||
ANJ, 02 Jan 2025 |
![]() · Download · Search · IRMIS · Talk · Documents · Links · Licensing · |