unCPC6
WinCC-OA implementation of UNICOS CPC
 All Files Functions Variables Pages
cpcAnalogStatus.ctl File Reference

Functions

 CPC_AnalogStatus_ObjectListGetValueTime (string deviceName, string deviceType, dyn_string &dsReturnData)
 
 CPC_AnalogStatus_MenuConfiguration (string deviceName, string dpType, dyn_string dsAccessOk, dyn_string &menuList)
 
 CPC_AnalogStatus_HandleMenu (string deviceName, string dpType, dyn_string menuList, int menuAnswer)
 
 CPC_AnalogStatus_WidgetRegisterCB (string sDp, bool bSystemConnected)
 
 CPC_AnalogStatus_WidgetInitStatics (string deviceName)
 
 CPC_AnalogStatus_WidgetDPEs (string deviceName, dyn_string &dpes)
 
 CPC_AnalogStatus_WidgetAnimation (dyn_string dpes, dyn_anytype values, string widgetType)
 
 CPC_AnalogStatus_WidgetDisconnection (string sWidgetType)
 

Detailed Description

cpcAnalogStatus.ctl This library contains the widget, faceplate, etc. functions of AnalogStatus.

Creation Date
dd/mm/yyyy
Modification History
Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Author
the author (DEP-GROUP)

Function Documentation

CPC_AnalogStatus_ObjectListGetValueTime ( string  deviceName,
string  deviceType,
dyn_string &  dsReturnData 
)
Function called from snapshot utility of the treeDeviceOverview to get the time and value
Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Parameters
deviceNameinput, device name
deviceTypeinput, device type
dsReturnDataoutput, return data, array of 5 strings

Referenced by CPC_Word2AnalogStatus_ObjectListGetValueTime(), and CPC_WordStatus_ObjectListGetValueTime().

CPC_AnalogStatus_MenuConfiguration ( string  deviceName,
string  dpType,
dyn_string  dsAccessOk,
dyn_string &  menuList 
)
pop-up menu
Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Parameters
deviceNameinput, device DP name
dpTypeinput, device type
dsAccessOkinput, the access control
menuListoutput, pop-up menu to show, dyn_string to be given to the popupMenu function

References CPC_POPUPMENU_DIAG_INFO_TEXT, cpcGenericObject_addDefaultUnicosActionToMenu(), and cpcGenericObject_addTrendActionToMenu().

CPC_AnalogStatus_HandleMenu ( string  deviceName,
string  dpType,
dyn_string  menuList,
int  menuAnswer 
)
handle the answer of the popup menu
Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Parameters
deviceNameinput, device DP name
dpTypeinput, device type
menuListinput, the access control
menuAnswerinput, selected menu value

References cpcGenericObject_HandleUnicosMenu().

CPC_AnalogStatus_WidgetRegisterCB ( string  sDp,
bool  bSystemConnected 
)
 widget register callback
Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Parameters
sDpinput, the DistributedControl system name DP name
bSystemConnectedinput, the state of the system name

References CPC_AnalogStatus_WidgetDisconnection(), cpcGenericAnimation_WidgetConnect(), cpcGenericAnimation_WidgetDisconnect(), and cpcGenericAnimation_WidgetLockDPEs().

CPC_AnalogStatus_WidgetInitStatics ( string  deviceName)
Init static values which are used in widget animation
Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Parameters
deviceNameinput, the device name
CPC_AnalogStatus_WidgetDPEs ( string  deviceName,
dyn_string &  dpes 
)
Returns the list of AnalogStatus DPEs which should be connected on widget animation
Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Parameters
deviceNameinput, the device name
dpesinput/output, dpe list
CPC_AnalogStatus_WidgetAnimation ( dyn_string  dpes,
dyn_anytype  values,
string  widgetType 
)
callback function on the device data
Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Parameters
dpesinput, the dpe names
valuesinput, the dpe values

References cpcGenericObject_FormatValueWithUnit(), and cpcGenericObject_WidgetValidnessAnimation().

CPC_AnalogStatus_WidgetDisconnection ( string  sWidgetType)
Disconnect function for the widget data

Parameters:

Usage: Internal

PVSS manager usage: NG, NV

Constraints: . Global variables defined in OnOff faceplate . PVSS version: 2.12.1 . operating system: NT and W2000, but tested only under W2000. . distributed system: yes.

Referenced by CPC_AnalogStatus_WidgetRegisterCB().