26
1 N.Voumard, AB/BT/EC N.Voumard, AB/BT/EC LBDS Audit, CERN 2008 LBDS Audit, CERN 2008 Presentation of the Presentation of the Beam Energy Tracking Beam Energy Tracking System System Definition : Definition : The Beam Energy Tracking System (BETS) monitors the The Beam Energy Tracking System (BETS) monitors the deflection strength of each active element of the LBDS deflection strength of each active element of the LBDS with respect to the beam energy in order to guarantee with respect to the beam energy in order to guarantee the correct extraction trajectory over the complete the correct extraction trajectory over the complete operational range and under all operational operational range and under all operational conditions. conditions.

1N.Voumard, AB/BT/ECLBDS Audit, CERN 2008 Presentation of the Beam Energy Tracking System Definition : The Beam Energy Tracking System (BETS) monitors

Embed Size (px)

Citation preview

11N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Presentation of the Presentation of the Beam Energy Tracking SystemBeam Energy Tracking SystemDefinition :Definition :

The Beam Energy Tracking System (BETS) monitors the deflection The Beam Energy Tracking System (BETS) monitors the deflection strength of each active element of the LBDS with respect to the beam strength of each active element of the LBDS with respect to the beam energy in order to guarantee the correct extraction trajectory over the energy in order to guarantee the correct extraction trajectory over the complete operational range and under all operational conditions.complete operational range and under all operational conditions.

22N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Tracking SystemBeam Energy Tracking System

BETS main functions:BETS main functions:

• Acquisition of the machine Acquisition of the machine “beam energy”,“beam energy”,• Generation of the kick strength reference signals for LBDS extraction Generation of the kick strength reference signals for LBDS extraction

and dilution kicker high voltage generators w.r.t. the beam energy,and dilution kicker high voltage generators w.r.t. the beam energy,• Continuous surveillance that the charging voltages of the different Continuous surveillance that the charging voltages of the different

capacitors within the kicker high voltage generators follow their capacitors within the kicker high voltage generators follow their references within predefined tolerance windows (extraction trajectory references within predefined tolerance windows (extraction trajectory aperture),aperture),

• Continuous surveillance that the LBDS extraction septa and ring Continuous surveillance that the LBDS extraction septa and ring quadrupole Q4 currents are within predefined tolerance windows quadrupole Q4 currents are within predefined tolerance windows (extraction trajectory aperture),(extraction trajectory aperture),

• Generation of a dump request after detection of an upcoming tracking Generation of a dump request after detection of an upcoming tracking fault if the measured values are not within predefined tolerance fault if the measured values are not within predefined tolerance windows relative to the beam energy,windows relative to the beam energy,

• Distribution of the beam energy to external clients.Distribution of the beam energy to external clients.

33N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Tracking SystemBeam Energy Tracking System

System architecture overviewSystem architecture overview

Overview of the Beam Energy Acquisition card (BEA) , Overview of the Beam Energy Acquisition card (BEA) , by Gregor Grawerby Gregor Grawer

Overview of the Beam Energy Meter card (BEM)Overview of the Beam Energy Meter card (BEM)

Overview of the Beam Energy Interlock card (BEI)Overview of the Beam Energy Interlock card (BEI)

Overview of the Beam Energy Controller card (BEC)Overview of the Beam Energy Controller card (BEC)

Management of the transfer function tables (I/E, U/E)Management of the transfer function tables (I/E, U/E)

ConclusionConclusion

44N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

System architecture overviewSystem architecture overview

POINT 1

POINT 2

POINT 3

POINT 4

POINT 5

POINT 6

POINT 7

POINT 8

LBDS

BEAM 1

Fibre optic data link multi mode

Siemens ProfiBus DP

Currents from bending magnet

sector 6/7

Currents from bending magnet

sector 5/6

BEM : Beam Energy MeterBEI : Beam Energy InterlockBEC : Beam Energy ControllerBEA : Beam Energy Acquisition

