/
June 2010 June 2010

June 2010 - PowerPoint Presentation

natalia-silvester
natalia-silvester . @natalia-silvester
Follow
404 views
Uploaded On 2016-07-25

June 2010 - PPT Presentation

JM Chaize ESRFCERN control workshop 1 Overview of TANGO Control system E UROPEAN S YNCHROTRON R ADIATION F ACILITY httpwwwtangocontrolsorg A simple acquisition system For simple system ID: 419262

device tango workshop server tango device server workshop control 2010 chaize esrf cern june interface bus software 2011 system

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "June 2010" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1

June 2010

JM Chaize, ESRF/CERN control workshop

1

Overview of TANGOControl system

EUROPEAN SYNCHROTRON RADIATION FACILITY

http://www.tango-controls.org/Slide2

A simple acquisition system

For simple system

Many tools exists

LabviewScadasEtc…Bigger systems need several computers Slide3

Need inter-computer

communication

Heterogenic system (languages, machines…)

Serialization/de-serialization

Variable addressing, topology,

A distributed systemSlide4

Object oriented

Analyze a system as a set of objects communicating togetherEach object is in charge of its own life

An object can be built on other objectsSlide5

A European Control System framework

«Remote control anything and everything»

A mature Open Source product

> 100 man years of development

Used in 15+ big instruments

Active community

Object oriented, topology independent, highly scalable,

Operating system independent

Multi languageSlide6

is HIGHLY scalable !

From small embedded platforms Slide7

… to big scientific

instruments

> 1 000 000 signals and actuatorsSlide8

June 2010

JM Chaize, ESRF/CERN control workshop

8

Data

Analysis

Config

Archiving

A software bus

TANGO Software Bus distributed on a network

Generic Services

Hardware

Device

Monitor

Sequencing

Application Tool-Kit

User environment

Matlab,Labview

Igor, Python

Device

Hardware

Device

Hardware

Device

Hardware

Device

Hardware

Catalog of

device servers

development

tools

Interface

Generator

API LibrarySlide9

Topology independent

An element is identified on the overall networkThe computer is just a container

The system is seen globallyA database is used to localize the objectsSlide10

June 2010

JM Chaize, ESRF/CERN control workshop

10

TANGO

software Bus

Device class

Interface

HW

(motor…)

The device is a remote object

Standard interface for hardware equipment or service

The fundamental brick of TANGO is the

DeviceSlide11

09/10/2011

11

Some device(s)

One device

One device

One device

Tango Workshop - ICALEPCS 2011Slide12

09/10/2011

12

A sophisticated device (RF cavity)

another

device

Tango Workshop - ICALEPCS 2011Slide13

June 2010

JM Chaize, ESRF/CERN control workshop

13

Example: motor interface:

MOTOR:

Commands:

On(), Off(), …Attributes: Speed, PositionState:

On, Off, Alarm, Fault

Interface

Hardware control code

Automatic

code generator

To be written

By the programer

TANGO devicesSlide14

June 2010

JM Chaize, ESRF/CERN control workshop

14

TANGO devices

1 Device can also interface complex systemsHierarchical structure

TANGO

Software Bus

Client

Macro device: e.g. Accelerator

sub devices: e.g. powersupplies

sub devices: e.g. ADC, modbus…

ClientSlide15

Managing complexity simply

Hierarchical structures ideal

for managing complex systems

15

ADC

Measurements

Interlocks

fast

Interlocks

slow

Driver

Dummy Load

SSA

4x

Low Level RF

280V PS

Wave Guide

Switches

Sequencer

Python Sequences

High Level

SSA

GUISlide16

Tango binding

Industrial SCADA

Tango

binding

16

TANGO as a bridge

TANGO Software Bus

Device

Server

TANGO

JAVA/C++/Python

clients

Build a TANGO object from a set of channels

Tango

binding

Object oriented layer above EPICS…

server

Device

Server

PLC network

Modbus

server

Device

Server

PLC or

embedded

system

Data socket

server

acquisition

system

Device

Server

Hardware

electronic

Device

ServerSlide17

09/10/2011

17

Commands & Attributes

On the network a Tango device mainly has

Command

(s): Used to implement “action” on a device (switching ON a power supply)

Attribute

(s): Used for physical values (a motor position, a temperature, a spectrum, an matrix)

Clients ask Tango devices to execute a command or read/write one of its attributes

A Tango device also has a

state

and a

status

which are available using command(s) or as attribute(s)

Tango Workshop - ICALEPCS 2011Slide18

09/10/2011

18

Commands

A command may have one input and one output argument.

A limited set of argument data types are supported

Boolean, short, long, long64, float, double, string, unsigned short, unsigned long, unsigned long64, array of these, 2 exotic types and State data type

Tango Workshop - ICALEPCS 2011Slide19

09/10/2011

19

Attributes

Self describing data via a configuration

Thirteen data types supported:

Boolean, unsigned char, short, unsigned short, long, long64, unsigned long, unsigned long64, float, double, string, state and

DevEncoded

data type

Three accessibility types

Read, write, read-write

Three data formats

Scalar (one value), spectrum (an array of one dimension), image (an array of 2 dimensions)

Tango Workshop - ICALEPCS 2011Slide20

09/10/2011

20

Attributes

When you read an attribute you receive:

The attribute data (luckily…)

An attribute quality factor

ATTR_VALID, ATTR_INVALID, ATTR_CHANGING, ATTR_ALARM, ATTR_WARNING

The date when the attribute was acquired by the server (number of seconds and

usec

since EPOCH)

Its name

Its dimension, data type and data format

When you write an attribute, you send

The attribute name

The new attribute data

Tango Workshop - ICALEPCS 2011Slide21

June 2010

