This project has moved and is read-only. For the latest updates, please go here.

PowerCalculations

Dec 3, 2012 at 6:53 PM

I have created a power calculation using openPDC 1.5 RC1 1.5.166. The two output measurements are visible in SQL Server, but I cannot see any data in any way. This Historian does not display these output measurements, although other CALC measurements are visible in the historian (Dynamic Calculations are visable, as are alarms). I have also created alarms on the Power Calculation output measurements such that ANY value should be seen as an alarm, but no alarms are raised. I have created and seen raised alarms on Dynamic Calculations - they work as expected.

I could upload SQL Service views of the inputs, outputs, and the action adapter, if that would help. This page doesn't seem to have an upload mechanism...

Dec 3, 2012 at 9:26 PM

Are the new calculation output measurements enabled?

Dec 4, 2012 at 3:29 PM

yes, they are enabled. Right now I am fighting a different issue - see my latest 'Discussion' about failing openPDC Manager. Once I get that under control, I will revisit the Power Calculation.

Dec 5, 2012 at 3:05 PM

I am now running openPDC 1.5 RC (1.5.167), although results were identical with 'official' RC. My Power Calculator adapter looks correct, but no data is shown by the  historian.

Database data  for action adapter and measurements:

SELECT TOP 1000 [NodeID]
      ,[ID]
      ,[AdapterName]
      ,[AssemblyName]
      ,[TypeName]
      ,[ConnectionString]
      ,[LoadOrder]
      ,[Enabled]
      ,[NodeName]
  FROM [openPDC15].[dbo].[CustomActionAdapterDetail]
  where adaptername like 'POWER%'

I added form-feeds - no other edits

NodeID,ID,AdapterName,AssemblyName,TypeName,ConnectionString,LoadOrder,Enabled,NodeName
A4BAC1F3-4166-40F7-9D5C-BD55083C24F3,
4,
POWER#BE_CARVER726_01#L331_B_V#BE_CARVER726_01#L331_B_I,
PowerCalculations.dll,
PowerCalculations.PowerCalculator,
FramesPerSecond=30;
LagTime=3;
LeadTime=1;
InputMeasurementKeys={PPA:48;PPA:54;PPA:47;PPA:53};
OutputMeasurements={PPA:1613;PPA:1612};,0,1,Default

SELECT [CompanyID]
      ,[CompanyAcronym]
      ,[CompanyName]
      ,[SignalID]
      ,[HistorianID]
      ,[HistorianAcronym]
      ,[HistorianConnectionString]
      ,[PointID]
      ,[PointTag]
      ,[AlternateTag]
      ,[DeviceID]
      ,[NodeID]
      ,[DeviceAcronym]
      ,[DeviceName]
      ,[FramesPerSecond]
      ,[DeviceEnabled]
      ,[ContactList]
      ,[VendorDeviceID]
      ,[VendorDeviceName]
      ,[VendorDeviceDescription]
      ,[ProtocolID]
      ,[ProtocolAcronym]
      ,[ProtocolName]
      ,[SignalTypeID]
      ,[PhasorSourceIndex]
      ,[PhasorLabel]
      ,[PhasorType]
      ,[Phase]
      ,[SignalReference]
      ,[Adder]
      ,[Multiplier]
      ,[Description]
      ,[Subscribed]
      ,[Internal]
      ,[Enabled]
      ,[EngineeringUnits]
      ,[Source]
      ,[SignalAcronym]
      ,[SignalName]
      ,[SignalTypeSuffix]
      ,[Longitude]
      ,[Latitude]
      ,[ID]
  FROM [openPDC15].[dbo].[MeasurementDetail]
  where id in ('PPA:48', 'PPA:54', 'PPA:47', 'PPA:53', 'PPA:1613', 'PPA:1612')
  order by id;

