JCOP FW Training Course - CERN

80
JCOP FW Training Course 30 June – 4 July 2014 EN-ICE

Transcript of JCOP FW Training Course - CERN

Page 1: JCOP FW Training Course - CERN

JCOP FW Training Course

30 June – 4 July 2014

EN-ICE

Page 2: JCOP FW Training Course - CERN

Front-End technologies 2

Location and Time Schedule

ScheduleTuesday–Friday: 09:00-12:30

14:00-17:30

Monday: 14:00-17:30

Location

Building:Training Center 593-572Room #25

Page 3: JCOP FW Training Course - CERN

Front-End technologies 3

Course Outline Overview

� Front-end technologies� DCS Architecture� DIP basics� OPC basics� PLC overview� Summary

� PVSS JCOP FW� PVSS basics

� Use of JCOP FW

Tuesday-Friday

Today

Page 4: JCOP FW Training Course - CERN

Front-End technologies 4

FE Technologies

DCS Architecture

EN/ICE-SIC

Ben Farnham / Ivan Prieto Barreirohttp://cern.ch/EN-ICE

Page 5: JCOP FW Training Course - CERN

Front-End technologies 5

FE Technologies- DCS

� Expectations

� Architecture

� Layers and responsibilities (High and low level data)

� Technologies

� Follow -up

Page 6: JCOP FW Training Course - CERN

Front-End technologies 6

� Operational point of view:

� Continuous control and monitoring of field elements and processes.

� Deals with the dynamic aspects of the System.

� Manages low and high -level data.

FE Technologies- Expectations (1/2)

Page 7: JCOP FW Training Course - CERN

Front-End technologies 7

� Architectural point of view:

� Reliability

� Availability

� Operability

� Flexibility / Extensibility / Maintainability

� Security

FE Technologies- Expectations (2/2)

Page 8: JCOP FW Training Course - CERN

Front-End technologies 8

FE Technologies- Architecture

Supervision

ProcessManagement

FieldManagement

Experimental equipment

LAN

WAN

Storage

Oth

er

sys

tem

s

(LH

C,

Safe

ty,

...)

Configuration DB,

Archives,

Log files, etc.

Controller/

PLC VME

Field Bus

LAN

Node Node

Page 9: JCOP FW Training Course - CERN

Front-End technologies 9

FE Technologies- Follow -up

Supervision

Experimental equipment

LAN

WAN

Storage

Oth

er

sys

tem

s

(LH

C,

Safe

ty,

...)

Controller/

PLC VME

Field Bus

LAN

Node Node

ProcessManagement

FieldManagement

Sensors/devices

Field buses & Nodes

PLC/UNICOS

OPC

Communication Protocols

SCADA

VME

FSM

Commercial Custom

DIPConfiguration DB,

Archives,

Log files, etc.

DIM

Page 10: JCOP FW Training Course - CERN

Front-End technologies 10

FE Technologies

DIP Overview

EN/ICE-SIC

Ben Farnham / Ivan Prieto Barreiro

http://cern.ch/EN-ICE/DIP+and+DIM

Page 11: JCOP FW Training Course - CERN

Front-End technologies 11

FE Technologies- DIP middleware

� Integration and role in DCS Architecture

� DIP Principles (Development bricks and dynamic aspects)

� Pros and Cons

� DIP Browser demo

Page 12: JCOP FW Training Course - CERN

Front-End technologies 12

DIP- Integration and role in DCS

Supervision

LAN

WAN

Experimental equipment

Oth

er

sys

tem

s

(LH

C,

Safe

ty,

...)

Controller/

PLC VME

Field Bus

LAN

Node Node

ProcessManagement

FieldManagement Experimental equipment

E.g. DCS E.g. Access control

LAN

DIP

Page 13: JCOP FW Training Course - CERN

Front-End technologies 13

DIP- Introduction

� Lightweight and simple data orientedpublish/subscribe communication protocol.

