650 likes | 855 Views
UNICOS : UNified Industrial COntrol System CPC (Continuous Process Control) SCADA. Marco Boccioli - EN/ICE. Content. UNICOS SCADA environment Device SCADA implementation. Where we are. Specification file. Generation tool. User templates. WinCC flexible Instance Generator.
E N D
UNICOS: UNified Industrial COntrol System CPC (Continuous Process Control)SCADA Marco Boccioli - EN/ICE
Content UNICOS SCADA environment Device SCADA implementation
Where we are Specificationfile Generationtool Usertemplates WinCC flexible InstanceGenerator S7 LogicGenerator S7 InstanceGenerator WinCC OA InstanceGenerator Instancessource files Logicsource files WinCC OA importation file WinCC flexible Importation files Logiccompletion SCADA Touch Panel PLC
UNICOS HMI Filter Applications tree Devices widgets
UNICOS HMI Hierarchy
UNICOS HMI Header Fix area (toolbar) Process area Synoptics Trends … Footer Contextual area
Alarm screen Mode of operation Filters: object type, alias, etc. Acknowledge Visible alarms
Object status PLC Object Manual Request Process Inputs Parameters Object logic Auto. Requests Orders Process Layers integration Industrial Supervision Layer Plant Operator SCADA Proxy Human Requests SCADA Object HMI Parameters Information display OWS CERN Control Room(s) Object status Manual Request Industrial Control Layer SCADA Server(s) Industrial Field Layer
UNICOS SCADA Object Model SCADA configuration tool Operator screen Operator actions Object Information Requests Parameters Manual Requests PLC Object Status PLC
UNICOS architecture Supervision layer Application packages (QPS, SURVEY, ..) Application packages (PIC, CIS, ..) UNICOS CPC package Application A UNICOS Cooling & Ventilation LHC Cryogenics LHC Gas Control LHC Collimators Interlocks UNICORE Process Control applications PLCs (non CPC) Control layer PLCs CPC Industrial PC
UNICOS architecture UNICOS CPC package UNICORE Generation Animation Diagnostics Devices implementation
WinCC OA device • Device= Data Point • Device type = Datapoint Type (structure of the Data Point). • Device name = Datapoint Alias
UNICOS SCADA Device A device type is • Data Point Type • Widget • Faceplate • Import / export functions
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
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
PLC – SCADA interface Process input data Input Output WinCC OA Process output data PLC • ProcessInput • Bits from StsReg for digital inputs • DPEs for analogue inputs (PosSt, …) • ProcessOutput • Bits in ManReg for digital orders • DPEsfor analogue orders (MPosR, …)
Device Import/Export library UNICOS CPC package Dev def File CPC.dpl • Device Data Point Type
Unicos Import/Export Dev def UNICOS CPC package UNICORE
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
WinCC OA importation file 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 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
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
Importation line mapping Main Additional ImportFile.txt … … … … … … … … m1 m2 mi mN a1 a2 ai aK … … … … … … … … PosSt address Mask value type unit PosSt unit parameters format CPC_MultiOnOff;1;MOO1,TEST_PCO1,Feedback1,Feedback2,DO1_MOO1,DO2_MOO1;…
Device Import library UNICOS CPC package Dev def Import export File cpc%DeviceType%Config.ctl CPC_%DeviceType%_checkConfig() CPC_%DeviceType%_checkCustomConfig() CPC_%DeviceType%_setConfig() CPC_%DeviceType%_setCustomConfig()
Device Export library UNICOS CPC package Dev def Import export File cpc%DeviceType%Config.ctl CPC_%DeviceType%_getConfig() CPC_%DeviceType%_getParamNames ()
Unicos Import/Export UNICORE
Unicos Import/Export library UNICORE Import export File unicosImportDevice.ctl unicosImportDevice_check() … unicosImportDevice_import() unicosImportDevice_export()
Unicos Import/Export Dev def UNICOS CPC package UNICORE Import export Import export
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
UNICOS Widget • Represent the nature of an object • Color and letter • Body to represent the type of widget • Pump • Heater • 3WayValve • …
Widget interaction Device selected mouse over Device selected By another UIM No action possible Device selected • 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
Widget: graphical implementation UNICOS CPC package Dev def Import export 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 • …
Widget: graphical implementation main() { dyn_stringexceptionInfo; unGenericObject_WidgetInit($sIdentifier, UN_CONFIG_CPC_MULTIONOFF_DPT_NAME, exceptionInfo); }
How does animation work Device library Event manager WinCC OA Driver dpConnect(f, dpe1, …) upd dpe1, … update eval f(dpe1, dpe1value, …)
MultiOnOff widget animation Dev def UNICOS CPC package widget Import export 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
Widget Primitive functions UNICORE widget Import export File unGenericObject.ctl • unGenericObject_WidgetSelectAnimation • unGenericObject_WidgetWarningAnimationDoubleStsReg • cpcGenericObject_WidgetValidnessAnimation • cpcGenericObject_WidgetAlarmTextAnimationDoubleStsReg • cpcGenericObject_WidgetControlStateAnimation • unGenericObject_WidgetDisplayValueAnimation • …
Unicos device widget Dev def UNICOS CPC package UNICORE widget widget Import export Import export
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
Parampanels Used in synoptic development on widget adding to specify DP by alias
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
Faceplate layout Status Operation modes Alarms Ranges Requests Warnings Actions
MultiOnOff faceplate Container Status panel Buttons panel
Faceplate colors Status - cpcColor_Faceplate_Status Request - cpcColor_Faceplate_Request Alarm - cpcColor_Alarm_Bad Warning - unFaceplate_WarningActive Disconnected - unDataNoAccess Specified in animation code.
MOnOff faceplate animation Dev def UNICOS CPC package Widget faceplate Import export 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
Unicos device faceplate Dev def UNICOS CPC package UNICORE widget widget Import export Import export
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