MKDGA.A

BEA 3U MKD A

MKDGA.B

BEA 3U MKD B

MKDGA.O

BEA 3U MKD O

MKBHG.A

BEA 3U MKBH A

MKBVG.E

BEA 3U MKBV E

MKBVG.F

BEA 3U MKBV F

RMSD LR6B1

BEA 6U RMSD

RQ4.L6B1

BEA 6U RQ4

MK

D k

icke

r ge

nera

tors

MK

B k

icke

r ge

nera

tors

Pow

er C

onve

rter

for

MS

D a

nd Q

4R

2 x Currents

2 x Currents

Current 2

Current 1

Energy reference A to SLP

ProfiBus DP to PLC(Energy Reference)

BEA 6UUA47

Currents from bending magnet

sector 7/8

Currents from bending magnet

sector 4/5

Ethernet

Current 3

Current 4

Fiber optics data link single mode

References :

2 x Charging voltages

2 x Charging voltages

2 x Charging voltages

2 x Charging voltages

2 x Charging voltages

2 x Charging voltages

BETS VME crateMYDGP08

(placed in UA-63)

BEI 1

BEI 8

BEI 9

BEI 13

BEI 14

BEM B

CPU(VME

controller)

BEC

Dum

p R

eque

st

curr

ent l

oops

Ene

rgy

Ref

enre

nce

Beam Dump Requeststo TSU Beam 1

(10MHz)

Ethernet

VM

E B

us

BEM A

Beam Dump Inhibit from TSU

Beam 1

Beam Dump Requestto PLC Beam 1

Dum

p In

hibi

t

LHC

Analog (AB-PO connections)

2 x Charging voltages

Unused

BEA 6UUA63

BEA 6UUA67

BEA 6UUA83

UA63

UA63

UA63

UA67

UA67

UA67

SR6

UA63

PLCreference

Interlockreference

BETS internal Current loops (X2)

RPTE.UA67.RB.A67

RPTE.UA63.RB.A56

RPTE.UA47.RB.A45

RPTE.UA83.RB.A78

AnyBus Ethernet Energy Reference A

55N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

System architecture overviewSystem architecture overviewTwo path:Two path:

ReferenceReference

InterlockInterlock

66N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

System architecture overviewSystem architecture overview

Powering considerations:Powering considerations:All the electronics included within the All the electronics included within the BETS BETS is is powered powered by 230V by 230V Uninterruptible Power Supply Uninterruptible Power Supply (UPS).(UPS).

BETS system housed within BETS system housed within VME crate VME crate is is powered powered by by redundant power redundant power suppliessupplies..

Timing considerations:Timing considerations:

The BETS system has a response time < 1.5 ms The BETS system has a response time < 1.5 ms

This value is small in comparison of the generators reaction time and the This value is small in comparison of the generators reaction time and the energy variation of the LHC.energy variation of the LHC.

77N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Acquisition (BEA)Beam Energy Acquisition (BEA)

By Gregor GrawerBy Gregor Grawer

88N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Meter (BEM)Beam Energy Meter (BEM)For redundancy purpose, tFor redundancy purpose, two independent sources wo independent sources of the “of the “beam energybeam energy” ” are necessary in order to verify the correct operation of the Beam Energy are necessary in order to verify the correct operation of the Beam Energy Tracking SystemTracking System

One information will be used as One information will be used as reference reference signal for the generation of the kick signal for the generation of the kick strength referencesstrength references

One information will be used as reference for the One information will be used as reference for the tracking interlock tracking interlock logiclogic

Block schematic of the BEMBlock schematic of the BEM

Current 13 out of 4 Evaluation

+

Mean value

calc

Reception CRC & Timeout Check

Control / Status / Monitoring (watch dog, board powering, auto-calibration…)

Look-Up

Table

(Idcct / E)Reception CRC a & timeout Check

Current 2

Current 3

Current 4

Energy Reference

Ebeam

Ref

Serial Transmission

CRC & Manchester Encoding

Safe Machine Parameters

Profibus-DPPROFISafe

EnergyReference

VME Machine ProtectionBeam Permit Control

Input 1

Input 2

99N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Meter (BEM)Beam Energy Meter (BEM)

The BEM acquires four current values measured out of four Main Bend The BEM acquires four current values measured out of four Main Bend DCCTs power converters.DCCTs power converters.

It makes the comparison between these values with a 3 out of 4 logic and a It makes the comparison between these values with a 3 out of 4 logic and a

relative error of ± 0.5%. An out of range value will cause a dump request.relative error of ± 0.5%. An out of range value will cause a dump request.

A mean value is generated out of the four measurements and converted A mean value is generated out of the four measurements and converted

trough a transfer function table into the corresponding beam energy.trough a transfer function table into the corresponding beam energy.

This energy value is transmitted to This energy value is transmitted to The main PLC, via a ProfiBus connection (use of ProfiSafe protocol), who gives The main PLC, via a ProfiBus connection (use of ProfiSafe protocol), who gives

the reference voltage strength to the MKD and MKB generators (Reference the reference voltage strength to the MKD and MKB generators (Reference

BEM)BEM)

The Beam Energy Interlock cards trough the P2 backplane connectors of the The Beam Energy Interlock cards trough the P2 backplane connectors of the

VME crate (Interlock BEM) VME crate (Interlock BEM)

The Safe Machine Protection for other clients (via the LHC timing)The Safe Machine Protection for other clients (via the LHC timing)

1010N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Meter (BEM)Beam Energy Meter (BEM)

t

t

Idcct [A]

7000

400

UCloop1,2 [V]

Closed

Opened

Arm

Arm

DCCT currents

t

Eref [GeV]

673

DCCT trip

End of run dump

13000

BEM Tolerance (relative 0.5%)

Reference Energy

1111N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Meter: hardware aspectBeam Energy Meter: hardware aspectHardware summary:Hardware summary:

The heart of the BEM card is a Xilinx Spartan3 FPGAThe heart of the BEM card is a Xilinx Spartan3 FPGA XC3S1000 FT256 -4XC3S1000 FT256 -4 The FPGA is clocked with a 40 MHz oscillator (C-MAC CFPS-73 serie)The FPGA is clocked with a 40 MHz oscillator (C-MAC CFPS-73 serie)

Inputs / outputs :Inputs / outputs : 2 monomode 1310 nm fiber optics receivers from MB DCCT measurements2 monomode 1310 nm fiber optics receivers from MB DCCT measurements 1 monomode 1310 nm fiber optics emitter to AB/CO’s SMP1 monomode 1310 nm fiber optics emitter to AB/CO’s SMP 1 simple VME slave interface (16A, 16D)1 simple VME slave interface (16A, 16D) 1 AnyBus ProfiBus-DP slave module (HMS AnyBus AB4010B) for communication with the S7-400 master 1 AnyBus ProfiBus-DP slave module (HMS AnyBus AB4010B) for communication with the S7-400 master

PLC.PLC. 1 three digits display to look at the beam energy.1 three digits display to look at the beam energy. 1 differential bus transceiver (used as an emitter only) to send the reference energy to the 14 Beam Energy 1 differential bus transceiver (used as an emitter only) to send the reference energy to the 14 Beam Energy

Interlock cards trough the VME P2 backplane.Interlock cards trough the VME P2 backplane. 1 differential bus transceiver (used as a receiver only) to receive the so called “dump inhibit” signal.1 differential bus transceiver (used as a receiver only) to receive the so called “dump inhibit” signal. Manual reset and FPGA reconfiguration push buttons on the front panel.Manual reset and FPGA reconfiguration push buttons on the front panel. 1 RS-232 interface (no more used).1 RS-232 interface (no more used).