� Meant for high-level (real-time) data.

� “Soft” Data contract between publishers and subscribers.

� Data carried consists of primitive types (including arrays and structures of.), quality and timestamp.

� Portable C++ and Java API, provided for Linux (SLC6) and Windows platforms.

Page 14: JCOP FW Training Course - CERN

Front-End technologies 14

DIP- Principles : Development bricks

� DIP Runtime, to be used by custom logic to publish and subscribe to DIP data.

� DIP Name Server (DNS), to maintain the mapping between the data being published and the publishers.

� That's all, any DIP “application” rely only on these 2 components.

Page 15: JCOP FW Training Course - CERN

Front-End technologies 15

DIP- Principles : Dynamic aspects

NET

DIP Name

Server (DNS)

DIP API

Manager

(PVSS)

DIP Runtime

PS BDIP Runtime

PlantManager

PS B

Browser logic

DIP Runtime

PS B

Subscribe to

“PlantStatus” dataPublish “PlantStatus”

data

“PlantStatus” published

by “PlantManager”

Server

Page 16: JCOP FW Training Course - CERN

Front-End technologies 16

DIP- Pros and Cons

� Pros:

� A very easy to use data distribution mechanism.

� Enforces decoupling between interconnected systems.

� Support for multiple platforms. And tooling available ( PVSS API Manager, DIP Browser…)

� Cons:

� No high level services (built –in fault tolerance, security, transaction, …).

� A non industry -standard middleware.

Page 17: JCOP FW Training Course - CERN

Front-End technologies 17

DIP- Browser Demo

Page 18: JCOP FW Training Course - CERN

Front-End technologies 18

FE Technologies

OPC Overview

EN/ICE-SIC

Ben Farnham / Ivan Prieto Barreiro

http://cern.ch/EN-ICE/OPC+Support

Page 19: JCOP FW Training Course - CERN

Front-End technologies 19

OPC- outline

� Integration and role in DCS Architecture

� OPC Data Access

� Principles

� Pros and Cons

� Demo with real hardware

Page 20: JCOP FW Training Course - CERN

Front-End technologies 20

OPC- integration and role in DCS

Supervision

Experimental equipment

LAN

WAN

Storage

Oth

er

sys

tem

s

(LH

C,

Safe

ty,

...)

Controller/

PLC VME

Field Bus

LAN

Node Node

ProcessManagement

FieldManagement

Configuration DB,

Archives,

Log files, etc.

OPC

Page 21: JCOP FW Training Course - CERN

Front-End technologies 21

Dev. Type

2

Client 1 Client 2 Client 3 Client 4

OPC- Why do we need OPC?

Dev. Type

1

modbus CANbus

Page 22: JCOP FW Training Course - CERN

Front-End technologies 22

Dev. Type

1

Client 1 Client 2 Client 3 Client 4

OPC

Dev. Type

2

OPC

OPC- Solution: Middleware

modbus canbus

Page 23: JCOP FW Training Course - CERN

Front-End technologies 23

OPC- Concepts and Terminology

� Overview

� Component model

� Overview

� Client/Server Communication

� Address space and data Model

Page 24: JCOP FW Training Course - CERN

Front-End technologies 24

OPC- Client/Server relation

OPC Client

Process data

OPC Server

OPC Client

Process data

OPC Server

Page 25: JCOP FW Training Course - CERN

Front-End technologies 25

OPC- Data Model

Process data

OPC Server

OPC Client

OPC Group

OPC itemOPC itemOPC item

OPC Group OPC Group

OPC Client

OPC itemOPC item OPC item

Page 26: JCOP FW Training Course - CERN

Front-End technologies 26

OPC- Data Model

Process data

OPC Server

OPC Client

OPC Group

OPC itemOPC itemOPC item

OPC Group OPC Group

OPC Client

OPC itemOPC itemOPC item

OPC item

An OPC group influences on:• When a device is accessed

