|
Good afternoon, all -
I've been working with the OMS PC78 motor controller under EPICS base-7.0.9, and have run into problems that I'm hoping somebody can shed some light on for me.
As a first effort I've been attempting to get the controller working via RS232. I've set up an asyn serial port and configured the appropriate parameters. I'm able to send strings to .AOUT and see the results I'd expect in .AINP, so I'm fairly certain that
that portion of the communications chain is working properly.
I'm using OMS configurations cribbed from the Ebrick documentation and have logging turned all the way up with asynSetTraceIOMask/asynSetTraceMask. I can see the controller responding with its informational message when (I think) the driver is called - it sends
"WY" and the controller responds with an ID.
drvAsynSerialPortConfigure("L0", "/dev/ttyUSB0", 0, 0, 0)
asynSetOption("L0", 0, "baud", "9600")
asynSetOption("L0", 0, "bits", "8")
asynSetOption("L0", 0, "parity", "none")
asynSetOption("L0", 0, "stop", "1")
asynSetOption("L0", 0, "clocal", "Y")
asynSetOption("L0", 0, "crtscts", "Y")
asynSetTraceIOMask("L0", 0, 2)
asynSetTraceMask("L0", 0, 255)
dbLoadRecords("$(ASYN)/db/asynRecord.db", "P=serial:,R=USB0,PORT=L0,ADDR=0,IMAX=100,OMAX=100")
# OmsPC68 driver setup
# (1) cards
# (2) scan rate
OmsPC68Setup(1, 10)
# OmsPC68 driver setup and configuration parameters
# (1) card (start at 0)
# (2) asyn port
OmsPC68Config(0, "L0")
My issue is in trying to connect the asyn port to the OMS driver. I'm still learning about motor records and their application, and when I use the default 'motor.db', the OUT field gets set to a VME_IO type address. The 'asyn_motor.db' includes @ASYN in the
OUT field, which I would assume is more appropriate, but still no luck. Am I 'wiring it up' wrong?
I'd definitely appreciate any pointers or assistance!
Thanks,
-Jim Withrow
Advanced Photon Source, Sector 24
9700 S. Cass Avenue, Building 436 E001
Lemont, IL 60439
|