unCPC6
6.6.2
WinCC-OA implementation of UNICOS CPC
|
Functions | |
CPC_AnalogAlarm_AcknowledgeAlarm (string deviceName, string dpType, dyn_string &dsNeedAck) | |
CPC_AnalogAlarm_ObjectListGetValueTime (string deviceName, string deviceType, dyn_string &dsReturnData) | |
CPC_AnalogAlarm_MenuConfiguration (string deviceName, string dpType, dyn_string dsAccessOk, dyn_string &menuList) | |
CPC_AnalogAlarm_HandleMenu (string deviceName, string dpType, dyn_string menuList, int menuAnswer) | |
CPC_AnalogAlarm_WidgetInitStatics (string deviceName) | |
CPC_AnalogAlarm_WidgetDPEs (string deviceName, dyn_string &dpes) | |
CPC_AnalogAlarm_WidgetAnimation (dyn_string dpes, dyn_anytype values, string widgetType) | |
CPC_AnalogAlarm_WidgetDisconnection (string sWidgetType) | |
mapping | CPC_AnalogAlarm_ButtonConfig (string deviceName) |
CPC_AnalogAlarm_ButtonDPEs (string deviceName, dyn_string &dpes) | |
CPC_AnalogAlarm_ButtonSetState (string deviceName, string dpType, dyn_string dsUserAccess, dyn_string dsData) | |
CPC_AnalogAlarm_FaceplateInitStatics (string deviceName) | |
CPC_AnalogAlarm_FaceplateDPEs (string deviceName, dyn_string &dpes) | |
CPC_AnalogAlarm_FaceplateStatusAnimationCB (dyn_string dpes, dyn_anytype values) | |
cpcAnalogAlarm.ctl This library contains the widget, faceplate, etc. functions of AnalogAlarm.
CPC_AnalogAlarm_AcknowledgeAlarm | ( | string | deviceName, |
string | dpType, | ||
dyn_string & | dsNeedAck | ||
) |
Returns the list of AnalogAlarm DPE with alarm config that can be acknowledged
deviceName | input, device name DP name |
dpType | input, device type |
dsNeedAck | output, the lsit of DPE |
CPC_AnalogAlarm_ObjectListGetValueTime | ( | string | deviceName, |
string | deviceType, | ||
dyn_string & | dsReturnData | ||
) |
Function called from snapshot utility of the treeDeviceOverview to get the time and value
deviceName | input, device name |
deviceType | input, device type |
dsReturnData | output, return data, array of 5 strings |
CPC_AnalogAlarm_MenuConfiguration | ( | string | deviceName, |
string | dpType, | ||
dyn_string | dsAccessOk, | ||
dyn_string & | menuList | ||
) |
pop-up menu
deviceName | input, device DP name |
dpType | input, device type |
dsAccessOk | input, the access control |
menuList | output, pop-up menu to show, dyn_string to be given to the popupMenu function |
References CPC_POPUPMENU_DIAG_INFO_TEXT, CPC_POPUPMENU_MASK_ALST_TEXT, cpcGenericObject_addDefaultUnicosActionToMenu(), and cpcGenericObject_addUnicosActionToMenu().
CPC_AnalogAlarm_HandleMenu | ( | string | deviceName, |
string | dpType, | ||
dyn_string | menuList, | ||
int | menuAnswer | ||
) |
handle the answer of the popup menu
deviceName | input, device DP name |
dpType | input, device type |
menuList | input, the access control |
menuAnswer | input, selected menu value |
References cpcGenericObject_HandleUnicosMenu().
CPC_AnalogAlarm_WidgetInitStatics | ( | string | deviceName | ) |
Init static values which are used in widget animation
deviceName | input, the device name |
CPC_AnalogAlarm_WidgetDPEs | ( | string | deviceName, |
dyn_string & | dpes | ||
) |
Returns the list of AnalogAlarm DPEs which should be connected on widget animation
deviceName | input, the device name |
dpes | input/output, dpe list |
CPC_AnalogAlarm_WidgetAnimation | ( | dyn_string | dpes, |
dyn_anytype | values, | ||
string | widgetType | ||
) |
callback function on the device data
dpes | input, the dpe names |
values | input, the dpe values |
References CPC_StsReg01_CONFIGW, CPC_StsReg01_IST, CPC_StsReg01_MALBRST, CPC_StsReg01_POSHHW, CPC_StsReg01_POSHW, CPC_StsReg01_POSLLW, CPC_StsReg01_POSLW, CPC_StsReg01_WST, CPC_StsReg02_HHALST, CPC_StsReg02_HWST, CPC_StsReg02_LLALST, CPC_StsReg02_LWST, CPC_WIDGET_ALARM_HIGH, CPC_WIDGET_ALARM_HIGHHIGH, CPC_WIDGET_ALARM_LOW, CPC_WIDGET_ALARM_LOWLOW, CPC_WIDGET_TEXT_ALARM_BLOCKED, CPC_WIDGET_TEXT_ALARM_MASKED, CPC_WIDGET_TEXT_CONFIGW, CPC_WIDGET_TEXT_POSHHW, CPC_WIDGET_TEXT_POSHW, CPC_WIDGET_TEXT_POSLLW, CPC_WIDGET_TEXT_POSLW, CPC_WIDGET_TEXT_WARNING_ERROR, CPC_WIDGET_TEXT_WARNING_SIMU, cpcGenericObject_WidgetDisplayValueAnimation(), cpcGenericObject_WidgetStsRegBitAnimation(), and cpcGenericObject_WidgetValidnessAnimation().
CPC_AnalogAlarm_WidgetDisconnection | ( | string | sWidgetType | ) |
mapping CPC_AnalogAlarm_ButtonConfig | ( | string | deviceName | ) |
Return button configuration including access level
References CPC_FACEPLATE_BUTTON_SET_AA_LIMITS, and cpcExportGenericFunctions_getAcknowledgeAlarmValue().
CPC_AnalogAlarm_ButtonDPEs | ( | string | deviceName, |
dyn_string & | dpes | ||
) |
Configure the list of dpes that needs for buttons animation
deviceName | input, the name of device |
dpes | input, the list of dpes to connect |
CPC_AnalogAlarm_ButtonSetState | ( | string | deviceName, |
string | dpType, | ||
dyn_string | dsUserAccess, | ||
dyn_string | dsData | ||
) |
Set the state of the contextual button of the device
deviceName | input, the device DP name |
dpType | input, the device type |
dsUserAccess | input, list of allowed action on the device |
dsData | input, the device data [1] = lock state, [2] = lock by, [3] .. [6] device data |
References CPC_FACEPLATE_BUTTON_SET_AA_LIMITS, CPC_StsReg01_AUIHMBST, CPC_StsReg01_MALBRST, and cpcButton_setButtonState().
CPC_AnalogAlarm_FaceplateInitStatics | ( | string | deviceName | ) |
Init static values which are used in faceplate animation
deviceName | input, the device name |
References CPC_CONFIG_TYPE_KEY, cpcExportGenericFunctions_getAcknowledgeAlarmValue(), cpcGenericDpFunctions_getDeviceProperty(), cpcGenericObject_DisplayText(), cpcGenericObject_isInMailSMS(), and cpcGenericObject_translateAlarmAcronym().
CPC_AnalogAlarm_FaceplateDPEs | ( | string | deviceName, |
dyn_string & | dpes | ||
) |
Returns the list of AnalogAlarm DPEs which should be connected on faceplate animation
deviceName | input, the device name |
dpes | input/output, dpe list |
CPC_AnalogAlarm_FaceplateStatusAnimationCB | ( | dyn_string | dpes, |
dyn_anytype | values | ||
) |
callback function on the device data
dpes | input, the dpe names |
values | input, the dpe values |
References cpcGenericObject_animateMaskEvent(), and cpcGenericObject_CheckboxAnimate().