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

Subject: RE: Setting up Newport XPS-C on Windows 7
From: Mark Rivers <[email protected]>
To: "'Kiss, Andrew Michael'" <[email protected]>, "'[email protected]'" <[email protected]>
Date: Mon, 16 Mar 2015 22:02:30 +0000
Hi Andy,

> So I modified *.xps5 and got a long list of errors, I think related to the inability to read envPath.

I suspect the problem is that you need to edit iocWithAsyn/Makefile and change ARCH to whatever EPICS architecture you are running: win32-x86, windows-x64, etc.  You then should do the following in that directory:

make clean
make

That will create the file envPaths for you, using the paths that are correct for your site.

Mark


-----Original Message-----
From: Kiss, Andrew Michael [mailto:[email protected]] 
Sent: Monday, March 16, 2015 4:43 PM
To: Mark Rivers; '[email protected]'
Subject: RE: Setting up Newport XPS-C on Windows 7

Hi Mark,

Yes, I was modifying the st.cmd.xps in motor/iocBoot/iocWithAsyn.

So I modified *.xps5 and got a long list of errors, I think related to the inability to read envPath. After a quick search in the tech talk list, it seems that this is read from the RELEASE file or setup before compiling. As far as I can tell, all my paths are configured correctly. Do you have any suggestions?

I should also clarify all the packages I am using. I have base 3.14.12.4 and started with synApps 5.7 but had problems compiling some packages. I have asyn 4-25, IPAC 2-12, SEQ 2-1-10, motor 6-8. I believe I experienced several bugs in SEQ 2-1-13 and SEQ 2-1-14 with compiler errors (MS Visual Studio 2008) but 2-1-10 was able to successfully compile. I don't know if there are any issues due to this but figured I should mention this in case there is some incompatibility. 

Can't open envPaths: No such file or directory
macLib: macro TOP is undefined (expanding string $(TOP)/db/basic_asyn_motor.db)
filename="..\dbLexRoutines.c" line number=240
No such file or directory dbRead opening file (null)
macLib: macro TOP is undefined (expanding string $(TOP)/db/basic_asyn_motor.db)
filename="..\dbLexRoutines.c" line number=240
No such file or directory dbRead opening file (null)
macLib: macro TOP is undefined (expanding string $(TOP)/db/XPS_extra.db)
filename="..\dbLexRoutines.c" line number=240
No such file or directory dbRead opening file (null)
macLib: macro TOP is undefined (expanding string $(TOP)/db/XPS_extra.db)
filename="..\dbLexRoutines.c" line number=240
No such file or directory dbRead opening file (null)
macLib: macro TOP is undefined (expanding string $(TOP)/db/profileMoveController.template)
filename="..\dbLexRoutines.c" line number=240
No such file or directory dbRead opening file (null)
macLib: macro TOP is undefined (expanding string $(TOP)/db/profileMoveControllerXPS.template)
filename="..\dbLexRoutines.c" line number=240
No such file or directory dbRead opening file (null)
macLib: macro TOP is undefined (expanding string $(TOP)/db/profileMoveAxis.template)
filename="..\dbLexRoutines.c" line number=240
No such file or directory dbRead opening file (null)
...
<many more omitted for space>
...
macLib: macro TOP is undefined (expanding string $(TOP)/db/XPSAuxAo.db)
filename="..\dbLexRoutines.c" line number=240
No such file or directory dbRead opening file (null)
st.cmd.xps5 line 17: Command asynSetTraceIOMask not found.
Starting iocInit
iocRun: All initialization complete
#errlogInit(5000)
< envPaths
# Tell EPICS all about the record types, device-support modules, drivers,
# etc. in this build from CARS
dbLoadDatabase("../../dbd/WithAsyn.dbd")
WithAsyn_registerRecordDeviceDriver(pdbbase)
### Motors
dbLoadTemplate "motor.substitutions.xps5"
dbLoadTemplate "XPSAux.substitutions"
# asyn port, IP address, IP port, number of axes, 
# active poll period (ms), idle poll period (ms), 
# enable set position, set position settling time (ms)
XPSCreateController("XPS1", "192.168.1.110", 5001, 6, 10, 500, 0, 500)
asynSetTraceIOMask("XPS1", 0, 2)
#asynSetTraceMask("XPS1", 0, 255)
# asynPort, IP address, IP port, poll period (ms)
XPSAuxConfig("XPS_AUX1", "192.168.1.110", 5001, 50)
#asynSetTraceIOMask("XPS_AUX1", 0, 2)
#asynSetTraceMask("XPS_AUX1", 0, 255)
# XPS asyn port,  axis, groupName.positionerName, stepSize
XPSCreateAxis("XPS1",0,"XY.X",      "1000")
XPSCreateAxis("XPS1",1,"XY.Y",   "10000")
# XPS asyn port,  max points, FTP username, FTP password
# Note: this must be done after configuring axes
XPSCreateProfile("XPS1", 2000, "Administrator", "Administrator")
iocInit
############################################################################
## EPICS R3.14.12.4 $Date: Mon 2013-12-16 15:51:45 -0600$
## EPICS Base built Jan 30 2015
############################################################################
# This IOC does not use save/restore, so set values of some PVs
dbpf("IOC:m1.RTRY", "0")
PV 'IOC:m1.RTRY' not found
dbpf("IOC:m1.TWV", "0.1")
PV 'IOC:m1.TWV' not found
dbpf("IOC:m2.RTRY", "0")
PV 'IOC:m2.RTRY' not found
dbpf("IOC:m2.TWV", "0.1")
PV 'IOC:m2.TWV' not found
epics>

