EtherCAT Driver for Remote I/O James Rowland, Ronaldo Mercado and Nick Rees.

Slides:



Advertisements
Similar presentations
APPLICATION LAYER. DeviceNet Interface Notes DeviceNet Protocol supports Master/Slave, Multiple Master and Peer to Peer Communications SDN Scanner.
Advertisements

Supervisory Control & Data Acquisition DAQ Networking.
EPICS Collaboration Meeting, CEA, Saclay, Oct 2014 The use of EtherCAT with EPICS at Diamond Ronaldo Mercado 22/10/2014.
Supervisory Control & Data Acquisition Communication Technology Modbus Protocol.
Dirk Zimoch, EPICS Collaboration Meeting, Vancouver 2009 Real-Time Data Transfer using the Timing System (Original slides and driver code by Babak Kalantari)
PPT 206 Instrumentation, Measurement and Control SEM 2 (2012/2013) Dr. Hayder Kh. Q. Ali 1.
1 Linux Networking and Security Chapter 2. 2 Configuring Basic Networking Describe how networking devices differ from other Linux devices Configure Linux.
Input-Output Problems L1 Prof. Sin-Min Lee Department of Mathematics and Computer Science.
The importance of switching in communication The cost of switching is high Definition: Transfer input sample points to the correct output ports at the.
Microprogrammes control the KOMBIS TMM8003. For the reliable operation of its systems and devices there are several programs located in two controllers.
INTEGRATION OF EPICS ASYN INTO NON EPICS ENVIRONMENT PRERANA KANKIYA Brookhaven National Laboratory, New York EPICS COLLABORATION MEETING, 2014.
 A system consisting of a number of remote terminal units (or RTUs) collecting field data connected back to a master station via a communications system.