On boardOn board 3.3V, 2.5V and 1.2V power supplies on board3.3V, 2.5V and 1.2V power supplies on board 2 switches for current loops (CMOS analog switches)2 switches for current loops (CMOS analog switches)

1212N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Meter: firmware aspectBeam Energy Meter: firmware aspectOverview of the softwareOverview of the software

“Dump Request” output 1

BEM LBDSVME

interface

Compare currents (3oo4 logic),

Generate mean

current

VME Outputs:-Energy 1 and 2 for BEI 1-Energy 1 and 2 for BEI 2-Status of BEI and BEAs-Margins and thresholds for BEI 1 and 2-Input signals from frame-read of the entier external flash ROM

VME Inputs:-Rearm

VMEbus

Reference Energy

Inpu

tsi

gnal

s

Status

E_A

bove

_Thr

esho

ld

BEM_LBDS_Main_State_Machine

Logic for state generation:POWER-UP,IDLE, OPERATIONAL, DUMP, CONFIGURATION.Status word generation

“IDLE”

“OPER.”

“DUMP”

“CONF”

LED state indicators.Frontpanel

BEI1

BEM

Fibre opticinput from BEA 6U

(Idcct MB)R

cv-E

rror

-BE

A A

Cur

rent

Err

or

Sta

tus

BE

A A

Serial input B

Serial input A

Sig

nal_

Rec

onst

ruct

Inpu

tsi

gnal

s

Rcv

-Err

or-B

EA

B

Sta

tus

BE

A B

Serial Output

To SMP (AB/CO) via front panel fiber optic

TF ROM

BEMWatchdog

To Dump requestCurrent loops

Margins,Thresholds

Spartan_3DCM

40 MHz oscillatorinput (Xtal)

Clk

Clk

Reset_i Reset

“Dump Inhibit” input Dump InhibitKeeper BEI2

Rea

rm

Rea

rm

Data1, Data2FullScaleRef, ZeroRef

Data1, Data2FullScaleRef, ZeroRef

AnyBusinterface

To PLC via ProfiSafe connection

BEILBDS

DisplayDecoder

3digits 7-seg displays(0.45 TeV to7.86 TeV)

To BEI via VME P2 backplane

Genererate reference Energy

Add

ress

Dat

a

Address

Data

BEA A data (Data1, Data2

FullScaleRef, ZeroRef)

BEA B data (Data1, Data2

FullScaleRef, ZeroRef)

Dump Request

“Dump Request” output 2

BEM selection

1313N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Meter: firmware aspectBeam Energy Meter: firmware aspect

PowerUpSeq OperationalIdle

Configur Dump

Reset

BEM Main State machine:

Beam_Active = ‘1’

Beam_Active = ‘0’

Pwrup = ‘0’ andAnyBus_Init_Done =’1'

Dump_request = ‘1’Config_Request = ‘1’

Config_Done = ‘1’

Dump_request = ‘1’

Check Dump requestsClients

B3DumpRequest

Main_Reset

DumpOutput

Config_Request

B5DumpRequest

B6_BEM_controller

MainState_Machine_BEI1

Pwrup counter

RcvTwoError2

RcvOneError

2

Config_Done

Energy

16

Treshold

16

LEDs

4

UpdateVMERegsAnyBus_Init_Done

Dump_Inhibit

BEM_Selection

Pwrup

dumpRequest

A>=BbeamActive

A

B

Concat

& Status

16

1414N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy InterlockBeam Energy InterlockThe BEI card has double function (one card checks two generators)The BEI card has double function (one card checks two generators)

Each BEI function checks two signals (main and compensation for MKD)Each BEI function checks two signals (main and compensation for MKD)

The signals can be either voltages (MKD & MKB) or currents (Q4 and MSD)The signals can be either voltages (MKD & MKB) or currents (Q4 and MSD)

