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

  • From: duc.do@xxxxxxxxxxxxxx
  • To: foxboro@xxxxxxxxxxxxx
  • Date: Mon, 10 Mar 2003 11:09:11 -0500

>Is thsi better than using iccdrvr.tsk, as another fine listmember sugested?

Six of one, half a dozen of the other. iccprt is a shell script utilizing
iccdrvr.tsk just like what Winston suggested.

Duc

-----Original Message-----
From: stan [mailto:stanb@xxxxxxxx]
Sent: Monday, March 10, 2003 11:02 AM
To: foxboro@xxxxxxxxxxxxx
Subject: Re: [foxboro] Printing the contents of a calc block

On Mon, Mar 10, 2003 at 09:39:46AM -0500, duc.do@xxxxxxxxxxxxxx wrote:
> 
> Stan,
> 
> Let's say you have a calc block named COMP01:CAL12345 in 01CP01, you can
run
> this shell script (as root) on an AW:
> 
> #!/bin/sh
> cd /opt/fox/ciocfg/api
> ./iccprt -p -n COMP01:CAL12345 -o /tmp/iccprt.out 01CP01
> nawk '{if ($1 == "NAME" || $1 == "DESCRP" || $1 ~ /STEP/) print $0
>        if ($1 ~ /M[012][0-9]/ && $3 != "0\.0")            print $0
>        if ($3 ~ /\:/ && $3 ~ /\./)                        print $0
>       }' /tmp/iccprt.out
> rm /tmp/iccprt.out
> 
> It'll print out all relevant connections, memory registers, and steps. The
> modifications needed to take the blockname and CP as command line
parameters
> are left as an exercise to those who are curious.
> 
nks, that looks neat.

Is thsi better than using iccdrvr.tsk, as another fine listmember sugested?

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                                                -- Benjamin Franklin


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.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:             //www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: