1 / 78

Function Generator Controller (FGC) Hardware, Software and Controls in the PS complex

Function Generator Controller (FGC) Hardware, Software and Controls in the PS complex. CERN Operator Training 2014. Quentin King TE-EPC-CCS With thanks to all my colleagues in TE-EPC, BE-OP and BE-CO who have collaborated on the FGC project.

ciro
Download Presentation

Function Generator Controller (FGC) Hardware, Software and Controls in the PS complex

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Function Generator Controller (FGC) Hardware, Software and Controls in the PS complex CERN Operator Training 2014 Quentin King TE-EPC-CCS With thanks to all my colleagues in TE-EPC, BE-OP and BE-CO who have collaborated on the FGC project.

  2. CERN Operator TrainingFGC3 Hardware, Software and Controls in the PS complex • Corrector dipole and multipole power converter renovation in the PSB • Overview of power converter control • History of the FGC project • Features of the FGC3 • FGC system architecture • Working Sets/Knobs and function editor via INCA • OASIS • Alarms • Post Mortem • Expert interfaces

  3. CERN Operator TrainingFGC3 Hardware, Software and Controls in the PS complex • Corrector dipole and multipole power converter renovation in the PSB • Overview of power converter control • History of the FGC project • Features of the FGC3 • FGC system architecture • Working Sets/Knobs and function editor via INCA • OASIS • Alarms • Post Mortem • Expert interfaces

  4. 1 Corrector circuit converter renovation in the PSB There are 488 corrector magnets organised in 254 circuits. The 146 old power converters were installed between 1972 and 1978. They used many bipolar transistors in parallel to regulate the current from a common 30V DC-bus. 4-quadrant operation was achieved using a mechanical polarity switch, which only allowed a few inversions per year. They were controlled by CAMAC, shared GFA’s and hybrid single transceivers since 1980. Only 8 different functions were available for all the corrector circuits.

  5. 1 Corrector circuit converter renovation in the PSB Old linear converters have been replaced by new switched-mode “ACAPULCO” converters 32 ACAPULCO converters were used for dipole corrector circuits in 2012/13 82 ACAPULCO converters will be used for the multipole corrector circuits from 2014 FGC_Ether FGC_Ether Gateway

  6. 1 Corrector circuit converter renovation in the PSB As before, there will be many more circuits (254) than converters (114). Patch cables are used to link to the circuits that are currently required to a converter. An FGC “device” is defined in the database for every circuit. E.g. BR1.DHZ3LY The identity of a circuit is linked to an FGC3 MAC address dongle: To Magnets Patch cables From converters

  7. 1 FGC Controls for other circuits The majority of converters in the Linac4, PSB and PS transfer lines are fast pulsed (capacitor discharge) converters. For example: Mididiscap: ±600V ±20A In addition, Linac4 uses Maxidiscap andMegadiscap converter for magnets andModulators and pulsed HV converters for the Klystrons and the source

  8. 1 FGC Controls for other circuits Following LS1: Four correctors with new CANCUN converters will be used in the PS Linac4 uses FGC3 controls: Delta commercial converters for magnets in DC Commercial HV converters for the source Fast pulsed converters (using preliminary boot software) Compass experiment will use FGC3 controls for its new Delta converters driving its superconducting magnets Many more converters will follow including HIE-ISOLDE, ISOLDE GPS and ELENA Also, SPS Mugef software has been upgraded to instantiate virtual FGCs for all Mugef channels. There are now 3377 FGC devices defined (gateways and FGCs) By LS3, all TE-EPC power converters will be controlled by either real or virtual FGCs (~5000 devices)

  9. CERN Operator TrainingFGC3 Hardware, Software and Controls in the PS complex • Corrector dipole and multipole power converter renovation in the PSB • Overview of power converter control • History of the FGC project • Features of the FGC3 • FGC system architecture • Working Sets/Knobs and function editor via INCA • OASIS • Alarms • Post Mortem • Expert interfaces

  10. 2 Overview of power converter control What is a Power Converter? It’s a power supply! • TYPE 1 : Regulated • Continuously regulated voltage source based on: • Linear amplifier, or • Switching of AC or DC. • Outer current (or field) regulation loop. • Current or Field reference can be: • Static (DC). • Pulsed – i.e. a steady current is only required for a short time per cycle. • Waveform – the current must be correct all the time. • One FGC3 software class (FGC3_PC) will control all types of continuously regulated power converter. • TYPE 2 : Fast Pulsed • Fast pulsed voltage source based on capacitive energy discharge. • In more demanding cases the current is regulated during the short flat top (~2ms), in other cases it is open-loop. • Current reference is always pulsed. • One FGC3 software class (FGC3_FP_PC) will control all types of fast pulses power converter.

  11. 2 Overview of power converter control Example of a Regulated converter: ACAPULCO Iout ACMainsSupply • Power Part • (Voltage Source) • « Voltage amplifier » • Magnet Protection ±30 V ±50 A Vout 400 Vac CoolingSystem MagnetProtection A B digital.... analog Vref ControlEthernetTimingI ref • Digital Electronic (FGC3) • Voltage Source State Control • High Precision digital current loop • Communication with CCC CurrentTransducershead & electronic I.A Earth Circuit I.B Gateway AC Mains Supply AC Mains Supply timing Magnet Protection Detection system & General Interlock Controller CCC

  12. 2 Overview of power converter control What does it take to control a regulated power converter? State control: ON, OFF, RESET Diagnostics – record first fault in case of trip Current reference generation – requires timing and cycle user etc… Current measurement – DCCT Current regulation – Analogue or Digital Acquisition of current measurement Voltage measurement – Voltage divider Voltage regulation – Analogue or Digital Firing control Acquisition of voltage measurement Logging of signals in case of trip (post mortem) Generation of Alarms

  13. 2 Overview of power converter control Differences between G64/Mil1553 and FGC3 control

  14. 2 Overview of power converter control In summary, with the FGC3: Function generation and acquisition are moved from external systems into the FGC. Timing and event reception passes via the FGC gateway Current regulation is done digitally in software: ACAPULCOVoltage Source Vref Vload F(z) Iref DAC Iload Imeas ADC FGC3

  15. 2 Overview of power converter control FGC State Machine: STATE.PC This state machine is used in all FGC classes in the LHC, SPS & PS complex Setting property: MODE.PC Acquisition property: STATE.PC It support 8 settable states (shown in green) using MODE.PC There are three operational states: CYCLING DIRECT IDLE It is used with both regulated and fast pulsed converters ON_STANDBY for a regulated converter produces the minimum current. The existing STANDBY state for non-FGC controls has been renamed BLOCKING

  16. 2 Overview of power converter control FGC State Machine: STATE.PC_SIMPLIFIED STATE.PC is complex and not easy to use because you need to know which state is used for operation for a given device. STATE.PC_SIMPLIFIED has been created to solve this problem. This has only three settable states using MODE.PC_SIMPLIFIED The power engineer configures the property MODE.ON to indicate the operational state for the device. Setting MODE.PC_SIMPLIFIED to ON will turn on the converter and set MODE.PC to the correct operational state for that particular circuit. Setting MODE.PC_SIMPLIFIED to ON will turn on the converter and set MODE.PC to the correct operational state for that particular circuit. CYCLING is used for devices operating with cycling timing (PPM or non-PPM). For regulated converters, the reference function can be PULSE, or TABLE, or any of the other types of function. For fast pulsed converters, the only supported reference function is PULSE. DIRECT is used for DC circuits. The reference is set in the property REF.CCV. IDLE is used for converters in the LHC where controlled ramps are required with non-cycling timing events. This will also be used in AD after the upgrade of controls to FGC3 (LS2?).

  17. 2 Overview of power converter control SLOW_ABORT State The SLOW_ABORT state is essential for the LHC where circuits can have a LOT of energy. It smoothly ramps down the current reference to theminimum value before switching off the converter. This protects the superconducting magnetsand also the converter’s circuit breaker from unnecessary openingsat high power. Setting MODE.PC_SIMPLIFIED toOFF will turn off the converter viaSLOW_ABORT so it will be used automaticallyfrom the Working Sets/Knobs

  18. 2 Overview of power converter control FLT_STOPPING State A FAULT is defined as a condition that mustcause the converter to stop. If any fault is detected when the converter is running, then the state will change to FLT_STOPPING and the converter will shut down. Once the power has beendisconnected and any stored energy has beendischarged then the statecan then change to FLT_OFF.

  19. 2 Overview of power converter control FLT_OFF State If any fault is detected when the converter is not running, then the state will beFAULT_OFF and it is NOT possible to restart the converter from this state. All FAULTS are LATCHED. To restart the converter the fault condition must be cleared AND the faultlatch must be RESET. This will allow the statetochange to OFF, fromwhere it is possible to start the converter. Setting MODE.PC_SIMPLIFIED to OFF willtry to reset the faults.

  20. 2 Overview of power converter control Reference Generation Depending on the type and use of a power converter the reference can be: DC set-point controlled using a knob Pulsed current reference controlled using a knob Waveform reference from an FGC3 controlled using a function editor Waveform reference from a GFAS controlled using the function editor

  21. 2 Overview of power converter control Reference Generation in an FGC The FGC software includes a function generation library that supports eleven different types of reference function:

  22. 2 Overview of power converter control Function Generation Library The PLEP function is special because it can be initialised with a non-zero gradient. This is useful because it is able to move the current reference for a power converter from any value to any other value while respecting all the converter limits. It can therefore be used to abort a running function. PLEP

  23. 2 Overview of power converter control Function Generation Library The RAMP function is special because it allows the initial rate to be non-zero and the rate can be limited either by a simple rate limit or by any other limitation in the external system. This allow maximum rate ramps limited by the available voltage to always end with a smooth arrival. RAMP

  24. 2 Overview of power converter control Function Generation Library PULSE TABLE is the standard method for defining a reference function. Linear interpolation is used to connection the points defined in the function editor.

  25. 2 Overview of power converter control Function Generation Library The PPPL reference was created for the CERN PS main magnet controls. The field is ramped up in stages with a series of linear plateaus defined parametrically using seven values. These specify a fast parabolic acceleration followed by a slow parabolic deceleration, then a fast parabolic deceleration and finally a linear section that is not necessarily constant. PPPL

  26. 2 Overview of power converter control Function Generation Library TABLE TABLE is the standard method for defining a reference function. Linear interpolation is used to connection the points defined in the function editor.

  27. 2 Overview of power converter control Function Generation Library LINEAR and CUBIC LINEAR and CUBIC trim functions are useful for small changes in the reference, especially when many circuits must change synchronously, since unlike the PLEP function, the duration for the change is an input parameter. CUBIC trims are essential for super-conducting circuits because they avoid discontinuities in the rate of change, which would generate voltage spikes.

  28. 2 Overview of power converter control Function Generation Library SINE, COSINE, SQUAREand STEPS COSINE has windowing enabled to provide a smooth start and end

  29. 2 Overview of power converter control Regulation Regulating current generally requires three nested loops: Current, Voltage, Firing. None, some or all of the loops may be digital (the others are analogue). Regulation may use feedback or feedforward. Power Iref Vref Fref PWM Switchingbridges Function generator Current loop Voltage loop Firing Filter V Bridge voltage measurement Filter current measurement V Magnet voltage measurement I Magnets Magnet current measurement DCCT

  30. CERN Operator TrainingFGC3 Hardware, Software and Controls in the PS complex • Corrector dipole and multipole power converter renovation in the PSB • Overview of power converter control • History of the FGC project • Features of the FGC3 • FGC system architecture • Working Sets/Knobs and function editor via INCA • OASIS • Alarms • Post Mortem • Expert interfaces

  31. 3 History of the FGC project • One controller per converter (~700 in total). • MIL1553 fieldbus. • 6809 microprocessor, FLEX OS and Pascal. • Analogue current regulation. • Function Generator included: Current reference created using DAC.

  32. 3 History of the FGC project • FGC project started in 1997 by the same team that produced the LEP controls. • First requirement was to control the converters in the magnet test benches in SM18 in 1999. • Function Generator/Controller Version 1 (FGC1). • One controller per converter (40 in total). • WorldFIP fieldbus. • Four 6U boards. • M68HC16 µP + TMS320C32 DSP in C. • Digital current regulation. • Reused LEP control crates. • Retired in 2010.

  33. 3 History of the FGC project • For the LHC radiation tolerance measures were required (EDAC). • An evolution of the FGC1 became the Function Generator/Controller Version 2 (FGC2). • Industrial form factor (20TE x 6U x 160mm) with a protective metal cassette. • 2100 produced, 1800 installed

  34. 3 History of the FGC project • First requirement for FGC control in the PS complex: the upgrade of the PS MPS regulation. • The FGC2 was adaptable to support regulation of magnetic field by receiving the B-train with an extension card. • New software class written to support cycling with PPM properties. • Dedicated application – no support for Working sets/Knobs.

  35. 3 History of the FGC project • Control of POPS required a new digital link to the VME controller from Converteam. • A new interface card was created. • The PS MPS software class was upgraded to support the link with the POPS controls. • Support for publication added so software can work with Working set/Knobs and INCA, although it will probably continue to be controlled with dedicated application.

  36. 3 History of the FGC project • Function Generator/Controller Version 3 (FGC3). • Evolution of FGC2 – Smaller, Faster, Cheaper. • Not radiation tolerant. • 700+ will be installed by the end of LS2. • WorldFIP or 100Mbps Ethernet.

  37. CERN Operator TrainingFGC3 Hardware, Software and Controls in the PS complex • Corrector dipole and multipole power converter renovation in the PSB • Overview of power converter control • History of the FGC project • Features of the FGC3 • FGC system architecture • Working Sets/Knobs and function editor via INCA • OASIS • Alarms • Post Mortem • Expert interfaces

  38. 4 Features of the FGC3 What is inside an FGC3? A mainboard with two daughter boards: Analogue interface Network interface

  39. 4 Features of the FGC3 WorldFIPinterface Analogue interface forregulated converters Mainboard: MCU, DSP, Memories, Logic, digital I/O Ethernetinterface Analogue interface forfast pulsed converters

  40. 4 Features of the FGC3 Why two types of analogue interface? Regulated converters need 3 (or 4) acquisition channels at 10 ksps to allow continuous regulation of the current: • Circuit current from DCCT A • Circuit current from DCCT B • Voltage across the load • Magnetic field from hall probe Fast pulsed converters need two “slow” and two “fast” channels: • Fast (1 Msps): Load current Load voltage • Slow (10 ksps): Charger current Capacitor voltage • In fact, ADC technology has advanced so muchthat the new fast ADC is actually better than the old slow one and this new board could be used in all cases.

  41. 4 Features of the FGC3 Internal architecture of FGC3 RAM RAM MCU FPGA DSP Network interface Flash RAM RAM Analog I/O ADCs DACs Non-volatile RAM Power converter Digital I/O

  42. 4 Features of the FGC3 FGC3 Processing: Floating point microcontroller (RX610 @ 100 MHz) Runs a tiny real-time operating system called NanOS @ 1 kHz Manages communications with the network Manages power converter state and diagnostics 2 MB internal Flash for programs and databases 128 KB fast internal RAM for variables 1 MB external static RAM for post mortem logging 512 KB external non-volatile RAM for function data Floating point DSP (TI C6727 @ 300 MHz) No operating system Interrupt driven at 10 kHz Acquisition from analogue interface Function generation Current or field regulation Voltage regulation if required 256 KB fast internal RAM for program and variables 64 MB external RAM for functions and logging

  43. 4 Features of the FGC3 FGC3 Hardwaresummary: Everything is reprogrammable over the network More memory and processing power than FGC2 Can work in the non-radiation areas of the LHC using WorldFIP Will use faster FGC_Ether network everywhere else Costs about 800 SF (compared to 2500SF for the FGC2 in 2003)

  44. 4 Features of the FGC3 FGC3 context For some small converters (e.g. ACAPULCO, MidiDiscap) the FGC3 will plug directly into the converter:This saves the cost of a dedicated crate, PSU and cabling. For larger converters there will be a “RegFGC3 crate” containing the FGC3 and the other control and interlock cards needed to safely manage the power components: FGC3 RegDSP STATE DIG ANA SCOPE PSU Cables to power part

  45. CERN Operator TrainingFGC3 Hardware, Software and Controls in the PS complex • Corrector dipole and multipole power converter renovation in the PSB • Overview of power converter control • History of the FGC project • Features of the FGC3 • FGC system architecture • Working Sets/Knobs and function editor via INCA • OASIS • Alarms • Post Mortem • Expert interfaces

  46. 5 FGC system architecture FGC2 Architecture in the LHC Sequencer EquipState Logging Expert applications LSA FGC web site Configuration database Alarm server FGC status server Post mortemserver FGC configuration manager Timing system FGC gateway x ~80 WorldFIPfieldbus FGC2 +P.Conv FGC2 +P.Conv FGC2 +P.Conv FGC2 +P.Conv FGC2 +P.Conv FGC2 +P.Conv FGC2 +P.Conv FGC2 +P.Conv x 30

  47. 5 FGC system architecture FGC3 Architecture in the PSB Working Sets/Knobs OASIS Expert applications INCA FGC web site Configuration database Alarm server FGC status server Post mortemserver FGC configuration manager Timing system FGC gateway x 5 FGC_Ether FGC3 +P.Conv FGC3 +P.Conv FGC3 +P.Conv FGC3 +P.Conv FGC3 +P.Conv FGC3 +P.Conv FGC3 +P.Conv FGC3 +P.Conv x 64

  48. 5 FGC system architecture What is FGC_Ether? FGC_Ether = 100 Mbps Ethernet + 50 Hz sync Why Ethernet and why the 50 Hz sync? 2.5 Mbps WorldFIP has a limited throughput – adequatefor the slow cycles of the LHC but inadequate for the fast cycling PS complex machines. 100 Mbps Ethernet provides the increased bandwidth. In order to have a guaranteed synchronisation signal the FGC needs a50 Hz pulse from the timing receiver in the gateway. Does that mean a separate cable and connector in the FGC3?

  49. 5 FGC system architecture What is FGC_Ether? FGC_Ether = 100 Mbps Ethernet + 50 Hz sync No! Copper Ethernet cable has 4 pairs but only 2 pairs are used for 100Mbps. An unused pair can send the 50 Hz sync pulse if we make a pulse injector to go between the Ethernet switch and the FGC3. In this way, only the backbone needs separate Ethernet and sync cables. The pulse injector costs 240SF (10SF/port) which is cheaper than a separate sync cable Machine timing TechNet One switch and one pulse injector are needed per 24 FGC3s FGCGateway CTRI Gigabit Ethernet 50 Hz sync Gigabit Ethernet Ethernet Switch Ethernet Switch 50 Hz sync 100 Mbps Ethernet and50 Hz sync share the same cable Pulse injector Pulse injector FGC3 FGC3 FGC3 FGC3 FGC3 FGC3 FGC3 FGC3 . . . 1 2 3 4 61 62 63 64

  50. 5 FGC system architecture FGC_Ether Architecture AcceleratorControls TechNet (Ethernet) FGC_Ether Gateway The network topology is a bus of stars serving clusters of FGCs Ethernet Switch Ethernet Switch Ethernet Switch Pulse Injector Pulse Injector Pulse Injector FGC FGC FGC FGC FGC FGC FGC FGC FGC FGC FGC FGC FGC FGC FGC FGC FGC FGC

More Related