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

Functions

 CPC_MassFlowController_AcknowledgeAlarm (string deviceName, string dpType, dyn_string &dsNeedAck)
 
 CPC_MassFlowController_ObjectListGetValueTime (string deviceName, string deviceType, dyn_string &dsReturnData)
 
 CPC_MassFlowController_MenuConfiguration (string deviceName, string dpType, dyn_string dsAccessOk, dyn_string &menuList)
 
 CPC_MassFlowController_HandleMenu (string deviceName, string dpType, dyn_string menuList, int menuAnswer)
 
 CPC_MassFlowController_WidgetInitStatics (string deviceName)
 
 CPC_MassFlowController_WidgetDPEs (string deviceName, dyn_string &dpes)
 
 CPC_MassFlowController_WidgetAnimation (dyn_string dpes, dyn_anytype values, string widgetType)
 
 CPC_MassFlowController_WidgetDisconnection (string sWidgetType)
 
mapping CPC_MassFlowController_ButtonConfig (string deviceName)
 
 CPC_MassFlowController_ButtonDPEs (string deviceName, dyn_string &dpes)
 
 CPC_MassFlowController_ButtonSetState (string deviceName, string dpType, dyn_string dsUserAccess, dyn_string dsData)
 
 CPC_MassFlowController_FaceplateInitStatics (string deviceName)
 
 CPC_MassFlowController_FaceplateDPEs (string deviceName, dyn_string &dpes)
 
 CPC_MassFlowController_FaceplateStatusAnimationCB (dyn_string dsDpes, dyn_anytype daValues)
 

Detailed Description

cpcMassFlowController.ctl This library contains the widget, faceplate, etc. functions of MassFlowController.

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

Function Documentation

◆ CPC_MassFlowController_AcknowledgeAlarm()

CPC_MassFlowController_AcknowledgeAlarm ( string  deviceName,
string  dpType,
dyn_string &  dsNeedAck 
)

Returns the list of MassFlowController DPE with alarm config that can be acknowledged

Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Parameters
deviceNameinput, device name DP name
dpTypeinput, device type
dsNeedAckoutput, the lsit of DPE

◆ CPC_MassFlowController_ObjectListGetValueTime()

CPC_MassFlowController_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

◆ CPC_MassFlowController_MenuConfiguration()

CPC_MassFlowController_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_ALARMS_TEXT, CPC_POPUPMENU_ALLOW_TO_RESTART_TEXT, cpcGenericObject_addDefaultUnicosActionToMenu(), and cpcGenericObject_addUnicosActionToMenu().

◆ CPC_MassFlowController_HandleMenu()

CPC_MassFlowController_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_MassFlowController_WidgetInitStatics()

CPC_MassFlowController_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

References cpcGenericDpFunctions_getDeviceProperty().

◆ CPC_MassFlowController_WidgetDPEs()

CPC_MassFlowController_WidgetDPEs ( string  deviceName,
dyn_string &  dpes 
)

Returns the list of MassFlowController 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_MassFlowController_WidgetAnimation()

CPC_MassFlowController_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_WidgetAnimationDoubleStsReg().

◆ CPC_MassFlowController_WidgetDisconnection()

CPC_MassFlowController_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.

Reviewed:
2018-07-24 Callback

References cpcGenericObject_WidgetDisconnection().

◆ CPC_MassFlowController_ButtonConfig()

mapping CPC_MassFlowController_ButtonConfig ( string  deviceName)

Return button configuration including access level

Constraints
None
Usage
Public
PVSS managers
Ui, CTRL

References CPC_FACEPLATE_BUTTON_ALLOW_RESTART, and CPC_FACEPLATE_BUTTON_MFC_PARAMS.

◆ CPC_MassFlowController_ButtonDPEs()

CPC_MassFlowController_ButtonDPEs ( string  deviceName,
dyn_string &  dpes 
)

Configure the list of dpes that needs for buttons animation

Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Parameters
deviceNameinput, the name of device
dpesinput, the list of dpes to connect

◆ CPC_MassFlowController_ButtonSetState()

CPC_MassFlowController_ButtonSetState ( string  deviceName,
string  dpType,
dyn_string  dsUserAccess,
dyn_string  dsData 
)

Set the state of the contextual button of the device

Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Parameters
deviceNameinput, the device DP name
dpTypeinput, the device type
dsUserAccessinput, list of allowed action on the device
dsDatainput, the device data [1] = lock state, [2] = lock by, [3] .. [6] device data

◆ CPC_MassFlowController_FaceplateInitStatics()

CPC_MassFlowController_FaceplateInitStatics ( string  deviceName)

Init static values which are used in faceplate animation

Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Parameters
deviceNameinput, the device name

References cpcGenericDpFunctions_getDeviceProperty().

◆ CPC_MassFlowController_FaceplateDPEs()

CPC_MassFlowController_FaceplateDPEs ( string  deviceName,
dyn_string &  dpes 
)

Returns the list of MassFlowController DPEs which should be connected on faceplate animation

Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Parameters
deviceNameinput, the device name
dpesinput/output, dpe list

◆ CPC_MassFlowController_FaceplateStatusAnimationCB()

CPC_MassFlowController_FaceplateStatusAnimationCB ( dyn_string  dsDpes,
dyn_anytype  daValues 
)

callback function on the device data

Constraints
None
Usage
Public
PVSS managers
Ui, CTRL
Parameters
dsDpesinput, the dpe names
daValuesinput, the dpe values

References cpcGenericObject_animateMaskEvent(), cpcGenericObject_CheckboxAnimate(), cpcGenericObject_ColorBoxAnimate(), cpcGenericObject_setFaceplateStatusBits(), and cpcGenericObject_setStatusBitInvalidValue().