Control System, general approach, integration with TANGO, and some User Interfaces Guifré Cuní on behalf of the Controls Group GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 1
Synchrotron near Barcelona GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 2
ALBA at a glance (I) The ALBA project was approved in 2002, facility redesigned in 2004, the site construction started in 2006, it was officially opened in 2010. After commissioning, friendly users in 2011, and official users in 2012. Dec 2006 ALBA means Sunrise both in Catalan and Spanish Oct. 2008 Mar 2010 GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 3
ALBA at a glance (II) Third generation Synchrotron Light facility 3GeV electron beam - 270m Storage Ring It currently has 7 operational beamlines 2 phase-ii beamlines now in progress ~5000 hours of beamtime GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 4
Control System design choices Ethernet as a fieldbus cpci and Industrial PCs (diskless/raid) TANGO as middleware, Sardana as SCADA MySQL: Central Archiver +10000 variables MRF for timing PLC based protection systems Central repository CCDB: infrastructure GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 5
Some hardware types Many signals and controls set-points distributed. EPS/PSS/MPS Interlocks, Radiation, Doors Vacuum (pressure, temperatures, etc) Power supplies (Currents, Voltages, flows, Interlocks, Timing) Radio Frequency Power, Water flows, temperature power supplies Many interlocks, from FIM, Orbit and FE's Diagnostics Beam Position Monitors Beam Loss Monitors Beam Charge Monitors Fast Current Transformers Fluorescence Screens etc Beamlines Standard systems (Vacuum, EPS/PSS, Diagnostics) Motion systems (stepper and servo motors) Diagnostics Fluorescence Screens Ion Chambers Detectors GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 6
Heterogeneous devices FROM Heterogeneous hardware: Different buses (cables, connectors) Serial, ethernet, GPIB Different protocols Modbus over TCP/485, SCIP, VISA Exotic vendor-dependent TO homogeneous access: A single wayto control everything Centralizecontrol oneachsector and convert all buses to ethernet Control Systemshouldprovidere-usable interfaces and knwoledge Homogeneityenablesgenericservices: Archiving, Alarms, logs Tango Tango Devices Tango Devices Devices of of Tangof Tango Classes Tango Classes Classes GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 7
TANGO as middleware Clients AtkPanel GUIs python scripts Archiving Service TANGO Device Device Device Device Device Device Device Device Tango Database GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 8
TANGO database GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 9
Sardana as the SCADA GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 10
Other control services Control System Database Cabling/Hardware database Archiving System Alarm System Electronic logbook Web reports RT Tickets GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 11
Central Repository: CCDB CCDB: Equipments, connectors and cable types, Instances of equipments and cables (naming conventions) Documentation files Installation logs Source for automatic code generation and creation of Tango Devices Next: Inventory. Manage serial numbers and integrate maintenance data GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 12
Autocreated VC Tango Devices All the devices of the Vacuum Control System has been automatically created using the information from our Cabling Database (CCDB): 424 Ion Pumps 230 Gauges 409 Thermocouples 48 Racks full of controllers 16 Industrial PCs 16 PLCs 1727+ cables CCDB stores documentation and diagrams or devices, configuration, equipment, connector, racks, We automated not only device creation, also the setup of connections between them (serial lines, interlock DO, sensor/ps links) GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 13
From CCDB to TANGO DSs Device names are extracted from spreadsheets exported from the cabling database. A lookup table is created for all connections between devices. The cable types are used to convert cabling connections into control properties (assign serial lines to PC ports, link each Ion Pump to its power supply, ) Control scripts are used to automate Tango Device creation; and also check for changes periodically (new ID inserted, power supply replaced,...) GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 14
From CCDB to PLCs to TANGO APJ file PLC Common INIT file: - Coms. Libraries (Modbus, EPL) - Data structures - Common variables - Common SW tasks ALBA ccdb DB Programmer Inputs PLC Programming SW (B&R Automation Studio) MySQL XLS Modbus/TCP XLS VBasic script VBasic XLS files PLC documentation: I/F with devices, I/O channels assignation, etc. PLC code generation: PLC variables declaration PLC Modbus mapping and variables allocation. PLC standard services: disable and force variables, alarm/warning thresholds checking, permanent memory storage, etc. Modbus Device Server AlbaPLC Device Server GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 15
TANGO for PANIC PANIC, The Alba Alarm System Distributed in PyAlarm Device Servers, each managing a collection of alarm formulas. Each Alarm is unique in the system and can be managed by only 1 PyAlarm device. Each PyAlarm device performs locally both Logging and Notification (email/sms) Additional actions are passed to external devices (SnapArchiver, PopupDevice) Configuration is stored in the Tango Database. Alarm logging in the Tango Snapshoting database. The Panic API provides an homogeneous view of the system for devices and GUI. host1 DS DS DS PyAlarm PyAlarm Tango / Panic API Database BL24/VC/VGCT-01/P1>3e-5 GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 16
User interfaces at Control Room GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 17
General overview GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 18
Vacuum views GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 19
Radio Frequency Power Voltages Temperatures Waterflows Interlocks GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 20
Magnets and Power Supplies Current Setpoints Ramps Temperatures Interlocks GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 21
Thermocouples browser Filters by sector. Name and label of thermocouple can be also filtered. Alias names provided by accelerators (updated?) Thermocouple index provided for taurus and Mambo applications. GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 22
Trends, Options and Archiving Any attribute can be dragged from the Taurus panel to the Trends. Archiving can be enabled/disabled In the right-button menu in trends. Archiving data is plot when selecting a past date of ranges GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 23
GC - ELI-TANGO Workshop - 24-25 Feb 2015 - Art Hotel, Szeged 24