Hello Ian,
I can think of two possible causes for the problem you are experiencing
First, it could be a result of auto-saving both MRES and SREV. MRES
and UREV/SREV are two different methods of configuring the same thing;
i.e., motor resolution. Only one method (either MRES or the pair
UREV/SREV) should be auto-saved. I prefer MRES, so I suggest you
remove SREV from the list.
Second, although the motor record supports configurations where the
sign of MRES and ERES are different, OMS controllers do not.
The following is from the "Known Problems" section of the README
file distributed with the motor record,
4) With R5-3 of the motorRecord, negative encoder resolutions (ERES) are
supported. This allows the user to change the sign of ERES
rather than
reverse encoder wires when the motor and encoder direction are
reversed.
There is a peculiarity with the OMS controller boards when
they are
configured with MRES and ERES of opposite polarity. Since
both the
commanded and feedback positions are set with the same command
(LP),
the user must enter the opposite polarity when setting the OMS
motor
controllers position.
For example, if MRES is positive and ERES is negative and the user
wants to set the current position to 10.00 inches, then -10.00
must be
entered in the VAL or DVAL field.
If the 1st suggestion (remove SREV from the auto-saved list) does not
fix the
problem, then I suggest you change either the reference or the feedback
wiring
so that MRES and ERES are the same sign.
Hope this helps,
Ron
Ian Gillingham wrote:
Using the EPICS motor record (for OMS MaxV) under R3.14.8.2, I am
experiencing some odd behaviour on IOC reboot and autosave.
I have some systems driving XY stages. The X axis behaves perfectly on
reboot (and restore), but the Y axis does not.
The observation is that, on IOC reboot, all Y axis motor record fields
'appear' to have restored correctly, but on driving the axis (in either
direction) the direction sense is inverted. The Y axis differs from the
X axis, in that the direction is inverted (due to gearing), so the motor
record is initialised with positive MRES, positive DIR, but negative ERES.
On setting UEIP to 'No', 'home' the axis, then set UEIP to 'Yes', the
direction sense is corrected an the axis behaves as expected.
My autosave files refer to the following motor record fields:
0.req:
DVAL OFF
1.req:
DIR DHLM DLLM TWV SREV MRES ERES RRES VBAS VELO ACCL BDST BVEL BACC RDBD
EGU RTRY UEIP URIP DLY PREC DISA DISP FOFF OFF FRAC OMSL JVEL JAR
The startup script makes the following calls before iocInit():
set_pass0_restoreFile("0.sav")
set_pass0_restoreFile("1.sav")
set_pass1_restoreFile("1.sav")
Motor parameters:
MRES: 0.00005
UREV: 0.01
ERES: -0.00002
DIR: 'Pos'
I have tried issuing the DBI command (to invert the output direction at
the MaxV card), whilst setting DIR to 'Neg', but this swaps the
associated limit switches! So, not a solution.
Is anyone aware of known issues in this area? I seem to recall something
about negative ERES values being mentioned in the past, but unable to
find any references.
Ian Gillingham
Diamond Light Source
<DIV><FONT size="1" color="gray">This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
</FONT></DIV>
- References:
- Motor record direction sense inverted after IOC reboot & autosave Ian Gillingham
- Navigate by Date:
- Prev:
Motor record direction sense inverted after IOC reboot & autosave Ian Gillingham
- Next:
EPICS driver for OMRON PLC CQM1H? zhangdemin99
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Motor record direction sense inverted after IOC reboot & autosave Ian Gillingham
- Next:
EPICS driver for OMRON PLC CQM1H? zhangdemin99
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|