• How data is packaged and sent to a client• How frequently a client is informed of data changes

OPC Item propertiesName: OnType: BoolValue: TrueQuality: GoodTimestamp: 22/1/09 09.04.49Etc.

OPC item OPC item

Page 27: JCOP FW Training Course - CERN

Front-End technologies 27

OPC- Data Discovery (Browsing)

Pressure

Temperature

Power

Dev1

Dev2

PLC1

Dev1

Rack

Page 28: JCOP FW Training Course - CERN

Front-End technologies 28

� 3 types of access

� Read/Write on request: any number of items from a same OPC group on one request.

� Synchronous/Asynchronous� Device/Cache (reading only)

� Subscription reads: values sent by the server on change.� Update rate� Dead band

� Refresh

� Flags� Time stamp and quality

OPC- Data access mechanisms

Page 29: JCOP FW Training Course - CERN

Front-End technologies 29

OPC- Specifications

� OPC-DA (Data Access)� Provides access to real-time data.

� OPC-HDA (Historical Data Access) � Used to retrieve historical process data for analysis.

� OPC-AE (Alarms & Events) � OPC AE servers are used to exchange and acknowledge process alarms and

events.

� OPC-XML (XML Data Access) � Defines schema and data representation format based upon XML standard.

� OPC Unified Architecture (Under adoption in the industry)� Cross -platform, new functionality and new security strategy, not

compatible with current DA OPC servers and clients.

Page 30: JCOP FW Training Course - CERN

Front-End technologies 30

OPC- Tools

� COTS OPC DA servers� PLCs (Siemens, Schneider, Wago)� Devices (CAEN, ISEG, Wiener)

� Custom OPC DA servers� Standard ELMB

� OPC toolkits and tools� Softing (commercial)� Matrikon (commercial)� Matrikon client/server (free)� Iconics free OPC client

Page 31: JCOP FW Training Course - CERN

Front-End technologies 31

OPC- Pros and Cons� Pros

� Strong industry support

� Flexibility (dead band, groups, etc..)

� Extensibility of system

� Standard interface.

� Many tools available for free

� Cons� Windows platform

� DCOM settings

� Dev effort required for custom OPC server

� Licenses/Cost

Page 32: JCOP FW Training Course - CERN

Front-End technologies 32

OPC Client

PVSS II

CAEN OPC server

SIEMENS OPC server

WIENER OPC server

Physical devices

CAENWiener

Ethernet

Remote PC

Local PC

PLC SM 300VME crate UEP 6021

PS SY1527

OPC- architecture examples

SIEMENS

Page 33: JCOP FW Training Course - CERN

Front-End technologies 33

Physical devices

CAEN

Local PC

PS SY2527

OPC- Demo with real hardware

OPC server“caen”

OPC Client“Matrikon”

Page 34: JCOP FW Training Course - CERN

Front-End technologies 34

Break !

Page 35: JCOP FW Training Course - CERN

FE Technologies

PLC basis…EN-ICE-PLC

Jacques ROCHEZ

Jerónimo ORTOLA

[email protected]

Page 36: JCOP FW Training Course - CERN

PLC

� Programmable Logic Controller

� Designed for industrial processes.

� Works under severe conditions.

� Real time system.

� Handles sensors and actuators (I/O).

PLC- Overview

Page 37: JCOP FW Training Course - CERN

� Process control

� Collects inputs (digital, analog)

� Runs the process control

� Basic logic functions

� Complex algorithms (PID…)

� Safety functions

� Produces actions (outputs)

� Provides data to the supervision layer

PLC- Functions

Page 38: JCOP FW Training Course - CERN

� Reliable. Used for safety systems.

� Robust. Resistant to electrical noise, vibration, impact, dust, heat.

� Extensive range of inputs/outputs.

� Extensive range of functionalities.

� Long term support.

� Long life, around 30 years.

PLC- Strength

Page 39: JCOP FW Training Course - CERN

� Limited memory.

