You are on page 1of 7

23/06/2015

BasicConfigurationsforCEMv1.2

TechNote818

BasicConfigurationsforCEMv1.2
AllTechNotes,TechAlertsandKBCDdocumentsandsoftwareareprovided"asis"withoutwarrantyofanykind.SeetheTermsofUseformoreinformation.
Topic#:002608
Created:January2012

Introduction
ThistechnoteprovidesstepbystepproceduresforCEM1.2quickconfigurationtasksafterinstallingCorporateEnergyManagement(CEM)version
1.2forthefirsttime.
ImportingCEMv1.2ObjectsIntotheGalaxy
CreatingtheCEMDatabase
ImportingCEMReportsintoWonderwareInformationServer(WIS)
Note:ThistechnoteassumesthatyouareveryfamiliarwithWonderwaresoftwaresuchasInformationServer(WIS),ApplicationServer(WAS),
InTouch,HistorianServer,andHistorianClient.
YoualsoneedtobeknowledgeableaboutMSSQLServer,InternetExplorer(IE),andrelatedOperatingSystem.Ifyouhaveanyissueor
questionsaboutMicrosoftproducts,pleasecontactMicrosoftTechnicalSupportatwww.microsoft.com.

ApplicationVersions
WonderwareInformationServer(WIS)v4.0
CorporateEnergyManagement(CEM)v1.2
WonderwareApplicationServer3.1SP3
InTouchv10.0SP3
Windows2008
MicrosoftSQLServerv2005orv2008(32bit)

ImportingCEMv1.2ObjectsIntotheGalaxy
AfterinstallingCEMv1.2,youneedtoimportCEMobjectsthatcomewiththeCEMsoftwareintotheApplicationServer.
1. OpentheArchestrAIDEandconnectittoaCEMgalaxy.
2. ClickGalaxy>Import>Object(s).

FIGURE1:IMPORTCEMOBJECT
3. BrowsetothepackagefileCEMv1_2.aaPKGinoneofthefollowinglocations:
IfyouareinstallingCEMon32bitWindowsOperatingSystem,thepackagefileCEMv1_2.aaPKGisinthefollowingfolder:
C:\ProgramFiles\Wonderware\CorporateEnergyManagementApplication\AppObjects
IfyouareinstallingCEMona64bitWindowsOperatingSystem,thepackagefileCEMv1_2.aaPKGisinthefollowingfolder:
C:\ProgramFiles(x86)\Wonderware\CorporateEnergyManagementApplication\AppObjects
4. ClickOpentoimportthepackage.
5. OntheImportPreferencesdialogbox,acceptalldefaultoptions(thisisthefirsttimeyou'veimportedtheobjects).

https://gcsresource.invensys.com/support/kbcd/html/1/t002608.htm

1/7

23/06/2015

BasicConfigurationsforCEMv1.2

FIGURE3:DEFAULTOBJECTIMPORTOPTIONS
6. ClickOKtoproceedwiththeimport.

FIGURE4:IMPORTAUTOMATIONOBJECTS
TheimportprovidestwonewTemplateToolsets:CorporateEnergyManagementintheTemplateToolbox,andCorporateEnergy
ManagementintheGraphicToolbox.

FIGURE5:CEMTEMPLATETOOLBOXOBJECTS

https://gcsresource.invensys.com/support/kbcd/html/1/t002608.htm

2/7

23/06/2015

BasicConfigurationsforCEMv1.2

FIGURE6:CEMGRAPHIC TOOLBOXOBJECTS
Note:AfterconfiguringtheCEMobjectsandinstantiatingseveralCEMMeterandEventobjects,itisnecessarytolicensethem.Youcan
downloadtheCEMLicensingGuidehere.

ConfiguringtheCEMDatabase
BecausetheCEMdatabaseisnotcreatedbyinstallingCEM,youmustcreatetheCEMdatabasethatstoresmetersandeventdata.
1. FromtheTemplateToolbox,expandtheCorporateEnergyManagementtoolset.RightclickoneachofthefiveCEMobjectsandselectNew
>DerivedTemplate.Renamethederivedobjectstosomemeaningfulnamesfortheproject.Inthisexample,wewilladdaprefixMyin
frontofeachofthederivedCEMobjects.
2. InordertocreatethenewCEMdatabase,doubleclickonthederivedtemplateMyCEMConfigurator.TheDatabasesubtabappearsunderthe
GeneraltabofthederivedtemplateisusedtoconfigureCEMsconnectionwithanexistingdatabaseortocreateanewenergydatabasefor
theconnection.
Note:TheMyCEMConfiguratorderivedtemplateisnotdeployed.Thistemplateismainlyusedtocreateanewenergydatabaseorestablisha
connectionwithanexistingdatabase,andtostoretheconnectioninformation.
3. TypethecomputernamewheretheCEMdatabaseresidesintheServernamefield.
4. TypethenewDatabasename.Inthisexample,thedatabasenameisMyCEMDB.
5. SelecttheAuthenticationmode.Inthistest,weuseSQLServerauthenticationmodewithusernamesaandthecorrespondingpassword.

https://gcsresource.invensys.com/support/kbcd/html/1/t002608.htm

3/7

23/06/2015

BasicConfigurationsforCEMv1.2

FIGURE7:SQLSERVERAUTHENTICATIONMODE ANDSAUSERNAME+PASSWORD
6. ClickOKtocreatetheCEMDatabase.
7. ClickTestConnectiontomakesuretheconnectionissuccessful.

FIGURE8:DATABASECONNECTION ISSUCCESSFUL
8. WhentheCEMdatabaseiscreatedsuccessfully,Saveandcheckintheobject.MyCEMDBdatabaseisshownintheMicrosoftSQLServer
ManagementStudio.

https://gcsresource.invensys.com/support/kbcd/html/1/t002608.htm

4/7

23/06/2015

BasicConfigurationsforCEMv1.2

FIGURE9:MYCEMDB INMSSQLSERVERMANAGEMENTSTUDIO

ImporttheCEMReportsintoWonderwareInformationServer(WIS)
SinceCEMv1.2supportsbothSQLServer2005andSQLServer2008(fortheCEMdatabases),theinstallationofCEMv1.2providesaseparateset
ofRDLfilesforeachversionoftheSQLServer.Therefore,youwillneedtoselectthecorrectSQLScript,dependingontheSQLServerversion.
ExecutethescriptagainsttheCEMDatabasetoaccommodatethetargetedSQLversionoftheCEMreports.
1. EnsurethatthefeatureArchestrAReportingisinstalledaspartofyourWISimplementation.CEMv1.2dependsonthisfeaturetoimport
theCEMReportsintotheWISportal.
2. OpenSQLServerManagementStudioandconnectittotheDatabaseEngine,thenselectyourCEMDatabase(MyCEMDBinthisTechNote).
3. OpentheCEMSQLScriptthatcorrespondstoyourSQLServerversion.
ForSQLServer2008on32bitO/S:
[drive]:\ProgramFiles\Wonderware\WonderwareCorporateEnergyManagement
Application\Reports\CEM_2008\Reports\CEM_Data\Report_Preparel.sql
ForSQLServer2008on64bitO/S:
[drive]:\ProgramFiles(x86)\Wonderware\WonderwareCorporateEnergyManagement
Application\Reports\CEM_2008\Reports\CEM_Data\Report_Preparel.sql
ForSQLServer2005on32bitO/S:
[drive]:\ProgramFiles\Wonderware\WonderwareCorporateEnergyManagement
Application\Reports\CEM_2005\Reports\CEM_Data\Report_Preparel.sql
ForSQLServer2005on64bitO/S:
[drive]:\ProgramFiles(x86)\Wonderware\WonderwareCorporateEnergyManagement
Application\Reports\CEM_2005\Reports\CEM_Data\Report_Preparel.sql
4. Executetherightscriptandensurethattheitexecutedwithouterror.

FIGURE10:EXECUTE THECEMSQLSCRIPTSUCCESSFULLY
5. LaunchtheArchestrAReportsDatabaseConfigurationUtilitybyclickingStart>AllPrograms>Wonderware>InformationServer>
DeployReports.
6. Fillinthefields,referringtoFigure11(below)asareference.
YoucancustomizetheSDSTypeNameandDataSourceName

https://gcsresource.invensys.com/support/kbcd/html/1/t002608.htm

5/7

23/06/2015

BasicConfigurationsforCEMv1.2

EntertheCEMdatabasename(MyCEMDBinthistest)
ForSQLServer2008,youmustusetheProviderSQLNCLI10otherwiseusethedefaultproviderSQLNCLIforSQLServer2005.
7. FortheConfigurationFilefield,clickBrowsetoselectCEM_ReportsDeployConfig.xml.Itislocatedat[drive]:\ProgramFiles
(x86)\Wonderware\WonderwareCorporateEnergyManagementApplication\Reports\
Twofoldersareavailable:CEM_2005andCEM_2008.
Choosethe.configfilethatisappropriateforyourSQLServerversion.

FIGURE11:REPORTSDATABASECONFIGURATION
8. ClickDeploy.

FIGURE12:DEPLOYEDREPORTITEMSSUCCESSFULLY
9. ClickOK.
10. NowopentheWonderwareInformationServer(WIS)homepage,andexpandtheReportslinktoviewallthedeployedCEMreports.

https://gcsresource.invensys.com/support/kbcd/html/1/t002608.htm

6/7

23/06/2015

BasicConfigurationsforCEMv1.2

FIGURE13:CEMREPORTS INWIS
Clickthefollowingicontoviewthisfilein.pdfformat:

B.Nguyen
TechNotesarepublishedoccasionallybyWonderwareTechnicalSupport.Publisher:InvensysSystems,Inc.,26561RanchoParkwaySouth,LakeForest,CA92630.Thereisalso
technicalinformationonoursoftwareproductsatWonderwareTechnicalSupport.
Fortechnicalsupportquestions,sendanemailtowwsupport@invensys.com.

Backtotop
2015InvensysSystems,Inc.Allrightsreserved.Nopartofthematerialprotectedbythiscopyrightmaybereproducedorutilizedinanyformorbyanymeans,electronicor
mechanical,includingphotocopying,recording,broadcasting,orbyanyinformationstorageandretrievalsystem,withoutpermissioninwritingfromInvensysSystems,Inc.Termsof
Use.

https://gcsresource.invensys.com/support/kbcd/html/1/t002608.htm

7/7

You might also like