-----Original Message-----
From: Mark Rivers [mailto:[email protected]] 
Sent: Monday, March 16, 2015 1:32 PM
To: Kiss, Andrew Michael; '[email protected]'
Subject: RE: Setting up Newport XPS-C on Windows 7

Hi Andy,

> I have modified st.cmd.xps but haven't been able to connect and control the motors.

I assume you mean the st.cmd.xps in the motor/iocBoot/iocWithAsyn directory?

Sorry, there really should be some more documentation there.  The files st.cmd.xps, st.cmd.xps3, and st.cmd.xps4 are for the older "model 2" version of the XPS driver.  I do not recommend using that, you should use the new "model 3" version of the XPS driver.  The example startup script for that is st.cmd.xps5.

If you have troubles with that example then please send the complete output when you try to run the IOC as follows:

iocWithAsyn> ../../bin/linux-x86_64/WithAsyn st.cmd.xps5

Mark




-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Kiss, Andrew Michael
Sent: Monday, March 16, 2015 3:18 PM
To: '[email protected]'
Subject: Setting up Newport XPS-C on Windows 7

Good afternoon,

I was hoping to use EPICS to control motors through a Newport XPS-C and receive data from an Andor Zyla detector. I have Windows 7 installed with EPICS 3.14.12.4 and synApps 5.7 (motor6-8) but I have been unable to figure out how to connect to my XPS. I have modified st.cmd.xps but haven't been able to connect and control the motors. Is there some sort of tutorial that I have missed online that would be helpful? Right now I'm just looking to connect and maybe move an XYZ stage before moving onto the more complicated trajectory scans that I see tutorials for online.

Thank you,
Andy



References:
Setting up Newport XPS-C on Windows 7 Kiss, Andrew Michael
RE: Setting up Newport XPS-C on Windows 7 Mark Rivers
RE: Setting up Newport XPS-C on Windows 7 Kiss, Andrew Michael

Navigate by Date:
Prev: RE: Setting up Newport XPS-C on Windows 7 Kiss, Andrew Michael
Next: related to PLC driver priya tiwari
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Setting up Newport XPS-C on Windows 7 Kiss, Andrew Michael
Next: related to PLC driver priya tiwari
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·