EtherCAT (Beckhoff) for advanced LIGO
OSI and Architecture Independent Device Driver Jim Chen HYTEC ELECTRONICS LIMITED Spring 2013 – Diamond Light Source.
Building an Application Server for Home Network based on Android Platform Yi-hsien Liao Supervised by : Dr. Chao-huang Wei Department of Electrical Engineering.
February 17-18, 2010 R&D ERL James Jamilkowski R&D ERL Controls Larry Hoff James Jamilkowski February 17-18, 2010 Controls.
GigE Knowledge. BODE, Company Profile Page: 2 Table of contents  GigE Benefits  Network Card and Jumbo Frames  Camera - IP address obtainment  Multi.
New Generation Automation Controller (PAC) Overview and Trend eAutomation Group Γιάννης Στάβαρης Technical Manager Ιούνιος 26, 2007.
LabView Users Group Meeting June 20 th, 2006 Process Control Using Compact Field Point/Labview Real-time Michael Tockstein Microelectronics Technology.
Agenda Adaptation of existing open-source control systems from compact accelerators to large scale facilities.
18. June 2003EPICS WS Control of Digital Power Supplies Andreas Lüdeke Swiss Light Source / PSI 20 May 2003 EPICS Collaboration Meeting.
EtherCAT Protocol Implementation Issues on an Embedded Linux Platform
1 Input/Output. 2 Principles of I/O Hardware Some typical device, network, and data base rates.
CCNA2 Chapter 1 Wide Area Networks and Routers. WAN is a data communications network that operates beyond a LAN’s geographic scope. Users subscribe to.
LECTURE 9 CT1303 LAN. LAN DEVICES Network: Nodes: Service units: PC Interface processing Modules: it doesn’t generate data, but just it process it and.
EtherCAT for Advanced LIGO
EPICS Insertion Device Control System Pete Owens EPICS Collaboration Meeting June 2003 Control System for a Helical Undulator Pete Owens Daresbury Laboratory.
APS BPM and power supply applications on micro-IOCs W. Eric Norum
Data Acquisition Data acquisition (DAQ) basics Connecting Signals Simple DAQ application Computer DAQ Device Terminal Block Cable Sensors.
Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007.
SCADA. 3-Oct-15 Contents.. Introduction Hardware Architecture Software Architecture Functionality Conclusion References.
CRIO as a hardware platform for Machine Protection. W. Blokland S. Zhukov.
DLS Digital Controller Tony Dobbing Head of Power Supplies Group.
SEISLOG Linux presented at the WORKSHOP High Quality Seismic Stations and Networks for Small Budgets Volcan, Panama March, 2004 by Terje Utheim,
Embedded TechCon Synchronizing mechatronic systems in real-time using FPGAs and Industrial Ethernet Sari Germanos
Dec 8-10, 2004EPICS Collaboration Meeting – Tokai, Japan MicroIOC: A Simple Robust Platform for Integrating Devices Mark Pleško
LCLS Undulator Positioning Control System Shifu Xu, Joseph Xu, Josh Stein Control Group, AES/APS, ANL June 15, 2006.
1.4 Open source implement. Open source implement Open vs. Closed Software Architecture in Linux Systems Linux Kernel Clients and Daemon Servers Interface.
1 Lecture 7 LAN Wiring, Physical Topology, and Interface Hardware Computer Networks CS 4316.
Embedded Runtime Reconfigurable Nodes for wireless sensor networks applications Chris Morales Kaz Onishi 1.
Final Review of ITER PBS 45 CODAC – PART 1 – 14 th, 15 th and 16 th of January CadarachePage 1 FINAL DESIGN REVIEW OF ITER PBS 45 CODAC – PART 1.
Experience Running Embedded EPICS on NI CompactRIO Eric Björklund Dolores Baros Scott Baily.
Eugenia Hatziangeli Beams Department Controls Group CERN, Accelerators and Technology Sector E.Hatziangeli - CERN-Greece Industry day, Athens 31st March.
Online Software 8-July-98 Commissioning Working Group DØ Workshop S. Fuess Objective: Define for you, the customers of the Online system, the products.
Experiment Management System CSE 423 Aaron Kloc Jordan Harstad Robert Sorensen Robert Trevino Nicolas Tjioe Status Report Presentation Industry Mentor:
1. EPICS IOC on CompactRIO EPICS Collaboration Meeting Fall 2011.
Chapter 5 Input/Output 5.1 Principles of I/O hardware
Chapter 13 – I/O Systems (Pgs ). Devices  Two conflicting properties A. Growing uniformity in interfaces (both h/w and s/w): e.g., USB, TWAIN.
PXI Systems - Discussions Gueorgui ANTCHEV / EP-ESSEPTAB Meeting February 2003Slide 1 of 3 PXI = Compact PCI + eXtensions for Instrumentation PXI is an.
Hardware Introduction – Standard vs Q.i
1.4 Open source implement. Open source implement Open vs. Closed Software Architecture in Linux Systems Linux Kernel Clients and Daemon Servers Interface.
New product introduction:
Rehab AlFallaj.  Network:  Nodes: Service units: PC Interface processing Modules: it doesn’t generate data, but just it process it and do specific task.
LIGO-G9900XX-00-M LIGO II1 Why are we here and what are we trying to accomplish? The existing system of cross connects based on terminal blocks and discrete.
1 1999/Ph 514: Supported Hardware EPICS Supported Hardware Ned D. Arnold APS.
Instrument Control Systems Seminar 2014, 20 th -24 th October 2014 New Standards VLT Control System Mario Kiekebusch (On behalf everyone who took part.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
Instrument Control Systems Seminar 2014, 20 th -24 th October 2014 Introduction to TwinCAT 3.1 and EtherCAT in the context of VLT Instrumentation Control.
COMPUTER NETWORKS CS610 Lecture-11 Hammad Khalid Khan.
PROGRAMMABLE LOGIC CONTROLLER. Control Systems Types  Programmable Logic Controllers  Distributed Control System  PC- Based Controls.
Software tools for digital LLRF system integration at CERN 04/11/2015 LLRF15, Software tools2 Andy Butterworth Tom Levens, Andrey Pashnin, Anthony Rey.
An Overview When Connecting to Yaskawa Drives Date: 8/14/06, Rev: PP.AFD.26.
Integrating Advantech PCI I/O cards into EPICS. Outline ANTARES computer control and data acquisition systems architecture STAR computer control and data.
ICS interfaces Timo Korhonen ICS Apr 22, 2015.
CS 6560: Operating Systems Design
Status of Fast Controller EPICS Supports for ITER Project
Control Systems for the APTM and GRID
GBAR Update!
Presentation transcript:

EtherCAT Driver for Remote I/O James Rowland, Ronaldo Mercado and Nick Rees

Original Diamond EPICS systems 14 June 2011 Hytec IP modules Hytec IP module PMAC VME Firewire PMC Analogue & Digital I/O RS232 & RS485 MotorsCameras EPICS IOC Server VxWorks/VME VME Bus Ethernet Display Manager Alarm Handler EPICS Archiver GDA Server 2EtherCAT Driver for Remote I/O

Future Diamond EPICS systems 14 June 2011 Rem. I/O Modules Terminal Servers PMAC GeoBrick GigE Protocol Analogue & Digital I/O RS232 & RS485 MotorsCameras EPICS IOC Server x86/Linux Ethernet Display Manager Alarm Handler EPICS Archiver GDA Server 3EtherCAT Driver for Remote I/O

Drivers for using a field bus Cabling saving –Can use existing Cat6 cables Flexibility –Extra I/O doesn’t require cabling through the shield walls. Modularity –Everything not concentrated in a single VME IOC I/O can be located close to the equipment Can use commodity hardware for the PC. Can manage commodity CPU hardware obsolescence problem by separating I/O from CPU. However: –Need good performance if VME is to be replaced 14 June 20114EtherCAT Driver for Remote I/O

EtherCAT 14 June 2011 Relatively open PLC fieldbus from Beckhoff Open source Linux drivers exist No special hardware required for Fieldbus master High performance (if controller O/S supports it) –256 digital I/O in 11 μs –1000 digital I/O distributed to 100 nodes in 30 μs –200 analog I/O (16 bit) in 50 μs, 20 kHz Sampling Rate –100 Servo-Axis (each 8 Byte IN+OUT) in 100 μs –12000 digital I/O in 350 μs System wide synchronisation to << 1 μs 5EtherCAT Driver for Remote I/O

Data multiplexed on Ethernet frame 14 June 20116EtherCAT Driver for Remote I/O

Synchronisation Each EtherCAT network is actually a linear segment. Last device reflects the packet back to the master. Each device has a timer and measures the time between the outgoing and returning packet and so works out its time relative to other modules. 14 June 2011EtherCAT Driver for Remote I/O7

“Oversampling” Modules Device sends N samples per bus cycle Clock PLL synchronizes acquisition with master and other devices 14 June 20118EtherCAT Driver for Remote I/O

EPICS software components Device Type XML Device List XML EtherCAT Master Ethernet MAC Scanner + = IOCs 14 June 20119EtherCAT Driver for Remote I/O Linux Host

Linux host software Use Linux PREEMPT_RT kernel –RHEL5 MRG SRPM –10  s mean, outlier of 40  s maximum latency –Uses Posix calls: clock_nanosleep, mlockall, SCHED_FIFO, PRIO_INHERIT –Mainline Kernel absorbing patches We feel it is the best real-time kernel because –It is closest to the mainline kernel. –It can be used by a non-privileged user in userspace. 14 June EtherCAT Driver for Remote I/O

PREEMPT_RT performance Timer latencyEtherCAT scan time 14 June 2011EtherCAT Driver for Remote I/O11

EtherCAT Master EtherCAT master from Kernel Driver with near identical user and kernel space APIs (L)GPL license. Has PF_PACKET generic network driver –some network drivers also supported explicitly. FMMU setup and slave state machine control Create your own bus scan timer and configuration files Uses dynamic kernel module support (DKMS) RPM All our development done entirely in user space with generic network driver. 14 June EtherCAT Driver for Remote I/O

Scanner 1KHz cyclic task –Cycle time can be varied. Pre-threaded UNIX socket server Reads configuration XML Merges writes from multiple source into a single EtherCAT transmission. Distributes reads from a EtherCAT response to all who are interested. 14 June EtherCAT Driver for Remote I/O

Device Type XML Device type XML is a standard format provided by the vendor. It can be: –Downloaded from the vendor and stored in a library or –Queried directly from the device. Contains lots of information, but the important values for an example analog input (EL3201) are: 14 June 2011EtherCAT Driver for Remote I/O14 DirectionRegisterBitsIndexSubindex TXUnderrange10x60000x01 TXOverrange10x60000x02 TXLimit 120x60000x03 TXLimit 220x60000x05 TXError10x60000x07 TXState10x60000x0F TXValue160x60000x11

Device List XML Custom XML definition specific to our scanner Contains each device on the bus with: –Device type name –Bus position –Device name – also used as the name of the Asyn port. –Oversampling rate 14 June 2011EtherCAT Driver for Remote I/O15 TypePositionNameOversample EK11010COUPLER EL37021VACUUM11 EL32012TEMP

IOC’s Intention is that an IOC can be a functional control unit that is independent of other IOCs using the same EtherCAT network. –Each Linux system can have multiple scanners (typically 1 per Ethernet interface) –Each scanner can communicate with multiple IOCs. –Scanner can be restarted independently of its IOCs. –IOCs can be restarted independently of their scanner. IOC’s communicate with their scanner through an asyn driver. 14 June 2011EtherCAT Driver for Remote I/O16

EtherCAT asyn driver Based on asynPortDevice Asyn port names ports from Device List XML Different registers created as asyn parameters, named as they are in the Device Type XML. Special “MASTER” port for bus status Pluggable waveform support for ADCs Templates generated from Vendor XML Need I/O Intr alarm support in ASYN to signal bus problems. 14 June EtherCAT Driver for Remote I/O

Some Devices NameType EL32022 channel 4-wire PT100 with calibration tables EL37022 channel oversampling ADC up to 100KHz EL10144 channel digital input, 10us filter EL33144 channel thermocouple 14 June EtherCAT Driver for Remote I/O

Other Devices National Instruments has a 8-slot Compact Rio EtherCAT chassis. Gives access to robust, science grade modules. Has embedded FPGA that can potentially be used. 14 June 2011EtherCAT Driver for Remote I/O19

Conclusions EtherCAT is a powerful control fieldbus protocol well suited to EPICS I/O. The protocol and software is open and vendor independent (but heavily promoted by Beckhoff). Limitation compared to VME I/O are: –Large data arrays (use some other Ethernet protocol) –Latency in loops < 1 ms. Workarounds are: Can increase scanner loop cycle time Could use National Instruments FPGA. We now have reasonably solid EPICS support. A good alternative to VME I/O in many areas. 14 June 2011EtherCAT Driver for Remote I/O20