Re: [foxboro] AIM historian bulk modify with histbatch

  • From: abech@xxxxxxxxxxxx
  • To: foxboro@xxxxxxxxxxxxx
  • Date: Wed, 22 Jun 16 21:46:13 +0000

 
Hi Joe,

Go in the historian tool in the right menu.

Then a= t the top there is a button there called BULK AIM CONFIGURATION (or
somethi= ng like that - sorry do not have the software in front of me)

That t= ool will allow you to create inp files to ADD DELETE and MODIFY AIM
Records= 

Let me know if you find and and it worked as you needed

Than= ks

Ricardo
=E2=80=8B

Em Qua 22/06/16 17:17, Currano, Joe Jo= seph.Currano@xxxxxxx escreveu:Was
that added in 3.0? I didn= 't see it in Foxray but we are at version 2.5
still. Or was I looking in th= e wrong place?

-Joe

On Jun 22, 2016, at 1:59 PM, "Maks Wilde"= <makswilde@xxxxxxxxx> wrote:

Hi Joe,
You can also use Foxr= ay / System Auditor to bulk modify your AIM
historian.
It has very usefu= l features such as updating descriptions, ranges, units
from the CP data= base. The tool generates a .inp file for you to load at
the
end.

= Best Regards,

Maks Wilde

On Mon, Jun 20, 2016 at 4:37 PM= , Tom Vandewater <tjvandew@xxxxxxxxx>
wrote:

Joe,
= >Thanks for taking the time to write this up for all to use now, or at> a
future time. I always search online for things that have been sen= t to the
list and this will now be available, along with your name,= so me, or
others
may ask future questions about it. I want to take= time to clean up an AIM
historian database but it will be awhile b= efore I get a chance.
When people take the time to explain what the= y have learned, as you
have done, it makes this list so much more v= aluable today, and in the
future.
Thanks again.

= >Tom VandeWater
Control Conversions, Inc.

&g= t; On Jun 20, 2016, at 9:05 AM, "Currano, Joe"
<Joseph.Currano@xxxxxxx&g=t;
wrote:

I did some experimenting with= histcbatch and here are some notes for
the benefit of others (or a= m I the only one who didn't know how it
works?).
The way Ignacio ga= ve works perfectly, but there is some flexibility which
is helpful = too. I would like to suggest to the Schneider Electric folks
that t= hey add a section in B0193YL with a step-by-step "how-to" and some
= examples for modifying points in an existing historian, using histbatch
and= 
histcbatch.
While the AIM Historian User's Guide mainl= y deals with creating a
historian using histbatch and histcbatch, a= nd focuses on the GUI for
modifications, it does have this vague no= te (p. 81 in B0193YL-G): "To
facilitate re-use of an .inp file for = making changes to a configuration,
histbatch avoids recreating comp= onents that already exist in the
instance."
It also has lists of co= mponent attributes (parameters of real time points
and others) in A= ppendix E which show that the MOD action is allowed
(without explan= ation). I also found a document on AIM*AT 3.0.2 "Problems
Fixed" wh= ich says CREATE commands are automatically interpreted as MOD if
th= e KEY exists.
I tested it out, and indeed you can take the .inp= file created by
Save Configuration, edit any point(s), and use his= tcbatch to load the
whole
thing back in, and it will not change any= thing but the points you
modified.
It takes more time to run, so no= t the most efficient way, but it works.
(I
was afraid running it th= is way might initialize the whole historian, but
fortunately, it do= es not.) No need to remove anything from the file.
Further, the= format can be simpler than Ignacio's, although depending
how you a= re setting it up it might be easier to use the "long format" as
he
= did. If you use the .inp file, it already has the short format, but
include= 
every point. If you know all you need to change is the TYPE parame= ter for
a
whole bunch of points (which is my case), you can generat= e just those
lines
in a spreadsheet (Foxray output helps here), sav= e them to a text file,
and
use that as your input. The document has= to start with the "0 CEATE
SESSION" command, and subsequent lines = of command start with a "1", and
the
document ends with a "1 DEL SE= SSION" command to end the session.
The .inp file generated by h= istsave and the cfgcmd.inp file in
/opt/aim/examples help for getti= ng the syntax right.
-Joe

Below is an e= xample of modifying points to make them into BOOLEAN type
if they w= ere incorrectly created as FLOAT, then clear the engunits and
modif= y fastfreq. It should work with CREATE and PUT instead of GET and
MOD
&g= t; but if you are generating the file yourself rather than using the
histsa= ve
.inp file, it's probably safer to use GET/MOD so it doesn't crea= te a new
point if you misspell something (I didn't actually test th= at). The # sign
denotes comments of course, looks like histsave cre= ates them with the
index
numbers, I assume just to make it easy to = read/search the .inp file.

<<File starts her= e >>
0 CREATE SESSION hist02 SESKEY hist02 rw

# 1
1 GET POINT COMPOUND:BLOCK.PARAM
1= MOD POINT COMPOUND:BLOCK.PARAM TYPE BOOLEAN
ENGUNITS =3D
&g= t;> FASTFREQ =3D 10
HIRANGE =3D 1
# 2
&gt= ; 1 GET POINT COMPOUND2:BLOCK2.PARAM2
1 MOD POINT COMPOUND2:BLO= CK2.PARAM2 TYPE BOOLEAN
ENGUNITS =3D
FASTFREQ =3D 1= 0
HIRANGE =3D 1

1 DEL SESSION hist02 SE= SKEY hist02 commit exit
<<File ends here >

_____________________________________________________________= ____________
This mailing list is neither sponsored nor endorsed by= Schneider Electric
(formerly The Foxboro Company). Use the info yo= u obtain here at your own
risks. See the disclaimer at www.thecassa= ndraproject.org/disclaimer.html

foxboro mailing list: http:= //www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-reque= st@xxxxxxxxxxxxx?subject=3Djoin
to unsubscribe: mailto:foxboro-requ= est@xxxxxxxxxxxxx?subject=3Dleave

--
Confidentialit= y Warning: This message and any attachments are intended
only for t= he use of the intended recipient(s), are confidential, and may
be
p= rivileged. If you are not the intended recipient, you are hereby
notified>that any review, retransmission, conversion to hard copy, copying,>
circulation or other use of this message and any attachments is stri= ctly
prohibited. If you are not the intended recipient, please noti= fy the
sender
immediately by return e-mail, and delete this message= and any attachments
from your system.




_________= ________________________________________________________________
This ma= iling list is neither sponsored nor endorsed by Schneider Electric
(form= erly The Foxboro Company). Use the info you obtain here at your own
risk= s. See the disclaimer at www.thecassandraproject.org/disclaimer.html
foxboro mailing list: //www.freelists.org/list/foxboro
to subscrib= e: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Djoin
to unsubscribe: m= ailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave




____= _____________________________________________________________________
Th= is mailing list is neither sponsored nor endorsed by Schneider Electric
= (formerly The Foxboro Company). Use the info you obtain here at your
ownrisks. See the disclaimer at www.thecassandraproject.org/disclaimer.html
foxboro mailing list: //www.freelists.org/list/foxboro
to sub= scribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Djoin
to unsubscri= be: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave



 
 
_________________________________________________________________________
This mailing list is neither sponsored nor endorsed by Schneider Electric
(formerly The Foxboro Company).  Use the info you obtain here at your own
risks.  See the disclaimer at 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: