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: RE: Stream device problem with redirection in @mismatch
From: Mazanec Tomáš <[email protected]>
To: Růžička Jan <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 1 Apr 2015 22:22:06 +0000
Hi Jan

Could you provide ioc shell output with ioc start up and the error messages?

It is usually very handy if asyn trace output is included. To do so, put these :

asynSetTraceIOMask("$(PORT)",0,4)
asynSetTraceMask("$(PORT)",0,9)

into you startup script before iocInit().


Tomas


________________________________________
Od: [email protected] [[email protected]] za uživatele Růžička Jan
Odesláno: 1. dubna 2015 15:51
Komu: [email protected]
Předmět: Stream device problem with redirection in @mismatch

Hi all,
I have a device that sends a response on command
"on/off" (requested value) or "INTERLOCK").
I use a @mismatch exception handler and redirection to record in
order to catch this "INTERLOCK" string. After that I turn on or off the
LED widget
(Interlocked or Non-Interlocked). When I started IOC it gave me a buffer
overflow.
Buffer overflow is appeared after adding arg: (\$2).

DB and proto file are following:


DB:


# requested value laser state
record(bi, "$(device):StatEnable")
{
     field(DESC, "Laser Enabled")
     field(DTYP, "stream")
     field(INP,  "@fibotecLtbis.proto
get_enable($(channel),$(device):StatEnableInterlock) $(port)")
     field(SCAN, "1 second")
     field(ZNAM, "Off")
     field(ONAM, "On")
     field(PINI,"YES")

}
#makro
#channel=1
#device=name:ch1

#
#Catching INTERLOCK message


record(bi, "$(device):StatEnableInterlock")
{
     field(DESC, "Laser Enabled")
     field(ZNAM, "INTERLOCK")
     field(ONAM, "Ok")
     field(VAL, "1")
     field(PINI,"YES")

}

Proto file:

get_enable  { out "get ch\$1 status"; in "get ch\$1 status\r\r\n =
%{off|on } ";
@mismatch {in "get ch\$1 status\r\r\n%(\$2){INTERLOCK}";}}


Thanks Jan


Replies:
RE: Stream device problem with redirection in @mismatch ruzickaj
References:
Stream device problem with redirection in @mismatch ruzickaj

Navigate by Date:
Prev: Re: STAT=SCAN recover Jon Nielsen
Next: data of modbus write function didn't updated automatically JaeRyong Seo
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: Stream device problem with redirection in @mismatch ruzickaj
Next: RE: Stream device problem with redirection in @mismatch ruzickaj
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, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·