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: RE: Streamdevice for Hexa command
From: Mark Rivers <[email protected]>
To: "최숙" <[email protected]>, "[email protected]" <[email protected]>
Date: Fri, 12 Aug 2016 03:24:14 +0000
Hi Suk Choi,

> 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...

What you are seeing is normal and OK.

The asynTrace output you have selected is in octal, not hexadecimal.  0x10 in hex is 020 in octal.  0x16 in hex is 026 in octal.

If you want your asynTrace output to be in hex then you should change this line:


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

to this


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


asynSetTraceMask with 2 is "ASYN_TRACEIO_ESCAPE".  That outputs printable characters in ASCII and non-printable characters as octal escape sequences like \026.


Mark


________________________________
From: [email protected] [[email protected]] on behalf of "최숙" [[email protected]]
Sent: Thursday, August 11, 2016 9:10 PM
To: [email protected]
Subject: Streamdevice for Hexa command


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]<redir.aspx?REF=WlcfCfxj4407IJHDetO6Jgj2X_RiazaTj0jVOPsrSkj4dCYOX8LTCAFtYWlsdG86c2psZWU3N0BpYnMucmUua3I.>




References:
Streamdevice for Hexa command "최숙"

Navigate by Date:
Prev: Streamdevice for Hexa command "최숙"
Next: Re: Multiple device support for a record type Stefen Paul
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: Streamdevice for Hexa command "최숙"
Next: wait/dealy inside a record Stefen Paul
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, 12 Aug 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·