unCPC6
6.6.6
WinCC-OA implementation of UNICOS CPC
|
This library contains generic exportation functions. More...
Functions | |
void | cpcExportGenericFunctions_processAddress (string sDp, string sDeviceType, string sDpeName, bool bIsInput, dyn_string &dsDpParameters) |
string | DRV_CMW_convertToUnicosAddress (string sDeviceDpeName, string sDeviceType) |
void | cpcExportGenericFunctions_getParameters (string sDp, dyn_string &dsDpParameters, dyn_string &exceptionInfo) |
void | cpcExportGenericFunctions_getMetainfo (string sDp, dyn_string &dsDpParameters, dyn_string &exceptionInfo) |
void | cpcExportGenericFunctions_getUnit (string sDp, dyn_string &dsDpParameters, string dpe=".ProcessInput.PosSt") |
void | cpcExportGenericFunctions_getFormat (string sDp, dyn_string &dsDpParameters, string dpe=".ProcessInput.PosSt") |
void | cpcExportGenericFunctions_getSimpleFormat (string sDp, dyn_string &dsDpParameters, string dpe=".ProcessInput.PosSt") |
void | cpcExportGenericFunctions_getRange (string sDp, dyn_string &dsDpParameters, dyn_string &exceptionInfo, string dpe=".ProcessInput.PosSt") |
void | cpcExportGenericFunctions_getOutRange (string sDp, dyn_string &dsDpParameters, dyn_string &exceptionInfo, string dpe=".ProcessInput.PosSt") |
void | cpcExportGenericFunctions_getDeadband (string sDp, dyn_string &dsDpParameters, dyn_string &exceptionInfo, string dpe=".ProcessInput.PosSt") |
void | cpcExportGenericFunctions_getArchive (string sDp, dyn_string &dsDpParameters, string dpe=".ProcessInput.PosSt") |
void | cpcExportGenericFunctions_getMaskEvent (string sDp, dyn_string &dsDpParameters) |
void | cpcExportGenericFunctions_getDefaultValue (string sDp, dyn_string &dsDpParameters, string dfltElementName="DfltVal") |
void | cpcExportGenericFunctions_getBoolDefaultValue (string sDp, dyn_string &dsDpParameters, string dfltElementName="DfltVal") |
void | cpcExportGenericFunctions_getDPEValue (string sDp, string sElementName, dyn_string &dsDpParameters, string sPrintFormat="", string sConfigDetailAttrib=":_online.._value") |
void | cpcExportGenericFunctions_getPIDName (string sDp, dyn_string &dsDpParameters) |
void | cpcExportGenericFunctions_getKeyDeviceConfiguration (string sDp, dyn_string &dsDpParameters, string key, dyn_string &exceptionInfo) |
void | cpcExportGenericFunctions_getDigitalNormalPosition (string sDP, string sObject, dyn_string dsDpElements, dyn_string &dsDpParameters) |
void | cpcExportGenericFunctions_getPCOParameters (string sDP, dyn_string &dsDpParameters) |
void | cpcExportGenericFunctions_getAutonomous (string sDP, dyn_string &dsDpParameters, string dpe=".ProcessInput.PosSt") |
void | cpcExportGenericFunctions_getArchiveNameForDpes (string sDp, string defaultValue, dyn_string dsDpes, dyn_string &dsDpParameters) |
dyn_string | cpcExportGenericFunctions_getArchivedDpes (string deviceType, int archiveType) |
void | cpcExportGenericFunctions_getCategories (string sDP, dyn_string dpes, dyn_string &dsDpParameters, dyn_string &exceptionInfo) |
string | cpcExportGenericFunctions_getAcknowledgeAlarmValue (string sDP, string dpe=".ProcessInput.PosSt") |
void | cpcExportGenericFunctions_getAcknowledgeAlarm (string sDP, string alarmDP, dyn_string &dsDpParameters, dyn_string &exceptionInfo) |
void | cpcExportGenericFunctions_get5AlertLimits (string sDP, dyn_string &dsDpParameters) |
void | cpcExportGenericFunctions_get5AlertClasses (string sDP, dyn_string &dsClasses, dyn_string &exceptionInfo, string dpe=".ProcessInput.PosSt") |
string | cpcExportGenericFunctions_get5AlertAcknowledgeAlarmValue (string sDP, dyn_string &exceptionInfo) |
void | cpcExportGenericFunctions_get5AlertAcknowledgeAlarm (string sDP, string alarmDP, dyn_string &dsDpParameters, dyn_string &exceptionInfo) |
void | cpcExportGenericFunctions_getAlarmActive (string sDP, dyn_string &dsDpParameters, string dpe=".ProcessInput.PosSt") |
string | dynJoin (dyn_string array, string separator) |
void | cpcExportGenericFunctions_updateConversionParameters (string dp, string dpe, dyn_string exceptionInfo) |
void | cpcExportGenericFunctions_updateAlarmParameters (string dp, string dpe, string deviceTypeName, dyn_string exceptionInfo) |
This library contains generic exportation functions.
Normally a function in this library is designed to accept currentDP and dsDpParameters (array representation of pvss importation line) with two first parameters. Other parameters may be accepted in order to specify a particular element in device to process. Function adds certain parameters to the end of dsDpParameters as a result of its work.
void cpcExportGenericFunctions_processAddress | ( | string | sDp, |
string | sDeviceType, | ||
string | sDpeName, | ||
bool | bIsInput, | ||
dyn_string & | dsDpParameters | ||
) |
Add DPE address to the device's output
sDp | current dp name |
deviceType | device type |
dpeName | dpe name (without path) |
isInput | should be true if it's in ProcessInput and false if it's in ProcessOutput |
dsDpParameters | object's output |
Referenced by _UnPlc_CPC_RcpBuffers_ExportConfig(), CPC_AnaDigConfig_ExportConfig(), CPC_AnaDOConfig_ExportConfig(), CPC_AnalogAlarmConfig_ExportConfig(), CPC_AnalogConfig_ExportConfig(), CPC_AnalogInputConfig_ExportConfig(), CPC_AnalogOutputConfig_ExportConfig(), CPC_AnalogParameterConfig_ExportConfig(), CPC_AnalogStatusConfig_ExportConfig(), CPC_ControllerConfig_ExportConfig(), CPC_DigitalAlarmConfig_ExportConfig(), CPC_DigitalInputConfig_ExportConfig(), CPC_DigitalOutputConfig_ExportConfig(), CPC_DigitalParameterConfig_ExportConfig(), CPC_LocalConfig_ExportConfig(), CPC_MassFlowControllerConfig_ExportConfig(), CPC_OnOffConfig_ExportConfig(), CPC_ProcessControlObjectConfig_ExportConfig(), CPC_SteppingMotorConfig_ExportConfig(), CPC_Word2AnalogStatusConfig_ExportConfig(), CPC_WordParameterConfig_ExportConfig(), and CPC_WordStatusConfig_ExportConfig().
string DRV_CMW_convertToUnicosAddress | ( | string | sDeviceDpeName, |
string | sDeviceType | ||
) |
void cpcExportGenericFunctions_getParameters | ( | string | sDp, |
dyn_string & | dsDpParameters, | ||
dyn_string & | exceptionInfo | ||
) |
Add parameters field to the device's output
sDp | current dp name |
dsDpParameters | object's output |
exceptionInfo | exception info |
References dynJoin(), and UN_CPC_DEVICE_PROPERTY_PREFIX.
Referenced by CPC_AnaDigConfig_ExportConfig(), CPC_AnaDOConfig_ExportConfig(), CPC_AnalogAlarmConfig_ExportConfig(), CPC_AnalogConfig_ExportConfig(), CPC_AnalogInputConfig_ExportConfig(), CPC_AnalogOutputConfig_ExportConfig(), CPC_AnalogParameterConfig_ExportConfig(), CPC_AnalogStatusConfig_ExportConfig(), CPC_ControllerConfig_ExportConfig(), CPC_DigitalAlarmConfig_ExportConfig(), CPC_DigitalInputConfig_ExportConfig(), CPC_DigitalOutputConfig_ExportConfig(), CPC_DigitalParameterConfig_ExportConfig(), CPC_LocalConfig_ExportConfig(), CPC_MassFlowControllerConfig_ExportConfig(), CPC_OnOffConfig_ExportConfig(), CPC_ProcessControlObjectConfig_ExportConfig(), CPC_SteppingMotorConfig_ExportConfig(), CPC_Word2AnalogStatusConfig_ExportConfig(), and CPC_WordStatusConfig_ExportConfig().
void cpcExportGenericFunctions_getMetainfo | ( | string | sDp, |
dyn_string & | dsDpParameters, | ||
dyn_string & | exceptionInfo | ||
) |
Add meta-info fields to the device's output
Meta info is device's heirarchy (i.e. master/parents/children), type and second alias
sDp | current dp name |
dsDpParameters | object's output |
exceptionInfo | exception info |
References CPC_CONFIG_CHILDREN_KEY, CPC_CONFIG_MASTER_NAME_KEY, CPC_CONFIG_PARENTS_KEY, CPC_CONFIG_SECOND_ALIAS_KEY, CPC_CONFIG_TYPE_KEY, and dynJoin().
Referenced by CPC_AnaDigConfig_ExportConfig(), CPC_AnaDOConfig_ExportConfig(), CPC_AnalogAlarmConfig_ExportConfig(), CPC_AnalogConfig_ExportConfig(), CPC_AnalogInputConfig_ExportConfig(), CPC_AnalogOutputConfig_ExportConfig(), CPC_AnalogParameterConfig_ExportConfig(), CPC_AnalogStatusConfig_ExportConfig(), CPC_ControllerConfig_ExportConfig(), CPC_DigitalAlarmConfig_ExportConfig(), CPC_DigitalInputConfig_ExportConfig(), CPC_DigitalOutputConfig_ExportConfig(), CPC_DigitalParameterConfig_ExportConfig(), CPC_LocalConfig_ExportConfig(), CPC_MassFlowControllerConfig_ExportConfig(), CPC_OnOffConfig_ExportConfig(), CPC_ProcessControlObjectConfig_ExportConfig(), CPC_SteppingMotorConfig_ExportConfig(), CPC_Word2AnalogStatusConfig_ExportConfig(), CPC_WordParameterConfig_ExportConfig(), and CPC_WordStatusConfig_ExportConfig().
void cpcExportGenericFunctions_getUnit | ( | string | sDp, |
dyn_string & | dsDpParameters, | ||
string | dpe = ".ProcessInput.PosSt" |
||
) |
Add unit to the device's output
sDp | current dp name |
dsDpParameters | object's output |
dpe | name of unit's dpe, ProcessInput.PosSt by default |
Referenced by CPC_AnaDigConfig_ExportConfig(), CPC_AnaDOConfig_ExportConfig(), CPC_AnalogAlarmConfig_ExportConfig(), CPC_AnalogConfig_ExportConfig(), CPC_AnalogInputConfig_ExportConfig(), CPC_AnalogOutputConfig_ExportConfig(), CPC_AnalogParameterConfig_ExportConfig(), CPC_AnalogStatusConfig_ExportConfig(), CPC_ControllerConfig_ExportConfig(), CPC_MassFlowControllerConfig_ExportConfig(), CPC_SteppingMotorConfig_ExportConfig(), CPC_Word2AnalogStatusConfig_ExportConfig(), CPC_WordParameterConfig_ExportConfig(), and CPC_WordStatusConfig_ExportConfig().
void cpcExportGenericFunctions_getFormat | ( | string | sDp, |
dyn_string & | dsDpParameters, | ||
string | dpe = ".ProcessInput.PosSt" |
||
) |
Add format to the device's output
sDp | current dp name |
dsDpParameters | object's output |
dpe | name of format's dpe, ProcessInput.PosSt by default |
Referenced by CPC_AnaDigConfig_ExportConfig(), CPC_AnaDOConfig_ExportConfig(), CPC_AnalogAlarmConfig_ExportConfig(), CPC_AnalogConfig_ExportConfig(), CPC_AnalogInputConfig_ExportConfig(), CPC_AnalogOutputConfig_ExportConfig(), CPC_AnalogParameterConfig_ExportConfig(), CPC_AnalogStatusConfig_ExportConfig(), CPC_ControllerConfig_ExportConfig(), CPC_MassFlowControllerConfig_ExportConfig(), CPC_SteppingMotorConfig_ExportConfig(), CPC_Word2AnalogStatusConfig_ExportConfig(), CPC_WordParameterConfig_ExportConfig(), and CPC_WordStatusConfig_ExportConfig().
void cpcExportGenericFunctions_getSimpleFormat | ( | string | sDp, |
dyn_string & | dsDpParameters, | ||
string | dpe = ".ProcessInput.PosSt" |
||
) |
Add format without log_scale flag to the device's output
sDp | current dp name |
dsDpParameters | object's output |
dpe | name of format's dpe, ProcessInput.PosSt by default |
Referenced by CPC_ControllerConfig_ExportConfig(), and CPC_MassFlowControllerConfig_ExportConfig().
void cpcExportGenericFunctions_getRange | ( | string | sDp, |
dyn_string & | dsDpParameters, | ||
dyn_string & | exceptionInfo, | ||
string | dpe = ".ProcessInput.PosSt" |
||
) |
Add range fields (max, min) to the device's output
sDp | current dp name |
dsDpParameters | object's output |
exceptionInfo | exception info |
dpe | name of range's dpe, ProcessInput.PosSt by default |
Referenced by CPC_AnaDigConfig_ExportConfig(), CPC_AnaDOConfig_ExportConfig(), CPC_AnalogConfig_ExportConfig(), CPC_AnalogInputConfig_ExportConfig(), CPC_AnalogOutputConfig_ExportConfig(), CPC_AnalogParameterConfig_ExportConfig(), CPC_AnalogStatusConfig_ExportConfig(), CPC_ControllerConfig_ExportConfig(), CPC_SteppingMotorConfig_ExportConfig(), CPC_Word2AnalogStatusConfig_ExportConfig(), CPC_WordParameterConfig_ExportConfig(), and CPC_WordStatusConfig_ExportConfig().
void cpcExportGenericFunctions_getOutRange | ( | string | sDp, |
dyn_string & | dsDpParameters, | ||
dyn_string & | exceptionInfo, | ||
string | dpe = ".ProcessInput.PosSt" |
||
) |
Add out range fields (max, min) to the device's output
Out range stands for the scaled range.
sDp | current dp name |
dsDpParameters | object's output |
exceptionInfo | exception info |
dpe | name of out range's dpe, ProcessInput.PosSt by default |
Referenced by CPC_Word2AnalogStatusConfig_ExportConfig().
void cpcExportGenericFunctions_getDeadband | ( | string | sDp, |
dyn_string & | dsDpParameters, | ||
dyn_string & | exceptionInfo, | ||
string | dpe = ".ProcessInput.PosSt" |
||
) |
Add deadband fields (deadband and deadband type) to the device's output
sDp | current dp name |
dsDpParameters | object's output |
exceptionInfo | exception info |
dpe | name of deadband's dpe, ProcessInput.PosSt by default |
Referenced by CPC_AnaDigConfig_ExportConfig(), CPC_AnaDOConfig_ExportConfig(), CPC_AnalogConfig_ExportConfig(), CPC_AnalogInputConfig_ExportConfig(), CPC_AnalogOutputConfig_ExportConfig(), CPC_AnalogParameterConfig_ExportConfig(), CPC_AnalogStatusConfig_ExportConfig(), CPC_ControllerConfig_ExportConfig(), CPC_MassFlowControllerConfig_ExportConfig(), CPC_SteppingMotorConfig_ExportConfig(), CPC_Word2AnalogStatusConfig_ExportConfig(), CPC_WordParameterConfig_ExportConfig(), and CPC_WordStatusConfig_ExportConfig().
void cpcExportGenericFunctions_getArchive | ( | string | sDp, |
dyn_string & | dsDpParameters, | ||
string | dpe = ".ProcessInput.PosSt" |
||
) |
Add archive fields (archive active and archive time filter) to the device's output
sDp | current dp name |
dsDpParameters | object's output |
dpe | name of archive's dpe, ProcessInput.PosSt by default |
Referenced by CPC_AnaDigConfig_ExportConfig(), CPC_AnaDOConfig_ExportConfig(), CPC_AnalogAlarmConfig_ExportConfig(), CPC_AnalogConfig_ExportConfig(), CPC_AnalogInputConfig_ExportConfig(), CPC_AnalogOutputConfig_ExportConfig(), CPC_AnalogParameterConfig_ExportConfig(), CPC_AnalogStatusConfig_ExportConfig(), CPC_ControllerConfig_ExportConfig(), CPC_DigitalAlarmConfig_ExportConfig(), CPC_DigitalInputConfig_ExportConfig(), CPC_DigitalOutputConfig_ExportConfig(), CPC_DigitalParameterConfig_ExportConfig(), CPC_LocalConfig_ExportConfig(), CPC_MassFlowControllerConfig_ExportConfig(), CPC_SteppingMotorConfig_ExportConfig(), CPC_Word2AnalogStatusConfig_ExportConfig(), CPC_WordParameterConfig_ExportConfig(), and CPC_WordStatusConfig_ExportConfig().
void cpcExportGenericFunctions_getMaskEvent | ( | string | sDp, |
dyn_string & | dsDpParameters | ||
) |
Add isDeviceMasked value to the device's output
sDp | current dp name |
dsDpParameters | object's output |
Referenced by CPC_AnaDigConfig_ExportConfig(), CPC_AnaDOConfig_ExportConfig(), CPC_AnalogAlarmConfig_ExportConfig(), CPC_AnalogConfig_ExportConfig(), CPC_AnalogInputConfig_ExportConfig(), CPC_AnalogOutputConfig_ExportConfig(), CPC_AnalogParameterConfig_ExportConfig(), CPC_ControllerConfig_ExportConfig(), CPC_DigitalAlarmConfig_ExportConfig(), CPC_DigitalInputConfig_ExportConfig(), CPC_DigitalOutputConfig_ExportConfig(), CPC_DigitalParameterConfig_ExportConfig(), CPC_LocalConfig_ExportConfig(), CPC_MassFlowControllerConfig_ExportConfig(), CPC_OnOffConfig_ExportConfig(), CPC_ProcessControlObjectConfig_ExportConfig(), CPC_SteppingMotorConfig_ExportConfig(), and CPC_WordParameterConfig_ExportConfig().
void cpcExportGenericFunctions_getDefaultValue | ( | string | sDp, |
dyn_string & | dsDpParameters, | ||
string | dfltElementName = "DfltVal" |
||
) |
Add default value to the device's output
Function stands for fetch online value of ProcessOutput DPE
sDp | current dp name |
dsDpParameters | object's output |
dfltElementName | dpe name, "DfltVal" by default |
Referenced by CPC_AnalogParameterConfig_ExportConfig(), and CPC_WordParameterConfig_ExportConfig().
void cpcExportGenericFunctions_getBoolDefaultValue | ( | string | sDp, |
dyn_string & | dsDpParameters, | ||
string | dfltElementName = "DfltVal" |
||
) |
Add default value casted to bool to the device's output
sDp | current dp name |
dsDpParameters | object's output |
dfltElementName | dpe name, "DfltVal" by default |
Referenced by CPC_DigitalParameterConfig_ExportConfig().
void cpcExportGenericFunctions_getDPEValue | ( | string | sDp, |
string | sElementName, | ||
dyn_string & | dsDpParameters, | ||
string | sPrintFormat = "" , |
||
string | sConfigDetailAttrib = ":_online.._value" |
||
) |
Add DPE values to the device's output
Function fetches the online value of DPE
sDp | Current DP name |
sElementName | The DPE name |
dsDpParameters | A dyn_string to which the value of the DPE is appended; the output of the function |
sPrintFormat | Optional sprintf() format used to print the DPE value; default is "", i.e. no custom formatting |
sConfigDetailAttrib | Optional config, detail and attribute of the DPE; default is ":_online.._value", replicating the default dpGet() behaviour in WccOA 3.15 |
Referenced by CPC_AnalogParameterConfig_ExportConfig(), CPC_ControllerConfig_ExportConfig(), CPC_DigitalParameterConfig_ExportConfig(), and CPC_WordParameterConfig_ExportConfig().
void cpcExportGenericFunctions_getPIDName | ( | string | sDp, |
dyn_string & | dsDpParameters | ||
) |
Add PID name to the device's output
Proxy to unExportDevice_getPIDName
sDp | current dp name |
dsDpParameters | object's output |
Referenced by CPC_ControllerConfig_ExportConfig().
void cpcExportGenericFunctions_getKeyDeviceConfiguration | ( | string | sDp, |
dyn_string & | dsDpParameters, | ||
string | key, | ||
dyn_string & | exceptionInfo | ||
) |
Add device config value for given name to the device's output
Proxy to unExportDevice_getPCOName
sDp | current dp name |
dsDpParameters | object's output |
key | key in device configuration |
exceptionInfo | exception info |
Referenced by CPC_AnalogAlarmConfig_ExportConfig(), CPC_AnalogInputConfig_ExportConfig(), CPC_AnalogOutputConfig_ExportConfig(), CPC_ControllerConfig_ExportConfig(), CPC_DigitalAlarmConfig_ExportConfig(), CPC_DigitalInputConfig_ExportConfig(), CPC_DigitalOutputConfig_ExportConfig(), CPC_LocalConfig_ExportConfig(), and CPC_MassFlowControllerConfig_ExportConfig().
void cpcExportGenericFunctions_getDigitalNormalPosition | ( | string | sDP, |
string | sObject, | ||
dyn_string | dsDpElements, | ||
dyn_string & | dsDpParameters | ||
) |
Add digital normal position to the device's output
Port of unExportDevice_getDigitalNormalPositionDPE.
Use full path in alarm list (dsDpElements), for example, there's a list of interlocks for a field object:
makeDynString(".ProcessInput.StartISt", ".ProcessInput.TStopISt", ".ProcessInput.FuStopISt")
sDP | current dp name |
sObject | device type; don't used |
dsDpElements | an array of alarm dpes |
dsDpParameters | object's output |
Referenced by CPC_AnaDigConfig_ExportConfig(), CPC_AnaDOConfig_ExportConfig(), CPC_AnalogAlarmConfig_ExportConfig(), CPC_AnalogConfig_ExportConfig(), CPC_DigitalAlarmConfig_ExportConfig(), CPC_DigitalInputConfig_ExportConfig(), CPC_DigitalOutputConfig_ExportConfig(), CPC_LocalConfig_ExportConfig(), CPC_MassFlowControllerConfig_ExportConfig(), CPC_OnOffConfig_ExportConfig(), CPC_ProcessControlObjectConfig_ExportConfig(), and CPC_SteppingMotorConfig_ExportConfig().
void cpcExportGenericFunctions_getPCOParameters | ( | string | sDP, |
dyn_string & | dsDpParameters | ||
) |
Add PCO parameters to the device's output
Proxy to unExportDevice_getPCOParameters.
sDP | current dp name |
dsDpParameters | object's output |
Referenced by CPC_ProcessControlObjectConfig_ExportConfig().
void cpcExportGenericFunctions_getAutonomous | ( | string | sDP, |
dyn_string & | dsDpParameters, | ||
string | dpe = ".ProcessInput.PosSt" |
||
) |
Add autonomous flag to the device's output
sDP | current dp name |
dsDpParameters | object's output |
dpe | name of autonomous's dpe, ProcessInput.PosSt by default |
void cpcExportGenericFunctions_getArchiveNameForDpes | ( | string | sDp, |
string | defaultValue, | ||
dyn_string | dsDpes, | ||
dyn_string & | dsDpParameters | ||
) |
Add archive name of given dpes to the device's output
Funtion collect archive name for each of dpes. If archive is the same for everyone, it use this archive. Else it use empty string.
sDp | current dp name |
defaultValue | value that used if archive is not configured for dpe |
dsDpes | list of dpes that supposed to have same archive |
dsDpParameters | object's output |
Referenced by CPC_AnaDigConfig_ExportConfig(), CPC_AnaDOConfig_ExportConfig(), CPC_AnalogAlarmConfig_ExportConfig(), CPC_AnalogConfig_ExportConfig(), CPC_AnalogInputConfig_ExportConfig(), CPC_AnalogOutputConfig_ExportConfig(), CPC_AnalogParameterConfig_ExportConfig(), CPC_AnalogStatusConfig_ExportConfig(), CPC_ControllerConfig_ExportConfig(), CPC_DigitalAlarmConfig_ExportConfig(), CPC_DigitalInputConfig_ExportConfig(), CPC_DigitalOutputConfig_ExportConfig(), CPC_DigitalParameterConfig_ExportConfig(), CPC_LocalConfig_ExportConfig(), CPC_MassFlowControllerConfig_ExportConfig(), CPC_OnOffConfig_ExportConfig(), CPC_ProcessControlObjectConfig_ExportConfig(), CPC_SteppingMotorConfig_ExportConfig(), CPC_Word2AnalogStatusConfig_ExportConfig(), CPC_WordParameterConfig_ExportConfig(), and CPC_WordStatusConfig_ExportConfig().
dyn_string cpcExportGenericFunctions_getArchivedDpes | ( | string | deviceType, |
int | archiveType | ||
) |
Return list of dpes of given deviceType that have hasArchive property
Funtion collect dpes' names that are archived
deviceType | device type name |
archiveType | type of archive: 1 (UN_CONFIG_ADDITIONAL_ARCHIVE_BOOL) for BOOLEAN, 2 (UN_CONFIG_ADDITIONAL_ARCHIVE_ANALOG) for ANALOG and 3 (UN_CONFIG_ADDITIONAL_ARCHIVE_EVENT) for EVENT |
References CPC_BOOL, CPC_FLOAT, CPC_INT16, CPC_INT32, CPC_UINT16, and cpcConfigGenericFunctions_getShortTypeName().
Referenced by CPC_AnaDigConfig_ExportConfig(), CPC_AnaDOConfig_ExportConfig(), CPC_AnalogAlarmConfig_ExportConfig(), CPC_AnalogConfig_ExportConfig(), CPC_AnalogInputConfig_ExportConfig(), CPC_AnalogOutputConfig_ExportConfig(), CPC_AnalogParameterConfig_ExportConfig(), CPC_AnalogStatusConfig_ExportConfig(), CPC_ControllerConfig_ExportConfig(), CPC_DigitalAlarmConfig_ExportConfig(), CPC_DigitalInputConfig_ExportConfig(), CPC_DigitalOutputConfig_ExportConfig(), CPC_DigitalParameterConfig_ExportConfig(), CPC_LocalConfig_ExportConfig(), CPC_MassFlowControllerConfig_ExportConfig(), CPC_OnOffConfig_ExportConfig(), CPC_ProcessControlObjectConfig_ExportConfig(), CPC_SteppingMotorConfig_ExportConfig(), CPC_Word2AnalogStatusConfig_ExportConfig(), CPC_WordParameterConfig_ExportConfig(), and CPC_WordStatusConfig_ExportConfig().
void cpcExportGenericFunctions_getCategories | ( | string | sDP, |
dyn_string | dpes, | ||
dyn_string & | dsDpParameters, | ||
dyn_string & | exceptionInfo | ||
) |
Add alarm categories assigned to device to the device's output
Proxy for unProcessAlarm_getCategory.
sDP | current dp name |
dsDpParameters | object's output |
exceptionInfo | exception info |
Referenced by CPC_AnalogAlarmConfig_ExportConfig(), CPC_AnalogInputConfig_ExportConfig(), CPC_AnalogOutputConfig_ExportConfig(), CPC_DigitalAlarmConfig_ExportConfig(), CPC_DigitalInputConfig_ExportConfig(), CPC_DigitalOutputConfig_ExportConfig(), and CPC_LocalConfig_ExportConfig().
string cpcExportGenericFunctions_getAcknowledgeAlarmValue | ( | string | sDP, |
string | dpe = ".ProcessInput.PosSt" |
||
) |
Returns if dpe's alarm acknowledgeable
sDP | current dp name |
dpe | name of acknowledgeable's dpe, ProcessInput.PosSt by default |
References CPC_CONFIG_ALARM_ACK_POSTFIX.
Referenced by CPC_AnalogAlarm_ButtonConfig(), CPC_AnalogAlarm_FaceplateInitStatics(), CPC_DigitalAlarm_ButtonConfig(), CPC_DigitalAlarm_FaceplateInitStatics(), CPC_DigitalInput_ButtonSetState(), CPC_DigitalInput_FaceplateInitStatics(), CPC_DigitalOutput_ButtonSetState(), CPC_Local_ButtonConfig(), CPC_Local_FaceplateInitStatics(), and cpcExportGenericFunctions_getAcknowledgeAlarm().
void cpcExportGenericFunctions_getAcknowledgeAlarm | ( | string | sDP, |
string | alarmDP, | ||
dyn_string & | dsDpParameters, | ||
dyn_string & | exceptionInfo | ||
) |
Add acknowledgeable value to the device's output
sDP | current dp name |
alarmDP | name of acknowledgeable's dpe |
dsDpParameters | object's output |
exceptionInfo | exception info |
References cpcExportGenericFunctions_getAcknowledgeAlarmValue().
Referenced by CPC_AnalogAlarmConfig_ExportConfig(), CPC_DigitalAlarmConfig_ExportConfig(), CPC_DigitalInputConfig_ExportConfig(), CPC_DigitalOutputConfig_ExportConfig(), and CPC_LocalConfig_ExportConfig().
void cpcExportGenericFunctions_get5AlertLimits | ( | string | sDP, |
dyn_string & | dsDpParameters | ||
) |
Add alarm's threshold values to the device's output
sDP | current dp name |
dsDpParameters | object's output |
Referenced by CPC_AnalogInputConfig_ExportConfig(), and CPC_AnalogOutputConfig_ExportConfig().
void cpcExportGenericFunctions_get5AlertClasses | ( | string | sDP, |
dyn_string & | dsClasses, | ||
dyn_string & | exceptionInfo, | ||
string | dpe = ".ProcessInput.PosSt" |
||
) |
Fetch classes of 5-range alert
sDP | current dp name |
dsClasses | output |
exceptionInfo | exception info |
dpe | name of dpe with 5-range alert, ProcessInput.PosSt by default |
Referenced by cpcExportGenericFunctions_get5AlertAcknowledgeAlarmValue().
string cpcExportGenericFunctions_get5AlertAcknowledgeAlarmValue | ( | string | sDP, |
dyn_string & | exceptionInfo | ||
) |
Return is 5-range alert acknowledgeable
If at least one of thresholds contains CPC_CONFIG_ALARM_ACK_POSTFIX in the alert class, alert is acknowledgeable
sDP | current dp name |
exceptionInfo | exception info |
References CPC_CONFIG_ALARM_ACK_POSTFIX, and cpcExportGenericFunctions_get5AlertClasses().
Referenced by CPC_AnalogInput_ButtonSetState(), CPC_AnalogInput_FaceplateInitStatics(), CPC_AnalogOutput_ButtonSetState(), CPC_AnalogStatus_ButtonSetState(), CPC_AnalogStatus_FaceplateInitStatics(), CPC_WordStatus_ButtonSetState(), and cpcExportGenericFunctions_get5AlertAcknowledgeAlarm().
void cpcExportGenericFunctions_get5AlertAcknowledgeAlarm | ( | string | sDP, |
string | alarmDP, | ||
dyn_string & | dsDpParameters, | ||
dyn_string & | exceptionInfo | ||
) |
Add is 5-range alert acknowledgeable to the device's output
sDP | current dp name |
alarmDP | name of acknowledgeable's dpe |
dsDpParameters | object's output |
exceptionInfo | exception info |
References cpcExportGenericFunctions_get5AlertAcknowledgeAlarmValue().
Referenced by CPC_AnalogInputConfig_ExportConfig(), and CPC_AnalogOutputConfig_ExportConfig().
void cpcExportGenericFunctions_getAlarmActive | ( | string | sDP, |
dyn_string & | dsDpParameters, | ||
string | dpe = ".ProcessInput.PosSt" |
||
) |
Add is alarm active to the device's output
sDP | current dp name |
dsDpParameters | object's output |
dpe | name of alarm dpe, ProcessInput.PosSt by default |
Referenced by CPC_AnalogInputConfig_ExportConfig(), and CPC_AnalogOutputConfig_ExportConfig().
string dynJoin | ( | dyn_string | array, |
string | separator | ||
) |
Convertion dyn_string into string; elements is glued via separator
Function returns an empty string if input array is empty or string with all elements of array merged with separator.
array | data to process |
separator | item's separator |
Referenced by cpcExportGenericFunctions_getMetainfo(), cpcExportGenericFunctions_getParameters(), and cpcGenericObject_translateAlarmAcronym().
void cpcExportGenericFunctions_updateConversionParameters | ( | string | dp, |
string | dpe, | ||
dyn_string | exceptionInfo | ||
) |
updates CPC_CONFIG_CONVERSION parameter based on _msg_conv dpe config
dp | datapoint name |
dpe | datapoint element |
exceptionInfo | for errors |
References cpcGenericDpFunctions_setDeviceProperty().
Referenced by CPC_AnalogStatusConfig_ExportConfig().