EPICS Home

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  2019  2020  2021  2022  2023  2024  <2025 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  <2025
<== Date ==> <== Thread ==>

Subject: Re: using PI C-863 Mercury motor controller with linux
From: Dariush Hampai via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Fri, 27 Jun 2025 17:29:21 +0200
Hi community,
Hi Matt,
after 10 years i'll reply to this thread...
In my lab I have 3 PI-Mercury controller C-663 (one for a rotative motor and 2 linear stages) in daisy chain mode. I have some questions regarding this setup (up to now I used Labview successfully... so I know that it works fine).
I start from the module "motorPI" (or have I to use motorPIGCS2?)

1) following the ioc in motorNewport, I included in piIOC/piApp/Db/Makefile

# Create and install (or just install) into <top>/db
# databases, templates, substitutions like this
#DB += xxx.db

DB_INSTALLS += $(MOTOR)/db/asyn_motor.db
DB_INSTALLS += $(MOTOR)/db/asyn_motor_positions.req
DB_INSTALLS += $(MOTOR)/db/asyn_motor_settings.req
DB_INSTALLS += $(MOTOR)/db/basic_asyn_motor.db
DB_INSTALLS += $(MOTOR)/db/profileMoveController.template
DB_INSTALLS += $(MOTOR)/db/profileMoveController_settings.req
DB_INSTALLS += $(MOTOR)/db/profileMoveAxis.template
DB_INSTALLS += $(MOTOR)/db/profileMoveAxis_settings.req

2) in motor/module/motorPI there is a template to start. However there isn't the C-663 option in st.cmd. So, it is right to create a PI_C663.cmd/.substitution (similar to PI_C844)? Looking for the driver of C-663  in sources it seems that the functions are the same.

3) in PI_C663.cmd, how I set the setup?
PIC663Setup(1, 10) -> change 1 to 3 as I have three controllers?

4) PIC663Config(0, "serial_pi_1"), the 0 is "controller# being configured". Have I change it?

5) regarding the daisy chain, how can I manage it? in .substitution file?


thank you in advance

> Hi,
>
> The C-663 uses the PI General Command Set, and there's also Asyn based support in the motor support module:
>
> http://www.aps.anl.gov/bcda/synApps/motor/ > > I'm currently using two C-663 controllers in a RS232 daisy chain configuration via a Moxa. The motor module doesn't contain the daisy chain support, but does work point-to-point.
>
> The IOC startup file would contain the following commands:
>
> drvAsynIPPortConfigure("PI1","10.112.2.4:4001",0,0,0)
> PI_GCS2_CreateController("PIC1", "PI1", 1, 0, 0, 500, 1000)
>
> Then the motor record would use the "PIC1" asyn port.
>
> Cheers,
> Matt


> On Mar 13, 2015, at 8:00 AM, Heinz Junkes <junkes at fhi-berlin.mpg.de> wrote:

> Hi Enrico,
>
> I run a similar controller C-663 Mercury Step but using the serial (RS232) port. > I can send to you the proto and db - files to use the controller with streamdevice.
>
> Best regards,
> Heinz
>
>> On 13.03.2015, at 10:59, Enrico Virgilli <virgilli at fe.infn.it> wrote:
>>
>> Dear staff,
>>
>> I have a PI C-863 Mercury motor controller
>> https://urldefense.us/v3/__http://www.physikinstrumente.com/en/products/prdetail.php?sortnr=900605__;!!G_uCfscf7eWS!a3bwtlVSDT0jRhakAoSGHvXEhZqUr6JCntZ3wtbBwRXCzvsearrftWvAhji9plR6xjGxUslg7Evvh36aEXCGvEm6sb1FWmmAYQ$ >> that I would like to control with linux. The connection is
>> USB, and at the moment I am successfully using it with a desktop with
>> windows.
>>
>> I have not found drivers or references on how to do it and I am a really
>> newbye in this sense. Can you help me giving some reference or
>> free software to test it?
>>
>> SIncerely,
>>
>> Enrico

--
************************************

Dr. Dariush Hampai, PhD

INFN - LNF
X-Lab Frascati
Via E. Fermi, 54 (ex 40)
I-00044 Frascati (RM)
Italy

Mail Address:
XLab-Frascati
LNF-INFN
Casella Postale 13
Frascati (RM)
Italy

Room:	+39.06.9403.5248
Lab.:	+39.06.9403.2286
Mob.:	+39.06.9403.8025
Fax.:	+39.06.9403.2597

************************************



Replies:
RE: [EXTERNAL] Re: using PI C-863 Mercury motor controller with linux Pearson, Matthew via Tech-talk

Navigate by Date:
Prev: Re: Generation of state diagram documentation from SNL DESMARCHELIER Gabriel via Tech-talk
Next: RE: [EXTERNAL] Re: using PI C-863 Mercury motor controller with linux Pearson, Matthew 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  2019  2020  2021  2022  2023  2024  <2025
Navigate by Thread:
Prev: RE: Generation of state diagram documentation from SNL DESMARCHELIER Gabriel via Tech-talk
Next: RE: [EXTERNAL] Re: using PI C-863 Mercury motor controller with linux Pearson, Matthew 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  2019  2020  2021  2022  2023  2024  <2025