� Complex programming environment.

� Different programming languages from different manufacturers.

PLC- Weak points

Page 40: JCOP FW Training Course - CERN

PLC- Hardware Overview

ETHERNET TCP/IP

INDUSTRIAL FIELDBUS

REMOTE I/O

PLC

SENSORS/ACTUATORS

DIRECT WIRING

Supervisory Control And Data AcquisitionSCADA

Page 41: JCOP FW Training Course - CERN

� Device which converts the signal from one form to another.

� Sensors� Analog: Temperature, pressure, humidity, level,

flow, weight…� Digital: Level, pushbutton (emergency stop),

position switch, photoelectric sensor…

� Actuators� Analog: valve, pump, heater, power supply…� Digital: Signaling column, contactor, electro valve,

switch, OnOff pump…

PLC- Sensors / actuators

Page 42: JCOP FW Training Course - CERN

PLC- Hardware Overview

ETHERNET TCP/IP

INDUSTRIAL FIELDBUS

REMOTE I/O

PLC

SENSORS/ACTUATORS

DIRECT WIRING

Supervisory Control And Data AcquisitionSCADA

Page 43: JCOP FW Training Course - CERN

� Communication modules

� I/O Modules.

� Convert physical value into numeric value and vice versa.

� Function modules.

PLC- Periphery stations

Page 44: JCOP FW Training Course - CERN

� Analog

� 16-bit signed from -32768 to 32767.

� Inputs: Resistance, Current, Voltage, thermocouple…

� Outputs: Current, voltage.

� Digital

� 1-bit

� Inputs: 120v-230v AC, 24v DC

� Outputs: Relay, 120v-230v AC, 24v-48v-125v DC.

PLC- Input / Output modules

Page 45: JCOP FW Training Course - CERN

� PID control

� Flow

� Camera controllers

� Numerical controllers

� Counters

� Positioning

PLC- Function modules

Page 46: JCOP FW Training Course - CERN

� Ethernet

� Profibus

� CAN

� Point to Point

� Serial RS 232, RS 485

� AS-Interface

� Modbus…

PLC- Communication modules

Page 47: JCOP FW Training Course - CERN

PLC- Hardware Overview

ETHERNET TCP/IP

INDUSTRIAL FIELDBUS

REMOTE I/O

PLC

SENSORS/ACTUATORS

DIRECT WIRING

Supervisory Control And Data AcquisitionSCADA

Page 48: JCOP FW Training Course - CERN

� Industrial Network System

� Provides the PLC with I/Os

� Time deterministic.

PLC- FieldBus. Overview

Page 49: JCOP FW Training Course - CERN

� Controls multiple I/Os

� Saves cabling costs

� Safety compliant

PLC- FieldBus. Strength

Page 50: JCOP FW Training Course - CERN

� Sensitive to electromagnetic noise.

� Specific installation rules.

� Several different (incompatible) fieldbus standards.

PLC- FieldBus. Weak points

Page 51: JCOP FW Training Course - CERN

� Profibus� Industry leader. 14 million nodes.

� WorldFip� Robust (radiation resistant)

� CAN. CANOpen. CANBus� Low cost� Easy to implement� Used for ELMB at CERN

� ProfinetIO� Interbus integrated (Phoenix Contact).� Ethernet based fieldbus

PLC- FieldBus. Standards

Page 52: JCOP FW Training Course - CERN

PLC- Profibus. Technical data

� Standard PROFIBUS EN 50 170

� Access Token ring . Master-Slave

� Transmission rate 9.6 kbit/s - 12 Mbit/s

� Transmission technology electric: Shielded cooper pair twisted cable

optic: fiberoptics (cristal and plastic)

wireless: infrared and radio

� Nodes 127 maximun

� Network lenght electric: 9.6 km maximun

optic: 150 km maximun

� Topology Daisy Chain, tree, star, ring, redundant ring

� Used for Process communication, data transfer

Page 53: JCOP FW Training Course - CERN

PLC- Profibus

PROFIBUS

Active nodes. Master

Passive nodes. Slaves.

PLCPLCPC

Page 54: JCOP FW Training Course - CERN

PLC- Hardware Overview

ETHERNET TCP/IP

INDUSTRIAL FIELDBUS

REMOTE I/O

PLC

SENSORS/ACTUATORS

DIRECT WIRING

Supervisory Control And Data AcquisitionSCADA

Page 55: JCOP FW Training Course - CERN

PLC- Supported at CERN

Siemens

CERN-SIEMENS B1130A/GEN 31-12-1999

Schneider

CERN-SCHNEIDER. B1129/GEN 12-11-1999

Page 56: JCOP FW Training Course - CERN

PLC- Siemens

� S7 200 (low range)

� Compact

� Low cost

� Small systems

Page 57: JCOP FW Training Course - CERN

PLC- Siemens

� S7 300 (medium range)� Modular� Wide range of IOs� Widely used� Limited memory� Limited range of fieldbuses

Page 58: JCOP FW Training Course - CERN

PLC- Siemens

� S7 400 (high range)� Redundant architecture

� Large memory

� High performance

Page 59: JCOP FW Training Course - CERN

PLC- Schneider

� Medium range (PREMIUM)

� Around 1 Mbyte

� Open to fieldbus

� Large choice of IO

� High range (QUANTUM)

� Few Mbytes.

� Bigger library of functions

Page 60: JCOP FW Training Course - CERN

WriteOutputs

Read InputsOS

communicationtasks

USERAPPLICATION

(timeconsuming)

Cycle time

5-500 msec

Process Cycle

PLC- Processor

Page 61: JCOP FW Training Course - CERN

PLC- Memory access, IO access

Internal 16 bits IO devices are mapped in Data area a memory.

%MW120

0

N

word

Real%MF137

%IW0.2.3

%QW0.2.3

Input word

Output word

%I0.6.3.1

%Q0.7.3.6

Input Boolean

Output Boolean

Access to The Module

Channel in The Module

Bit in the Channel

%Q0.7.3.6 := TRUE;%QW0.2.3 := 16#0F00;%MW100 := 12;

120

137138

Page 62: JCOP FW Training Course - CERN

PLC- Programming languages

� Traditional ladder logic is an easy-to-use graphical programming language that implements relay-equivalent symbol. Intuitive. Limited functionalities.

Page 63: JCOP FW Training Course - CERN

PLC- Programming languages

� STL: Statement List / Instruction List -Fastest possible logic execution. Low level language (similar to assembly language)

Page 64: JCOP FW Training Course - CERN

PLC- Programming languages

� FBD : Function Block Diagram

Page 65: JCOP FW Training Course - CERN

PLC- Programming languages

� ST: Structured Text - Equations, table manipulation, complex algorithms (If/Then)

Page 66: JCOP FW Training Course - CERN

PLC- Programming languages

� SFC : Sequential Function Chart -A graphical method of representing a sequential control system (stepper).

Page 67: JCOP FW Training Course - CERN

� Siemens : Simatic Step7 v5.4� Modular

� Wide range of functionalities

� Diagnostic tools

� Network configuration

� Schneider : UNITY Pro v4.0� Easy to manage

� Visualization facilities

PLC- Programming software tools

Page 68: JCOP FW Training Course - CERN

PLC- Hardware Overview

ETHERNET TCP/IP

INDUSTRIAL FIELDBUS

REMOTE I/O

PLC

SENSORS/ACTUATORS

DIRECT WIRING

Supervisory Control And Data AcquisitionSCADA

Page 69: JCOP FW Training Course - CERN

� Ehternet TCP IP.

� Big amount of data transfer.

� Non deterministic.

� Big data transfer rates.

� S7 Driver on TCP IP. Siemens.

� Modbus Driver on TCP IP. Schneider.

