Download presentation
Presentation is loading. Please wait.
Published byChastity Curtis Modified over 9 years ago
1
CPC (C ONTINUOUS P ROCESS C ONTROL ) SCADA UNICOS: UN IFIED I NDUSTRIAL CO NTROL S YSTEM CPC (C ONTINUOUS P ROCESS C ONTROL ) SCADA 1 Marco Boccioli - EN/ICE
2
Content UNICOS SCADA environment Device SCADA implementation 2
3
Where we are Specification file Logic completion PLC SCADA Generation tool User templates Instances source filesLogic source files WinCC OA importation file S7 Instance Generator S7 Logic Generator WinCC OA Instance Generator WinCC flexible Instance Generator WinCC flexible Importation files Touch Panel 3
4
UNICOS HMI Filter Applications tree Devices widgets 4
5
UNICOS HMI Hierarchy 5
6
UNICOS HMI Header Fix area (toolbar) Process area Synoptics Trends … Footer Contextual area 6
7
Device faceplate 7
8
Device configuration 8
9
Alarm screen 9 Mode of operation Filters: object type, alias, etc. Acknowledge Visible alarms
10
Layers integration 10 Industrial Supervision Layer Industrial Control Layer Object status Human Requests SCADA Object HMI Parameters Manual Request Information display SCADA Proxy Auto. Requests Object logic Orders PLC Object Object status Manual Request ParametersProcess Inputs Process Plant Operator SCADA Server (s) CERN Control Room(s) OWS Industrial Field Layer
11
UNICOS SCADA Object Model 11 Object Operator actions SCADA configuration tool PLC Operator screen RequestsParametersInformation Manual RequestsPLC Object Status
12
UNICOS architecture 12 Application A UNICORE UNICOS CPC package PLCs CPC PLCs (non CPC) Application packages (PIC, CIS,..) Application packages (QPS, SURVEY,..) Control layer UNICOSUNICOS Supervision layer Industrial PC Cooling & Ventilation Process Control applications LHC Collimators Interlocks LHC Gas Control LHC Cryogenics
13
UNICOS architecture 13 UNICORE UNICOS CPC package Devices implementation Generation Animation Diagnostics
14
WinCC OA device 14 Device = Data Point Device type = Datapoint Type (structure of the Data Point). Device name = Datapoint Alias
15
UNICOS SCADA Device A device type is Data Point Type Widget Faceplate Import / export functions 15
16
The Device Implementation Device structure definition Importation/exportation Library functions for configuring the device Widget Graphical objects drawing Library functions for animating ParamPanel Faceplate Graphical object drawing Library functions for animating Access rights definition Actions FW/UN configurations Integration within those frameworks 16
17
The Device Implementation Device structure definition Importation/exportation Library functions for configuring the device Widget Graphical objects drawing Library functions for animating ParamPanel Faceplate Graphical object drawing Library functions for animating Access rights definition Actions FW/UN configurations Integration within those frameworks 17
18
PLC – SCADA interface ProcessInput Bits from StsReg for digital inputs DPEs for analogue inputs (PosSt, …) ProcessOutput Bits in ManReg for digital orders DPEs for analogue orders (MPosR, …) 18 WinCC OA PLC InputOutput Process input data Process output data
19
File CPC.dpl Device Data Point Type 19 UNICOS CPC package Device Import/Export library Dev def
20
Unicos Import/Export 20 UNICORE UNICOS CPC package Dev def
21
The Device Implementation Device structure definition Importation/exportation Library functions for configuring the device Widget Graphical objects drawing Library functions for animating ParamPanel Faceplate Graphical object drawing Library functions for animating Access rights definition Actions FW/UN configurations Integration within those frameworks 21
22
WinCC OA importation file Device configuration = WinCC OA importation file. Default information: Device name Alias Description Nature Diagnostic Domain Device links Access Control Domain list Access Control Actions Html Widgets list ImportFile.txt # # Database PVSS generated at 2012.11.28 19:38:17 # # Device type: S7_PLC # #Delete;test;MultiOnOff; PLCCONFIG;S7-300;test;MultiOnOff;01;0;2;10;0;0;10;5000;137.138.192.1;DB100.DBD; # FESystemAlarm (SystemAlarm) # # Database PVSS generated at 2012.11.28 19:38:17 # # Device type: CPC_MultiOnOff # CPC_MultiOnOff;1;MOO1,TEST_PCO1,Feedback1,Feedback2,DO1_MOO1,DO2_MOO1;3 way CPC_MultiOnOff;17;MOO17,TEST_PCO1,Feedback1,Feedback2,AIR1,DO1_MOO17,DO2_MO 22
23
WinCC OA importation file Values are stored in Data Point Elements (DPEs). DPEs families: ProcessInput ProcessOutput DPEs are configured with: DPE name DPE description Format Unit Range Alert config Archive config Address Smoothing 23
24
ImportFile.txt Importation line mapping 24 mNm1m2mia1a2aiaK MainAdditional unit PosSt unit format PosSt address Mask value type parameters ……… … ………… ……… … ………… CPC_MultiOnOff;1;MOO1,TEST_PCO1,Feedback1,Feedback2,DO1_MOO1,DO2_MOO1;…
25
File cpc%DeviceType%Config.ctl CPC_%DeviceType%_checkConfig() CPC_%DeviceType%_checkCustomConfig() CPC_%DeviceType%_setConfig() CPC_%DeviceType%_setCustomConfig() 25 UNICOS CPC package Device Import library Import export Dev def
26
Device Export library File cpc%DeviceType%Config.ctl CPC_%DeviceType%_getConfig() CPC_%DeviceType%_getParamNames () 26 UNICOS CPC package Import export Dev def
27
Unicos Import/Export 27 UNICORE
28
Unicos Import/Export library File unicosImportDevice.ctl unicosImportDevice_check() … unicosImportDevice_import() unicosImportDevice_export() 28 UNICORE Import export
29
Unicos Import/Export 29 UNICORE UNICOS CPC package Import export Dev def
30
The Device Implementation Device structure definition Importation/exportation Library functions for configuring the device Widget Graphical objects drawing Library functions for animating ParamPanel Faceplate Graphical object drawing Library functions for animating Access rights definition Actions FW/UN configurations Integration within those frameworks 30
31
UNICOS Widget Represent the nature of an object Color and letter Body to represent the type of widget Pump Heater 3WayValve … 31
32
Color convention 32
33
Widget layout 33
34
Widget interaction Mouse over Mouse click Select if user authorized: operator minimum Mouse double click Select, open faceplate Mouse right click Menu Device selected: White box around Contextual button opened in context area Device name set in the footer of the graphicalFrame 34 Device selected mouse over Device selected By another UIM No action possible
35
Widget: graphical implementation Panel: CPCWidget_MultiOnOff_3WayValve.pnl Should contain no logic (i.e. control code) except Widget variable definitions Graphical objects naming convention Body1 pos_on pos_off … 35 UNICOS CPC package Import export Dev def
36
Widget: graphical implementation main() { dyn_string exceptionInfo; unGenericObject_WidgetInit($sIdentifier, UN_CONFIG_CPC_MULTIONOFF_DPT_NAME, exceptionInfo); } 36
37
How does animation work 37 Device library Event manager WinCC OA Driver dpConnect(f, dpe1, …) upd dpe1, … update eval f(dpe1, dpe1value, …)
38
UNICOS CPC package MultiOnOff widget animation File cpcMultiOnOff.ctl CPC_MultiOnOff_WidgetRegisterCB Connect to data CPC_MultiOnOff_WidgetInitStatics initialize static data (unit, format, …) CPC_MultiOnOff_WidgetLockDPEs Lock/unlock device CPC_MultiOnOff_WidgetDPEs specify which DPEs you want to animate CPC_MultiOnOff_WidgetAnimation the animation routine CPC_MultiOnOff_WidgetDisconnection the disconnection routine 38 widget Import export Dev def
39
Widget Primitive functions File unGenericObject.ctl unGenericObject_WidgetSelectAnimation unGenericObject_WidgetWarningAnimationDoubleStsReg cpcGenericObject_WidgetValidnessAnimation cpcGenericObject_WidgetAlarmTextAnimationDoubleStsReg cpcGenericObject_WidgetControlStateAnimation unGenericObject_WidgetDisplayValueAnimation … 39 UNICORE widget Import export
40
Unicos device widget 40 UNICORE UNICOS CPC package widget Import export Dev def
41
The Device Implementation Device structure definition Importation/exportation Library functions for configuring the device Widget Graphical objects drawing Library functions for animating ParamPanel Faceplate Graphical object drawing Library functions for animating Access rights definition Actions FW/UN configurations Integration within those frameworks 41
42
Parampanels Used in synoptic development on widget adding to specify DP by alias 42
43
The Device Implementation Device structure definition Importation/exportation Library functions for configuring the device Widget Graphical objects drawing Library functions for animating ParamPanel Faceplate Graphical object drawing Library functions for animating Access rights definition Actions FW/UN configurations Integration within those frameworks 43
44
Faceplate layout 44 Status Ranges Operation modes Requests Alarms Warnings Actions
45
MultiOnOff faceplate 45 Buttons panel Container Status panel
46
Color convention 46
47
Faceplate colors Status - cpcColor_Faceplate_Status Request - cpcColor_Faceplate_Request Alarm - cpcColor_Alarm_Bad Warning - unFaceplate_WarningActive Disconnected - unDataNoAccess Specified in animation code. 47
48
MOnOff faceplate animation cpcFaceplateMultiOnOff.pnl File cpcMultiOnOff.ctl CPC_MultiOnOff_FaceplateInitStatics init static data CPC_MultiOnOff_FaceplateLockDPEs specify lock dpes CPC_MultiOnOff_FaceplateDPEs specify which dpe you want to animate CPC_MultiOnOff_FaceplateStatusAnimationCB animation routine CPC_MultiOnOff_FaceplateStatusDisconnection disconnection routine 48 UNICOS CPC package Widget faceplate Import export Dev def
49
Unicos device faceplate 49 UNICORE UNICOS CPC package widget Import export Dev def
50
The Device Implementation Device structure definition Importation/exportation Library functions for configuring the device Widget Graphical objects drawing Library functions for animating ParamPanel Faceplate Graphical object drawing Library functions for animating Access rights definition Actions FW/UN configurations Integration within those frameworks 50
51
Access rights overview 4 users and group of users created during the unicos installation: Monitor Operator Expert Admin Action accessibility depends on current user’s role 51
52
Access rights definition File cpcMultiOnOff.ctl Define the access level for all and each action buttons[UN_FACEPLATE_BUTTON_SELECT] = CPC_ACCESS_RIGHTS_OPERATOR; buttons[UN_FACEPLATE_BUTTON_AUTO_MODE] = CPC_ACCESS_RIGHTS_OPERATOR; buttons[UN_FACEPLATE_BUTTON_MANUAL_MODE] = CPC_ACCESS_RIGHTS_OPERATOR; buttons[UN_FACEPLATE_BUTTON_FORCED_MODE] = CPC_ACCESS_RIGHTS_EXPERT; 52 UNICOS CPC package Widget faceplate Import export Dev def
53
Unicos access control 53 UNICORE UNICOS CPC package widget Import export LDAP Dev def
54
The Device Implementation Device structure definition Importation/exportation Library functions for configuring the device Widget Graphical objects drawing Library functions for animating ParamPanel Faceplate Graphical object drawing Library functions for animating Access rights definition Actions FW/UN configurations Integration within those frameworks 54
55
Right-click menu API File cpcMultiOnOff.ctl Tags: TAG_SCRIPT_DEVICE_TYPE_ButtonConfig Reused, extend if necessary. TAG_SCRIPT_DEVICE_TYPE_MenuConfiguration To configure right click menu items TAG_SCRIPT_DEVICE_TYPE_HandleMenu To process right click menu’ actions 55 UNICOS CPC package Widget faceplate Import export Dev def
56
Buttons panel 56 Buttons panel
57
File: CPCMultiOnOffButtonPanel.pnl main() { dyn_string exceptionInfo; g_sFaceplateButtonType = UN_CONFIG_CPC_MULTIONOFF_DPT_NAME; unGenericObject_ButtonInit($sDpName, g_sFaceplateButtonType, exceptionInfo); } 57 UNICOS CPC package Widget faceplate Import export Dev def
58
Buttons animation File cpcMultiOnOff.ctl Tags: TAG_SCRIPT_DEVICE_TYPE_ButtonConfig TAG_SCRIPT_DEVICE_TYPE_ButtonDPEs dynAppend(dpes, deviceName + ".ProcessInput.StsReg01"); dynAppend(dpes, deviceName + ".ProcessInput.StsReg01:_online.._invalid"); TAG_SCRIPT_DEVICE_TYPE_ButtonSetState iterate through buttons (fetched from _ButtonConfig) “switch” to define buttonEnabled (button-related code) “cpcButton_setButtonState” to animate 58 UNICOS CPC package Widget faceplate Import export Dev def
59
_ButtonSetState example for(int i = 1; i <= dynlen(dsButtons); i++) { buttonEnabled = (dynContains(dsUserAccess, dsButtons[i]) > 0); // User access switch (dsButtons[i]) {... case UN_FACEPLATE_BUTTON_ACK_ALARM: buttonEnabled = buttonEnabled && !getBit(stsReg01Value, UN_STSREG01_LDST) && !getBit(stsReg02Value, CPC_STSREG02_SOFTLDST) && !bStsReg01Bad && !bStsReg02Bad;... } cpcButton_setButtonState(UN_FACEPLATE_BUTTON_PREFIX + dsButtons[i], buttonEnabled); } 59
60
Unicos actions 60 UNICORE UNICOS CPC package widget Import export Dev def
61
The Device Implementation Device structure definition Importation/exportation Library functions for configuring the device Widget Graphical objects drawing Library functions for animating ParamPanel Faceplate Graphical object drawing Library functions for animating Access rights definition Actions FW/UN configurations Integration within those frameworks 61
62
Event bits evStsReg01 Set up accordingly to the DeviceType model CERN, Dec/2012 62 UCPC Advanced Course: SCADA Device
63
Creating a Synoptic panel 63
64
Uniform look and feel 64
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.