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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Kohzu SC410 Controller |
From: | Andrew Gomella <[email protected]> |
To: | Mark Rivers <[email protected]> |
Cc: | "[email protected]" <[email protected]> |
Date: | Sat, 3 Aug 2013 12:03:53 -0400 |
Hi Andrew,
The SC800 motor device support and driver is an old Model 1 driver. It only uses asyn for the underlying communication port, not for the interface between motor device support and the motor driver. Thus, it should not be using devMotorAsyn at all.
I suspect the problem is in your database/template file. Are you specifying DTYP="asynMotor" rather than "SC-800"?
Mark
________________________________________
From: [email protected] [[email protected]] on behalf of Gomella, Andrew (NIH/NHLBI) [F] [[email protected]]
Sent: Friday, August 02, 2013 3:42 PM
To: [email protected]
Subject: Kohzu SC410 Controller
Hi,
I'm having trouble getting the new Kohzu SC410 Controllers to work with the EPICS Motor Record. They are pretty much the exact same thing as as SC400 controllers with a couple of extra optional commands.
I'm using scientific linux 64 bit, with epics base 14.12.3, motor 6-7, and asyn 4-20 (though i have tried several other versions of asyn and get the same error)
I get the following error:
013/07/30 16:18:51.046 devMotorAsyn::init_record, IOC:m1 find int32 interface failed
I thought at first set up motor.substitutions wrong, but I do not think that's the case. You can see that the IOC is definitely communicating with the controller, but something is going wrong.
< envPaths
epicsEnvSet(ARCH,"linux-x86_64")
epicsEnvSet(EPICS_BASE,"/home/admin/Desktop/epics/base")
epicsEnvSet(TOP,"/home/admin/Desktop/epics/support/motor-6-7")
epicsEnvSet(ASYN,"/home/admin/Desktop/epics/support/asyn4-20")
epicsEnvSet(MOTOR,"/home/admin/Desktop/epics/support/motor-6-7")
dbLoadDatabase("/home/admin/Desktop/epics/support/motor-6-7/dbd/WithAsyn.dbd")
WithAsyn_registerRecordDeviceDriver(pdbbase)
dbLoadRecords("/home/admin/Desktop/epics/support/motor-6-7/db/motorUtil.db", "P=IOC:")
dbLoadTemplate("motor.substitutions")
drvAsynSerialPortConfigure("koz","/dev/ttyS0",0,0,0)
asynSetOption("koz", -1, "baud", "38400")
asynSetOption("koz", -1, "bits", "8")
asynSetOption("koz", -1, "parity", "none")
asynSetOption("koz", -1, "stop", "1")
asynSetOption("koz", -1, "clocal", "Y")
asynSetOption("koz", -1, "crtscts", "N")
#GpibBoardDriverConfig("koz",1,0,3,0)
asynSetTraceMask("koz",0,0x9)
asynSetTraceIOMask("koz",0,0x2)
# Kohzu SC-800 motor controller setup parameters:
# (1) maximum number of controllers in system
# (2) motor task polling rate (min=1Hz,max=60Hz)
SC800Setup(1, 1)
# Kohzu SC-800 motor controller configuration parameters:
# (1) controller# being configured
# (2) ASYN port name
# (3) address (GPIB only)
SC800Config(0,"koz",0)
var drvSC800debug 4
iocInit
Starting iocInit
############################################################################
## EPICS R3.14.12.3 $Date: Mon 2012-12-17 14:11:47 -0600$
## EPICS Base built Jul 27 2013
############################################################################
2013/07/30 16:18:50.832 /dev/ttyS0 write 6
\002IDN\r\n
2013/07/30 16:18:50.852 /dev/ttyS0 read 8
C\tIDN0\t4
2013/07/30 16:18:50.854 /dev/ttyS0 read 8
10\t3000\r
2013/07/30 16:18:50.855 /dev/ttyS0 read 1
\n
2013/07/30 16:18:50.855 /dev/ttyS0 write 9
\002STR1/1\r\n
2013/07/30 16:18:50.870 /dev/ttyS0 read 8
C\tSTR1\t1
2013/07/30 16:18:50.871 /dev/ttyS0 read 8
\t0\t0\t0\t0
2013/07/30 16:18:50.874 /dev/ttyS0 read 8
\t0\t0\t0\r\n
2013/07/30 16:18:50.874 /dev/ttyS0 write 9
\002RDP1/0\r\n
2013/07/30 16:18:50.886 /dev/ttyS0 read 8
C\tRDP1\t0
2013/07/30 16:18:50.888 /dev/ttyS0 read 2
\r\n
2013/07/30 16:18:50.889 /dev/ttyS0 write 10
\002RSY1/21\r\n
2013/07/30 16:18:50.902 /dev/ttyS0 read 8
C\tRSY1\t2
2013/07/30 16:18:50.905 /dev/ttyS0 read 5
1\t0\r\n
2013/07/30 16:18:50.905 /dev/ttyS0 write 9
\002STR1/2\r\n
2013/07/30 16:18:50.918 /dev/ttyS0 read 8
C\tSTR2\t1
2013/07/30 16:18:50.920 /dev/ttyS0 read 8
\t0\t0\t0\t1
2013/07/30 16:18:50.922 /dev/ttyS0 read 8
\t1\t0\t0\r\n
2013/07/30 16:18:50.923 /dev/ttyS0 write 9
\002RDP2/0\r\n
2013/07/30 16:18:50.934 /dev/ttyS0 read 8
C\tRDP2\t0
2013/07/30 16:18:50.936 /dev/ttyS0 read 2
\r\n
2013/07/30 16:18:50.936 /dev/ttyS0 write 10
\002RSY2/21\r\n
2013/07/30 16:18:50.949 /dev/ttyS0 read 8
C\tRSY2\t2
2013/07/30 16:18:50.952 /dev/ttyS0 read 5
1\t0\r\n
2013/07/30 16:18:50.952 /dev/ttyS0 write 9
\002STR1/3\r\n
2013/07/30 16:18:50.965 /dev/ttyS0 read 8
C\tSTR3\t1
2013/07/30 16:18:50.967 /dev/ttyS0 read 8
\t0\t0\t0\t1
2013/07/30 16:18:50.969 /dev/ttyS0 read 8
\t1\t0\t0\r\n
2013/07/30 16:18:50.969 /dev/ttyS0 write 9
\002RDP3/0\r\n
2013/07/30 16:18:50.981 /dev/ttyS0 read 8
C\tRDP3\t0
2013/07/30 16:18:50.983 /dev/ttyS0 read 2
\r\n
2013/07/30 16:18:50.983 /dev/ttyS0 write 10
\002RSY3/21\r\n
2013/07/30 16:18:50.997 /dev/ttyS0 read 8
C\tRSY3\t2
2013/07/30 16:18:50.999 /dev/ttyS0 read 5
1\t0\r\n
2013/07/30 16:18:50.999 /dev/ttyS0 write 9
\002STR1/4\r\n
2013/07/30 16:18:51.012 /dev/ttyS0 read 8
C\tSTR4\t1
2013/07/30 16:18:51.014 /dev/ttyS0 read 8
\t0\t0\t0\t1
2013/07/30 16:18:51.016 /dev/ttyS0 read 8
\t1\t0\t0\r\n
2013/07/30 16:18:51.016 /dev/ttyS0 write 9
\002RDP4/0\r\n
2013/07/30 16:18:51.028 /dev/ttyS0 read 8
C\tRDP4\t0
2013/07/30 16:18:51.030 /dev/ttyS0 read 2
\r\n
2013/07/30 16:18:51.030 /dev/ttyS0 write 10
\002RSY4/21\r\n
2013/07/30 16:18:51.044 /dev/ttyS0 read 8
C\tRSY4\t2
2013/07/30 16:18:51.046 /dev/ttyS0 read 5
1\t0\r\n
2013/07/30 16:18:51.046 devMotorAsyn::init_record, IOC:m1 find int32 interface failed
Thanks for your help,
Andrew Gomella