� OPC.

PLC- SCADA communication

Page 70: JCOP FW Training Course - CERN

� Framework to build control systems� UNified Industrial COntrol System� Started for LHC cryogenics industrial controls

Offers General-purpose features:� Standard way to modelize object – oriented applications.� Provides library of objects for PVSS and PLC.� Each object has its functionality defined in PLC and represented

in PVSS.� Communication between PVSS and Front-End is also provided.� In PVSS, Synoptics, Navigation,Trending, Archiving, Alarm and

Event lists are provided.� Easy development/evolution by operators/users.� Less work as possible for the application developer.� Used successfully in non-cryogenics control applications

� With PLCs Schneider/SIEMENS (LHC Gas Control System)� and LynxOS/Linux FESA front-ends

UNICOS - A CERN approach

Page 71: JCOP FW Training Course - CERN

UNICOS - Application Basic components

PLC

UNICOS FW

UNICOS objectlibrary

UNICOS SCADA Middleware

Supervision

UNICOS PLC Middleware

- Graphical components (Widgets / Faceplates)- Navigation tools- Objects explorer- Trends and alarms handling- Access control

Page 72: JCOP FW Training Course - CERN

PLC- UNICOS. Generic device appearance.

Mode

AlarmData quality

Body

Selection

Device selected

Mouse over

Device selected

mouse over

Device selected

by another Console:

No action possible

Right Click

Page 73: JCOP FW Training Course - CERN

PLC- UNICOS. PVSS screen layout

Contextual area Last received messages (Last) Device selectedRemaining

Select time

Configuration/

Management

menus Current user,

date & timeAlert row

Panel, trend horizontal navigation

(as Web Browsing)

UNICOS utilities:

WindowTree, TrendTree

AlarmList, EventList, etc.

Page 74: JCOP FW Training Course - CERN

Front-End technologies 74

Summary- EN-ICE Services

� CERN-wide support� Field buses, PLC� DIP, OPC, CANbus

� What we provide� Architecture and design recommendations� List of recommended tools/cards � Validation of new commercial software versions� Maintenance of custom software� “Hands On” facility for you to practice� “Show Case” facility as a demonstrator

Page 75: JCOP FW Training Course - CERN

Front-End technologies 75

Thank You

FE-Technologies- End

[email protected]

Page 76: JCOP FW Training Course - CERN

Front-End technologies 76

FE-Technologies- Summary

� Technologies seen

� EN-ICE Support

� What comes next..

Page 77: JCOP FW Training Course - CERN

Front-End technologies 77

FE Technologies- TechnologiesSupervision

Experimental equipment

LAN

PLC

VME

Field Bus

Process

Sensors/devices

Field buses & Nodes

PLC

OPC

SCADA

Unix systems

DIM

FSM

Custom

Client ServerProfinet Modus Subscriber

CERN

API/DriverOPC DIM DIP

Servers

DIP Publisher

DIP Publisher

Server

Manufacturers

I. ProtocolsOther systems

(LHC, Safety, ...)

Scada

Communications

Commercial Custom

DIM/DIP

Page 78: JCOP FW Training Course - CERN

Front-End technologies 78

Summary- EN-ICE Services

� First-line support for research sector� Field buses, PLC, DIP, DIM

� CERN-wide support� DIP, OPC, CANbus

� What we provide� Architecture and design recommendations� List of recommended tools/cards � Validation of new commercial software versions� Maintenance of custom software� “Hands On” facility for you to practice� “Show Case” facility as a demonstrator

Page 79: JCOP FW Training Course - CERN

Front-End technologies 79

Thank You

FE-Technologies- End

[email protected]

http://cern.ch/en-ice

Page 80: JCOP FW Training Course - CERN

Front-End technologies 80

Location and Time Schedule

ScheduleTuesday–Friday: 09:00-12:30

14:00-17:30

Monday: 14:00-17:30

Location

Building:Training Center 593-572Room #25