JM Chaize, ESRF/CERN control workshop

21

TANGO devices

1 Device can also interface complex systemsBridge to other protocols

TANGO

Software Bus

Device

Air

Conditioning

Infrastructure

server

OPC

Interface

Build TANGO device from a set of OPC TAGsSlide22

June 2010

JM Chaize, ESRF/CERN control workshop

22

TANGO devices

1 Device can also interface complex systemsBridge to other protocols

TANGO

Software Bus

Device

I/O

Modbus TCP/IP

Interface

Embedded

systemSlide23

June 2010

JM Chaize, ESRF/CERN control workshop

23

TANGO devices

1 Device can also interface complex systemsBridge to other protocols

TANGO

Software Bus

Device

I/O

DataSocket

Interface

Build a TANGO device from DataSocket

urlsSlide24

June 2010

JM Chaize, ESRF/CERN control workshop

24

Embedded TANGO servers

Next steps

TANGO

Software Bus

TANGO

client

TANGO server

Mapped into a

FPGASlide25

June 2010

JM Chaize, ESRF/CERN control workshop

25

Embedded TANGO servers

Next steps

TANGO

Software Bus

Gumstix SBC

TANGO

clientSlide26

09/10/2011

26

The Tango Device Server

A Tango device server is the process where the Tango class(

es) are running.

Tango device class A

Tango device class B

Device

id4/mot/3

A Tango device server

“ps” command shows one device server

Device

sr/v-ip/1

Device

sr/v-ip/2

Device

id4/mot/1

Device

id4/mot/1

Tango Workshop - ICALEPCS 2011Slide27

June 2010

JM Chaize, ESRF/CERN control workshop

27

TANGO Communication

Synchronous

TANGO

Software Bus

server

Client

Send

request

Wait

Get Answer

Do the jobSlide28

June 2010

JM Chaize, ESRF/CERN control workshop

28

TANGO Communication

Asynchronous

TANGO

Software Bus

server

Client

Send

request

Do other

job

Get Answer

When needed

Do the jobSlide29

June 2010

JM Chaize, ESRF/CERN control workshop

29

TANGO Communication

Event Driven

TANGO

Software Bus

serve

r

Client

Subscribe

once

Do other

job

Do its job

Signal event

When occurs

(state change

)

CallbackSlide30

June 2010

JM Chaize, ESRF/CERN control workshop

30

TANGO

software Bus

Standardise interfaces of equipment of the same types

Interface

Implem

Concrete

Abstract

motor

Implem

Concrete

Implem

Concrete

Implem

Concrete

Different types

of motors

Interface

Implem

Concrete

Abstract

powersupply

Implem

Concrete

Implem

Concrete

Implem

Concrete

Different types

of powersupplies

Abstract interface classesSlide31

31

Bindings

Many utility classes

Hardware access class catalog

Mailing list supportMuch more than a software bus

Code generator for C++, Java, python

Configuration toolAdministration toolArchiving serviceAccess control serviceLogging service

Scan service

GUI Toolkit for Java,QT, Python

Synopsis animation tool

Alarm service

Web interface

Android support

TutorialsSlide32

How to try it?

TANGO is available free of charge

Source code distribution

Downloadable on http://www.tango-controls.org/downloadBinary PackagesAvailable for Ubuntu + Debian Linux in the standard distributions sudo apt-get install tango-common tango-db python-pytango Available for Windows on http://www.tango-controls.org/download

The Tango BoxAn Ubuntu virtual machine with Tango

installed and configured for easy testingRuns on VMware and Virtualbox

32Slide33

33

JINR

Particle accelerators

Laser installations

Other labs

Industry service

Distribution over EuropeSlide34

Use cases

TANGO was born in particle accelerator world, however …

TANGO is a generic solution for any collection of objectsUsed also in other scientific domains like

Wind tunnels e.g. ONERANeutron source experiments (FRM2 + Julich in Germany)Large laser installationLMJ, PETAL, APOLLON

Free Electron Laser (Fermi)Small instruments Thomx (art and medecine)Small installationsEmbedded systemsIndustrial supervisionSlide35

Instrumentation hardware market

Tango compatible hardware

Supplier

provides and guaranty The TANGO interface to their product

Advantage for the supplier :

Sales argument for addressing TANGO community

Provide remote control of device

Profit

for free from

TANGO framework

Advantage for the

community/client/user

Easier integration

Better matching of the hardware features

TANGO – Generating economical activitySlide36

J I N R

Recent projects started with TANGOSlide37

June 2010

JM Chaize, ESRF/CERN control workshop

37

Jdraw:

Generic Synoptic animation

Slide38

Jive

Database browser and Test Device LauncherSlide39

POGO

Device Server Code Generator

C++ or JavaSlide40

POGO

Device Server Code GeneratorSlide41

June 2010

JM Chaize, ESRF/CERN control workshop

41

ATKpanel a generic clientSlide42

Ethernet

Host 1

Starter

server

DSDS

DS

DS

DS

Astor/Starter

Tango Control System Manager

Host n

Starter

server

DS

DS

DS

DS

DS

DB server

Host n

Starter

server

DS

DS

DS

DS

DS

Host n

Starter

server

DS

DS

DS

DS

DS

Host n

Starter

server

DS

DS

DS

DS

DS

Host n

Starter

server

DS

DS

DS

DS

DS

Host n

Starter

server

DS

DS

DS

DS

DS

Host n

Starter

server

DS

DS

DS

DS

DS

Get host list

Get status

Get server listSlide43

June 2010

JM Chaize, ESRF/CERN control workshop

43

WWW sites for TANGOCommon site

http://tango-controls.orghttp://sourceforge.net/projects/tango-cs

Thank you for your attention