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  2016  <2017 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
<== Date ==> <== Thread ==>

Subject: RE: Question about string operation in epics db ?
From: Iain Marcuson <Iain.Marcuson@sydorinstruments.com>
To: lzf neu <lzfneu@live.com>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Mon, 17 Apr 2017 13:20:19 +0000

Have you tried using a Rule to change the foreground color?  I can change the foreground to something other than its default using a rule, but I cannot figure out the semantics of specifying a specific value to change on.

 

Iain.

 

From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of lzf neu
Sent: Monday, April 17, 2017 9:16 AM
To: tech-talk@aps.anl.gov
Subject: Question about string operation in epics db ?

 

Hi, 

 

I have a question to consult you.

 

PV name: "Global-second2_dword" is used to display 60 seconds countdown from PLC.

 

If the seconds countdown is less than 10, it displays a single digital in terminal. Now I want to add zero in the left of the single digital. eg.09,08,07,06,05,04,03,02,01,00.

 

Maybe string operation may solve the problem. I have tried  "scalcout" record, but epics displays the error message:

Record XXX is of unknown type "scalcout" and I have no idea how to write the db.

 

I have post the record in the following lines:  

 

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

record(ai, "Global-Second")
{
    field(DTYP, "s7nodave")
    field(INP, "@s7_300 (PG=.2s) MW60")
    field(SCAN, "I/O Intr")
    field(FLNK, "Global-Second2_dword")
}

record(calc, "Global-Second2_dword")
{
        field(INPA, "Global-Second.VAL")
        field(CALC, "A/10")
}

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

Any help will be apprecieated and thanks in advance!

 

Zhefu


Replies:
答复: Question about string operation in epics db ? lzf neu
References:
Question about string operation in epics db ? lzf neu

Navigate by Date:
Prev: Question about string operation in epics db ? lzf neu
Next: 答复: Question about string operation in epics db ? lzf neu
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
Navigate by Thread:
Prev: Question about string operation in epics db ? lzf neu
Next: 答复: Question about string operation in epics db ? lzf neu
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
ANJ, 17 Apr 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·