atlas dcs elmb full branch test - nikhefn48/dcs/pdf/fernando-can-branch-test.pdf · fernando varela...

18
Fernando Varela 1 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 ELMB Full Branch Test ELMB Full Branch Test Outline DCS Architecture ELMB Full Branch Set-Up Powering I/O functionality Bus Behavior SW Architecture Test Procedure SCADA Panels Run Control Offline Analysis Findings Conclusions* * Test currently ongoing. Results are not conclusive yet

Upload: others

Post on 23-Jun-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 1

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

ELMB Full Branch TestELMB Full Branch Test

Outline

• DCS Architecture•ELMB Full Branch Set-Up

– Powering– I/O functionality– Bus Behavior– SW Architecture

• Test Procedure• SCADA Panels

– Run Control– Offline Analysis

• Findings• Conclusions*

* Test currently ongoing. Results are not conclusive yet

Page 2: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 2

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

CFS

SCX

1U

SA15

Front-End SystemB

ack-End System

Barrel

Local Area Network

Partition 3Supervisory

only Partition m

UX

15

Partition 2

ElectronicRack

Common Infrastructure

Local Control Stations (LCS)

Partition 1

Expert Workstations

ServerOperation

Subdetector 1 Subdetector 2a Subdetector n

PowerSupply

DetectorElement

SensorsActuators

Fieldbus 300m� 125 kbits/s

PC

CFS

Architecture of DCSArchitecture of DCS

Page 3: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 3

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

Communication FECommunication FE--BE: OPCBE: OPC

OPC Interfaces

CANopen OPC Server

CANopen Driver

TC

P/IP

CA

Nop

en

1.- Dedicated drivers• HW and SW dependent• Upgrade and Maintenance

2.- OPC (OLE for Process Control)• What’s OPC?

• Set of interfaces designed to facilitate the integration of control equipment into Windows applications.• Middle-ware based on Microsoft DCOM technology• Multi-client / Multi-server architecture

• Why OPC?• Unique and standard mechanism to interface several data sources and software applications• SCADA-independent.• Almost all SCADA packages provided OPC Client functionality• Strong support from industry.

• Drawbacks• Only WNT/2000

SCADA(OPC Client)

Bac

k-E

ndFr

ont-

End

CANopenI/O Modules

Sensors & Actuators

Page 4: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 4

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

ELMB Full Branch TestELMB Full Branch Test• Powering• Reliability

– robustness– recovery procedures

• Performance– tuning of parameters– identifying bottlenecks

Aims:

Page 5: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 5

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

ELMBELMB Full Branch Test

Page 6: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 6

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

ELMBELMB Full Branch Test

Page 7: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 7

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

Set UpSet Up

Powering

120 �

0x3F 0x30

CANbus200 m

16 V PS

LCS

120 �

D9 Connectors

• Only one PS used.• Digital and CAN parts of the ELMB and NI-CAN card powered via the bus.• Analogue part powered from the digital (Power monitored by a scope).• Bus and Interface card power lines were de-coupled (Allows for independent reset of both elements).

I/O Functionality

• 16 x 8 = 128 digital input lines (Sync + Async), 16 x 2 x 8 = 256 digital output lines (Async)• Input and output lines interconnected• 16 x 64 = 1024 Analogue channels (Sync)• ELMBs reprogrammed to bypass filtering in OPC server and ensure maximum data volume transfer to PVSS-II (Worst possible case)

Page 8: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 8

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

CANbusCANbus Activity, synchronous readActivity, synchronous readExample If �adc = 32.5 Hz and Bus Speed = 125 kbit/s

• � ~ 0.8 ms => Time difference between messages on the bus• � ~ 30.8 ms => Time needed for ADC conversion @ 32.5 Hz

t

SYN

C_1

ELM

B_3

0

ELM

B_3

1

ELM

B_3

F

ELM

B_3

0_0

ELM

B_3

1_0

��

ELM

B_3

F_0

SYN

C_2

ELM

B_3

0

...

...

ELM

B_3

0_1

ELM

B_3

1_1

...�

ELM

B_3

F_1

ELM

B_3

F_63

Bus Cycle

...

SYNC Interval

Analogue Channels(Lower Priority)

Digital Signals(Higher Priority)

Page 9: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 9

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

