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  <20142015  2016  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  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: protocol file error: Field width out of range
From: Ralph Lange <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Tue, 03 Jun 2014 11:37:30 +0200
In StreamDevice input and output strings, '%' defines the start of a format converter specification.
If you want to send the percentage character, use '\%'.

~Ralph

http://epics.web.psi.ch/software/streamdevice/doc/


On 03/06/2014 11:16, 张德敏 wrote:
Dear all,
    I am just trying StreamDevice2.3 to control our equipment ADAM4117. But I met some problems, the ioc will crash quickly after starting:
[fel@localhost iocAPP]$ ../../bin/linux-x86/APP st.cmd
#!../../bin/linux-x86/APP
## You may have to change APP to something else
## everywhere it appears in this file
#< envPaths
epicsEnvSet(STREAM_PROTOCOL_PATH,"../../db")
## Register all support components
dbLoadDatabase("../../dbd/APP.dbd",0,0)
APP_registerRecordDeviceDriver(pdbbase)
drvAsynIPPortConfigure("G7","192.168.127.253:5008",0,0,0)
## Load record instances
##dbLoadRecords("../../db/PSM.db","user=fel")
##dbLoadRecords("../../db/pump-2.db","user=fel")
dbLoadRecords("../../db/pump-4.db","user=fel")
 
iocInit()
Starting iocInit
############################################################################
## EPICS R3.14.9- $R3-14-9-pre1$ $2006/11/20 21:09:36$
## EPICS Base built Mar 21 2013
############################################################################
2014/06/03 16:38:24.770 'ADAM4117.proto' line 6: Field width 1090600 out of range
2014/06/03 16:38:24.770 'ADAM4117.proto' line 6: in format string: "%0001090600"
2014/06/03 16:38:24.770 'ADAM4117.proto' line 6: in command 'out'
2014/06/03 16:38:24.770 'ADAM4117.proto' line 6: in protocol 'setting'
2014/06/03 16:38:24.770 while compiling protocol 'setting' for 'ADAM4117:set'
2014/06/03 16:38:24.770 ADAM4117:set: Protocol parse error
2014/06/03 16:38:24.770 ADAM4117:set: Record initialization failed
Bad init_rec return value  PV: ADAM4117:set ao: init_record
iocInit: All initialization complete
## Start any sequence programs
#seq sncAPP,"user=fel"
epics>
 

ADAM4117.proto
#This is ADAM4117 protocol file
Terminator=cr ;
setting{
out "%0001090600";
}
getting {
out "#010";
in "%c";
}
 

Can anybody give me some hints? thanks a lot for your help.





References:
protol file erro: Field width out of range 张德敏

Navigate by Date:
Prev: protol file erro: Field width out of range 张德敏
Next: Device Support for Advantech PCI card "PCI 1758UDO" shakeel ahmad
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: protol file erro: Field width out of range 张德敏
Next: Device Support for Advantech PCI card "PCI 1758UDO" shakeel ahmad
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·