Block schematic of the BEIBlock schematic of the BEI

InputBEI 1

ReceptionCRC Check

Measure 1

Measure 2

EnergyReferenceFrom BEM Tracking

Interlock Logic

EnergyComparison

Control / Status / Monitoring (watch dog, board powering, auto-calibration, settings…)

Ebeam

M1

Ebeam

M2

ReceptionCRC & timeout

Check

Ebeam

Ref

Look-Up Table 1

Look-Up Table 2

VME Machine ProtectionBeam Permit Ctrl

Look-Up Tables Configuration

InputBEI 2

Measure 3

Measure 4

Ebeam

M3

Ebeam

M4

ReceptionCRC & timeout

Check

Look-Up Table 3

Look-Up Table 4

1515N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy InterlockBeam Energy Interlock

The BEI card acquires four signals, voltage or current (2 pro generator)The BEI card acquires four signals, voltage or current (2 pro generator)

Convert those signals into their corresponding energy using four independent transfer function Convert those signals into their corresponding energy using four independent transfer function

tables.tables.

The four transfer function tables are stored into an external flash ROM, as the tolerance and The four transfer function tables are stored into an external flash ROM, as the tolerance and

thresholds values.thresholds values.

The four energies generated are compared to the reference energy from the BEM. The four energies generated are compared to the reference energy from the BEM.

A beam dump request is issued if a difference bigger than the tolerance is found.A beam dump request is issued if a difference bigger than the tolerance is found.

Errors detected:Errors detected:

Transmission error from BEA or BEM (timeout and CRC)Transmission error from BEA or BEM (timeout and CRC)

Energy comparison error (one (or more) of the signal is out of range)Energy comparison error (one (or more) of the signal is out of range)

Timeout of the energy comparison (in case of flash ROM read errors or SM freezes)Timeout of the energy comparison (in case of flash ROM read errors or SM freezes)

Hardware timeout dump request (in case the FPGA freezes)Hardware timeout dump request (in case the FPGA freezes)

When a beam dump request is issued, the BEI cards needs to be rearmed to be functional again, When a beam dump request is issued, the BEI cards needs to be rearmed to be functional again,

otherwise, the current loops stay opened. otherwise, the current loops stay opened.

1616N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy InterlockBeam Energy Interlock

Reference energy from BEM

t

t

E [GeV]

7000

400

BEI Tolerance (constant 2%)

UCloop1,2 [V]

Closed

Opened

Arm

Arm

t

U [V]

10V

0V

1717N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Interlock: hardware aspectBeam Energy Interlock: hardware aspect

Hardware summary:Hardware summary:

The heart of the BEI card is also based on a Xilinx Spartan3 FPGAThe heart of the BEI card is also based on a Xilinx Spartan3 FPGA XC3S1000 FT256 -4XC3S1000 FT256 -4 The FPGA is clocked with a 40 MHz oscillator The FPGA is clocked with a 40 MHz oscillator

Inputs / outputs :Inputs / outputs : 2 multimode 820 nm fiber optics inputs from generators measurements2 multimode 820 nm fiber optics inputs from generators measurements 1 simple VME slave interface (16A, 16D)1 simple VME slave interface (16A, 16D) 1 RS-232 interface for flash ROM configuration 1 RS-232 interface for flash ROM configuration 2 three digits front panel displays to read the energies calculated.2 three digits front panel displays to read the energies calculated. 1 differential bus transceiver (used as a receiver only) to get the reference energy from the 1 differential bus transceiver (used as a receiver only) to get the reference energy from the

BEM card.BEM card. 1 differential bus transceiver (used as a receiver only) to receive the so called dump inhibit 1 differential bus transceiver (used as a receiver only) to receive the so called dump inhibit

signal.signal. Reset, rearm and FPGA reconfiguration push buttonsReset, rearm and FPGA reconfiguration push buttons

