Re: [foxboro] omget
- From: "Murray, Steve" <SMurray@xxxxxxxxxx>
- To: "'foxboro@xxxxxxxxxxxxx'" <foxboro@xxxxxxxxxxxxx>
- Date: Tue, 8 Apr 2003 11:43:37 -0700
Hi Brian,
Sure, but some people recommend not using omget/omset :-)
This is a snippet from a csh script:
#!/bin/csh
# YTNS is a variable that is loaded with the current value of the shift
total tons
# get yesterday's total tonnage from I/A (the following is ALL ONE LINE)
/opt/fox/bin/tools/omgetimp PRODUCTION:FILTONS_DAY.RO01
set YFTNS=`/opt/fox/bin/tools/omgetimp PRODUCTION:FILTONS_DAY.RO01 | awk
'{printf("%d", $3)}'`
# Different line . . .
# set a shared memory variable to new average (shared variable must already
exist!!!)
/opt/fox/bin/tools/omsetimp -v -f $NFAVG FILTONAVG
# verify shared memory variable set to new average
set NEWFTONAVG=`/opt/fox/bin/tools/omgetimp FILTONAVG | awk '{print $3}'`
echo "New FILTONAVG =" $NEWFTONAVG
Steve Murray
Asarco
-----Original Message-----
From: Brian Bates [mailto:batesb@xxxxxxxxxxx]
Sent: Tuesday, April 08, 2003 11:34
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] omget
Hi all.
Is possible to use the output from OMGET within a shell script?
I want to use OMGET to check a boolean output of a CALC block , and if it
is true, then use OMSET to set a real input.
-Thanks in advance.
Brian Bates
Bowater Inc.
Thunder Bay, ON
_______________________________________________________________________
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 e-mail and any files transmitted with it are the property of Americas
Mining Corporation and/or its affiliates, are confidential, and are intended
solely for the use of
the individual or entity to whom this e-mail is addressed. If you are not a
named recipient or otherwise have reason to believe that you have received this
message in error,
please notify the sender and delete this message immediately from your
computer. Any other use, retention, dissemination forwarding, printing or
copying of this e-mail is
strictly prohibited. Although this email and any attachments are believed to
be free of any virus or other defect that might affect any computer system into
which it is
received, and opened, it is the responsibility of the recipient to ensure that
it is virus free and no responsibility is accepted by Americas Mining
Corporation and/or its
affiliates for any loss or damage arising in any way from its use
This e-mail has been scanned and cleared by MailMarshal
www.marshalsoftware.com
*
_______________________________________________________________________
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] P0971PB CABLE CONFIGURATION
- From: Bismarck Alban
Other related posts:
- » Re: [foxboro] omget
- » Re: [foxboro] omget
- » Re: [foxboro] omget
- » Re: [foxboro] omget
- » Re: [foxboro] omget
- » Re: [foxboro] omget
- » Re: [foxboro] omget
- » Re: [foxboro] omget
- [foxboro] P0971PB CABLE CONFIGURATION
- From: Bismarck Alban