Re: [foxboro] how to omset STRING block from dmcmd
- From: "Johnson, Alex (Foxboro)" <ajohnson@xxxxxxxxxxx>
- To: foxboro@xxxxxxxxxxxxx
- Date: Wed, 26 Jan 2005 20:28:02 -0500
Display Manager or FoxView
If FoxView, which release?
The alias function in FV will probably be the simplest solution to your
problem, i.e., it allows you to build quite complicated generic overlays.
If you need to set a string C:B.P, do this:
dmcmd run /opt/fox/bin/tools/omsetimp -s "<value>" C:B.P
where
<value> is the string value to set. If it holds blanks, use the quotes
shown. Otherwise, they are optional.
C:B.P is the parameter to change.
Normally, this line is placed in a script with other lines.
You have two types of scripts: Shell Scripts and DM scripts
DM Scripts
dmcmd script
dmcmd run /opt/fox/bin/tools/omsetimp -s $P8 C:B.P
or something similar
Alternatively, you have a Shell Script
Assume the script is myScript and it is stored in /opt/MyScripts. It should
read something like:
#!/bin/sh
mkdir -p /opt/MyScripts/logs
LOG=/opt/MyScripts/logs/`basename $0`
exec >$LOGS 2>&1
DMNAME=$1
VALUE="$2"
CBP="$3"
/usr/local/pref -$DMNAME DMCMD "Setting $CBP"
/opt/fox/bin/tools/omsetimp -s "<value>" C:B.P
You would invoke the script as:
dmcmd run /opt/MyScripts/myScript $DMNAME "<value>" C:B.P
Regards,
Alex Johnson
Invensys Process Systems
Invensys Systems, Inc.
10707 Haddington
Houston, TX 77043
713.722.2859 (voice)
713.722.2700 (switchboard)
713.932.0222 (fax)
ajohnson@xxxxxxxxxxx
-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On
Behalf Of Liptock, Sheri A - Eastman
Sent: Wednesday, January 26, 2005 5:16 PM
To: foxboro@xxxxxxxxxxxxx
Subject: Re: [foxboro] how to omset STRING block from dmcmd
OOPS, should have mentioned that "=3D P8 string" works to store the =
string
in the P8 variable. But because I have 20 tanks on one display then I
cannot use P8 to subsequently display/update the graphic -- because all
20 tanks go to the same string (ie, product name) which is wrong. But I
do have 20 STRING blocks. So I tried to send the contents of P8 to a
specific STRING.VALUE, but not working.
-----Original Message-----
From: Liptock, Sheri A - Eastman=20
Sent: Wednesday, January 26, 2005 4:32 PM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] how to omset STRING block from dmcmd
Hi,
Need action of an object to set the .VALUE of a string block.
"=3D3D" or "subst" DO NOT appear to work. =3D20
However omset from $prompt does, but would prefer dmcmd to set the
string.
Please help, anyone. Thanks very much. I have talked with several at
TAC and they proposed the omset script.
=20
=20
_______________________________________________________________________
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
=20
foxboro mailing list: http://www.freelists.org/list/foxboro
to subscribe: =
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Djoin
to unsubscribe: =
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave
=20
_______________________________________________________________________
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
_______________________________________________________________________
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
Other related posts: