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

Subject: Streamdevice for Hexa command
From: "최숙" <[email protected]>
To: [email protected]
Date: Fri, 12 Aug 2016 11:10:27 +0900

Dear EPICS Colleagues.


It is Suk Choi from RISP.


I am testing Leybold TD20 Classic Turbo pump controller..

It uses USS protocol.

I sent a message like next line.


out 0x02 0x16 0x00 0x10 0x17 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x10;


At EPICS IOC represented like

epics> 2016/08/12 10:36:11.504 /dev/ttyr30 write 24

\002\026\000\020\027\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\020


I don't know why 0x16 changed to \026 ...


Hexa number 10 chenaged to hexa number 20 ....


I want to know why it works like that...


And how do I send a message to get  right response  from TD20 classic TMP controller...?



Here is asynSet options.... and EPICS IOC response...


#############  Asyn Set options ################################

drvAsynSerialPortConfigure("TMP_70kV","/dev/ttyr30",0,0,0)

asynSetOption("TMP_70kV", -1, "baud", "19200")

asynSetOption("TMP_70kV", -1, "bits", "8")

asynSetOption("TMP_70kV", -1, "parity", "even")

asynSetOption("TMP_70kV", -1, "stop", "1")

asynSetOption("TMP_70kV", -1, "clocal", "Y")

asynSetOption("TMP_70kV", -1, "crtscts", "Y")

asynOctetSetInputEos("TMP_70kV", -1, "")

asynOctetSetOutputEos("TMP_70kV", -1, "")

asynSetTraceIOMask("TMP_70kV",-1,0x2)

asynSetTraceMask("TMP_70kV",-1,0x9)

dbLoadRecords("/home/local/control/epics/ECRLocal/db/TD20_TMP.db", "SYS=ECRIS-, SUB=Vac:, DEV=TPmp01:, PORT=TMP_70kV, A=0")

 

iocInit

Starting iocInit

############################################################################

## EPICS R3.14.12.4 $Date: Mon 2013-12-16 15:51:45 -0600$

## EPICS Base built May 11 2016

############################################################################

sevr=info s7plcInit: no stations configured

iocRun: All initialization complete

## Start any sequence programs

#seq sncxxx,"user=localHost"

epics> 2016/08/12 10:36:11.504 /dev/ttyr30 write 24

\002\026\000\020\027\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\020

 


Sincerely,  Suk Choi



Suk Choi                           

Ph.D / Research Fellow

RI Beam Production Systems Team

Rare Isotope Science Project / Institute for Basic Science

70, Yuseong-daero 1689-gil,Yuseong-gu, Daejeon, Korea, 34047

Tel 042-878-8807  Fax 042-878-8899

E-mail [email protected]


Replies:
RE: Streamdevice for Hexa command Mark Rivers

Navigate by Date:
Prev: Re: Race condition in db_get_field_and_count() (3.14.12) Williams Jr., Ernest L.
Next: RE: Streamdevice for Hexa command Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: EGU field length vs. Channel Access protocol Andrew Johnson
Next: RE: Streamdevice for Hexa command Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 11 Aug 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·