CAN Analyzer Diagnostic ToolCAN Analyzer Diagnostic Tool

SYNC

DigitalSignals

AnalogueChannels

Bus load

N of CAN frames

Page 10: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 10

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

0x30 0x31 0x32 0x3F Front-End HW

EVDB

UIM

OPCClient

DBArchive EV

UIM

OPC Update Rate

OPC Address Space

0x30 0x31 0x32 0x3F

NI-CAN II driver

PVSS-II

Supervisory Station

PVSS-II PVSS-II

Local Control StationGroups

Items

SW ArchitectureSW Architecture

Page 11: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 11

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

SCADA Supervisor SWSCADA Supervisor SWRun Control

History of Runsat different rates

100

Readout rate forcurrent run

ELMB Channeldisplayed

Page 12: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 12

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

SCADA Monitor SWSCADA Monitor SW

Offline Analysis

Time rangefor SQL Query Expected number

of entries in DB per channel

Number of channelsmissing any reading

Histogram Number of entries in DB per channel

Readout rate

Page 13: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 13

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

FindingsFindings

Cable Resistance 37.5 Ohm / Km 7.5 Ohm in 200mVoltages

Currents (mA) VPS_CAN (V) 16CAN 16x20 320 Velmb_16_CAN (V) 11.05ADC 16x10 160 VPS_Dig+Ana (V) 16CAN 16x15 240 Velmb_16_Dig+Ana (V) 8.26

GroundingDrop G_CAN (V) 2.63 Drop DP+AP (V) 3.88Drop P_CAN (V) 2.31 Drop DG+AG (V) 3.88Difference (V) 0.32 Difference (V) 0

Digital + Analogue Voltage drop during ADC activity (V) 1.44

Powering

Problem: Working at VPS_ANALOGUE = 9 V some ELMBs do not reply to a SYNC (Analyzer files)Reason: Voltage level of the ADC is too low (< 4.5 V)

Page 14: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 14

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

FindingsFindings

Parameters:• Loop time (Sync interval)• OPC update rate• ADC frequency

Page 15: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 15

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

FindingsFindings

ADC 15 Hz,Bus Cycle 5.761s, OPC Update Rate 100ms

0.00

20.00

40.00

60.00

80.00

100.00

120.00

05101520253035

Sync Interval (s)

Tran

sfer

Rat

e (%

)

Data get lost at higher data rates when SYNC Interval -> bus cycle

Bottlenecks:• NI CAN interface card (buffer overflow) ??? => Need for a new interface (cost and characteristics).• PVSS archiving (CPU consumption) => Better distribution of the tasks performed by SCADA.

Page 16: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 16

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

ELMB Full Branch Test: Example of Overflow

�adc= 32.5 HzOverflow in read buffer

of the NI-CAN II interface

Hole in DataBase

Page 17: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 17

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

CPU Behavior

ADC Conversion Rate 32.5 Hz

Sync Interval 3 sSync Interval 10 s Sync Interval 5 sSync Interval 30 s

Most of the CPU time is consumed by the PVSS archiving manager.OPC takes about 60 % during the avalanche of analogue channels.

Page 18: ATLAS DCS ELMB Full Branch Test - Nikhefn48/DCS/pdf/Fernando-CAN-Branch-Test.pdf · Fernando Varela 15 ATLAS DCS DCS Workshop, Nikhef, Oct 2001 Findings ADC 15 Hz,Bus Cycle 5.761s,

Fernando Varela 18

ATLASDCS

DCS Workshop, Nikhef, Oct 2001

Conclusions

• Full ELMB Branch successfully operated.• I/O channels of the order of magnitude of some subdetectors in ATLAS • Preliminary studies of the powering has been carried out.• The test tried to reproduce the “worst possible case” => All ELMBs transmitting at the same time.• The system has shown excellent performance for �adc < 15.1 Hz :Transfer rate of 100% for

• messages on the bus different priorities on the bus• and different transmission types.

• Several issues were identified at higher �adcw when SYNC � Bus Cycle• Overflows in the read buffer of the NI-CAN interface• High CPU consumption by the PVSS archiving manager

=> Input for new tests with a better design -> Results can be improved!!!

Final results of this test, together with the obtained in radiation tests, will define the bus behavior, CANopen network topology in ATLAS and the distribution of tasks between the

different elements of the Vertical Slice.