On boardOn board 1 2 x 8 bits x 128K flash ROM1 2 x 8 bits x 128K flash ROM 3.3V, 2.5V and 1.2V power supplies on board3.3V, 2.5V and 1.2V power supplies on board 2 switches for current loops (CMOS analog switches)2 switches for current loops (CMOS analog switches)

1818N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Interlock : firmware aspectBeam Energy Interlock : firmware aspectOverview of the softwareOverview of the software

“Dump Request” output 1

BEI LBDSVME

Generate 4 energy signals

and compare them with reference

Interface forPicoBlaze

VME Outputs Registers:-Energy 1 and 2 for BEI 1-Energy 1 and 2 for BEI 2-Status of BEI and BEAs-Margins and thresholds for BEI 1 and 2-Input signals from frame-read of the entier external flash ROM

VME Inputs:-Rearm

VMEbus

“Energy3”, “Energy4”

Transfer FunctionsFlash ROM

E=f(I) and/or E=f(U)

uCPicoBlaze

Write (Load) configuration data; Read data and status.

RS 232intfce.

Inputsignals

Inpu

tsi

gnal

s

“Energy“ reference

Rcv

-Err

or-B

EM

Status BEI1, BEI2, BEA1, BEA2

Microcontroller converts configuration data from ASCII to binary format and stores it in flash

ROM.

E_A

bove

_Thr

esho

ld

BEI_LBDS_Main_State_Machine

Logic for state generation:POWER-UP,IDLE, OPERATIONAL, DUMP, CONFIGURATION.Status word generation

“IDLE”

“OPER.”

“DUMP”

“CONF”

LED state indicators.Frontpanel

BEI1

BEI

B10

Fibre opticinput for charging

voltage or magnet current.

Frontpanel

“Energy”reference from BEMcard. VME backplane

BEMSerial input

Rcv

-Err

or-B

EI1

Ene

rgy-

Err

or

Con

figur

atio

n re

ques

t

Sta

tus

BE

A1

BEI2Serial input

BEI1Serial input

Sig

nal_

Rec

onst

ruct

Inpu

tsi

gnal

s “Energy1”, “Energy2”

Rcv

-Err

or-B

EI2

Sta

tus

BE

A2

“IDLE”

“OPER.”

“DUMP”

“CONF”

LED state indicators.Frontpanel

BEI2

Dat

a bu

s

Adr

bus

Dat

a bu

s

Adr

bus

BEILBDS

DisplayDecoder

2x 3digits 7-seg displays

Flash ROMInterface

Con

figur

atio

n en

able

Front panel selection switches,E1 E2

BEI Configuration

Interface

BEIWatchdog

To Dump requestCurrent loops (external watchdog)

Selection leds

Margins,Thresholds

“Energy“ reference

Margins,Thresholds

RO

M D

ata

bus

RO

M A

dr b

us

Adr

bus

Dat

a bu

s

Address

EC

_Ini

t

Spartan_3DCM

40 MHz clockinput (Xtal)

Clk

Clk

BEI Flash ROM

Controller

ROMAdr bus

ROM Data bus

E_Above_Threshold

ROM enable

RO

M e

nabl

e

RearmPush Button

Reset_i

debounce Rearm

ResetRx

TxData

“Dump Inhibit” input

Dump InhibitKeeper BEI1

Dump InhibitKeeper BEI2

Rearm

Rea

rm

Rearm

Data1, Data2FullScaleRef, ZeroRef

“Dump Request” output 2

EC

_Sta

tus

Data1, Data2FullScaleRef, ZeroRef

1919N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Interlock : firmware aspectBeam Energy Interlock : firmware aspectThere is independent state machines for each of the BEI moduleThere is independent state machines for each of the BEI module

Main state machine statesMain state machine states IDLEIDLE

Below energy threshold, check for transmission errorsBelow energy threshold, check for transmission errors OPERATIONALOPERATIONAL

