unCPC6  6.6.11
WinCC-OA implementation of UNICOS CPC
cpcButton.ctl File Reference

Common function for faceplate's button animation. More...

Functions

 cpcButton_setButtonState (string button, bool buttonEnabled)
 
 cpcButton_ButtonSetState (dyn_string dsButtons, dyn_string dsUserAccess, string deviceName, string sDpType, dyn_string dsData, dyn_string &exceptionInfo)
 
 cpcButton_AllowRestart (string deviceName, string sDpType, bool buttonEnabled, bool selected, dyn_string dsData, dyn_string &exceptionInfo)
 
 cpcButton_ProcessControlObject_AllowRestart (string deviceName, string sDpType, bool buttonEnabled, bool selected, dyn_string dsData, dyn_string &exceptionInfo)
 
bool cpcButton_IsAllowRestartEnabled (string deviceName, string dpType, bit32 stsReg01Value, bool bStsReg01Bad, bit32 stsReg02Value, bool bStsReg02Bad, bool bRstartFS)
 
 cpcButton_AckAlarm (string deviceName, string dpType, bool buttonEnabled, bool selected, dyn_string dsData, dyn_string &exceptionInfo)
 
bool cpcButton_isAckEnabled (string deviceName, string dpType, bit32 stsReg01Value, bool bStsReg01Bad, bit32 stsReg02Value, bool bStsReg02Bad)
 
 cpcButton_SetValue_ButtonUserAccess (string dpName)
 

Detailed Description

Common function for faceplate's button animation.

Author
Alexey Merezhin (EN-ICE-SIC)
Constraints
None
Usage
Public
PVSS managers
UI

Function Documentation

◆ cpcButton_setButtonState()

cpcButton_setButtonState ( string  button,
bool  buttonEnabled 
)

Set button to the given state

Constraints
None
Usage
Public
PVSS managers
UI
Parameters
buttonthe button name
buttonEnabledbutton state to set

Referenced by CPC_AnalogParameter_ButtonSetState(), CPC_AnalogStatus_ButtonSetState(), CPC_DigitalParameter_ButtonSetState(), CPC_SumAlarm_ButtonSetState(), CPC_WordParameter_ButtonSetState(), and CPC_WordStatus_ButtonSetState().

◆ cpcButton_ButtonSetState()

cpcButton_ButtonSetState ( dyn_string  dsButtons,
dyn_string  dsUserAccess,
string  deviceName,
string  sDpType,
dyn_string  dsData,
dyn_string &  exceptionInfo 
)

Generic way to set buttons state

Constraints
None
Usage
Public
PVSS managers
UI
Parameters
dsButtonsbuttons list
dsUserAccesspass user access list
deviceNamedevice name
sDpTypedevice type
dsDatadevice dpe's values
exceptionInfoexceptions

◆ cpcButton_AllowRestart()

cpcButton_AllowRestart ( string  deviceName,
string  sDpType,
bool  buttonEnabled,
bool  selected,
dyn_string  dsData,
dyn_string &  exceptionInfo 
)

AllowRestart button animation

Constraints
None
Usage
Public
PVSS managers
UI
Parameters
deviceNamedevice name
sDpTypedevice type
buttonEnabledis button enabled
selectedis device selected
dsDatadevice dpe's values
exceptionInfoexceptions

References cpcGenericDpFunctions_getDeviceProperty().

◆ cpcButton_ProcessControlObject_AllowRestart()

cpcButton_ProcessControlObject_AllowRestart ( string  deviceName,
string  sDpType,
bool  buttonEnabled,
bool  selected,
dyn_string  dsData,
dyn_string &  exceptionInfo 
)

AllowRestart button animation for PCO

Constraints
None
Usage
Public
PVSS managers
UI
Parameters
deviceNamedevice name
sDpTypedevice type
buttonEnabledis button enabled
selectedis device selected
dsDatadevice dpe's values
exceptionInfoexceptions

References cpcGenericDpFunctions_getDeviceProperty().

◆ cpcButton_SetValue_ButtonUserAccess()

cpcButton_SetValue_ButtonUserAccess ( string  dpName)

Set up g_dsUserAccess in device's set-value panels

Constraints
None
Usage
Public
PVSS managers
UI

References CPC_FACEPLATE_BUTTON_SAVE_VALUE.