Create A Performance Equation Tag
Create A Performance Equation Tag
Equation Tag
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, mechanical, photocopying,
recording, or otherwise, without the prior written permission of OSIsoft, LLC.
Copyright 1995-2009 OSIsoft, LLC, 777 Davis St., Suite 250, San Leandro, CA 94577
Page 1
1.1
1.1.1
Description
Learn to use PI SMT (System Manager Tools) 3 to easily create a performance equation tag.
1.1.2
Objectives
1.1.3
Problem description
After a production meeting, it has been decided to manipulate raw data coming from
measurement instruments through calculation. The results will be stored on the PI server, so
the same results will be available to everyone. As you are the PI expert, you have been
assigned the responsibility to create the calculations on the PI server.
1.1.4
Approach
There are four raw data tags that must be manipulated. They are listed below.
Tag name
Description
Eng. units
Type
CDT158
Degree Celsius
Float32
CDM158
Reactor mode
State
Digital state
CDEP158
Kg
Int32
BA:PHASE.1
State
Float32
The CDT158 tag must be calculated to show an average of the value every 5 minutes. The
BA:PHASE.1 and CDM158 must be combined to show their value concatenated. Finally, the
CDEP158 and CDT158 tags must be used to calculate volume of ethylene produced every
hour.
To achieve your goal you will create 3 tags which will contain the results of these
calculations. Create these tags following the parameters given in the tables below.
SMT Tab
Value
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, mechanical, photocopying,
recording, or otherwise, without the prior written permission of OSIsoft, LLC.
Copyright 1995-2009 OSIsoft, LLC, 777 Davis St., Suite 250, San Leandro, CA 94577
Page 2
General
Name
CDT158.avg
Tag
General
Descriptor
Descriptor
General
Eng Units
Degree Celsius
Engunits
General
Point type
Float32
Pointtype
General
Point source
Pointsource
Equation
Equation
ExDesc
Scheduling
Scan class
Location4
Archive
Zero
Zero
Archive
Span
150
Span
Archive
Typical value
50
Typicalvalue
Archive
Compressing
On (1)
Compressing
Archive
Exception Deviation
Excdev
Archive
Compression Deviation
Compdev
SMT Tab
Value
General
Name
BA:STATUS.1
Tag
General
Descriptor
Descriptor
General
Point type
String
Pointtype
General
Point source
Pointsource
Equation
Equation
concat(digtext('CDM158'), text("
"), 'BA:PHASE.1')
No equivalent
this is done in
ExDesc
Scheduling
Event tag
BA:PHASE.1
No equivalent
this is done in
ExDesc.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, mechanical, photocopying,
recording, or otherwise, without the prior written permission of OSIsoft, LLC.
Copyright 1995-2009 OSIsoft, LLC, 777 Davis St., Suite 250, San Leandro, CA 94577
Page 3
Scheduling
Location3
SMT Tab
Value
General
Name
BA:Ethylene_Volume
Tag
General
Descriptor
Descriptor
General
Eng Units
m3
Engunits
General
Point type
Float32
Pointtype
General
Point source
Pointsource
Equation
Equation
ExDesc
Scheduling
Scan class
Location4
Archive
Zero
Zero
Archive
Span
300
Span
Archive
Typical value
50
Typicalvalue
Archive
Exception Deviation
0.1
Excdev
Archive
Compression Deviation
0.2
Compdev
*Equation: this equation is based on the Ideal Gas Law equation defined by PV = mRT/M where P is the pressure, V the
volume, m is the mass of product, R is the ideal gas constant, T the temperature and M the molecular weight of the
product. Temperature in Kelvin is obtained by adding 273.15 to the read value in Celsius.
Also, the PI performance Equation Scheduler startup file will be inspected at the start to
determine which scan classes to use for the 2 minute and 1 minute frequency required by the
exercise.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, mechanical, photocopying,
recording, or otherwise, without the prior written permission of OSIsoft, LLC.
Copyright 1995-2009 OSIsoft, LLC, 777 Davis St., Suite 250, San Leandro, CA 94577
Page 4
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, mechanical, photocopying,
recording, or otherwise, without the prior written permission of OSIsoft, LLC.
Copyright 1995-2009 OSIsoft, LLC, 777 Davis St., Suite 250, San Leandro, CA 94577
Page 5
1.1.5
Step-by-Step Instructions
1.
Go to the \PI\bin\ directory. Right-click on the pipeschd.bat file and select edit.
2.
Look for the following scan class (frequency of execution for calculation):
/f=00:01:00,00:00:00
/f=00:02:00,00:00:00
/f=00:00:30,00:00:00
The first frequency is the first item in the list, so /f=00:01:00,00:00:00; the second frequency
is the second item, so /f=00:02:00,00:00:00; the third one is the third item, so
/f=00:00:30,00:00:00.
3.
This first step is just to verify that the scan classes described below in fact exist. You do not need to
make any changes. Close the file
4.
5.
Connect to the appropriate PI Server by clicking on its check box on the Collectives and Servers
pane (PI-SERVER)
6.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, mechanical, photocopying,
recording, or otherwise, without the prior written permission of OSIsoft, LLC.
Copyright 1995-2009 OSIsoft, LLC, 777 Davis St., Suite 250, San Leandro, CA 94577
Page 6
1.
7.
Fill in the information in the form as shown below for the tag with the following attributes. The
Exdesc attribute is filled automatically with the use of Equation and Scheduling tab. The selection of
scan class for execution if there is one is done with the Scheduling tab. The equation and the
triggering tag are set with the Equation tab.
2.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, mechanical, photocopying,
recording, or otherwise, without the prior written permission of OSIsoft, LLC.
Copyright 1995-2009 OSIsoft, LLC, 777 Davis St., Suite 250, San Leandro, CA 94577
Page 7
SMT Tab
Value
General
Name
CDT158.avg
Tag
General
Descriptor
Descriptor
General
Eng Units
Degree Celsius
Engunits
General
Point type
Float32
Pointtype
General
Point source
Pointsource
Equation
Equation
ExDesc
Scheduling
Scan class
Location4
Archive
Zero
Zero
Archive
Span
150
Span
Archive
Typical value
50
Typicalvalue
Archive
Compressing
On (1)
Compressing
Archive
Exception Deviation
Excdev
Archive
Compression Deviation
Compdev
3.
8.
SMT Tab
Value
General
Name
BA:STATUS.1
Tag
General
Descriptor
Descriptor
General
Point type
String
Pointtype
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, mechanical, photocopying,
recording, or otherwise, without the prior written permission of OSIsoft, LLC.
Copyright 1995-2009 OSIsoft, LLC, 777 Davis St., Suite 250, San Leandro, CA 94577
Page 8
General
Point source
Pointsource
Equation
Equation
concat(digtext('CDM158'), text("
"), 'BA:PHASE.1')
No equivalent
this is done in
ExDesc
Scheduling
Event tag
BA:PHASE.1
No equivalent
this is done in
ExDesc.
Scheduling
Location3
4.
9.
SMT Tab
Value
General
Name
BA:Ethylene_Volume
Tag
General
Descriptor
Descriptor
General
Eng Units
m3
Engunits
General
Point type
Float32
Pointtype
General
Point source
Pointsource
Equation
Equation
'CDEP158158' * 8.314472 *
('CDT158' + 273.15) /
(28.05 * 200)
ExDesc
Scheduling
Scan class
Location4
Archive
Zero
Zero
Archive
Span
300
Span
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, mechanical, photocopying,
recording, or otherwise, without the prior written permission of OSIsoft, LLC.
Copyright 1995-2009 OSIsoft, LLC, 777 Davis St., Suite 250, San Leandro, CA 94577
Page 9
Archive
Typical value
50
Typicalvalue
Archive
Exception Deviation
0.1
Excdev
Archive
Compression Deviation
0.2
Compdev
*Equation: this equation is based on the Ideal Gas Law equation defined as PV = mRT/M where P is the pressure, V the
volume, m is the mass of product, R is the ideal gas constant, T the temperature and M the molecular weight of the
product.
5.
10. Click on the Save button to save this PI point.
11. Click on the Data section and then on the Archive Editor to visualize the results of the calculation
being processed. It may take up to 2 minutes before the interface detect the new points added.
12. Click on the Tag Search button to retrieve the created tag.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, mechanical, photocopying,
recording, or otherwise, without the prior written permission of OSIsoft, LLC.
Copyright 1995-2009 OSIsoft, LLC, 777 Davis St., Suite 250, San Leandro, CA 94577
Page 10
6.
13. Fill in the tag mask with the tag name created and click on the Search button.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, mechanical, photocopying,
recording, or otherwise, without the prior written permission of OSIsoft, LLC.
Copyright 1995-2009 OSIsoft, LLC, 777 Davis St., Suite 250, San Leandro, CA 94577
Page 11
14. When the tag is found, click on the Ok button to add the tag to the list to get the archived values.
15. Repeat the step 10 to 13 for the two other tags.
Executive Overview:
In executive overview you can see the completed solution by searching for the tags created in this lab
under the name Solution_ CDT158.avg, Solution_ BA:STATUS.1 and Solution_ BA:Ethylene_Volume. You
can review their configuration and search for archive values in SMT.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, mechanical, photocopying,
recording, or otherwise, without the prior written permission of OSIsoft, LLC.
Copyright 1995-2009 OSIsoft, LLC, 777 Davis St., Suite 250, San Leandro, CA 94577
Page 12