Above threshold, compares energies, check for all errorsAbove threshold, compares energies, check for all errors DUMPDUMP

A dump request has been requested after an error, needs a reset or rearm of the card to go back A dump request has been requested after an error, needs a reset or rearm of the card to go back into IDLE state.into IDLE state.

CONFIGURATIONCONFIGURATION

Can be reached only from IDLE state. Is used when reading or programming the flash ROM from Can be reached only from IDLE state. Is used when reading or programming the flash ROM from the configuration port or reading it trough the VME interface.the configuration port or reading it trough the VME interface.

PWRUP OPERIDLE

CONFIG

Reset

Main State machine:

E_Above_treshold = ‘1’

E_Above_treshold = ‘0’

Pwrup_counter >= x’EA60’ andEC_Init =’0'

E_Error_BEI = ‘1’ orRcv_Error = ‘0’ or

Status_Error_BEA = ‘1’ orEC_Timeout = ‘0’

Dump_inhibit = ‘1’

Config_Request = ‘1’ and E_Above_Treshold = ‘0’

Config_Request = ‘0’

DUMP_INHIB DUMP

2020N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Interlock : firmware aspectBeam Energy Interlock : firmware aspect

Generation and downloading of the BEI Generation and downloading of the BEI transfer function filetransfer function file

The transfer function file is generated using a The transfer function file is generated using a home made MatLab GUI.home made MatLab GUI.

The functions for each generator can be The functions for each generator can be independently added (2 x 2 functions).independently added (2 x 2 functions).

The thresholds and tolerances can be added The thresholds and tolerances can be added for each BEI module.for each BEI module.

Additional informations can be added, as the Additional informations can be added, as the version and the date of creation of the file.version and the date of creation of the file.

The file generated is downloaded to the BEI The file generated is downloaded to the BEI card as is, after having erased the previews card as is, after having erased the previews one that was in the flash ROM.one that was in the flash ROM.

2121R. A. Barlow, AB/BT/ECR. A. Barlow, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Controller (BEC)Beam Energy Controller (BEC)

Current loop production with Current loop production with redundancyredundancyCurrent loop detection with Current loop detection with redundancyredundancyDump inhibition signal from TFODump inhibition signal from TFOUTC signal for post mortemUTC signal for post mortemBeam permit inhibit to PLCBeam permit inhibit to PLCVME interfaceVME interface

Internal register for BEC status and Internal register for BEC status and diagnosticsdiagnostics

RearmingRearmingOn board test system for current loops On board test system for current loops checkcheck

2222R. A. Barlow, AB/BT/ECR. A. Barlow, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy ControllerBeam Energy ControllerPrinciples:Principles:

The BEC has a redundant pair of on board current loop generators The BEC has a redundant pair of on board current loop generators that feeds the BETS modules (BEM’s and BEI’s).that feeds the BETS modules (BEM’s and BEI’s).The BEC module interfaces the BEM and BEI modules to external The BEC module interfaces the BEM and BEI modules to external systems through redundant fail safe connections. systems through redundant fail safe connections. On any given failure from within the BETS system, the BEC On any given failure from within the BETS system, the BEC produces two Beam Dump Request (BDR) signals that are fed to produces two Beam Dump Request (BDR) signals that are fed to the TSU cards (redundancy).the TSU cards (redundancy).The presence of a current in both current loops will be detected by The presence of a current in both current loops will be detected by the BEC and a 10 MHz square wave signal will be sent to the TSU. the BEC and a 10 MHz square wave signal will be sent to the TSU. When one of the two current loops is broken, the 10 MHz signal When one of the two current loops is broken, the 10 MHz signal disappears which produces a BDR. disappears which produces a BDR. At the same time, the BEC provides also a pulse to the LHC timing At the same time, the BEC provides also a pulse to the LHC timing system in order to record the UTC time of the BDR action for post system in order to record the UTC time of the BDR action for post mortem analysis.mortem analysis.

