ethercat automation protocol (eap) - ethercat … ·  · 2018-01-12ecat automation protocol |...

23
EtherCAT for Factory Networking EtherCAT Automation Protocol (EAP)

Upload: builiem

Post on 13-Apr-2018

255 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

EtherCAT for Factory NetworkingEtherCAT Automation Protocol

(EAP)

Page 2: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 2

Content

1. System Architecture– Fieldbus Network (EtherCAT)– Factory Network (EtherCAT Automation Protocol)

2. EAP | EtherCAT Automation Protocol– Protocol

3. EAP | Process Data Communication– Transfer Modes– Process Data Structure

4. EAP | Mailbox Communication Mailbox Data Structure Object Dictionaries

07|2010

Page 3: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 3

EtherCAT | Versatile System Architecture

Fiel

dbus

-Net

wor

kProcessControlLevel

Factory Level

System /Cell Level

Configuration/ Diagnosis

MES

HMI

Remote Access

Field Level (Control)

Central Computer

Fa

ct

or

y-

Ne

tw

or

k

Sensor /Actuator Level

SCADA

Handheld

WiFi

EtherCAT Automation Protocol

AutomatedGuided Vehicle

(AGV)

EtherCAT Device Protocol (processed on the fly)

PLC PLC PLC

07|2010

Page 4: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 4

Fieldbus Network Requirements

• Hard Real-Time• Fast Cycle Times within µs• Precise Synchronization

• Flexible Topology• Line, Tree, Star, Daisy Chain…

• Standard Ethernet Cabling, Cost Effective Components• Master-Slave & Slave-Slave Communication

Fiel

dbus

-Net

wor

k Field Level (Control)

Sensor /Actuator Level

EtherCAT Device Protocol (processed on the fly)

Master-Slave

Slave-Slave

07|2010

Page 5: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 5

Fieldbus | EtherCAT Device Protocol

• Well known „EtherCAT“ Protocol• Open Protocol: ISO, IEC and SEMI Standard• Used at field level within machines

e.g. for I/O, Motion, Measurement, Robotics• Outstanding Features, e.g.: Hard Real-Time

Protocol is processed in hardware (ESC) Fast Cycle Times (<100µs) Precise Synchronization (<100ns)

Flexible Topologies Standard Ethernet Cabling, Cost Effective Components

• EtherCAT Frame Type = 1Ethernet Header Ethernet Data = EtherCAT Frame FCS

Dest. EtherTypeSrc. ECAT Header EtherCAT Data FCS

TypeRes.Length10x88A4

07|2010

Page 6: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 6

Factory Network Requirements

• Connection to MES• Configuration/Diagnosis, also Wireless• Control/Visualization• Standard Ethernet Infrastructure Components• Vehicles/Logistics• Master-Master Communication

ProcessControlLevel

Factory Level

System /Cell Level

Configuration/ Diagnosis

MES

HMI

Remote Access

Central Computer

Fa

ct

or

y-

Ne

tw

or

k

Handheld

WiFi

EtherCAT Automation Protocol

AutomatedGuided Vehicle

(AGV)

Master-Master

Wireless

Configuration

Vehicles

SCADA

07|2010

Page 7: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 7

Factory Network Requirements

• Constraints: Standard Ethernet interfaces and infrastructure devices Diagnosis and Configuration No strict requirements regarding cycle time and

synchronization Cycle time in the range of milliseconds

07|2010

Page 8: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 8

Factory Network Requirements

• Communication between: EtherCAT Master Devices

(Master-Master Communication) EtherCAT Master and Visualization, Configuration Tool

(also via Remote Access)• Access to devices in underlying EtherCAT segments

from the control level• Access from configuration tools:

Configuration of the Master-Master communication Configuration of underlying sub-devices (e.g. Drives,

Gateways,…) Routing through EtherCAT Master

07|2010

Page 9: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 9

Factory Network Requirements | Services

Service Required Mechanism

PD MBX R OD

Master-Master Communication

External Configuration and Diagnosis

Connection to Main Computer / Controllerand MES / ERP Systems

Connection to Visualization inclulding Status and Monitoring

Abbreviations:PD Process Data Communikation (cyclic)MBX Mailbox Communikation (acyclic)R Routing OD Object Dictionary

07|2010

Page 10: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 10

EtherCAT Automation Protocol

EtherCAT Automation Protocol (EAP) achieves all theserequirements

EAP offers services for communicationat control level and thus forcomplete factory networking

IEC61158, Part 12:

EtherCAT Specification

• Protocols

• Frame Structure

ETG.1005:

EAP Specification

• Configuration Structure

• Network ManagementFunctions

EAP is an enhancement of the EtherCAT technology

07|2010

Page 11: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

EAP | Example Application

EtherCAT for Factory Networking 11

Einschleusen Einschleusen Prozess-Kammer

Ausschleusen Ausschleusen AusschleusenProzess-Kammer

Prozess-Kammer

Prozess-Kammer

Prozess-Kammer

Je Verbindung:10ms cycleIN 1kByteOUT 1kByte

Ethernet Connection

EtherCAT Segment

EtherCAT Automation Protocol

OPC

OPC

10 ms cycle

zum Controller und allen Stationen

Visu

MES

Controller

IN 600 ByteOUT 600 Byte

IN 600 ByteOUT 600 Byte

IN 600 ByteOUT 600 Byte

IN 600 ByteOUT 600 Byte

IN 600 ByteOUT 600 Byte

IN 600 ByteOUT 600 Byte

IN 600 ByteOUT 600 Byte

IN 600 ByteOUT 600 Byte

IN 600 ByteOUT 600 Byte

Stations-Master

Stations-Master

Stations-Master

Stations-Master

Stations-Master

Stations-Master

Stations-Master

Stations-Master

Stations-Master

Stations-Master

07|2010

Page 12: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion0x88A4

EtherCAT for Factory Networking 12

EAP | Protocol Transmission

Dest EtherTypeSrc EtherCAT Frame FCS

0x88A4

EtherType IP UDP0x88A4

EtherType IP TCP

EtherCAT Frame FCS

EtherCAT Frame FCS

Dest Src0x800

0x800

1 | ECAT

2 | UDP

3 | TCP

• Flexible Protocol Transmission:

SrcDest

• Standard EtherCAT Frame Header• Standard Frame Structure

Type 4 EAP Process DataType 5 EAP Mailbox Data

Type 1 EtherCAT Device Protocol

TypeResLength EtherCAT Protocol DataEtherCAT Header

07|2010

Page 13: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 13

EAP | Process Data Communication

• EAP Process Data communication is used for cyclic data exchange

• An EtherCAT Master can publish information and can receive information from other Master devices

• Two transfer modes– Pushed Data Exchange (Broadcast)– Polled Data Exchange

07|2010

Page 14: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 14

Process Data | Pushed Data Exchange

• Pushed Data Exchange (Broadcast)– each node can send information with its own cycle– all nodes are able to reveice information from each other

Machine B

Machine C

Machine A

07|2010

Page 15: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 16

Process Data | Polled Data Exchange

• Polled Data Exchange (1:1 Connection)– One device sends cyclically its information (Client)– Each addressed device (Server) responses with its telegram

Machine B

Machine C

Machine A

07|2010

Page 16: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 17

Process Data | Polled Data Exchange

• Polled Data Exchange (1:n Connection)– One device sends cyclically its information (Client)– One or many devices (Server) response with their telegram– Soft Synchronization of devices

Machine B

Machine C

Machine A

07|2010

Page 17: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 18

Process Data | Frame Structure

• EtherCAT Header: EtherCAT Frame Type = 4• Telegram consists of one or several Process Data• Process Data consist of one or several PDOs• Publisher ID = AoE NetID of Publisher• Each PDO consists of one or several Variables• Variable ID identifies Process Data

→ Connectionless• Cyclic Frames are configured in advance

40Length Process Data CRCEthernet / UDP / TCP

PDO Header PDO variable(s)Variable ID

Process Data Header nth Process Data1st Process Data …Publisher ID

Frame Type

07|2010

Page 18: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 19

EAP | Mailbox Communication

• EAP Mailbox Communication is used for asynchronous access to the devices– Configuration of Process Data– Configuration of Device Specific Parameters– Diagnosis Information of EtherCAT Slaves

• Standard Mailbox Protocol in Ethernet telegram(Type: 0x88A4) or UDP/TCP Telegram

07|2010

Page 19: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 20

Mailbox Data | Frame Structure

• EtherCAT Header: EtherCAT Frame Type = 5 Indicates mailbox communication

• Telegram consists of a Mailbox Header and Mailbox (Protocol) Data

• For EAP: Mailbox Header Type = 1 (AoE) Routable protocol to access several object dictionaries AoE Header Type: Mapping of other Mailbox protocols

possible

50Length Mailbox CRCEthernet / UDP / TCP

Mailbox Header Mailbox DataAoE Header

Frame Type

AoE Mailbox DataType 1CoE Mailbox DataFoE Mailbox DataSoE Mailbox Data

Type 3Type 4Type 5

07|2010

Page 20: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 21

Object Dictionarieswithin EtherCAT Master for Configuration and Routing

EAPIP Address

AoE Address

EAP

EtherCAT MasterOptional: IP

AoE Address

EtherCAT Master

Ethernet Port y

Object DictionaryType 1000

Object DictionaryType 1100

Object DictionaryType 1100

Object DictionaryType 1000

EtherCAT RouterInformationAoE Address

Object DictionaryType 9000

Ethernet Port 2

Ethernet Port xEthernet Port 1

Configurationof EAP Process Data

Information about EtherCAT Segment

Adress Information of available Ethernet Ports:IP Addresses,AoE NetID

07|2010

Page 21: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 22

Access to EtherCAT Slave

EAPIP Address

AoE Address

EAP

EtherCAT MasterOptional: IP

AoE Address

EtherCAT Master

Ethernet Port y

Object DictionaryType 1000

Object DictionaryType 1100

Object DictionaryType 1100

Object DictionaryType 1000

EtherCAT RouterInformationAoE Address

Object DictionaryType 9000

Ethernet Port 2

Ethernet Port xEthernet Port 1

1. AoE NetID of EAP Device→ AoE Router Information

3. e.g. CoE Access via AoE toSlave

2. AoE NetID of EtherCAT Masters→ List of EtherCAT Slaves

07|2010

Page 22: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking 23

Conclusion of EAP

Master-Master Communication Remote Configuration / Diagnosis Exchange of Process Data and Parameter Data Routing to any device connected Easy vertical integration Integration of wireless device Data Structure equal to EtherCAT Device Protocol IP Addresses only for Control Level – not for Fieldbus

Level

EtherCAT is factory networking!

07|2010

Page 23: EtherCAT Automation Protocol (EAP) - EtherCAT … ·  · 2018-01-12ECAT Automation Protocol | Protocol Process Data Communication | Transfer Modes | Process Data Structure Mailbox

© EtherCAT Technology Group

System Architecture| Fieldbus Network| Factory Network

ECAT Automation Protocol| Protocol

Process DataCommunication| Transfer Modes| Process Data Structure

MailboxCommunikation| Mailbox Data Structure| Object Dictionaries

Conclusion

EtherCAT for Factory Networking

EtherCAT for Factory Networking 24

Please visitwww.ethercat.org

for more information

EtherCAT Technology GroupHeadquartersOstendstraße 19690482 Nuremberg, Germany

Phone: +49 911 54056 20Fax: +49 911 54056 29Email: [email protected]

07|2010