CompanyID,CompanyAcronym,CompanyName,SignalID,HistorianID,HistorianAcronym,HistorianConnectionString,PointID,PointTag,AlternateTag,DeviceID,NodeID,DeviceAcronym,DeviceName,FramesPerSecond,DeviceEnabled,ContactList,VendorDeviceID,VendorDeviceName,VendorDeviceDescription,ProtocolID,ProtocolAcronym,ProtocolName,SignalTypeID,PhasorSourceIndex,PhasorLabel,PhasorType,Phase,SignalReference,Adder,Multiplier,Description,Subscribed,Internal,Enabled,EngineeringUnits,Source,SignalAcronym,SignalName,SignalTypeSuffix,Longitude,Latitude,ID
33,NEISO,New England ISO,74CC8A24-47DC-47BA-AA1D-6FE9F728218E,1,PPA,,1612,BE_CARVER726_01#L331_B_V#BE_CARVER726_01#L331_B_I#MW,,2,A4BAC1F3-4166-40F7-9D5C-BD55083C24F3,BE_CARVER726_01,Be_Carver726_01,30,1,NULL,NULL,NULL,NULL,1,IeeeC37_118V1,IEEE C37.118-2005,10,0,NULL,NULL,NULL,BE_CARVER726_01#L331_B_V#BE_CARVER726_01#L331_B_I#MW,0,1,MW Measurement for Voltage Device: BE_CARVER726_01 Voltage Phasor: L331_B_V +SV Current Device: BE_CARVER726_01 Current Phasor: L331_B_I +SI,0,1,1,,PMU,CALC,Calculated Value,CV,-98.600000,37.500000,PPA:1612
33,NEISO,New England ISO,86F28592-2C02-4398-AC7A-B4B0945DFF34,1,PPA,,1613,BE_CARVER726_01#L331_B_V#BE_CARVER726_01#L331_B_I#MVAR,,2,A4BAC1F3-4166-40F7-9D5C-BD55083C24F3,BE_CARVER726_01,Be_Carver726_01,30,1,NULL,NULL,NULL,NULL,1,IeeeC37_118V1,IEEE C37.118-2005,10,0,NULL,NULL,NULL,BE_CARVER726_01#L331_B_V#BE_CARVER726_01#L331_B_I#MVAR,0,1,MVAR Measurement for Voltage Device: BE_CARVER726_01 Voltage Phasor: L331_B_V +SV Current Device: BE_CARVER726_01 Current Phasor: L331_B_I +SI,0,1,1,,PMU,CALC,Calculated Value,CV,-98.600000,37.500000,PPA:1613
33,NEISO,New England ISO,77C65957-DAD2-4D77-804C-9BC6F437573D,1,PPA,,47,NEISO_BE_CARVER726_01-PM5:I,NULL,2,A4BAC1F3-4166-40F7-9D5C-BD55083C24F3,BE_CARVER726_01,Be_Carver726_01,30,1,NULL,NULL,NULL,NULL,1,IeeeC37_118V1,IEEE C37.118-2005,1,5,L331_B_I +SI,I,+,BE_CARVER726_01-PM5,0,1,NULL,0,1,1,Amps,Phasor,IPHM,Current Magnitude,PM,-98.600000,37.500000,PPA:47
33,NEISO,New England ISO,06184644-CE58-4B62-8D65-D2F5CB9F50F4,1,PPA,,48,NEISO_BE_CARVER726_01-PA5:IH,NULL,2,A4BAC1F3-4166-40F7-9D5C-BD55083C24F3,BE_CARVER726_01,Be_Carver726_01,30,1,NULL,NULL,NULL,NULL,1,IeeeC37_118V1,IEEE C37.118-2005,2,5,L331_B_I +SI,I,+,BE_CARVER726_01-PA5,0,1,NULL,0,1,1,Degrees,Phasor,IPHA,Current Phase Angle,PA,-98.600000,37.500000,PPA:48
33,NEISO,New England ISO,4DAAAB7E-9A23-4820-ACFC-D54BC86DA044,1,PPA,,53,NEISO_BE_CARVER726_01-PM8:V,NULL,2,A4BAC1F3-4166-40F7-9D5C-BD55083C24F3,BE_CARVER726_01,Be_Carver726_01,30,1,NULL,NULL,NULL,NULL,1,IeeeC37_118V1,IEEE C37.118-2005,3,8,L331_B_V +SV,V,+,BE_CARVER726_01-PM8,0,1,NULL,0,1,1,Volts,Phasor,VPHM,Voltage Magnitude,PM,-98.600000,37.500000,PPA:53
33,NEISO,New England ISO,3B0A1C4D-2A4A-4A4B-B214-06F86AD6BF54,1,PPA,,54,NEISO_BE_CARVER726_01-PA8:VH,NULL,2,A4BAC1F3-4166-40F7-9D5C-BD55083C24F3,BE_CARVER726_01,Be_Carver726_01,30,1,NULL,NULL,NULL,NULL,1,IeeeC37_118V1,IEEE C37.118-2005,4,8,L331_B_V +SV,V,+,BE_CARVER726_01-PA8,0,1,NULL,0,1,1,Degrees,Phasor,VPHA,Voltage Phase Angle,PA,-98.600000,37.500000,PPA:54
Dec 6, 2012 at 11:43 AM

I am now getting reasonable values for the  power  calculations. Not sure what changed, perhaps the newest version of openPDC 1.5 SP1 (RC) fixed it, or? Anyway, no problem at tjhis time.

Dec 6, 2012 at 11:47 AM

and my alarms on the power calculations (both MW and MVAR) are working!!! I am a happy programmer...

Dec 27, 2012 at 3:37 PM

Hi, I need some help with Power Stability Calculations. I have installed 1.5 sp1 (RC) and this is what I have done so far:

I have created 2 measurements. 1) PPA:873 Calculated Power and 2) PPA:874 Power Standard Deviation. I am not too sure what to put in Point Tag and Signal Reference. Currently I have copied and pasted these from voltage magnitude and current magnitude signals.

I have also created an action adapter. Name - POWER!STABILITY, Type - Power Stability: calculated power and stability for a synchrophasor device.

connection string: inputMeasurementKeys={PPA:763;PPA:761;PPA:762;PPA:760};FramesPerSecond=50;LagTime=0.5;LeadTime=0.5;outputMeasurements={PPA:873;PPA:874} 

What should be order of magnitude and angle values (phasor ids)? In the above the string the order is voltage mag, current mag, voltage angle, current angle. However, I did try other combinations.

The issue: I do get values against 873 and 874, however I suspect these are the values corresponding to the voltage magnitude and current magnitude. Also, I do not get any values against PPA:763 Voltage Magnitude and PPA:760 Current Magnitude.but i used to get before creating this adapter. So what have I done wrong? Your help will be appreciated. Thanks.