2323N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Beam Energy Controller: hardware aspectBeam Energy Controller: hardware aspect

Hardware summary:Hardware summary:

The heart of the BEC card is also based on a Xilinx Spartan3 FPGAThe heart of the BEC card is also based on a Xilinx Spartan3 FPGA XC3S1000 FT256 -4XC3S1000 FT256 -4 The FPGA is clocked with a 40 MHz oscillator The FPGA is clocked with a 40 MHz oscillator

Inputs / outputs :Inputs / outputs : 2 TTL, 50Ohms (BDR outputs to TSU)2 TTL, 50Ohms (BDR outputs to TSU) 1 5V, 50Ohms (pulse to UTC)1 5V, 50Ohms (pulse to UTC) 1 simple VME slave interface (16A, 16D)1 simple VME slave interface (16A, 16D) 1 SUB-D9 connector with ambivalent contacts to PLC for “Beam Permit”1 SUB-D9 connector with ambivalent contacts to PLC for “Beam Permit” 2 current loops test inputs and outputs2 current loops test inputs and outputs Reset, rearm and FPGA reconfiguration front panel push buttonsReset, rearm and FPGA reconfiguration front panel push buttons

On boardOn board 3.3V, 2.5V and 1.2V power supplies on board3.3V, 2.5V and 1.2V power supplies on board 2 switches for current loops (CMOS analog switches) for tests2 switches for current loops (CMOS analog switches) for tests

2424N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Management of the look-up tables (I/E, U/E)Management of the look-up tables (I/E, U/E)

BEM look-up tableBEM look-up table 32 points tables32 points tables One table for current, another for energy (dependent)One table for current, another for energy (dependent) Linear interpolation between pointsLinear interpolation between points Error is determined by the number of interpolation pointsError is determined by the number of interpolation points The table is hardcoded in the FPGAThe table is hardcoded in the FPGA Same tables for “Reference” BEM and for “Interlock” BEMSame tables for “Reference” BEM and for “Interlock” BEM

BEI look-up tableBEI look-up table 4x 32k points in table4x 32k points in table ADC output is used as the address. Data located at this address corresponds to ADC output is used as the address. Data located at this address corresponds to

the energy.the energy. Stored in external parallel flash ROMStored in external parallel flash ROM Can be programmed or erased only locally (RS-232)Can be programmed or erased only locally (RS-232) Error is determined by the precision of the calibration measurements of the Error is determined by the precision of the calibration measurements of the

generatorsgenerators

2525N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

Management of the look-up tables (I/E, U/E)Management of the look-up tables (I/E, U/E)

The look-up tables in the BEM and BEI cards are readable trough the VME.The look-up tables in the BEM and BEI cards are readable trough the VME. But they cannot be modified trough VME for security reasonsBut they cannot be modified trough VME for security reasons

The same look-up tables will be placed in Oracle database for comparison The same look-up tables will be placed in Oracle database for comparison (MCS).(MCS).

After a few runs, every TF in the cards will be read and crosschecked with After a few runs, every TF in the cards will be read and crosschecked with corresponding files in the Oracle database.corresponding files in the Oracle database.

For the BEI cards, a code in the TF file indicates the corresponding For the BEI cards, a code in the TF file indicates the corresponding generator.generator.

Special effort has to be done for naming and managing the look-up tables.Special effort has to be done for naming and managing the look-up tables.

2626N.Voumard, AB/BT/ECN.Voumard, AB/BT/EC LBDS Audit, CERN 2008LBDS Audit, CERN 2008

To the Beam Energy Acquisition cards (BEA)

Beam Energy Interlock cards(BEI)

Beam Energy Controller card(BEC)

Beam Energy Meter cards(BEM)

Power supply redundant VME-64 crate (Wiener)

BETS system BETS system in UA-63in UA-63