Upload
racordoba
View
232
Download
0
Embed Size (px)
Citation preview
8/10/2019 Ethernet-based Industrial Communication Protocols
1/40
Ethernet-based Industrial Communication
Protocols
Christoph WimmerBusiness Development Manager
8/10/2019 Ethernet-based Industrial Communication Protocols
2/40
Agenda
Why Ethernet-based Protocols
Overview of Ethernet-based Industrial Protocols
Adding Deterministic I/O to NI PACs
8/10/2019 Ethernet-based Industrial Communication Protocols
3/40
Agenda
Why Ethernet-based Protocols
Overview of Ethernet-based Industrial Protocols
Adding Deterministic I/O to NI PACs
8/10/2019 Ethernet-based Industrial Communication Protocols
4/40
Why Ethernet: Protocols
Modbus TCP/IP
Traditional Industrial
Protocols
PROFInetPROFIBUS
DeviceNet EtherNet/IP
Modbus
Ethernet Physical
Layer
CanOPEN EtherCAT
8/10/2019 Ethernet-based Industrial Communication Protocols
5/40
Ethernet Adoption in Industrial
Total Market $630M Ethernet Really Means:
Ethernet/IP
PROFInet
Modbus TCP/IP
Expected Trends in Type of Wireline Infrastructure Networksbeing used in Industrial Facilities
Source: VDC 2006
8/10/2019 Ethernet-based Industrial Communication Protocols
6/40
Agenda
Why Ethernet-based Protocols
Overview of Ethernet-based Industrial Protocols
Adding Deterministic I/O to NI PACs
8/10/2019 Ethernet-based Industrial Communication Protocols
7/40
Industrial Ethernet and OSI Model
7. Application
6. Presentation
5. Session
4. Transport
3. Network
2. Data Link
1. Physical
Modbus TCP/IPEthernet/IP,
PROFInet, andEtherCAT,
TCP & UDPIP
Ethernet
8/10/2019 Ethernet-based Industrial Communication Protocols
8/40
8/10/2019 Ethernet-based Industrial Communication Protocols
9/40
Ethernet-based Industrial Protocols
Modbus TCP/IP
EtherCAT
Ethernet/IP Profinet
8/10/2019 Ethernet-based Industrial Communication Protocols
10/40
Similarities
Reuse layer 1 and 2 of OSI model
What about the other 5 layers?
Define master (scanner) and slave (adapter)devices
Address 1 or more target applications
Non Real Time
Real Time
Hard Real Time
8/10/2019 Ethernet-based Industrial Communication Protocols
11/40
Application Targets
Non Real Time Uses standard TCP/IP or UDP/IP
Application: PLC to HMI or PLC to SCADA
Real Time
Provides added determinism w/ OTS hardware Application: Control data
Hard Real Time Adds specific hardware to deliver determinism
Application: Distributed Motion
8/10/2019 Ethernet-based Industrial Communication Protocols
12/40
Where Protocols Fit?
Modbus TCP/IP PROFInet (NRT)* Ethernet/IP
PROFInet (RT)** Ethernet/IP
EtherCAT PROFInet (IRT)**Ethernet/IP CIP
Sync
**Also PROFInet IO*Also PROFInet CBA
http://images.google.com/imgres?imgurl=http://www.imetechnologies.nl/LemonY.photo/ethercat_logo&imgrefurl=http://www.imetechnologies.nl/?id=255&language=EN&h=89&w=250&sz=6&hl=en&start=2&um=1&tbnid=HNRep0KldAF11M:&tbnh=40&tbnw=111&prev=/images?q=ethercat+logo&um=1&hl=en&rlz=1T4DMUS_enUS259US259http://images.google.com/imgres?imgurl=http://www.wrcakron.com/holocon/EtherNet_IP.jpg&imgrefurl=http://www.wrcakron.com/IEC61499.html&h=71&w=200&sz=20&hl=en&start=1&um=1&tbnid=JVH1sixUYjefgM:&tbnh=37&tbnw=104&prev=/images?q=ethernet/ip+logo&um=1&hl=en&rlz=1T4DMUS_enUS259US259&sa=Ghttp://images.google.com/imgres?imgurl=http://www.tmw-usa.com/Newsletter/ModbusLogo.gif&imgrefurl=http://www.tmw-usa.com/Newsletter/Newsletter.htm&h=54&w=200&sz=3&hl=en&start=1&um=1&tbnid=L9LgucbZSatBGM:&tbnh=28&tbnw=104&prev=/images?q=modbus+logo&um=1&hl=en&rlz=1T4DMUS_enUS259US259&sa=Nhttp://images.google.com/imgres?imgurl=http://www.innovasic.com/images/Profinet_Logo_72dpi_B400_H152px.gif&imgrefurl=http://www.innovasic.com/affiliations.htm&h=151&w=400&sz=8&hl=en&start=7&tbnid=r709eR_8tFs4YM:&tbnh=47&tbnw=124&prev=/images?q=profinet+logo&gbv=2&hl=en&sa=G8/10/2019 Ethernet-based Industrial Communication Protocols
13/40
Ethernet-based Industrial Protocols
Modbus TCP/IP
EtherCAT
Ethernet/IP Profinet
8/10/2019 Ethernet-based Industrial Communication Protocols
14/40
Modbus TCP/IP Overview
First industrial protocol on Ethernet (introduced 1999)
Based on Modbus developed by Modicon in 1979
Widely adopted and open Ethernet standard
Advantages Uses standard Ethernet (hardware and TCP/IP transport layer)
Open and relatively simple
Disadvantages Not a hard real-time protocol Does not deliver determinism
http://images.google.com/imgres?imgurl=http://www.tmw-usa.com/Newsletter/ModbusLogo.gif&imgrefurl=http://www.tmw-usa.com/Newsletter/Newsletter.htm&h=54&w=200&sz=3&hl=en&start=1&um=1&tbnid=L9LgucbZSatBGM:&tbnh=28&tbnw=104&prev=/images?q=modbus+logo&um=1&hl=en&rlz=1T4DMUS_enUS259US259&sa=N8/10/2019 Ethernet-based Industrial Communication Protocols
15/40
Modbus Data Items
Data Item Data Type Modbus Modbus Slave Description ExampleRead Write Read Write
000001065535 Boolean value Yes Yes Yes Yes Accesses single-bit coils. 000001 = {000001}
100001165535 Boolean value Yes No Yes Yes Accesses single-bit discrete inputs. 100002 = {100002}
300001.1365535.16 Boolean value Yes No Yes YesAccesses individual bits of input registers and interpretsthem as logical TRUE or FALSE values. The leastsignificant bit is 1. The most significant bit is 16.
300001.1 = {the firstbit of 300001}
30000136553516-bit
unsignedinteger
Yes No Yes YesAccesses 16-bit input registers as unsigned integersranging from 0 to 65,535.
300001 = {300001}
400001.1465535.16 Boolean value Yes Yes Yes YesAccesses individual bits of holding registers andinterprets them as logical TRUE or FALSE values. Theleast significant bit is 1. The most significant bit is 16.
400002.16 = {the16th bit of 400002}
40000146553516-bit
unsignedinteger
Yes Yes Yes YesAccesses 16-bit holding registers as unsigned integersranging from 0 to 65,535.
400002 = {400002}
8/10/2019 Ethernet-based Industrial Communication Protocols
16/40
Ethernet-based Industrial Protocols
Modbus TCP/IP
EtherCAT
Ethernet/IP Profinet
8/10/2019 Ethernet-based Industrial Communication Protocols
17/40
8/10/2019 Ethernet-based Industrial Communication Protocols
18/40
Functional Principle: Ethernet On the Fly
Analogy Fast Train: Train (Ethernet Frame) does not stop
Even when watching the train through a narrow window one sees the entire train
Car (Sub-telegram) has variable length
One can extract or insert single person (bits) or entire groups even multiple
groups per train
Master
Slave Slave Slave Slave
8/10/2019 Ethernet-based Industrial Communication Protocols
19/40
Ethernet Frames
EtherCAT commands are transported in the data area of an Ethernetframe and can be coded via a special Ether Type Ether Type is limited to an Ethernet subnet (not relayed by routers)
8/10/2019 Ethernet-based Industrial Communication Protocols
20/40
Ethernet-based Industrial Protocols
Modbus TCP/IP
EtherCAT
Ethernet/IP Profinet
8/10/2019 Ethernet-based Industrial Communication Protocols
21/40
EtherNet/IP Overview
Dominant bus for Rockwell Automation Managed by Open Device Vendors Association (ODVA)
Extends DeviceNET concepts to Ethernet
Advantages Uses Ethernet transport layer (TCP and UDP)
Disadvantages
Can overload networks with UDP messages if note correctly
configured, recommend managed switches with IGMP snooping
http://images.google.com/imgres?imgurl=http://www.wrcakron.com/holocon/EtherNet_IP.jpg&imgrefurl=http://www.wrcakron.com/IEC61499.html&h=71&w=200&sz=20&hl=en&start=1&um=1&tbnid=JVH1sixUYjefgM:&tbnh=37&tbnw=104&prev=/images?q=ethernet/ip+logo&um=1&hl=en&rlz=1T4DMUS_enUS259US259&sa=G8/10/2019 Ethernet-based Industrial Communication Protocols
22/40
Device Classes
Slave
Only sends data if requested by a scanner Supports explicit and implicit messaging
Adapter Class
Master Initiate implicit and explicit communicationsScanner Class
Used for set-up or on-demand data transfer Allows data transfer to be initiated by either
device.
Messaging Class
8/10/2019 Ethernet-based Industrial Communication Protocols
23/40
8/10/2019 Ethernet-based Industrial Communication Protocols
24/40
8/10/2019 Ethernet-based Industrial Communication Protocols
25/40
Communication from LabVIEW to
ControlLogix PLCs
EtherNet/IP
Available for download from NI-Labs (ni.com/labs)
8/10/2019 Ethernet-based Industrial Communication Protocols
26/40
Ethernet-based Industrial Protocols
Modbus TCP/IP
EtherCAT
Ethernet/IP PROFInet
8/10/2019 Ethernet-based Industrial Communication Protocols
27/40
PROFInet Overview
Dominate bus for Siemens Application protocol that extends PROFIBUS to Ethernet
Managed by PROFIBUS&PROFINET International (PI)
Advantages Supports both standard and deterministic Ethernet traffic
Uses IEEE-1588 and QoS to add determinism
Disadvantages For RT/IRT managed switch with QoS is recommended Switch with ERTEC ASIC for most challenging apps.
8/10/2019 Ethernet-based Industrial Communication Protocols
28/40
Three Levels
Non Real Time (NRT) PROFINET CBA
For the commissioning of a plant
Range of 100ms
RT (Real-Time) PROFINET CBA and PROFINET IO
IO applications
Up to 10 ms cycle times
IRT (Isochronous Real-Time) PROFINET IO
Applications in drive systems
Cycles time of less than 1ms Source Wikipedia
8/10/2019 Ethernet-based Industrial Communication Protocols
29/40
PROFInet Network cycle
No Start Period message Clock synchronization via IEEE 1588 & asynchronous
Red portion of the cycle (Isochronous)
Green portion of the cycle (Asynchronous) min 125 ms
8/10/2019 Ethernet-based Industrial Communication Protocols
30/40
Technology: IEEE-1588
Technology to synchronize distributed clocks
Accuracy based on clock jitter
8/10/2019 Ethernet-based Industrial Communication Protocols
31/40
8/10/2019 Ethernet-based Industrial Communication Protocols
32/40
HRT: Determinism and Performance
Organization Response Time
(for 100 axles)
Jitter Data Rate
EtherCAT ~ 0.1 ms < 0.1 us 100 Mbits/s
Sercos-III < 0.5 ms < 0.1 us 100 Mbits/sProfinet-IRT < 1 ms < 1 us 100 Mbits/s
Ethernet Powerlink < 1 ms < 1 us 100 Mbits/s
Ethernet/IP ~ 1 ms < 1 us 100 Mbits/s
Table 1. Real-time comparison of the various real-time methodsStandards-Based Real Time Ethernet Now Off-the-Shelf, by Klaus Zwerina
Table 1. Real-time comparison of the various real-time methodsStandards-Based Real Time Ethernet Now Off-the-Shelf, by Klaus Zwerina
8/10/2019 Ethernet-based Industrial Communication Protocols
33/40
Agenda
Why Ethernet-based Protocols
Overview of Ethernet-based Industrial Protocols
Adding Deterministic I/O to NI PACs
8/10/2019 Ethernet-based Industrial Communication Protocols
34/40
Host Computer
(TCP/IP) NI PXI Systemwith Ethernet Interface
NI cRIO-9074
NI 9144
NI System with Deterministic Distributed I/O
(EtherCAT)
(TCP/IP)
(EtherCAT)
NI cRIO-9074
NI PXI Systemwith Ethernet Interface
NI 9144
8/10/2019 Ethernet-based Industrial Communication Protocols
35/40
NI Master Controllers
Requirements CompactRIO or PXI RT system with 2 Ethernet ports
NI-Industrial Communications for EtherCAT
8/10/2019 Ethernet-based Industrial Communication Protocols
36/40
NI 9144 Expansion Chassis
2 Ports for
Daisy-Chaining
8 Slots forC Series
Rugged Chassis -40 to 70C 9-30V Input Hazloc Shock/Vibe
8/10/2019 Ethernet-based Industrial Communication Protocols
37/40
LabVIEW Experience
{
{
CompactRIOChassis
NI 9144
ExpansionChassis
8/10/2019 Ethernet-based Industrial Communication Protocols
38/40
Deterministic
Distributed I/O
Demo
8/10/2019 Ethernet-based Industrial Communication Protocols
39/40
C Series I/O Modules
EASY POWERFUL OPEN
Over 30 analog and digital modules supported All single-point measurements
No waveform support (NI 9233/9234)
Module-to-module and chassis-to-chassissynchronization
Compatibility with different NI chassis
8/10/2019 Ethernet-based Industrial Communication Protocols
40/40
Questions