EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20192020  2021  2022  2023  2024  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  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Hardcoded scale factor on pmac
From: George Nicolas Kontogiorgos via Tech-talk <[email protected]>
To: "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Tue, 30 Jul 2019 12:51:10 +0000

Dear Giles,

 

Hope this e-mail finds you well.

 

I am working on a custom tripod system with its own kinematics. The hardware I am using is Power PMAC, as before with slits (Those e-mails about DMOV bug).

 

I had a problem in this project with scale factors. I am giving you my configuration to illustrate the problem:

 

  • Q89 = -24383899 (read on Power PMAC IDE)
  • MRES = 1 (This value was set to this in order to debug my problems)
  • SREV = 1

 

With this values I got 2147483648 with caget on my configured virtual motor. When I set MRES = 50e-6 mm/step (My encoder resolution) I got the correct value with caget instead of a factor 1e+4. So I started to search where is this factor and I found scale_=10000; on pmacCSAxis.cpp, line 24. Just for test, I changed this value to 1 and my caget get the correct answer.

 

Am I setting something wrong or there is a bug on this hardcoded scale_? Why there is a hardcoded scale factor? Note that  2147483648 is the saturated negative value for 2 complement with 32 bits because my Q89*1e4 is too big.

 

Best regards

George Nicolas Kontogiorgos

Electrical Engineer

Beamline Software Group (SOL)

Brazilian Synchrotron Light Laboratory (LNLS)

www.lnls.cnpem.br

 

Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente.

Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately.


Replies:
Re: Hardcoded scale factor on pmac Wayne Lewis via Tech-talk

Navigate by Date:
Prev: Re: epics base compilation for ARM Cotex-A53 (ARM64bit) Johnson, Andrew N. via Tech-talk
Next: Re: Hardcoded scale factor on pmac Wayne Lewis via Tech-talk
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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: epics base compilation for ARM Cotex-A53 (ARM64bit) Johnson, Andrew N. via Tech-talk
Next: Re: Hardcoded scale factor on pmac Wayne Lewis via Tech-talk
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  <20192020  2021  2022  2023  2024 
ANJ, 30 Jul 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·