Re: [foxboro] Starting a scripts

  • From: "Hicks, Gaylon F." <gfhicks@xxxxxxx>
  • To: "'foxboro@xxxxxxxxxxxxx'" <foxboro@xxxxxxxxxxxxx>
  • Date: Tue, 23 Apr 2002 16:28:31 -0400

This is the ugly sledgehammer approach, but it is free.  

You can set up a script that endlessly cycles through checking you boolean
input, and branch if TRUE.  The example script below runs on a PW, so I had
to use the standard omget and omset (I think).  If you can, I would use
omsetimp and omgetimp instead.  Also, this will probably only work if you
can live with checking the boolean no faster than about every 20-30 seconds,
and you don't have to worry about catching intermittent signals of less than
your script cycle time.  You can get around the intermittent signal problem
(if this suits your needs) by setting up a flip-flop in a logic block, and
having your monitored boolean set the flip-flop, and your script reset it.
And you probably will want to set this script to start on bootup.  

Ugly, definitely not elegant, but functional.  

Good luck,
Gaylon Hicks
TVA - Browns Ferry Nuclear Plant

**********************************************************
#!/bin/sh
# -- This program will check the RFWCS trouble alarm output and, when TRUE
# -- (in alarm) automatically reset the alarm 240 seconds later.
# -- The AlmReset process id (PID) is written to the file AlmReset.PID
#
# Written by Gaylon Hicks, 09/30/97
#
echo $$ > /usr/applic/AlmReset.PID 
while test "TRUE"
do
 if test "`/usr/fox/bin/tools/omget RXLVL:1CO012.IN_8 | grep TRUE`"
 then
  sleep 240
  /usr/fox/bin/tools/omset -b F RXLVL:1CO012.IN_8
  echo ">>>> RFWCS Trouble Alarm Auto Reset - `date` <<<<" | lp -dLP01
  echo ">>>> RFWCS Trouble Alarm Auto Reset - `date`" >>
/usr/applic/AlmReset.log
 fi 
  sleep 60
done
*****************************************************************


-----Original Message-----
From: Scott, Walter [mailto:wscott@xxxxxxxxx]
Sent: Tuesday, April 23, 2002 8:33 AM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] Starting a scripts 



I would like to start a script  when a cin goes high is there a way to do
this.

Walter Scott
Birmingham Water Works 
wscott@xxxxxxxxx
205-254-0796

 
 
_______________________________________________________________________
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:             //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:             //www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: