Re: [foxboro] possible to directly get source, rather than point value?
- From: "William C Ricker" <wcricker@xxxxxxxxxxxxxxx>
- To: <foxboro@xxxxxxxxxxxxx>
- Date: Mon, 25 Mar 2002 09:33:13 -0500
"... the source of a connection? ... is there a way to
determine this from the command line, without parsing
iccprt output?"
How about using 'dbvu' ?
The following script is one thats been worked out to do
just that.
Its called 'ciosource'.
Call as :
ciosource CPLBUG COMPOUND_NAME BLOCK_NAME PARAM
it returns either
Source entry of COMPOUND_NAME:BLOCK_NAME.PARAM
or
Contents of the error file built internally. In this
case, it also exits with exit code 1.
This script requires the Map File and Image name in the 'dbvu' command
and that is specific to the particular model of CP. (in this script
the CP30 is used). See the 'dbvu' help text.
It has not been tested very much. It does work when everything
specified actually exists, things like CP, Compound, Block, Map File
and so forth. It has not been tested when any of these are not there.
Also, program 'dbvu' is in directory /opt/fox/bin/tools. We keep this
directory in our default PATH, but this is not the case in the standard
system. You probably need to specify the path on that line in the script.
Finally, when you type it in, pay particular attention to the forward
and back single quotes.
Good Luck,
William C. Ricker
FeedForward, Inc.
Marietta, GA, USA
wcricker@xxxxxxxxxxxxxxx
770-426-4422
#######################################################################
#! /bin/sh
exec 2>$$.err
cd /usr/fox/sp/files
P=`/opt/fox/bin/tools/dbvu -t -CDB${1}.UC -MOS1C30.map -IOS1C30 $2 $3 | awk
'$1==PRM {print $5}' PRM=$4 - `
if [ "$P" = "" ] ; then
cat $$.err >&2
rm $$.err
else
echo $P
rm $$.err
exit 1
fi
#######################################################################
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
foxboro mailing list: http://www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
- Follow-Ups:
- [foxboro] ControlLogix - again.
- From: Glen Bounds
- References:
- [foxboro] possible to directly get source, rather than point value?
- From: Turner, Jason
Other related posts:
- » Re: [foxboro] possible to directly get source, rather than point value?
- [foxboro] ControlLogix - again.
- From: Glen Bounds
- [foxboro] possible to directly get source, rather than point value?
- From: Turner, Jason