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  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EPICS support for PI C-862 Mercury motor controller
From: Joe Sullivan <[email protected]>
To: Isenegger Andreas <[email protected]>
Cc: Epics Questions <[email protected]>
Date: Wed, 06 Aug 2008 10:15:32 -0500
Hi Isenegger,

There are example setup files in <top>/iocBoot/iocWithAsyn of
the motorRecord distribution. st.cmd.Vx has examples of the
configuration calls for the C-862
 	PIC862Setup() and PIC862Config()
That is where the connection to the asyn port is made.

I would recommend looking at the motor.substitutions file
(also in that directory) for a nice template for loading
motor records.

Your asyn port setup looks right to me.

Joe

Isenegger Andreas wrote:
Hello All,



According to the 'motor record' manual V6.1, the motor record has support built in for the PI C-862 Mercury motor controller from Physik Instrumente GmbH. It is connected via RS-232 to the IOC.



I am supposed to control this device via EPICS. It seems obvious to use the motor record. However, I don't have the faintest clue what to put into the 'OUT' field of the record to make it connect to the dedicated serial channel. Can anybody help me here (example, documentation, instructions, …)?



What I found out by doing a

#> grep device /work/iocBoot/R3.14.8/dbd/motor-test.dbd

is that I should write 'PIC862' into the DTYP field.

Furthermore, I think I know how to configure the asyn driver in the startup script to open a serial port:

drvAsynSerialPortConfigure ("BusC863Ctrl", "/dev/ttyS0")

asynSetOption ("BusC863Ctrl", 0, "baud", "9600")

asynSetOption ("BusC863Ctrl", 0, "bits", "8")

asynSetOption ("BusC863Ctrl", 0, "parity", "none")

asynSetOption ("BusC863Ctrl", 0, "stop", "1")

asynSetOption ("BusC863Ctrl", 0, "clocal", "Y") # Y = ignore DTR/DSR

asynSetOption ("BusC863Ctrl", 0, "crtscts", "N") # N = ignore RTS/CTS



Any help appreciated.



Thanks and regards,

Andy





----------------------------------

Andreas Isenegger

Section 'Control Systems'

Swiss Light Source

Paul Scherrer Institute, WBGB/003

CH-5232 Villigen PSI, Switzerland

Tel/Fax: ++41 (56) 310 5125/4413

----------------------------------





--
Joseph Sullivan
[email protected] <> 630-252-8657
Advanced Photon Source
APS Engineering Services Division
Beamline Controls & Data Acquisition Group






Replies:
RE: EPICS support for PI C-862 Mercury motor controller Isenegger Andreas
References:
EPICS support for PI C-862 Mercury motor controller Isenegger Andreas

Navigate by Date:
Prev: EPICS Meeting agenda Dalesio, Leo
Next: Problems getting the Python module to work Adam Kadzban
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: EPICS support for PI C-862 Mercury motor controller Isenegger Andreas
Next: RE: EPICS support for PI C-862 Mercury motor controller Isenegger Andreas
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·