Re: [foxboro] Printing the contents of a calc block

  • From: stan <stanb@xxxxxxxx>
  • To: foxboro@xxxxxxxxxxxxx
  • Date: Mon, 10 Mar 2003 11:00:14 -0500

On Mon, Mar 10, 2003 at 08:29:41AM -0600, Winston Jenks wrote:
> 
> Stan,
> 
> I think a little icc script would do the trick for you.  I think the guys 
> at FeedForward have some nice  tools for remote administration. If not, 
> then you could hook up the icc driver to an IP port with inetd, then use 
> some Perl (or whatever) to send a few lines of icc driver commands to that 
> port.  Voila magically your CALC block steps come back.  I messed around 
> with this a while ago when the Calc Block Compiler was getting started.
> 
> Or (duh), forget the networking and pump this to 
> /opt/fox/ciocfg/api/iccdrvr.tsk
> 
> OPEN MYAW51 READ getcalcs
> GET MYCOMPND:MYBLOCK
> CLOSE
> EXIT
> 
> and your calc block steps come back.
> 
> You have to change MYAW51, MYCOMPND, and MYBLOCK to the name of your AW, 
> compound and block.  You can also put multiple GET commands between the 
> OPEN and CLOSE.
> 
> 
> 
> 
> >Is there a way I can print the contents (that is the steps) of a calc block
> >from the shell command line? Failing that is there a way to invoke the
> >control configurator itself from the shell, given that I have a working X
> >server on the other end of the ssh session?
> 

Cool, just what I was looking for. Looks like if I write a little shell
script wrapper, this can be generic.

Given that is there a place in the filesystem that I can look for the
existence of CALC block. I could then make the script slightly fancier, and
get a documentation toll for all the calc blcks on a node.

Thanks, again.

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                                                -- Benjamin Franklin
 
 
_______________________________________________________________________
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: