Professional Documents
Culture Documents
EtherCAT Communication
Communication Principles
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 10
Topology – Star topology and fibre optics
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
Physical Layer
Data Link Layer
Frame Structure
Addressing
Commands
Memory/Registers
SyncManager
fibre optics
FMMU
Diagnosis
Distributed Clocks IPC
Application Layer
State Machine
Mailbox
Mailbox Interface
..
EoE Ethernet .. DVI
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 11
Cable Redundancy
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
Physical Layer IPC
Data Link Layer
Frame Structure
Addressing
Commands
..
.. DVI
Memory/Registers
SyncManager
FMMU
Diagnosis
Distributed Clocks
Application Layer
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description • Only a second Ethernet Port is needed on the master –
Configuration Tool
EtherCAT Master
possible with all EtherCAT Slave devices
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 12
Frame Processing within one node
EtherCAT Basics
Slave Structure Master EtherCAT Segment (Slaves)
Device Model (ISO/OSI)
Physical Layer
Data Link Layer IPC
Frame Structure
Addressing
Commands
Memory/Registers
..
.. DVI
SyncManager
FMMU
Diagnosis
Distributed Clocks
Application Layer
State Machine
vom
vom Master
Master
Mailbox
Mailbox Interface zum Master
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 13
Logical Process Data Image
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI) IPC
Physical Layer
Data Link Layer
Frame Structure
Addressing ..
..
DVI
Mailbox NC Data
Mailbox Interface Sub- Sub- Sub-
EoE Ethernet Telegramm 1 Telegramm 2 Telegramm n
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
0
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 14
EtherCAT Slave Structure
EtherCAT Basics EtherCAT Master
Slave Structure
Device Model (ISO/OSI)
Physical Layer EDS Electronic
Data Link Layer XML Data Sheet
Frame Structure .... DVI
Addressing
Commands
Slave Application Layer
Memory/Registers
SyncManager Host (Mailbox Protocols)
FMMU
EtherCAT
Slave CPU
Diagnosis ESC
Distributed Clocks Controller Configuration
Application Layer
State Machine EEPROM Data
Mailbox ESC
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
Trafo
Trafo
RJ45
RJ45
Slave Information
SyncManager Layer SoE IP
File
FMMU (AL) Service
Access SDO PDO Mapping
Channel Ethernet
Diagnosis
Distributed Clocks
Application Layer
AL Control/ Sync Man
State Machine Mailbox Process Data AL Status Settings
Mailbox Data
Mailbox Interface FMMU
FMMU
Link FMMU
FMMU n
EoE Ethernet Layer DL DL Layer
CoE CANopen (DL) Info Address Management
FoE File Access DL Control/
SoE Servo Drive DL Status
EtherCAT Data Link Layer
Slave Information /IF
Device Profiles Physical
Modular Devices Layer (PHY) Physical Layer
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 19
Application
Appli- HTTP, Application
….
cation FTP, .. e.g. CiA402 Drive Profile
0x0000 0x1000
ESC Address Space (DPRAM)
SyncMan0 MbxOut SyncMan1 MbxIn SyncMan2 SyncMan3
Data
FMMU n FMMU n
FMMU Link
EtherCAT Slave Controller (ESC) FMMU
FMMU
Layer
EtherCAT Processing Unit (DL)
and Auto-Forwarder with Loop Back
Physical
Trafo
Trafo
RJ45
RJ45
PHY PHY
Con
LVDS Layer
(PL)
WKC
WKC
HDR
HDR
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices Ethernet on
Drives 100BASE-TX; any number of
Device Description
up to 100 m, with physical layer
Configuration Tool
EtherCAT Master transformer coupling changes allowed
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 21
Physical Layer
EtherCAT Basics
Slave Structure • 100 BASE-TX
Device Model (ISO/OSI)
Physical Layer
– Most popular physical layer for Fast Ethernet
Data Link Layer – Shielded twisted pair (STP) with 2 pairs of wires
Frame Structure
Addressing
– Cable categories CAT5, 6, 7 can be used
Commands – RJ45 connector standard, M12 connector for IP67
Memory/Registers
SyncManager
– PHY Support for auto negotiation and auto crossover
FMMU
recommended
Diagnosis • 100 BASE-FX
Distributed Clocks
Application Layer
– All media options possible
State Machine – Simple solution for TX-to-FX converter
Mailbox
Mailbox Interface
EoE Ethernet • E-BUS
CoE CANopen
FoE File Access
– Interface for low cost backplane applications
SoE Servo Drive – Widely used LVDS (Low Voltage Differential Signaling)
Slave Information /IF adopted
Device Profiles
Modular Devices – Use Manchester Bit Coding
Drives
– LVDS: Low Voltage Differential Signaling according to
Device Description
Configuration Tool
ANSI/TIA/EIA-644, also used in IEEE 802.3ae (10Gigabit
EtherCAT Master Ethernet)
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 22
Port Management
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
• A Slave Controller can have up to 4 EtherCAT Ports
Physical Layer
Data Link Layer
Frame Structure
Addressing
• If a Port is closed the controller forward it to the next port
Commands Ports can be opened/closed automatically with link up or
Memory/Registers
SyncManager opened closed by EtherCAT command
FMMU
Diagnosis
Distributed Clocks
Application Layer • The EtherCAT frame processing and forwarding order
State Machine
Mailbox
depends on logical ports configured:
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
2 ports 0EtherCAT Processing Unit1 / 10
SoE Servo Drive
Slave Information /IF 3 ports 0ECAT Proc. Unit1 / 12 / 20 (log. ports 0,1, and 2)
Device Profiles
Modular Devices
or
Drives 0ECAT Proc.Unit3 / 31 / 10 (log. ports 0,1, and 3)
Device Description
Configuration Tool 4 ports 0EtherCAT Processing Unit3 / 31 / 12 / 20
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 23
Frame Processing
Auto Forwarder and Loop Back
EtherCAT Basics
Slave Structure
Port 3
Device Model (ISO/OSI)
Physical Layer
Auto-
Data Link Layer Forwarder
Frame Structure
Addressing port 3 open
Commands
Memory/Registers EtherCAT
Processing Unit port 3 closed
SyncManager
FMMU Loopback function
Diagnosis
Distributed Clocks
Application Layer
State Machine Port 0 ET1100 Port 1
1
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
Loopback function
FoE File Access port 2 closed
SoE Servo Drive
Slave Information /IF
Device Profiles port 2 open
Modular Devices
Drives Auto-
Forwarder
Device Description
Configuration Tool
Port 2
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 24
Application
Appli- HTTP, Application
….
cation FTP, .. e.g. CiA402 Drive Profile
0x0000 0x1000
ESC Address Space (DPRAM)
SyncMan0 MbxOut SyncMan1 MbxIn SyncMan2 SyncMan3
Data
FMMU n FMMU n
FMMU Link
EtherCAT Slave Controller (ESC) FMMU
FMMU
Layer
EtherCAT Processing Unit (DL)
and Auto-Forwarder with Loop Back
Physical
Trafo
Trafo
RJ45
RJ45
PHY PHY
Con
LVDS Layer
(PL)
WKC
WKC
HDR
HDR
0xFFFB
0xFFFC
0xFFFD
0xFFFE
0xFFFF
State Machine
0x0000
Mailbox
Mailbox Interface
EoE Ethernet
0xFFFA
IPC
0xFFF8
0xFFF9
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
..
Modular Devices .. DVI
Drives
1 2 3 4
Device Description 5 6
Configuration Tool
EtherCAT Master
Standards&Implementation 7 8 9
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 35
16 Bit 16 Bit
Fixed Addressing Address Offset
EtherCAT Basics
Slave Structure • Every Slave has a fixed address (16 bit)
Device Model (ISO/OSI)
Physical Layer
Data Link Layer • Usually assigned during hardware configuration scan
Frame Structure
Addressing
Commands
• Independent from slave position
Memory/Registers
SyncManager • Fixed address lost after power loss
FMMU
Diagnosis
Distributed Clocks
Application Layer
0x3EA
0x3ED
0x3EB
0x3EC
0x3EE
State Machine
Mailbox
0x3E9
Mailbox Interface
EoE Ethernet IPC
0x3EF
0x3F0
0x3F1
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles ..
.. DVI
1 2 3 4
Modular Devices
Drives 5 6
Device Description
Configuration Tool
EtherCAT Master 7 8 9
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 36
32 Bit
Logical Addressing Logical Address
EtherCAT Basics
Slave Structure • Slave reads from/ writes its data into the 4 GByte great
Device Model (ISO/OSI)
Physical Layer Ethernet frame (fragmented)
Data Link Layer
Frame Structure
Addressing
IPC
Commands
Memory/Registers
SyncManager
FMMU ..
DVI
..
Diagnosis
232
Logical process image up to 4 GByte
Telegrammstruktur
Distributed Clocks
Application Layer Ethernet HDR HDR 1 PLC Data HDR 2 NC Data HDR n Data n CRC
State Machine
Mailbox
Mailbox Interface
Data n
EoE Ethernet
CoE CANopen PLC Data
FoE File Access
NC Data
SoE Servo Drive
Slave Information /IF
Sub- Sub- Sub-
Device Profiles
Telegramm 1 Telegramm 2 Telegramm n
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation 0
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 37
EtherCAT Commands
EtherCAT Basics
Slave Structure • Different commands to optimize reading and writing for all
Device Model (ISO/OSI)
Physical Layer access methods within a Fieldbus communication system
Data Link Layer
Frame Structure
Addressing
Commands Cmd Idx Address Offset Len R C R M IRQ
Memory/Registers
SyncManager
FMMU
Diagnosis
Distributed Clocks
Cmd Type Access Address Offset Comment
Application Layer
State Machine NOP No Operation
Mailbox
Mailbox Interface Auto R, W, RW, Position Local Memory Position value 0
EoE Ethernet Increment RMW (increments) Address (at entry) addressed
CoE CANopen
FoE File Access configured R, W, RW, Address Local Memory Match address value to
SoE Servo Drive Address RMW (configured) Address local address register
Slave Information /IF
Device Profiles
Broadcast R, W, RW (increments) Local Memory
Modular Devices
Drives
Address
Device Description Logical R, W, RW 32 Bit logical address
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 38
EtherCAT Commands
EtherCAT Basics
Slave Structure • Broadcast Read
Device Model (ISO/OSI)
Physical Layer – Individual Bits of a Byte will be added with a bitwise
Data Link Layer
Frame Structure OR operation between incoming data and local data
Addressing
Commands
Memory/Registers
SyncManager • Read Write Actions
FMMU
Diagnosis – Exchange of incoming data and local data
Distributed Clocks
Application Layer
(exception: Broadcast – see broadcast read)
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
• Read Multiple Write Actions (RMW)
CoE CANopen
FoE File Access
– Addressed Station will read the others will write
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 39
Local Address Space of ESC
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
Physical Layer
0x0000
Data Link Layer Registers
Frame Structure
Addressing 0x0100 DL Control
Commands 0x0110 DL Status 4 kByte
Memory/Registers 0x0120 AL Control
SyncManager 0x0130 AL Status
FMMU
0x0FFF ……
Diagnosis
Distributed Clocks 0x1000
Application Layer User memory
State Machine
Mailbox
Mailbox Interface
process data in
EoE Ethernet process data out
CoE CANopen
FoE File Access mailbox data out
1..60 kByte
SoE Servo Drive
Slave Information /IF mailbox data in
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
0xFFFF ESC
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 40
Local Address Space of ESC
EtherCAT Basics
Slave Structure • 64 kByte address space
Device Model (ISO/OSI)
Physical Layer • Divided into registers and dual ported RAM (DPRAM)
Data Link Layer
Frame Structure • First 4 kByte are reserved for registers
Addressing
Commands • DPRAM starts at 1000h
Memory/Registers
SyncManager • DPRAM size depends on Slave Controller implementation
FMMU
Diagnosis (up to 60 kByte, 4kByte in actual FPGA implementation)
Distributed Clocks
Application Layer • Addressing of registers and DPRAM same
State Machine
Mailbox • Register Write is different –
Mailbox Interface
EoE Ethernet
shadow Register for all Registers integrated
CoE CANopen DPRAM write is not shadowed
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 41
Register of EtherCAT Slave Controller
EtherCAT Basics
Slave Structure • First 1000h bytes (4 kBytes) of local address space
Device Model (ISO/OSI)
Physical Layer • Read access for both sides (EtherCAT and application)
Data Link Layer • Write access from EtherCAT for most of the registers
Frame Structure
Addressing – Master has to configure the Slave Controller
Commands
Memory/Registers • No address settings needed
SyncManager • FMMU and Sync Manager configuration can be
FMMU
Diagnosis optimized for available bandwidth and cycle times
Distributed Clocks – Exceptions that are writable from the application side:
Application Layer
State Machine • AL Status Register, AL Status Code Register,
Mailbox
AL Event Mask Register, Sync Manager Disable
Mailbox Interface
EoE Ethernet Registers, AL Identification Registers
CoE CANopen
• Process Data Interface (PDI) register initialized from Slave
FoE File Access
SoE Servo Drive Information interface (Serial EEPROM)
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 42
Register
EtherCAT Basics
Slave Structure • Registers might be monitored via configuration tool
Device Model (ISO/OSI)
Physical Layer
Data Link Layer
Frame Structure
Addressing
Commands
Memory/Registers
SyncManager
FMMU
Diagnosis
Distributed Clocks
Application Layer
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 43
Register – ESC Data Sheet
EtherCAT Basics
Slave Structure • Register description for every ESC (FPGA/ ASIC)
Device Model (ISO/OSI)
Physical Layer – DL Information, DL Control, DL Status, DL Address
Data Link Layer
Frame Structure – AL Control, AL Status, AL Event
Addressing
Commands
– SyncManager + FMMU configuration
Memory/Registers
– Distributed Clocks
SyncManager
FMMU – Slave Information interface (Serial EEPROM )
Diagnosis
Distributed Clocks
Application Layer
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive Enable Disable Ports
Slave Information /IF
Device Profiles Control of the device state machine
Modular Devices
Drives Status of the device state machine
Device Description
Configuration Tool Error Code
EtherCAT Master
Standards&Implementation 32 Bit I/0, SPI, µC Interface
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 44
SyncManager Overview
EtherCAT Basics
Slave Structure • SyncManager protects a DPRAM section from simultaneous
Device Model (ISO/OSI)
access data consistency
Physical Layer
Data Link Layer • Mailbox Type
Frame Structure
Addressing – 1 buffer SyncManager supports handshake
Commands
– Data overflow protection
Memory/Registers
SyncManager – Writing side must write before reading side can read
FMMU
Diagnosis – Reading side must read before writing side can write again
Distributed Clocks • Buffered Type
Application Layer
State Machine – 3 buffer SyncManager guarantees consistent data delivery
Mailbox
and access to the newest data any time
Mailbox Interface
EoE Ethernet – Always a free buffer to write
CoE CANopen
FoE File Access – Always a consistent buffer to read (except before the first
SoE Servo Drive writing)
Slave Information /IF
Device Profiles – Usually used for process data communication
Modular Devices
• Up to 16 independent SyncManger channels possible
Drives
Device Description • The SyncManager configuration registers start at address
Configuration Tool
EtherCAT Master
0x0800
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 45
Buffered Type (3 buffers) Write Example
EtherCAT Basics • Characteristic: Data always available for both sides
Slave Structure
• Requires 3 (consecutive) memory areas
Device Model (ISO/OSI)
Physical Layer
Data Link Layer EtherCAT ECAT NEXT USER PDI
Frame Structure a Write begin WRITE WRITE WRITE
Addressing WRITE WRITE WRITE
Commands WRITE WRITE WRITE Read latest
Memory/Registers
SyncManager
FMMU
Write end
1
WRITE WRITE WRITE
WRITE WRITE WRITE
2 3
READ READ READ
READ READ READ
READ READ READ
READ READ READ
READ READ READ
available data
Diagnosis
Distributed Clocks
Application Layer
State Machine
b WRITE WRITE WRITE
WRITE WRITE WRITE
Mailbox WRITE WRITE WRITE
Mailbox Interface
EoE Ethernet
CoE CANopen
2 1
WRITE WRITE WRITE
WRITE WRITE WRITE
3
READ READ
READ READ READ
….Go on Reading
Read end
READ READ READ
FoE File Access
SoE Servo Drive
Slave Information /IF c Write begin Read latest
Device Profiles
ECATECATECATECA WRITE WRITE WRITE available data
TECATECATECATEC WRITE WRITE WRITE
Modular Devices
2 3 1
ATECATECATECATE WRITE WRITE WRITE
Drives CATECATECAT WRITE WRITE WRITE
Device Description WRITE WRITE WRITE
Configuration Tool
EtherCAT Master
Standards&Implementation Cycle begins again a
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 46
Mailbox Type (1 buffer) Read Example
EtherCAT Basics
Slave Structure • Allows handshake Communication
Device Model (ISO/OSI)
Physical Layer • Useful for non-Process Data
Data Link Layer
Frame Structure • Handshake mechanism – one side has control
Addressing
Commands
Memory/Registers
SyncManager
Master EtherCAT Slave
FMMU
Diagnosis
Distributed Clocks
Read
Application Layer
MBX Empty
Failed Read
State Machine
Mailbox WKC = 0
Mailbox Interface
EoE Ethernet Write
CoE CANopen
FoE File Access
SoE Servo Drive MBX Full Write Successfull
Slave Information /IF
Device Profiles
Modular Devices
Drives Read
Device Description MBX Empty
Configuration Tool Successfull Read
EtherCAT Master WKC = 1
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 47
SyncManager channel configuration registers
EtherCAT Basics
Slave Structure
16 Bit 16 Bit 8 Bit 8 Bit 16 Bit
Device Model (ISO/OSI)
Physical Layer
0
Start Address 16
Length 32
Ctrl 40
Status E 49R Res
49
E 49R Res
49
Data Link Layer 48 49 50 56 57 63
Frame Structure
Request Response
Addressing Master Slave
Commands
Memory/Registers
SyncManager 1/3
0
Buffer 2
R/W 4
IE 5
IP WD
6 7
R
FMMU
Diagnosis
Distributed Clocks 0
IW 1IR WD
2
1P
3
3P
4
Res.6
Application Layer
State Machine
Mailbox 00: Read Watchdog Channel
Repeat Reserved
Mailbox Interface
01: Write Enable 0
Enable 1
EoE Ethernet
CoE CANopen 0: read
FoE File Access 00: 3 Buffer Interrupt 1: written
SoE Servo Drive
10: 1 Buffer Enable
Slave Information /IF
Device Profiles to PDI Completely
read 00: Buffer 0
Modular Devices
Drives 01: Buffer 1
Device Description Completely 10: Buffer 2
Configuration Tool
written 11: locked (Start)
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 48
SyncManager assignment
EtherCAT Basics
Slave Structure • Standard assignment
Device Model (ISO/OSI)
Physical Layer
– With mailbox support
Data Link Layer • SM0: Mailbox output
Frame Structure
Addressing
• SM1: Mailbox input
Commands • SM2: Process data outputs
Memory/Registers
SyncManager
• SM3: Process data inputs
FMMU • Readable via CoE object 1C00h
Diagnosis
Distributed Clocks
– Without mailbox support
Application Layer • SM0: Process data outputs
State Machine (or inputs if no outputs available)
Mailbox
Mailbox Interface
• SM1: Process data inputs
EoE Ethernet • Extended assignment
CoE CANopen
FoE File Access
– SM0: Mailbox output
SoE Servo Drive – SM1: Mailbox input
Slave Information /IF
Device Profiles
– Rest is configurable via CoE object 1C00h
Modular Devices
Drives
Device Description
• One or more PDO always fit exactly in a SyncManager
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 49
Fieldbus Memory Management Unit (FMMU)
EtherCAT Basics
Slave Structure • Maps a section of the local address space into the global
Device Model (ISO/OSI)
Physical Layer address space and vice versa
Data Link Layer
Frame Structure • Read and write access distinguishable
Addressing
Commands • Bitwise configuration of the memory section possible
Memory/Registers
SyncManager • Up to 16 independent FMMU channels possible
FMMU
Diagnosis – FMMU configuration registers start at address
Distributed Clocks
Application Layer
0x0600
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
• Operation samples:
CoE CANopen
FoE File Access
• Mapping of process data into the global address space
SoE Servo Drive
Slave Information /IF
• Mapping of status bits from the register section
Device Profiles
Modular Devices
– Access to device specific status information with a
Drives minimum overhead – e.g. fill status of a sync
Device Description
Configuration Tool manager channel
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 50
FMMU Usage for Addressing
EtherCAT Basics
Slave Structure • Global address space
Device Model (ISO/OSI)
Physical Layer • 4 GByte address space
Data Link Layer
Frame Structure • Mapping to local addresses by
Addressing
Commands Fieldbus Memory Management Units (FMMU)
Memory/Registers
SyncManager • All EtherCAT devices can map data in a single EtherCAT
FMMU
Diagnosis
Datagram LRW – depending on the FMMU configuration
Distributed Clocks
Application Layer
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool Ethernet HDR FH EH Data WKC FCS
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 51
FMMU entity configuration registers
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI) 16 Bit 8 Bit 8 Bit 16 Bit 8 Bit 8 Bit 1 31 Bit
32 Bit
Physical Layer
Data Link Layer Glob. Start Addr.
0 32
Length GSB 56GEB 64Phy. Start 80LSB
48 88
Dir 96E 97
Res… 127
Frame Structure
Addressing
Commands
Memory/Registers 3 Bit 5 Bit 6 Bit
SyncManager
FMMU 0
0-7 Reserved 7
3 0
R 1W 2Reserved 7 Enable
Diagnosis
Distributed Clocks
Application Layer
State Machine Length of all Write Enable
Mailbox concerned
Mailbox Interface
Bytes Read Enable
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Global GSB: Global Start Bit Local
Slave Information /IF Start Address GEB: Global End Bit Start Address
Device Profiles (32 Bit) LSB: Local Start Bit (16 Bit)
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 52
FMMU Setup
EtherCAT Basics
Slave Structure 1. Master reads hardware configuration including input and
Device Model (ISO/OSI)
Physical Layer output data length of each slave
Data Link Layer
Frame Structure 2. Master organizes mapping of process data
Addressing
Commands 3. Master distributes information (start address etc.) for
Memory/Registers
SyncManager
every slave about where process data in logical process
FMMU image is provided
Diagnosis
Distributed Clocks 4. Process data communication starts
Application Layer
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 53
FMMU example
EtherCAT Basics
Slave Structure • Map 6 Bits form logical address 0x14711.3 to 0x14712.0 to
Device Model (ISO/OSI)
Physical Layer the physical register bits 0x0F01.1 to 0x0F01.6.
Data Link Layer
Frame Structure – The FMMU length is 2 Byte, since the mapped bits
Addressing
Commands
span 2 Bytes of the logical space.
Memory/Registers
SyncManager
FMMU FMMU config. register FMMU reg. offset Value
Diagnosis
Distributed Clocks
Logical Start Address 0x0:0x3 0x00014711
Application Layer Length (Byte) 0x4:0x5 0x0002
State Machine
Mailbox Logical Start Bit 0x6 0x03
Mailbox Interface
EoE Ethernet
Logical Stop Bit 0x7 0x00
CoE CANopen Physical Start Address 0x8:0x9 0x0F01
FoE File Access
SoE Servo Drive Physical Start Bit 0xA 0x01
Slave Information /IF
Device Profiles
Type 0xB Rand and/or Write
Modular Devices Activate 0xC 1 (enable)
Drives
Device Description
Note: FMMU configuration registers start at address 0x0600
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 54
EtherCAT Datagrams
EtherCAT Basics
Slave Structure
* add 1-32 padding bytes if Ethernet frame is less than 64
Device Model (ISO/OSI)
Physical Layer Ethernet H. Ethernet Data FCS
Data Link Layer
Frame Structure
Addressing 14 Byte 2 Byte 44*-1498 Byte 4 Byte
Commands
Ethernet H. Len 0 1 EtherCAT Datagrams FCS
Memory/Registers
SyncManager
FMMU
Diagnosis
Distributed Clocks 1st EtherCAT Datagram 2nd…. …. nth EtherCAT Datagram
Application Layer
State Machine
Mailbox
Mailbox Interface 10 Byte max. 1486 Byte 2 Byte
EoE Ethernet
CoE CANopen
Datag. Header Data WKC
FoE File Access WKC = Working Counter
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 55
Working Counter Details
EtherCAT Basics
Slave Structure • EtherCAT Datagram ends with a 16 Bit Working Counter
Device Model (ISO/OSI)
Physical Layer • Working Counter counts the number of interactions of
Data Link Layer
Frame Structure devices addressed by an EtherCAT Datagram
Addressing
Commands • EtherCAT Slave Controller increments the Working
Memory/Registers
SyncManager
Counter in hardware – if the controller is addressed and
FMMU the addressed memory is accessible (Sync Manager)
Diagnosis
Distributed Clocks • Each Datagram should have an expected Working counter
Application Layer
State Machine value – calculated by the configuration tool
Mailbox
Mailbox Interface • The Master checks the valid processing of EtherCAT
EoE Ethernet
CoE CANopen
Datagrams by comparing the Working Counter with the
FoE File Access expected value
SoE Servo Drive
Slave Information /IF • Special case: RW addressing methods will increment
Device Profiles
Modular Devices WKC by 2 for write access and by 1 for read access
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 56
Working Counter Example
EtherCAT Basics
Slave Structure • WKC valid: data of this datagram was written to and
Device Model (ISO/OSI)
Physical Layer read from all addressed devices
Data Link Layer
Frame Structure • WKC invalid: memory of one or more devices was not
Addressing
Commands
accessible
Memory/Registers
SyncManager
FMMU
Diagnosis
Distributed Clocks
WC=0 WC=1 WC=3 WC=6
Application Layer node 1 node 2 node 3
State Machine PC DI = read DO=write DI/DO=
Mailbox WC+1=1 WC+2=3 read+write
LRW-
Mailbox Interface Command WC+3=6
EoE Ethernet
1xread+
CoE CANopen WC=6 WC=6 WC=6
1xwrite+
FoE File Access 1+read/ write
SoE Servo Drive =6
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 57
Working Counter Example
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
Physical Layer
Data Link Layer
Frame Structure
Addressing
Commands WC+1
Memory/Registers
SyncManager
FMMU
Diagnosis
Distributed Clocks
WC+1
Application Layer
State Machine
Mailbox
Mailbox Interface WC+3
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
WC+1
Device Profiles
Modular Devices
Drives
Device Description
WC+1
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 58
Diagnosis at Data Link – Possible Errors
EtherCAT Basics
Slave Structure Error situation Detection
Device Model (ISO/OSI)
Physical Layer Wrong Station Check EEPROM, Vendor, Device, SerialNo
Data Link Layer
Frame Structure Transmission Check Transmission Error Counter of each station
Addressing
Commands
Errors
Memory/Registers
SyncManager
Change Check Link Status of last device (should have
FMMU between In and only a single port connected)
Diagnosis
Distributed Clocks
Out Cable
Application Layer
State Machine
Link loss/ Check working counter of a Broadcast read
Mailbox Station fault
Mailbox Interface
EoE Ethernet Frame loss Close loop in the middle
CoE CANopen
FoE File Access Check errors again
SoE Servo Drive
Slave Information /IF
If no frame loss repeat this in the 2nd half of
Device Profiles segment
Modular Devices
Drives Otherwise repeat this in the first half of segment
Device Description
Configuration Tool Repeat this until only a single station remains,
EtherCAT Master which should be the station with problems
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 59
Monitoring of EtherCAT Communication
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
Physical Layer
Data Link Layer Switch
Frame Structure
Addressing
Master
Commands
Memory/Registers
SyncManager
FMMU
Diagnosis
Distributed Clocks
Application Layer Network Monitor
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
• Masters sends an EtherCAT Frame (broadcast)
FoE File Access
SoE Servo Drive
Monitor gets the first copy (unprocessed)
Slave Information /IF
Device Profiles
• Frame returns from EtherCAT Slave Devices
Modular Devices
Drives
Monitor gets the second copy (processed)
Device Description
Configuration Tool
• DLL for readable format available on EtherCAT Web site
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 60
Monitoring of EtherCAT Communication
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
Physical Layer Network Monitor
Data Link Layer
Frame Structure
Addressing Master
Commands
Memory/Registers
SyncManager
FMMU
Diagnosis
Distributed Clocks
Application Layer
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
• Masters sends an EtherCAT Frame (broadcast)
CoE CANopen
FoE File Access
Monitor gets the first copy (unprocessed)
SoE Servo Drive
Slave Information /IF
• Frame returns from EtherCAT Slave Devices
Device Profiles
Modular Devices
Monitor gets the second copy (processed)
Drives
Device Description
• DLL for readable format available on EtherCAT Web site
Configuration Tool Attention:
EtherCAT Master At low cycle times order of frames might be mixed because of timing restrictions within
Standards&Implementation NDIS protocol driver
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 61
Purpose of Distributed Clocks (DC)
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI) Precise Synchronization (<< 1 µs!) by exact adjustment of
Physical Layer
Data Link Layer distributed clocks
Frame Structure
Addressing
S
Commands M
Memory/Registers ∆t
SyncManager IPC
FMMU
Diagnosis
Distributed Clocks
Application Layer S S
..
State Machine .. DVI
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access S S S S S
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 62
External Clock Synchronization: IEEE 1588
EtherCAT Basics
Slave Structure IEEE 1588
Device Model (ISO/OSI) Switchport with integrated Grandmaster
Physical Layer
Data Link Layer
IEEE 1588 Boundary Clock Clock
Frame Structure
Addressing
S
Commands M
Memory/Registers
SyncManager IPC
FMMU
Diagnosis
Distributed Clocks
Application Layer S Boundary S
..
State Machine .. DVI Clock
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access S S S S S
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 63
Distributed Clocks – Features
EtherCAT Basics
Slave Structure • Synchronization of EtherCAT devices
Device Model (ISO/OSI)
Physical Layer • Definition of a System Time
Data Link Layer
Frame Structure – Beginning on January, 1st 2000 at 0:00h
Addressing
Commands
– Base unit is 1 ns
Memory/Registers
– 64 bit value (enough for more than 500 years)
SyncManager
FMMU – Lower 32 bits spans over 4.2 seconds
Diagnosis
Distributed Clocks • Normally enough for communication and time
Application Layer
State Machine
stamping
Mailbox • Definition of a Reference Clock
Mailbox Interface
EoE Ethernet – One EtherCAT Slave will be used as a Reference Clock
CoE CANopen
FoE File Access – Reference Clock distributes its Clock cyclically
SoE Servo Drive
Slave Information /IF – Reference Clock adjustable from a “global” Reference
Device Profiles Clock – IEEE 1588
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 64
Distributed Clocks Unit
EtherCAT Basics SPI / µC parallel IRQ Sync1 / Latch1
Slave Structure Digital I/O Sync0 / Latch0
Device Model (ISO/OSI)
Physical Layer
Data Link Layer Process Data Interface
EtherCAT Address Space
Frame Structure (PDI)
Addressing
Commands
FMMU n
Memory/Registers
SyncManager Sync / Latch Unit
FMMU
Diagnosis SyncMan
Distributed Clocks DC
Control Offset
Application Layer
State Machine
Mailbox EtherCAT Processing Unit System Time
Mailbox Interface and Auto-Forwarder with Loop Back
Delay
EoE Ethernet Distributed Clocks
CoE CANopen Port 0 Port 1 Port 2 Port 3
FoE File Access EtherCAT Slave Controller (ESC)
SoE Servo Drive
Trafo
Trafo
RJ45
RJ45
PHY PHY
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 65
Features of DC Unit within ESC
EtherCAT Basics
Slave Structure • Provider for local time signals
Device Model (ISO/OSI)
Physical Layer – Generation of synchronous local output signals
Data Link Layer
Frame Structure (SYNC0, SYNC1 Signals)
Addressing
Commands – Generation of synchronous Interrupts
Memory/Registers
SyncManager • Synchronous Digital Output updates and Input sampling
FMMU
Diagnosis • Precise time stamping of input events (Latch unit)
Distributed Clocks
Application Layer
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 66
Features of DC Unit within ESC
EtherCAT Basics
Slave Structure • Propagation delay measurement support
Device Model (ISO/OSI)
Physical Layer – Each EtherCAT slave controller measures the delay
Data Link Layer
Frame Structure between the two directions of a frame
Addressing
Commands – Master calculates the propagation delays between all
Memory/Registers
SyncManager
slaves
FMMU
Diagnosis
• Offset compensation to Reference Clock
Distributed Clocks
Application Layer
– Offset between local clock and Reference Clock
State Machine
Mailbox
– Same absolute system time in all devices
Mailbox Interface
EoE Ethernet
– Simultaneousness (clear below 100ns difference) in
CoE CANopen all devices
FoE File Access
SoE Servo Drive • Drift compensation to Reference Clock
Slave Information /IF
Device Profiles – DC Control Unit
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 67
Register System Time
EtherCAT Basics
Slave Structure • Registers:
Device Model (ISO/OSI)
Physical Layer – System Time
Data Link Layer
Frame Structure
(0x0910:0x0917, small systems 0x0910:0x0913)
Addressing
Commands
Memory/Registers • System Time
SyncManager
FMMU – Read access from both sides (EtherCAT and µC)
Diagnosis
Distributed Clocks – Consistent access from µC
Application Layer
State Machine
(access to first byte saves an internal copy)
Mailbox – Consistent access from EtherCAT
Mailbox Interface
EoE Ethernet (within a single frame, internally latched with SOF)
CoE CANopen
FoE File Access
– Write access from EtherCAT starts the DC control
SoE Servo Drive
Slave Information /IF
– ARMW command (auto increment read – multiple
Device Profiles write) allows to read System Time of the reverence
Modular Devices
Drives
clock and write it to all slave clocks within a single
Device Description frame
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 68
DC – Propagation Delay Measurement (I)
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI) EtherCAT Node measures time difference between leaving and
Physical Layer
Data Link Layer
returning frame
Frame Structure
Addressing
Commands
Memory/Registers
SyncManager
FMMU
Diagnosis
Distributed Clocks EtherCAT Frame
vom Master
Application Layer
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 69
DC – Propagation Delay Measurement (II)
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI) Propagation delays between any nodes can be computed
Physical Layer
Data Link Layer
Frame Structure
Addressing
Commands
Memory/Registers
SyncManager IPC
FMMU
Diagnosis
Distributed Clocks
Application Layer
..
State Machine .. DVI
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 70
Propagation Delay Measurement
EtherCAT Basics
Slave Structure • Registers:
Device Model (ISO/OSI)
Physical Layer – Receive Time Port 0 (0x0900:0x0903)
Data Link Layer – Receive Time Port 1 (0x0904:0x0907)
Frame Structure
Addressing – Receive Time Port 2 (0x0908:0x090B)
Commands
Memory/Registers – Receive Time Port 3 (0x090C:0x090F)
SyncManager – System Time Delay (0x0928:0x092B)
FMMU
Diagnosis
Distributed Clocks
Application Layer
• Write access to Receive Time Port 0 activates latch
State Machine – Latch local time of SOF (Start of Frame)
Mailbox
Mailbox Interface – At EOF (End of Frame) SOF time is copied to Receive
EoE Ethernet Time Port X
CoE CANopen
FoE File Access • Receive Time Port X in local clock units (controlled)
SoE Servo Drive
Slave Information /IF
• SOF time of all frames are latched on all ports internally
Device Profiles • Master reads all time stamps and calculates the delay times with
Modular Devices
Drives respect to the topology.
Device Description • Individual delay time is written to register System Time Delay
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 71
Offset and Drift Compensation
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI) Same System Time in all devices
Physical Layer
Data Link Layer
Frame Structure Global System Time Individual
Addressing e.g. by RTC or IEEE1588 System Time Offset
Commands Reference: Jan 1st 2000 M
Memory/Registers S
SyncManager IPC
FMMU
Diagnosis
Distributed Clocks
Application Layer S S
..
State Machine .. DVI
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access S S S S S
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 72
Offset Compensation
EtherCAT Basics
Slave Structure • Registers:
Device Model (ISO/OSI)
Physical Layer – System Time Offset
Data Link Layer
Frame Structure (0x0920:0x927, small systems 0x0920:0x0923)
Addressing
Commands
Memory/Registers
SyncManager • Difference between the Reference Clock and every slave
FMMU
Diagnosis
device's clock is calculated by the master.
Distributed Clocks
Application Layer
• The offset time is written to register System Time Offset
State Machine
Mailbox
• Each slave calculates its local copy of the System time
Mailbox Interface using its local time and the local offset value:
EoE Ethernet
CoE CANopen
FoE File Access • tLocal copy of System Time = tLocal time + tOffset
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 73
Drift Compensation – DC Control
EtherCAT Basics
Slave Structure • Registers:
Device Model (ISO/OSI)
Physical Layer – System Time
Data Link Layer (0x0910:0x0917, small systems 0x0910:0x0913)
Frame Structure
Addressing – System Time Offset
Commands (0x0920:0x927, small systems 0x0920:0x0923)
Memory/Registers
SyncManager
FMMU
Diagnosis
• ARMW command (auto increment read – multiple write) allows to
Distributed Clocks read System Time of the reverence clock and write it to all slave
Application Layer clocks within a single frame
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
• DC Control
CoE CANopen – Write access to System Time compares
FoE File Access
SoE Servo Drive
received Time with local time
Slave Information /IF
Device Profiles
• ∆t = (tLocal time + tOffset + tPropagationDelay) - tReceived Time
Modular Devices
Drives – If (∆t > 0) then decelerate local clock
Device Description else if (∆t < 0) accelerate local clock
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 74
Initialization of DCs
EtherCAT Basics
Slave Structure • Initialization with Propagation Delay compensation
Device Model (ISO/OSI) 1. Master reads the DL Status register of all slaves and calculates the network topology.
Physical Layer 2. Master sends a broadcast write to Receive Time Port 0 register (at least first byte). All slaves
Data Link Layer latch the local time of the first preamble bit of this frame at all ports and at the ECAT
Frame Structure Processing Unit. Some ESCs need the EtherCAT network to be free of frames before the
Addressing broadcast write is sent.
Commands
3. Master waits until the broadcast write frame has returned.
Memory/Registers
SyncManager
4. Master reads all Receive Time Port 0-3 registers (depending on the topology and the Receive
FMMU
Time ECAT Processing Unit register (0x0918:0x091F) which contains the upper 32 bits of the
Diagnosis
receive times.
Distributed Clocks 5. Master calculates individual propagation delays and writes them to System Time Delay
Application Layer registers of the slaves. Possible overruns of the 32 bit Receive Times have to be checked and
State Machine taken into account.
Mailbox 6. Master sets System Time Offset register of the Reference Clock so that the Reference Clock is
Mailbox Interface bound to the master time. The offset for the Reference Clock is master time minus Receive
EoE Ethernet Time ECAT Processing Unit (local time) of the Reference Clock.
CoE CANopen 7. Master calculates System Time offsets for all DC slaves and writes them to the System Time
FoE File Access Offset registers. The offset of each slave is Receive Time ECAT Processing Unit from
SoE Servo Drive Reference Clock minus Receive Time ECAT Processing Unit from each DC slave.
Slave Information /IF
8. For static drift compensation, the master sends many separate ARMW or FRMW drift
Device Profiles
compensation frames (e.g., 15,000 frames) to distribute the System Time of the Reverence
Modular Devices
Clock to all DC slaves.
Drives
Device Description
9. For dynamic drift compensation, the master sends ARMW or FRMW commands periodically to
Configuration Tool
distribute the System Time of the Reverence Clock to all DC slaves. The rate of the drift
EtherCAT Master
compensation commands depends on the acceptable maximum deviation.
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 75
SyncSignal Generation
PDI IRQ Latch0 / Latch1
EtherCAT Basics Sync0 / Sync1
Slave Structure • Output of the Sync unit can be used for
Device Model (ISO/OSI)
Physical Layer – Interrupt generation Sync Unit
Latch Unit
Data Link Layer – PDI Digital Output Update events DC
Frame Structure Offset
Control
Addressing • Can be mapped to
Commands System Time
Memory/Registers – AL Event Request Register for
Delay
SyncManager PDI IRQ Distributed Clocks
FMMU
Diagnosis – SYNC0 and SYNC1
Distributed Clocks • SyncSignals can be generated at a specific System Time
Application Layer
State Machine • Four Operation modes are supported:
Mailbox
Mailbox Interface – Cyclic generation
EoE Ethernet – Single shot
CoE CANopen
FoE File Access – Cyclic acknowledge
SoE Servo Drive
Slave Information /IF
– Single shot acknowledge
Device Profiles • The second SyncSignal (SYNC1) depends on SYNC0, it can be
Modular Devices
Drives generated with a predefined delay after SYNC0 pulses
Device Description • Initiated alternatively from the EtherCAT master or slave
Configuration Tool
EtherCAT Master application side
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 76
Registers for SyncSignal Generation
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
Physical Layer
Data Link Layer Register Address Name Description
Frame Structure 0x0140[11:10] PDI Control Enable/Disable DC Units (power saving)
Addressing
Commands
0x0151 Sync/Latch PDI Configuration Configuration of SYNC/LATCH[1:0] pins
Memory/Registers 0x0980.0 Cyclic Unit Control Assignment of cyclic function to EtherCAT or
SyncManager PDI
FMMU 0x0981 Activation Activation of cyclic function and SYNC pins
Diagnosis
0x0982:0x0983 Pulse Length of SYNC signals Length of SYNC impulse length
Distributed Clocks
Application Layer 0x098E SYNC0 Status Status of SYNC0 signal
State Machine 0x098F SYNC1Status Status of SYNC1 signal
Mailbox 0x0990:0y0997 SYNC0 Start Time Start Time of cyclic operation
Mailbox Interface
0x0998:0x099F NEXT SYNC1 Pulse Next Sync1 Pulse
EoE Ethernet
CoE CANopen 0x09A:0x09A3 SYNC0 Cycle Time Cycle Time of SYNC0
FoE File Access 0x09A4:0x09A7 SYNC1 Cycle Time Cycle Time of SYNC1
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 77
SYNC0 Signal Generation modes
EtherCAT Basics Start Time
Slave Structure
Activation SYNC0 Cycle Time
Device Model (ISO/OSI)
Physical Layer Cyclic generation
Data Link Layer SYNC0
Frame Structure
Addressing Single shot
Commands
SYNC0
Memory/Registers
SyncManager
FMMU Acknowlege
Diagnosis Cyclic Acknowledge mode
Distributed Clocks
SYNC0
Application Layer
State Machine Acknowlege
Mailbox Single shot Acknowledge mode
Mailbox Interface
SYNC0
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Pulse Length SYNC0 Cycle Time
Slave Information /IF (0x09A0:0x09A3)
Device Profiles of SYNC Signals
Modular Devices (0x0982:0x0983) >0 =0
Drives
Device Description
>0 Cyclic generation Single Shot
Configuration Tool =0 Cyclic Acknowledge* Single Shot Acknowledge*
EtherCAT Master
Standards&Implementation * Acknowledge by reading SYNC status register (0x098E, 0x098F)
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 78
SYNC1 Signal Generation modes
Start Time
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI) SYNC1 Cycle Time < SYNC0 Cycle Time SYNC0 Cycle Time
CoE CANopen
SYNC1
FoE File Access
SoE Servo Drive
SYNC1 Cycle Time > SYNC0 Cycle Time
Slave Information /IF and SYNC0 Cycle Time
Device Profiles SYNC1 Cycle Time < 2*SYNC0 Cycle Time
Modular Devices SYNC0
Device Description
SYNC1
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 79
Latch Functionality
EtherCAT Basics
Slave Structure • The Latch Event unit supports time stamping of the system
Device Model (ISO/OSI)
Physical Layer time with two independent input signals
Data Link Layer
Frame Structure – LATCH0 and LATCH1 input signals are used
Addressing (can be the same pins as for SYNC0 and SYNC1, ESC dependents)
Commands
Memory/Registers – Time Stamping of SyncManager events is possible
SyncManager
FMMU • Latch on positive and/or negative edge
Diagnosis
Distributed Clocks • Single or continuous latch configurable
Application Layer
State Machine • The Latch Time register (0x09B0:0x09CF) contain the time
Mailbox
Mailbox Interface stamps
EoE Ethernet
CoE CANopen – Acknowledge by reading the Latch Time register.
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 80
Registers for Latch Input Events
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
Register Address Name Description
Physical Layer
Data Link Layer 0x0140[11:10] PDI Control Enable/Disable DC Units (power saving)
Frame Structure 0x0151 Sync/Latch PDI Configuration Configuration of SYNC/LATCH[1:0] pins
Addressing 0x0980[5:4] Cyclic Unit Control Assignment of cyclic function to EtherCAT or
Commands PDI
Memory/Registers
0x09A8 Latch0 Control Latch unit configuration for Latch0
SyncManager
FMMU
0x09A9 Latch1 Control Latch unit configuration for Latch1
Diagnosis 0x09AE Latch0 Status Latch status of Latch0
Distributed Clocks 0x09AF Latch1 Status Latch status Latch1
Application Layer 0x09B0:0x09B7 Latch0 Time Positive Edge Time stamp positive edge Latch0
State Machine
0x09B8:0x09BF Latch0 Time Negative Edge Time stamp negative edge Latch0
Mailbox
Mailbox Interface 0x09C0:0x09C7 Latch1 Time Positive Edge Time stamp positive edge Latch1
EoE Ethernet 0x09C8:0x09CF Latch1 Time Negative Edge Time stamp negative edge Latch1
CoE CANopen EtherCAT Buffer Change Time stamp for ECAT SyncManager buffer
FoE File Access 0x09F0:0x09F3
Event Time change event
SoE Servo Drive
Time stamp for PDI SyncManager buffer start
Slave Information /IF 0x09F8:0x09FB PDI Buffer Start Event Time
event
Device Profiles
Modular Devices Time stamp for PDI SyncManager buffer
0x09FC:0x09FF PDI Buffer Change Event Time
Drives change event
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 81
Synchronization Modes
EtherCAT Basics
Slave Structure • Definition of a unique behavior of EtherCAT devices (Master and
Device Model (ISO/OSI)
Physical Layer
Slaves) for synchronized applications
Data Link Layer
Frame Structure
• Synchronization modes
Addressing – Free Run
Commands
Memory/Registers – Synchronization with SyncManager Event,
SyncManager
FMMU
i.e. receipt of the telegram
Diagnosis
Distributed Clocks
– Synchronization with Distributed Clocks
Application Layer
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 82
Synchronization Modes
EtherCAT Basics
Slave Structure 1. Free Run
Device Model (ISO/OSI)
Physical Layer 2. Synchronous to SM2/3 (with Shift)
Data Link Layer
Frame Structure 3. DC Mode 1 (Sync0 Event)
Addressing
Commands 4. DC Mode 1 (Sync0 Event with Shift)
Memory/Registers
SyncManager 5. DC Mode 2 (Sync0, Sync1, with Shift)
FMMU
Diagnosis 6. DC Mode 3 (SM2 Event, Sync0)
Distributed Clocks
Application Layer 7. DC Mode 4 (SM2 Event, Sync0, Sync1)
State Machine
Mailbox 8. DC Mode with subordinated cycles
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 83
Free Run
Local Timer
UserShiftTime
1C33:06 (Calc+Copy Time)
1C32:09 Outputs Valid Input Latch
(Delay Time)
- Output Shift Time 0x1C32:03 has to be greater than the value of 0x1C32:06
- Input Shift Time 0x1C33:03 has to be greater than 0x1C32:05-0x1C33:06
- Input Shift Time 0x1C33:03 has to be smaller than Sync0 Cycle Time-UserShiftTime-0x1C33:06
24.02.2008 EtherCAT Communication 89
DC Mode 2
Sync0 Event, Sync1 Event
Sync1 Event
Frame Frame
- Frame has to received at least the value of 0x1C32:06 before Sync0 Event is generated
- Sync0 Cycle Time has to be greater than the value of 0x1C32:05
- 0x1C32:01 = 0x1C33:01 = 2, 0x1C33:09 = 0
Sync1 Event
Frame Frame
0x1C32:02 CycleTime
MinCycleTime MinCycleTime
0x1C33:06
(Calc+Copy Time)
Application Application
Frame D U Frame D U
S0 S0
Sync0 Sync0
24.02.2008 EtherCAT Communication 94
Master Settings for use of DC
Max. value of
0x1C33:06 U- Frame D U+
Fixed Shift
(precalc.)
Max. value of
0x1C32:06 + 0x1C32:09
0x0000 0x1000
ESC Address Space (DPRAM)
SyncMan0 MbxOut SyncMan1 MbxIn SyncMan2 SyncMan3
Data
FMMU n FMMU n
FMMU Link
EtherCAT Slave Controller (ESC) FMMU
FMMU
Layer
EtherCAT Processing Unit (DL)
and Auto-Forwarder with Loop Back
Physical
Trafo
Trafo
RJ45
RJ45
PHY PHY
Con
LVDS Layer
(PL)
WKC
WKC
HDR
HDR
FMMU
Diagnosis
Distributed Clocks
Application Layer
• Transition to ‘Pre-Operational’
State Machine
Mailbox
• Master configures register, at least:
Mailbox Interface
EoE Ethernet
– DL Address register
CoE CANopen
FoE File Access
– Sync Manager channels for Mailbox communication
SoE Servo Drive
Slave Information /IF
• Master requested ‘Pre-Operational’ state
Device Profiles
Modular Devices
– sets AL Control register
Drives
Device Description
– wait for AL Status register confirmation
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 101
State Machine / Pre-Operational
EtherCAT Basics Init
Slave Structure • ‘Pre-Operational’ State
Device Model (ISO/OSI)
Physical Layer • Mailbox communication on the Pre-Operational
Commands
Memory/Registers
Operational
SyncManager
FMMU
Diagnosis
Distributed Clocks
Application Layer
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 104
State Machine / Bootstrap
EtherCAT Basics Init
Slave Structure • ‘Bootstrap’ State
Device Model (ISO/OSI)
Physical Layer • ‘Bootstrap’ State is optional – Pre-Operational Bootstrap
Commands
updates necessary
Memory/Registers
SyncManager
• State changes only from and to ‘Init’ Operational
FMMU
Diagnosis
• No Process Data communication
Distributed Clocks
Application Layer
• Communication via Mailbox on Application Layer
State Machine
Mailbox
• Special mailbox configuration possible,
Mailbox Interface e.g. larger mailbox size
EoE Ethernet
CoE CANopen • Only FoE protocol available (possibly limited “file” range)
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 105
State Machine / Control and Status
EtherCAT Basics
Slave Structure • Requested and current state of a slave device are
Device Model (ISO/OSI)
Physical Layer reflected in the AL Control and AL Status registers
Data Link Layer
Frame Structure – AL Control (0x0120)
Addressing
Commands
Initiate State Transition of Device State Machine
Memory/Registers
SyncManager
– AL Status (0x0130)
FMMU Actual State of Device State Machine
Diagnosis
Distributed Clocks – AL Status Code (0x0134)
Application Layer
State Machine Reason of error or other status code
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 106
Diagnosis at Application Layer
EtherCAT Basics
Slave Structure • AL Status Code (0x0134)
Device Model (ISO/OSI)
Physical Layer – Error Codes (extract)
Data Link Layer
Frame Structure Code Description
Addressing
Commands 0x0000 No Error
Memory/Registers 0x0011 Invalid requested state change
SyncManager
FMMU 0x0015 Invalid mailbox configuration
Diagnosis
Distributed Clocks
0x0018 No valid inputs available
Application Layer 0x0019 No valid outputs
State Machine
Mailbox 0x001A Synchronization error
Mailbox Interface
EoE Ethernet
0x001B Sync manager watchdog
CoE CANopen
FoE File Access – Further Status Codes (extract)
SoE Servo Drive
Slave Information /IF Code Description
Device Profiles
0x0021 Slave needs INIT
Modular Devices
Drives 0x0022 Slave need PREOP
Device Description
Configuration Tool 0x0030 Invalid DC Sync Configuration
EtherCAT Master
0x0031 Invalid DC Latch Configuration
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 107
Mailbox Transfer
EtherCAT Basics Device Parameter (example)
Slave Structure
Device Model (ISO/OSI) Index Value
Physical Layer 0x1600 RxPDO Mapping
Data Link Layer
Frame Structure 0x1A00 TxPDO Mapping
Addressing 0x2000 Current control
Commands
Memory/Registers 0x2010 Velocity control
SyncManager
Mailbox Transfer for Parameter Data
0x2040 Motor parameter
FMMU Full duplex capable
Diagnosis 0x2070 Actual values
Distributed Clocks 0x6040 Controlword
Application Layer
State Machine 0x6041 Statusword
IPC
Mailbox
Mailbox Interface
EoE Ethernet State "PreOperational"
CoE CANopen
FoE File Access ..
.. DVI
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Simple IO-Device
Configuration Tool No Parameter
EtherCAT Master
Standards&Implementation
No Mailbox necessary
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 108
Purpose of Mailbox Transfer
EtherCAT Basics
Slave Structure • Standard way to exchange Parameter Data
Device Model (ISO/OSI)
Physical Layer • The Mailbox Interface is optional – but recommended
Data Link Layer
Frame Structure • Needed if Process Data configurable or any other non
Addressing
Commands cyclic services
Memory/Registers
SyncManager • Full duplex capable
FMMU
Diagnosis
(Slave can initiate a communication)
Distributed Clocks
Application Layer
• 2 Sync Manager channels reserved
State Machine
Mailbox
– Sync Manager 0 : Master to Slave
Mailbox Interface
EoE Ethernet
– Sync Manager 1 : Slave to Master
CoE CANopen
FoE File Access
• Available at early stage of communication
SoE Servo Drive (State Pre-Operational)
Slave Information /IF
Device Profiles • Multi protocol capable
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 109
Mailbox Protocol Types
EtherCAT Basics
Slave Structure • Ethernet over EtherCAT (EoE)
Device Model (ISO/OSI)
Physical Layer
– Tunnels standard Ethernet Frames over EtherCAT
Data Link Layer
Frame Structure
Addressing
• CANopen over EtherCAT (CoE)
Commands – Access of a CANopen object dictionary and its objects
Memory/Registers
SyncManager
– CANopen Emergency and optional event driven PDO
FMMU
messages
Diagnosis
Distributed Clocks
Application Layer
• File Access over EtherCAT (FoE)
State Machine – Download and upload firmware and other ‘files’
Mailbox
Mailbox Interface
EoE Ethernet • Servo Drive over EtherCAT (SoE)
CoE CANopen
FoE File Access
– Access the Servo Profile Identifier (IDN)
SoE Servo Drive
Slave Information /IF
Device Profiles
• Vendor specific Profile over EtherCAT (VoE)
Modular Devices – First DWORD contains the Vendor ID, the next WORD
Drives
contains a Vendor Type, the rest is vendor specific
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 110
Mailbox Interface
EtherCAT Basics
Slave Structure • Datagram within an EtherCAT Frame
Device Model (ISO/OSI)
Physical Layer
Data Link Layer
Frame Structure
Addressing Ethernet Header EC Header
Commands Type = 88A4h Type = 1
EtherCAT Data FCS
Memory/Registers
SyncManager
FMMU
Diagnosis 1st EtherCAT Datagram 2nd … … nth EtherCAT Datagram
Distributed Clocks
Application Layer
State Machine
Mailbox Datag. Header Data WKC
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Mailbox Protocol
Slave Information /IF
Device Profiles
Modular Devices
Drives Mbx Header Command Cmd specific data
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 111
Mailbox Header
48 Bit
EtherCAT Basics
Slave Structure Mbx Header Command Cmd specific data
Device Model (ISO/OSI)
Physical Layer
Data Link Layer 16 Bit 16 Bit 6 Bit 2 Bit 4 Bit 4 Bit
Frame Structure
0
Length Address
16
Channel
32
Prio
38 40
Type 44
Cntr
Addressing
Commands
Memory/Registers Length Length of following data
SyncManager
FMMU Address Station Address of originator
Diagnosis
Distributed Clocks Channel reserved for future use
Application Layer
State Machine Priority reserved for future use
Mailbox
Mailbox Interface Type Mailbox Type, Protocol identifier for following data
EoE Ethernet 0 Mailbox Error
CoE CANopen
2 EoE (Ethernet over EtherCAT)
FoE File Access
SoE Servo Drive 3 CoE (CANopen over EtherCAT)
Slave Information /IF 4 FoE (File Access over EtherCAT)
Device Profiles 5 SoE (Servo Drive over EtherCAT)
Modular Devices 15 VoE (Vendor specific profile over EtherCAT)
Drives
Device Description Counter Sequence number for duplicate detection
Configuration Tool
EtherCAT Master Increments with every new mailbox service
Standards&Implementation (only the values 1-7 will be used to be compatible with older versions).
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 112
Mailbox Error Handling Procedure
EtherCAT Basics
Slave Structure • Reliable way of mailbox data exchange
Device Model (ISO/OSI)
Physical Layer
Data Link Layer
Frame Structure
• Mailbox control procedure
Addressing
Commands
Memory/Registers • Recover from lost frames
SyncManager
FMMU
Diagnosis • No additional frames if no error
Distributed Clocks
Application Layer
State Machine
Mailbox
• Additional receive buffer required
Mailbox Interface
EoE Ethernet
CoE CANopen • Extra counter in mailbox header needed
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
• HW/SW solution
Modular Devices
Drives
– SyncManager configuration register with toggle flags
Device Description – SW-Mailbox-DL Layer for checking toggle bits
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 113
Mailbox Error Handling – Sync Manager
EtherCAT Basics
Slave Structure • Sync Manager channel configuration registers
Device Model (ISO/OSI)
Physical Layer
Data Link Layer
16 Bit 16 Bit 8 Bit 8 Bit 1 1 6 Bit 1 1 6 Bit
Frame Structure
0
Start Address 16
Length 32
Ctrl 40
Status E 49WT 50Res. 56D 57RT Res.
48 58 63
Addressing
Commands
Memory/Registers
SyncManager WT – SM Write Toggle
FMMU
Diagnosis RT – SM Read Toggle
Distributed Clocks
Application Layer • Following:
State Machine
Mailbox – Mailbox Error Handling - Write Example
Mailbox Interface
EoE Ethernet – Mailbox Error Handling - Read Example
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 114
Mailbox Error Handling – Mailbox Write
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI) Master Slave
Physical Layer
Data Link Layer
Mailbox Write (Mbx Hdr Ctr=1)
Frame Structure
Addressing Slave receives Mailbox Write Event
Commands FPWR response got lost, and calls MBX_MailboxWrite Ind
Memory/Registers Master repeats the Mailbox to start the handling on the Mailbox
SyncManager Write without incrementing Write service
FMMU the Mbx Hdr Ctr
Diagnosis MBX_MailboxWriteInd
Distributed Clocks
Application Layer
State Machine Mailbox Write (Mbx Hdr Ctr=1)
Mailbox
Mailbox Interface Slave receives Mailbox Write Event,
EoE Ethernet detects an unchanged counter
CoE CANopen in the mailbox header and discard
FoE File Access the Mailbox Write Service
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 115
Mailbox Error Handling – Mailbox Read
EtherCAT Basics Master Slave
Slave Structure MBX_MailboxSendReq(pMbx)
Device Model (ISO/OSI)
Slave puts the Mailbox Read service
Physical Layer
in the send mailbox and stores
Data Link Layer
the actual sent buffer
Frame Structure
Addressing Master sends FPRD service, psReadMbx = pMbx
Commands to read the mailbox Mailbox Read
Memory/Registers
Mailbox Read (Mbx Hdr Ctr=1) Slave receives Mailbox Read Event
SyncManager
and stores the sent buffer for a
FMMU
possibly repeated service
Diagnosis
Distributed Clocks
psRepeatMbx = psReadMbx
Application Layer FPRD response got lost,
State Machine Master starts a repeating
Mailbox sequence and shall not Mailbox Repeat (toggles SM-Write-Toggle)
Mailbox Interface read the mailbox again
EoE Ethernet before the repeating
Slave detects the Mailbox Repeat
CoE CANopen sequence is finished
request by checking the SM-Write-
FoE File Access
Toggle, puts the psReceiveMbx
SoE Servo Drive
buffer in the Send mailbox and
Slave Information /IF Master reads cyclically Read SM-Read-Toggle toggles the SM-Read-Toggle
Device Profiles the SM-Read-Toggle to
Modular Devices check if the Slave has
Drives finished the repeat request psReadMbx = psRepeatMbx
Device Description
Configuration Tool When the SM-Read-Toggle Mailbox Read
EtherCAT Master has toggled the master reads
Standards&Implementation Mailbox Read (Mbx Hdr Ctr=1)
the send mailbox again
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 116
Ethernet over EtherCAT (EoE)
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
Physical Layer
Web server
Data Link Layer virtual MAC Address
Frame Structure virtual
IP Address
Addressing Ethernet
Commands
Switch
Memory/Registers
SyncManager
Functionality Switchport-
FMMU Terminal
Diagnosis
Distributed Clocks Master
Application Layer
State Machine
Mailbox
Mailbox Interface
TCP/IP
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Even via
Slave Information /IF
Device Profiles
Internet
Modular Devices
Drives Label printer
Device Description
Web access on device with
Configuration Tool web server
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 117
Purpose of Ethernet over EtherCAT (EoE)
EtherCAT Basics
Slave Structure • Tunnels transparently Ethernet Frames over EtherCAT
Device Model (ISO/OSI)
Physical Layer • Tunneling reduces the cycle times without restrictions and
Data Link Layer
Frame Structure to optimized available bandwidth
Addressing
Commands • Used for devices with TCP/IP stacks (e.g. Web Server)
Memory/Registers
SyncManager
and for infrastructure devices like Switch Terminals
FMMU
Diagnosis
• Allows to access corresponding devices in the normal IP
Distributed Clocks network in combination with a ‘Virtual Ethernet Switch’
Application Layer
State Machine (Layer 2) on the master side
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 118
EoE – Switchport: Any Ethernet Protocol
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
• Interface to any Ethernet Device or Network
Physical Layer
Data Link Layer
• Ethernet Frames are inserted in EtherCAT Protocol
Frame Structure
Addressing
Commands
Memory/Registers EtherCAT Switchport
SyncManager
FMMU
Diagnosis Ethernet MAC PHY
Distributed Clocks
Application Layer
State Machine
Mailbox RX1 RX2TX
RX RX3 RX4
Mailbox Interface
µC
EoE Ethernet Fragmentation
CoE CANopen
FoE File Access Mailbox Process Data
SoE Servo Drive
Slave Information /IF
PHY EtherCAT MAC / DLL PHY
Device Profiles
TX2
TX3
TX1 TX1
TX3
TX2
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 119
EoE – Frame Header
EtherCAT Basics 8 Byte 4 Byte Max. 1476 Byte
Slave Structure Mbx Header EoE Cmd Cmd specific data
Device Model (ISO/OSI) Type = 2 (EoE)
Physical Layer
Data Link Layer 4 Bit 4 Bit 1B 1B 1B 5B 6 Bit 6 Bit 4 Bit
Frame Structure
Frag. Frame
Addressing Type Port LF TA TR res Size
Commands No No
Memory/Registers
SyncManager
FMMU Type EoE Frame Type
Diagnosis 0x00 EoE Fragment Request
Distributed Clocks 0x01 Initiate EoE Request
Application Layer 0x02 IP Parameter Request
State Machine 0x03 IP Parameter Response
Mailbox 0x04 Set MAC Address Filter Request
Mailbox Interface 0x05 Set MAC Address Filter Response
EoE Ethernet
CoE CANopen
Port Selected Port
FoE File Access LF Last fragment
SoE Servo Drive
Slave Information /IF TA Time stamp appended (only if LF=1)
Device Profiles
Modular Devices
TR Time stamp request
Drives Fragment No Fragment Number of the Ethernet Frame fragment
Device Description
Configuration Tool Size Complete size of Ethernet Frame
EtherCAT Master
Standards&Implementation
Frame No Number of the Ethernet Frame
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 120
EoE Header
48 Bit 32 Bit
MBx Size
CoE CoE CoE
Frame Structure
Data<=4 Byte 4Byte<Data<Mbx size* Data > Mbx size*
Addressing Mailbox
Commands
Memory/Registers
SyncManager Mbx Header
CoE
FMMU
Diagnosis
Distributed Clocks
Application Layer
State Machine Mbx Header
CoE
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access Mbx Header
SoE Servo Drive CoE
WKC
Device Profiles Ethernet ECAT SDO Sub
HDR HDR
Add Mbx Hdr CoE Cmd
Control
Index
index
Data FCS
Modular Devices Cmd Offset
Drives
Device Description FPWR 3 1000 Type=3 1 Vendor
0x1018
Configuration Tool (CoE) Download Req ID
EtherCAT Master
Standards&Implementation
SDO Request
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 136
Addressing through DL and AL (PDO Access)
EtherCAT Basics
Slave Structure Add = 1 Add = 2 Add = 3
IPC
Device Model (ISO/OSI)
Physical Layer
Data Link Layer
CoE Object Dictionary
Frame Structure
0x1018:01 Vendor ID
Addressing ..
.. DVI
Commands
0x607A:00 Target Position
Memory/Registers
SyncManager 0x1600 Mapping&Assign
FMMU
AL
Diagnosis
Distributed Clocks
Application Layer
State Machine Mailbox Process Data
Mailbox
Mailbox Interface
DL ESC Address Space (DPRAM)
0x1000 0x1800
EoE Ethernet
CoE CANopen SyncMan0 SyncMan1 SyncMan2 SyncMan3
FoE File Access
SoE Servo Drive FMMU FMMU n
Slave Information /IF Log Address = 10000
Device Profiles
Modular Devices
Drives
ECAT
WKC
Ethernet ECAT
Device Description Log Add Processdata FCS
HDR HDR Cmd
Configuration Tool
EtherCAT Master
LWR 10000 Raw data
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 137
Example: ‘Initiate SDO Download’ Request
EtherCAT Basics
Slave Structure Mailbox Size the original
Device Model (ISO/OSI)
Physical Layer
CANopen Protocol
6 Byte 2 Byte 8 Byte
Data Link Layer (CiA DS301)
Frame Structure Mailbox Header CoE SDO Data (optional)
Addressing
Length of Mbx Service Data
Commands
Memory/Registers
SyncManager 16 Bit 8 Bit 32 Bit
FMMU
Diagnosis 0-4 Bytes I E Size C Ccs Index Sub Data
0 1 2 4 5 8 24 32 63
Distributed Clocks
Application Layer
Expedited 1 1 4-n 0 1 = Initiate SDO Download Request
State Machine
Mailbox > 4 Bytes I E Size C Ccs Index Sub Complete Size Data 0-n
0 1 2 4 5 8 24 32 64
Mailbox Interface
EoE Ethernet
0 0 0 0 1
CoE CANopen Data > Mailbox: ‘Download SDO Segment’ follows
FoE File Access
SoE Servo Drive
> 7 Bytes L Size T Ccs Data 0-6 Data 7-n
Slave Information /IF 0 1 4 5 8 64
Device Profiles left
Modular Devices 0/1 0 0/1 0 = Download SDO Segment Request
Drives
<= 7 Bytes
Device Description L Size T Ccs Data 0-n
0 1 4 5 8 63
Configuration Tool
EtherCAT Master 0/1 7-n 0/1 0
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 138
Example: Expedited Download
Client Server
Client Server
Client Server
Addressing
Commands
Slave
Memory/Registers
SyncManager Host
FMMU
CPU
Diagnosis ESC
Distributed Clocks
Application Layer
Configuration
State Machine EEPROM Data
Mailbox ESC
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
Trafo
Trafo
RJ45
RJ45
0x0000 0x1000
ESC Address Space (DPRAM)
SyncMan0 MbxOut SyncMan1 MbxIn SyncMan2 SyncMan3
Data
FMMU n FMMU n
FMMU Link
EtherCAT Slave Controller (ESC) FMMU
FMMU
Layer
EtherCAT Processing Unit (DL)
and Auto-Forwarder with Loop Back
Physical
Trafo
Trafo
RJ45
RJ45
PHY PHY
Con
LVDS Layer
(PL)
WKC
WKC
HDR
HDR
Standards&Implementation interface. Use of the trade name SERCOS interface requires permission of the trade name holder.
Memory/Registers
SyncManager Network Description
System
FMMU Initialization Commands
Configuration
Diagnosis
Tool
Process Image XML Parser
Distributed Clocks XML
Application Layer
State Machine
HDR Process Data
Mailbox HW Config
Mailbox Interface Init Cmds
Device Description
EoE Ethernet
CoE CANopen XML
Online functions
FoE File Access
SoE Servo Drive EtherCAT Master Driver
Slave Information /IF
Device Profiles
Modular Devices EtherCAT Master
Drives
Device Description
Configuration Tool Standard Ethernet MAC
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 204
Prerequisites for EtherCAT Master (Real Time)
EtherCAT Basics
Slave Structure • Hardware
Device Model (ISO/OSI)
Physical Layer – Standard network controller using DMA
Data Link Layer
Frame Structure • NO special plug in card needed
Addressing
Commands • Speed and Quality important
Memory/Registers
SyncManager – No switches or hubs required
FMMU
Diagnosis – Cache design, CPU
Distributed Clocks
Application Layer – Low jitter, x86 Dual Xeon < 2 µs
State Machine
Mailbox
Mailbox Interface
EoE Ethernet • Software
CoE CANopen
FoE File Access – Realtime kernel
SoE Servo Drive
Slave Information /IF – Configuration tool
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 205
EtherCAT Master Development (Real Time)
EtherCAT Basics
Slave Structure 1. XML Parser functionality
Device Model (ISO/OSI)
Physical Layer 2. EtherCAT Master driver
Data Link Layer
Frame Structure – Interface to configuration tool
Addressing
Commands – State machine
Memory/Registers necessary
SyncManager – Interface to application
FMMU
Diagnosis – Interface to network card
Distributed Clocks
Application Layer – NIC Timing Interface
State Machine
Mailbox 3. Real Time Kernel
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access 4. Hardware Configuration Tool
SoE Servo Drive
Slave Information /IF – 3.rd party configuration tools can be used optional
Device Profiles
Modular Devices as the configuration is provided to
Drives
Device Description
EtherCAT master in a common format
Configuration Tool (XML)
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 206
Master Sample Code Structure
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
Physical Layer
Data Link Layer
XML
Frame Structure EtherCAT File Parser Appl.
Addressing
Configuration
Commands
Memory/Registers Tool
Process Image
SyncManager
FMMU EtherCAT
Diagnosis Online Functions Master Driver (Sample)
Distributed Clocks
Application Layer
State Machine Ethernet Frames
Mailbox
Mailbox Interface
EoE Ethernet
TCP/IP NPF (based)
CoE CANopen
FoE File Access Protocol Driver Protocol Driver
SoE Servo Drive
Slave Information /IF
Device Profiles NDIS
Modular Devices
Drives
Device Description
Miniport
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 207
Master Sample Code Overview
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
• Sample EtherCAT Master Communication Software
Physical Layer (including Source Code)
Data Link Layer
Frame Structure – Non Real Time
Addressing
Commands – Realized as Windows Application Program
Memory/Registers
SyncManager (MS Windows XP/2000)
FMMU
Diagnosis – Source Code MS C++
Distributed Clocks
Application Layer
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 208
Standards and References
EtherCAT Basics
Slave Structure • Specification of EtherCAT has been done in the EtherCAT
Device Model (ISO/OSI)
Physical Layer Technology Group (ETG)
Data Link Layer
Frame Structure
Addressing
Commands • Specifications available at www.EtherCAT.org
Memory/Registers
SyncManager – XML File Style sheet
FMMU
Diagnosis – Datasheets of ESC, ...
Distributed Clocks
Application Layer – Modular Device Profile
State Machine
Mailbox – Reports of ETG TC meetings
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access • International standardization
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 209
Standards and References
EtherCAT Basics
Slave Structure •EtherCAT is part of different international
Device Model (ISO/OSI)
Physical Layer standardization efforts
Data Link Layer
Frame Structure Standard Title Status Remarks
Addressing
Commands IEC/PAS Real Time Ethernet control automation PAS Replaced by IEC 61158
Memory/Registers 62407 technology (ETHERCAT)
SyncManager IEC 61158 Digital data communication for measurement IS Type 12:
FMMU and control – Fieldbus for use in industrial EtherCAT Specification
Diagnosis control systems
Distributed Clocks
Application Layer Part 1: Overview and guidance
State Machine Part 2: Physical Layer service definition and
Mailbox protocol specification
Mailbox Interface
EoE Ethernet Part 3: Data Link Layer service definition
CoE CANopen Part 4: Data Link Layer protocol specification
FoE File Access
SoE Servo Drive Part 5: Application Layer service definition
Slave Information /IF Part 6: Application Layer protocol
Device Profiles specification
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master PAS : Public available standard
IS : International Standard
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 210
Standards and References
EtherCAT Basics
Slave Structure Standard Title Status Remarks
Device Model (ISO/OSI)
IEC 61784 Digital data communication for measurement
Physical Layer
and control
Data Link Layer
Frame Structure Part 1: Profile sets for continuous and discrete IS
Addressing manufacturing relative to fieldbus use in
Commands industrial control systems
Memory/Registers
Part 2: Additional profiles for ISO/IEC 8802-3 IS CPF12: EtherCAT
SyncManager
based communication networks in real-time
FMMU
applications
Diagnosis
Distributed Clocks IEC 61800 Adjustable speed electrical power drive
Application Layer systems
State Machine
Part 7-1: Generic interface and use of profiles IS Part 7:
Mailbox
for power drive systems – Interface definition Drive Profiles
Mailbox Interface
EoE Ethernet Part 7-2: Generic interface and use of profiles IS
CoE CANopen for power drive systems – Profile specifications
FoE File Access
Part 7-3: Generic interface and use of profiles IS Mapping
SoE Servo Drive
for power drive systems – Mapping of profiles EtherCAT to
Slave Information /IF
to network technologies CANopen DS402
Device Profiles
and SERCOS
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 211
Standards and References
EtherCAT Basics
Slave Structure Standard Title Status Remarks
Device Model (ISO/OSI)
ISO 15745 Industrial automation systems and integration - Ed 1 CANopen
Physical Layer
- Open systems application integration
Data Link Layer
framework
Frame Structure
Addressing Part 4 Amd 2: Profiles for Modbus TCP, PRF Amd Mapping
Commands EtherCAT and ETHERNET Powerlink EtherCAT to
Memory/Registers CANopen DS301
SyncManager
FMMU
Diagnosis
Distributed Clocks
Application Layer
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
PRF Amd:
Amd: : Proof of a new International Standard, Amendment
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 212
IEC 61158
EtherCAT Basics
Slave Structure • Digital data communication for measurement and control –
Device Model (ISO/OSI)
Physical Layer Fieldbus for use in industrial control systems
Data Link Layer
Frame Structure
Addressing
Commands • The communication standard
Memory/Registers
SyncManager
FMMU
Diagnosis • EtherCAT is named Type 12 in IEC 61158
Distributed Clocks
Application Layer
(no brand names allowed)
State Machine
Mailbox
• Transformation of the communication protocol to a
Mailbox Interface common model
EoE Ethernet
CoE CANopen
FoE File Access
SoE Servo Drive
Slave Information /IF
Device Profiles
Modular Devices
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 213
IEC 61158 – DL/AL services and protocols
EtherCAT Basics
Slave Structure
Device Model (ISO/OSI)
Physical Layer
Users Implementers
Data Link Layer
Frame Structure
Addressing AL Services AL Protocol
Commands
Part 5 in IEC 61158 Part 6 in IEC 61158
Memory/Registers
SyncManager • Syntax definition and Coding
• Model and Concepts
FMMU • Data type definitions • Application Relationship
Diagnosis • Application Objects Procedures
• Service description • State Machines
Distributed Clocks
Application Layer • Communication Management
State Machine
Mailbox
Mailbox Interface
EoE Ethernet
CoE CANopen
DL Services DL Protocol
FoE File Access Part 3 in IEC 61158 Part 4 in IEC 61158
SoE Servo Drive
• Model and Concepts • Coding
Slave Information /IF
• Service description • Medium Access
Device Profiles • Register Description • State Machines
Modular Devices (DL objects)
Drives
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 214
IEC 61800-7
EtherCAT Basics
Slave Structure
EtherCAT is Part of the drives standard in Annex A and D
Device Model (ISO/OSI)
Physical Layer IEC 61800 Parts 1 to 6
Adjustable speed electrical power drive systems IEC TR 62390
Data Link Layer Abstract Device profile guideline
Frame Structure models
Addressing
IEC 61800-7 Generic interface and use of profiles for power drive systems
Commands
Memory/Registers Generic IEC 61800-7-1 Interface definition
SyncManager PDS
FMMU interface
Annex A: Annex B: Annex C: Annex D:
Diagnosis
Mapping to Mapping to Mapping to Mapping to Mapping to
Distributed Clocks CiA402 CIP PROFIdrive SERCOS
solutions
Application Layer (profiles)
State Machine
Mailbox
IEC 61800-7-2 Profile specifications
Mailbox Interface Annex A: Annex B: Annex C: Annex D:
EoE Ethernet Profile Profile Profile Profile
CoE CANopen Drive CiA402 CIP PROFIdriv SERCOS
FoE File Access
profiles e
SoE Servo Drive
Slave Information /IF IEC 61800-7-3 Mapping of profiles to network technologies
Mapping to
Device Profiles network
Modular Devices
Annex A Annex B Annex C Annex D
technologies
Mapping toMapping to
Drives Mapping toMapping toMapping to Mapping toMapping toMapping to Mapping toMapping to SERCOS SERCOS Mapping to
ETHERNET EtherCAT
CANopen EtherCAT Powerlink DeviceNet ControlNetEtherNet/IP PROFIBUSPROFINET
Device Description I + II III
Configuration Tool
EtherCAT Master SERCOS interface™ is a trade name of Interests Group SERCOS interface e.V. Compliance to this profile does not require use of the trade name SERCOS
Standards&Implementation interface. Use of the trade name SERCOS interface requires permission of the trade name holder.
ecatcoe coeappl
ecatappl
foeappl
Commands Slave Sample Code
Memory/Registers
SyncManager
Step 6:
emcy
FMMU
Diagnosis
Test implementation for PDO- und
ecatfoe
Distributed Clocks
Application Layer Mailbox-Transfer
State Machine
Mailbox EtherCAT Hardware-Design
Mailbox Interface
ecatslv mailbox
EoE Ethernet
CoE CANopen
FoE File Access mcihw Step 7:
SoE Servo Drive
Slave Information /IF
EtherCAT
Software-Design with EtherCAT
Device Profiles
Modular Devices Slave Slave Sample Code for existing
Controller
Drives Fieldbus SW-Architecture
Device Description
Configuration Tool
EtherCAT Master
Standards&Implementation
24.02.2008 EtherCAT Communication © Copyright by Beckhoff, 2008 218