This library contains generic exportation functions. More...
Functions | |
void | cpcExportGenericFunctions_processAddress (string sDp, string deviceType, string dpe, bool isInput, dyn_string &dsDpParameters) |
void | cpcExportGenericFunctions_processCMWAddress (string sDp, string deviceType, string dpe, bool isInput, dyn_string &dsDpParameters) |
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_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_getPIDName (string sDp, dyn_string &dsDpParameters) |
void | cpcExportGenericFunctions_getPCOName (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) |
void | cpcExportGenericFunctions_getCategories (string sDP, 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) |
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.
©Copyright CERN 2013 - all rights reserved
10/10/2012: Alexey refactor function names and update documentation
11/04/2012: Alexey [UCPC-764] return N for ack if undef; return 0 for deadband if undef
23/03/2012: Alexey [UCPC-251][UCPC-253] add cpcExportGenericFunctions_getAutonomous
12/12/2011: Alexey [UCPC-621] updated cpcExportGenericFunctions_get5AlertAcknowledgeAlarmValue and cpcExportGenericFunctions_getAcknowledgeAlarmValue according new alarm classes
26/10/2011: Alexey [UCPC-557] removed cpcExportGenericFunctions_getScalingMethod and cpcExportGenericFunctions_getSmsMessage
03/10/2011: Alexey [UCPC-562] removed cpcExportGenericFunctions_getAnalogNormalPosition and cpcExportGenericFunctions_CheckAnalogAlarmType instead of cpcExportGenericFunctions_get5RangesAlert and cpcExportGenericFunctions_get5AlertClasses now cpcExportGenericFunctions_get5AlertLimits and cpcExportGenericFunctions_get5AlertClasses fixed cpcExportGenericFunctions_get5AlertAcknowledgeAlarmValue added cpcExportGenericFunctions_getAlarmActive
21/09/2011: Alexey [UCPC-555] added cpcExportGenericFunctions_getKeyDeviceConfiguration which retrive configuration value by key
02/08/2011: Alexey [UCPC-437] fixed cpcExportGenericFunctions_get5AlertAcknowledgeAlarmValue - don't take H/L into account
28/07/2011: Alexey [UCPC-436] added cpcExportGenericFunctions_getSmsMessage which retrieve sms message
08/07/2011: Alexey [UCPC-384] removed "parameters" field from the meta-info block
07/07/2011: Alexey ported unGenericObject_CheckAnalogAlarmType and used it in cpcExportGenericFunctions_get5AlertClasses (to avoid having g_iAlertRange)
06/07/2011: Alexey [UCPC-336] in cpcExportGenericFunctions_getDeadband use straight deadband value (removed range reference)
01/07/2011: Alexey made auto export of params
2011/06/15 amerezhi modified cpcExportGenericFunctions_getAcknowledgeAlarmValue signature
2011/05/31 amerezhi [UCPC-298] added cpcExportGenericFunctions_getScalingMethod
2011/05/27 amerezhi created separated functions for obtaining is alert acknowledge
2011/05/17 amerezhi moved device specific functions into corresponding unConfigDPT files removed unused functions
2011/05/10 amerezhi [IS-527] process metainfo with API; cpcExportGenericFunctions_getMetainfo params extended with exceptionInfo [UCPC-268] added second ALIAS added dynJoin method which turns dyn_string into string merging elements with separator
2011/05/09 amerezhi [UCPC-235] added metainfo (types relationships configuraiton) fixed archive names exporting for Local
2011/05/09 amerezhi [UCPC-195][UCPC-196] added AnalogAlarm and DigitalAlarm export functions
2011/04/27 amerezhi [UCPC-246] fixed Analog dpe position constants according specification
2011/04/26 amerezhi [UCPC-191] updated WordParameter export functions according unCPC6 specs
21/04/2011: amerezhi added alarm acknowledge and 5 range alarm support (DI/DO/AI/AO/Local)
2011/04/19 amerezhi [UCPC-236] updated Word2AnalogStatus export functions according unCPC6 specs
2011/04/19 amerezhi [UCPC-192] updated WordStatus export functions according unCPC6 specs
2011/04/18 amerezhi [UCPC-193] updated WordParameter export functions according unCPC6 specs
2011/04/15 amerezhi [UCPC-208] updated OnOff export functions according unCPC6 specs
2011/04/13 amerezhi updated cpcExportGenericFunctions_getCategories according new API [IS-518]
2011/04/11 amerezhi added cpcExportGenericFunctions_getCategories updated export of SMS_CATEGORIES for AI, AO, DI, DO and Local
2011/04/07 amerezhi [UCPC-209] updated Local export functions according unCPC6 specs
2011/04/06 amerezhi [UCPC-206] simplified export of Analog
2011/04/05 amerezhi [UCPC-201] simplified export of Analog Input [UCPC-203] simplified export of Analog Output [UCPC-151] updated Digital Output for unCPC6 format [UCPC-199] simplified export of Digital Input
2011/03/30 amerezhi [UCPC-209] simplified export of Local [UCPC-207] simplified export of AnaDig
2011/03/29 amerezhi [UCPC-201] simplified export of AI
2011/03/28 amerezhi simplified export of PCO simplified export of DO
Revision 1.33 2010/09/01 11:10:32 amerezhi Exporting default value for WordParameter is fixed Exporting achive time filter is fixed Added *_MAIL alert classes to the cpcExportGenericFunctions_getAlarmIsAck Added PV_RANGE to the WordComputed export results. Changed ARCHIVE_TIME_FILTER's exported value from UN_CONFIG_EXPORT_UNDEF to "" Fixed exporting archive time filter for PUMP and MFC
Revision 1.32 2010/03/25 15:30:58 gthomas Fixed #53414 (bad dpe name reference, renamed ASt-->PosAl)
Revision 1.31 2009/03/20 13:59:43 gthomas -updated variable names <_GCSDELAYEDALARM_CLASS> with <_ALERT_CLASS_> -update variable <GCS_CONFIG_EXPORT_UNDEF> with <UN_CONFIG_EXPORT_UNDEF>
Revision 1.30 2009/03/17 10:11:45 gthomas -added MFC and Pump Export functions from 1.21 version
Revision 1.29 2009/03/10 15:28:24 gthomas added UNICOS Changes made on 17/02/2009 -Function _UnPlc_DigitalParameter_ExportConfig exports the default value in text mode (True instead of TRUE)
Revision 1.28 2009/01/15 15:13:17 gthomas Added functions to export new type: Word2AnalogStatus
Revision 1.27 2008/07/23 08:41:25 gthomas changed CVS log comment in previous version (1.26)
Revision 1.26 2008/07/18 07:16:55 gthomas added functions for other gcs types
Revision 1.25 2008/06/20 07:48:46 aabadz Some auxiliary functions were deleted because the were not going to be used in the new package to UNICOS.
Revision 1.24 2008/06/20 06:36:46 gthomas introduced CVS key Log to track changes
20/08/2007: enrique Blanco _UnPlc_AnalogStatus_ExportConfig has been modified. In case of no archive defined it shoud give "" instead of UN_CONFIG_EXPORT_UNDEF
void cpcExportGenericFunctions_processAddress | ( | string | sDp, | |
string | deviceType, | |||
string | dpe, | |||
bool | isInput, | |||
dyn_string & | dsDpParameters | |||
) |
Add DPE address to the device's output
sDp | current dp name | |
deviceType | device type | |
dpe | 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 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_Word2AnalogStatusConfig_ExportConfig(), CPC_WordParameterConfig_ExportConfig(), and CPC_WordStatusConfig_ExportConfig().
void cpcExportGenericFunctions_processCMWAddress | ( | string | sDp, | |
string | deviceType, | |||
string | dpe, | |||
bool | isInput, | |||
dyn_string & | dsDpParameters | |||
) |
Add CMW DPE address to the device's output
sDp | current dp name | |
deviceType | device type | |
dpe | dpe name (without path) | |
isInput | should be true if it's in ProcessInput and false if it's in ProcessOutput | |
dsDpParameters | object's output |
References CPC_CMW_ADDRESS_CONFIG_SEPARATOR.
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_Word2AnalogStatusConfig_ExportConfig(), CPC_WordParameterConfig_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_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_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_Word2AnalogStatusConfig_ExportConfig(), CPC_WordParameterConfig_ExportConfig(), and CPC_WordStatusConfig_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_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_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_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(), 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_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_getPCOName | ( | string | sDp, | |
dyn_string & | dsDpParameters | |||
) |
Add PCO name to the device's output
Proxy to unExportDevice_getPCOName
sDp | current dp name | |
dsDpParameters | object's output |
Referenced by CPC_ProcessControlObjectConfig_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(), and CPC_ProcessControlObjectConfig_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_Word2AnalogStatusConfig_ExportConfig(), CPC_WordParameterConfig_ExportConfig(), and CPC_WordStatusConfig_ExportConfig().
void cpcExportGenericFunctions_getCategories | ( | string | sDP, | |
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_ButtonConfig(), CPC_DigitalInput_FaceplateInitStatics(), 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_ButtonConfig(), CPC_AnalogInput_FaceplateInitStatics(), 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().