Generic functions to interact with WinCC-OA DB. More...
Functions | |
void | cpcGenericDpFunctions_setDeviceProperty (string sDeviceDpName, string propertyName, string propertyValue, dyn_string &exceptionInfo) |
string | cpcGenericDpFunctions_getDeviceProperty (string sDeviceDpName, string propertyName, dyn_string &exceptionInfo, string defaultValue="") |
Variables | |
const string | UN_CPC_DEVICE_PROPERTY_PREFIX = "PROP_" |
Generic functions to interact with WinCC-OA DB.
©Copyright CERN 2013 - all rights reserved
void cpcGenericDpFunctions_setDeviceProperty | ( | string | sDeviceDpName, | |
string | propertyName, | |||
string | propertyValue, | |||
dyn_string & | exceptionInfo | |||
) |
Save the device property for a given property name
sDeviceDpName | device name DP name | |
propertyName | property name | |
propertyValue | property value | |
exceptionInfo | error returned here |
References UN_CPC_DEVICE_PROPERTY_PREFIX.
Referenced by cpcConfigGenericFunctions_setParameters().
string cpcGenericDpFunctions_getDeviceProperty | ( | string | sDeviceDpName, | |
string | propertyName, | |||
dyn_string & | exceptionInfo, | |||
string | defaultValue = "" | |||
) |
Get the device property for a given key
sDeviceDpName | device name DP name | |
propertyName | property name | |
exceptionInfo | error returned here |
References UN_CPC_DEVICE_PROPERTY_PREFIX.
Referenced by CPC_AnaDig_FaceplateInitStatics(), CPC_AnaDig_WidgetInitStatics(), CPC_AnaDO_FaceplateInitStatics(), CPC_AnaDO_WidgetInitStatics(), CPC_Analog_FaceplateInitStatics(), CPC_Analog_WidgetInitStatics(), CPC_AnalogAlarm_FaceplateInitStatics(), CPC_ControllerConfig_setCustomConfig(), CPC_DigitalAlarm_FaceplateInitStatics(), CPC_Local_FaceplateInitStatics(), CPC_MassFlowController_FaceplateInitStatics(), CPC_MassFlowController_WidgetInitStatics(), CPC_OnOff_FaceplateInitStatics(), CPC_OnOff_WidgetInitStatics(), CPC_ProcessControlObject_FaceplateInitStatics(), CPC_ProcessControlObject_WidgetInitStatics(), CPC_WordStatus_WidgetInitStatics(), cpcButton_AllowRestart(), and cpcButton_ProcessControlObject_AllowRestart().
const string UN_CPC_DEVICE_PROPERTY_PREFIX = "PROP_" |
Prefix for property fields.
Device may contain special field called PARAMETERS, having a set of key-value. In WinCC-OA those params will be saved with this prefix (UN_CPC_DEVICE_PROPERTY_PREFIX+key -> value) in the device configuration (available by 'Device configuration' right-click menu's item).
Referenced by CPC_ControllerConfig_setCustomConfig(), cpcExportGenericFunctions_getParameters(), cpcGenericDpFunctions_getDeviceProperty(), and cpcGenericDpFunctions_setDeviceProperty().