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: Nozzle Exchange Command Error...
From: mujin park <[email protected]>
To: [email protected]
Date: Mon, 28 Dec 2015 22:06:22 +0900
Hello.

i'm in trouble with Nozzle Exchange Device..

-------------------------------
devNozzleExchange.proto
----------------------------------
@writetimeout { disconnect; }
@replytimeout { disconnect; }
@readtimeout  { disconnect; }
@mismatch     { disconnect; }

ReplyTimeout = 1200;
#InTerminator = 92 114 92 110;
InTerminator = "\r\n";
OutTerminator = "\r\n";
#OutTerminator = 92 114 92 110;
#
# Measure current
#
GetRemoteSta {
    out "!50SWS";
    #out 33 53 48 83 87 83 92 114;
    #out 33 53 48 83 87 83 67 114;

    in "?50%1d";
    #in 63 53 48 37 49 100 92 114;
    ExtraInput = Ignore;
}
--------------------------------------------
devNozzleExchange.db
------------------------------------

#
# Reading
#
record(bi, "$(P)$(D):GetRemoteSta")
{
    field(DESC, "Local/Remote Status")
    field(DTYP, "stream")
    field(INP,  "@devNozzleExchange.proto GetRemoteSta $(PORT) $(A)")
    field(ZNAM, "Local")
    field(ONAM, "Remote")
    field(SCAN, ".2 second")
    field(FLNK, "$(P)$(D):GetCryoSolSta")
}
-----------------------------------------
ioc console....
-------------------------------------------
2015/12/28 21:38:31.714 192.100.100.20:4009 write 8
!50SWS\r\n
2015/12/28 21:38:31.915 192.100.100.20:4009 read 6
ER=1\r\n
2015/12/28 21:38:31.915 MX1_9 BL5C:NOZZLE:GetRemoteSta: Input "ER=1" mismatch after 0 bytes
2015/12/28 21:38:31.916 MX1_9 BL5C:NOZZLE:GetRemoteSta: got "ER=1" where "?50" was expected
----------------------------------------
Nozzle Device Description
------------------------------
-Local/Remote Switch status request
 
 state request = "! + 50 + SWS +Cr/Lf"
 return state = "? + 50 + x1 + Cr/Lf" ( 6 bite ascii receive)
 x1 = 0 : Local , x1 = 1 : Remote

------------------------------------------------------
i think the send command is wrong.

i want to send ascii code(convert  out "!50SWS" to ascii code)

how can i do it?

is it  .proto function?

is it  another solution?


Replies:
RE: Nozzle Exchange Command Error... Mark Rivers

Navigate by Date:
Prev: RE: Tech-talk Digest, Vol 9, Issue 397 Mark Rivers
Next: RE: Nozzle Exchange Command Error... Mark Rivers
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: Tech-talk Digest, Vol 9, Issue 397 Mark Rivers
Next: RE: Nozzle Exchange Command Error... Mark Rivers
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, 28 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·