unCPC6
6.6.8
WinCC-OA implementation of UNICOS CPC
|
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="") |
bool | cpcGenericDpFunctions_doesDevicePropertyExist (string sDeviceDpName, string propertyName, dyn_string &exceptionInfo) |
dyn_string | cpcConfigGenericFunctions_getAssociatedDevices (string deviceDpName) |
string | cpcGenericDpFunctions_getMapping (string deviceDpName, string dpeName) |
Variables | |
const string | UN_CPC_DEVICE_PROPERTY_PREFIX = "PROP_" |
Generic functions to interact with WinCC-OA DB.
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 CPC_ProcessControlObject_setName(), cpcConfigGenericFunctions_setParameters(), and cpcExportGenericFunctions_updateConversionParameters().
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_AnalogInput_FaceplateInitStatics(), CPC_AnalogInput_WidgetInitStatics(), CPC_AnalogStatus_FaceplateInitStatics(), CPC_AnalogStatus_WidgetInitStatics(), CPC_ControllerConfig_setCustomConfig(), CPC_DigitalAlarm_FaceplateInitStatics(), CPC_DigitalParameter_WidgetAnimation(), CPC_Local_FaceplateInitStatics(), CPC_MassFlowController_FaceplateInitStatics(), CPC_MassFlowController_WidgetInitStatics(), CPC_OnOff_FaceplateInitStatics(), CPC_OnOff_WidgetInitStatics(), CPC_ProcessControlObject_FaceplateInitStatics(), CPC_ProcessControlObject_getName(), CPC_ProcessControlObject_WidgetInitStatics(), CPC_SteppingMotor_FaceplateInitStatics(), CPC_SteppingMotor_WidgetInitStatics(), CPC_WordStatus_FaceplateInitStatics(), CPC_WordStatus_WidgetInitStatics(), CPC_WordStatusConfig_setCustomConfig(), cpcButton_AllowRestart(), cpcButton_ProcessControlObject_AllowRestart(), cpcConfigGenericFunctions_alertWithMail(), cpcConfigGenericFunctions_setDeviceConfig(), and cpcGenericObject_addUnicosActionToMenu().
bool cpcGenericDpFunctions_doesDevicePropertyExist | ( | string | sDeviceDpName, |
string | propertyName, | ||
dyn_string & | exceptionInfo | ||
) |
Check if device property for a given key exist
sDeviceDpName | device name DP name |
propertyName | property name |
exceptionInfo | error returned here |
References UN_CPC_DEVICE_PROPERTY_PREFIX.
dyn_string cpcConfigGenericFunctions_getAssociatedDevices | ( | string | deviceDpName | ) |
Return the list of associate devices (dp names), formed from MASTER/PARENT/CHILDREN hierarchy's properties
deviceDpName | device name DP name |
References CPC_CONFIG_CHILDREN_KEY, CPC_CONFIG_MASTER_NAME_KEY, and CPC_CONFIG_PARENTS_KEY.
string cpcGenericDpFunctions_getMapping | ( | string | deviceDpName, |
string | dpeName | ||
) |
Return device's key-value mapping for a dpe.
Also see cpcConfigGenericFunctions_setMapping.
deviceDpName | device name DP name |
dpeName | name of dpe |
References CPC_CONFIG_MAPPING.
Referenced by CPC_MassFlowController_FaceplateInitStatics(), CPC_MassFlowControllerConfig_ExportConfig(), CPC_WordParameter_FaceplateInitStatics(), CPC_WordParameter_WidgetInitStatics(), CPC_WordParameterConfig_ExportConfig(), CPC_WordStatus_FaceplateInitStatics(), CPC_WordStatus_WidgetInitStatics(), CPC_WordStatusConfig_ExportConfig(), and CPC_WordStatusConfig_setCustomConfig().
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_doesDevicePropertyExist(), cpcGenericDpFunctions_getDeviceProperty(), and cpcGenericDpFunctions_setDeviceProperty().