Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Book-1
THE BEST ETHERNET PROTOCOL FOR YOUR PLC
For many years, Ethernet and the TCP/IP protocol have been used in the manufacturing arena
to network control systems, management systems, and manufacturing cells on a manufacturing
shop floor, but not for the controlling communications inside the actual machines and
equipment. The machine controller itself and the communications to the actuators invariably
demand the use of deterministic fieldbus, so TCP/IP is not suitable. Trying to use traditional
TCP/IP protocol from machine control to the sensors and actuators has failed due to the inability
to satisfy deterministic, real-time demands. It is simple as that.
The economics of adopting Ethernet as a fieldbus are compelling because Ethernet
components offer dramatically lower costs and are universally available.
The industry soon realized that while TCP/UDP/IP protocol could never deliver the real-time,
deterministic response required by industrial machine controllers.
All that was needed was a new real-time protocol that was designed from the ground up to use
the physical layers of the hardware, but could deterministically connect and communicate the
machine controller to all the sensors and actuators in a machine.
• EtherCAT
• EtherNet/IP
• Powerlink
• PROFINET IRT
• SERCOS III
Proprietary products deliver competitive differentiation in early stages of technology
development. But there comes a point when open, standards-based solutions are necessary to
establish the technological foundation on which more innovators can participate at lower cost,
toward the goal of growing a richer and more robust market.
Specifically in the context of real-time deterministic fieldbuses, there are three different
approaches that have emerged that allow the standard to deliver determinism on an Ethernet-
based infrastructure.
STANDARD SOFTWARE / STANDARD ETHERNET
Based on TCP/IP: Protocols are based on standard TCP/IP layers with real-time mechanisms
embedded in the top layer. These solutions usually have a limited performance range.
OPEN SOFTWARE/ STANDARD ETHERNET
New standard protocols are implemented on top of standard Ethernet layers. These solutions
benefit from Ethernet evolution without further investment. However, to deliver the determinism,
the standard must include a proprietary software controller at the OSI Layer 3&4 to reserve time
1
INDUSTRIAL NETWORKING
2
INDUSTRIAL NETWORKING
ETHERNET Powerlink.
ARCHITECTURAL PHILOSOPHY: OPEN SOFTWARE/STANDARD ETHERNET
ETHERNET Powerlink is a strictly cyclical protocol that organizes the access to a network as
well as the synchronization of the devices. The communication cycle is divided into an
isochronous phase for time critical data as well as an asynchronous phase for transferring ad-
hoc data. All of the devices on the network can always directly read all of the data from the other
devices; detouring over a central bus master is not necessary. This protocol is equally suitable
for local as well as remote control designs.
The master (controller) successively polls the slaves (drives) within an allocated communication
cycle period. The remaining cycle time is left over for asynchronous data traffic, such as for
configuration of the devices. Data transport occurs via a standard Ethernet telegram, with the
Ethertype set to ‘Powerlink’ for the real-time data and to ‘IP’ for the general data. All stations
(master and slaves) within a real-time segment interconnect via a standard Ethernet hub.
PROFINET IRT (IRT = isochronous real time)
ARCHITECTURAL PHILOSOPHY: OPEN SOFTWARE/MODIFIED ETHERNET
In order to cover the different performance classes, PROFINET makes free use of the
producer/consumer principle and resorts to various protocols and services. High-priority payload
data sent directly via the Ethernet protocol travels in Ethernet frames with VLAN prioritization,
whereas diagnostics and configuration data, for instance, is sent using UDP/IP. That enables
the system to achieve cycle times of around 10ms for I/O applications
Clock-synchronized cycle times below one millisecond, as required for motion control
applications, are provided by PROFINET IRT
. Not many drive vendors support PROFINET IRT so it has not been broadly adopted by
machine builders outside of Siemens and GE.
SERCOS III
ARCHITECTURAL PHILOSOPHY: OPEN SOFTWARE/MODIFIED ETHERNET
SERCOS Interface (SERCOS, Serial Realtime Communication System) that was originally
introduced to the market in 1985, Standard Ethernet according to IEEE 802.3 serves as the data
transfer protocol. This communication system is predominantly used in motion control-based
automation systems
SERCOS-III is likewise based on a time slot mechanism in which bandwidth is reserved for the
isochronous (real-time channel) and asynchronous (IP channel) data traffic. SERCOSIII works
without hubs or switches. Each station has a special integrated ASIC or FPGA with two
communication ports, enabling it to be connected via line or ring topology. Eliminating the
switches means shorter cycle times can be implemented, though at the cost of flexibility in the
network topology.
Other Real-Time Fieldbuses that Support Ethernet but Are Not “Open”
There are other fieldbuses, such as CC-Link from Mitsubishi and Mechatrolink from Yaskawa,
that can use Ethernet components but do not meet our definition of open
3
INDUSTRIAL NETWORKING
Book-2
INDUSTRIAL COMMUNICATIONS AND CONTROL PROTOCOLS
Some protocols used with controllers are for data communications only, usually by sensors and
transmitters. Others are used for both data communications and control applications.
Analog signals were susceptible to being corrupted by electrical noise and unintentional
grounds. Another was that settings and calculated values in control loops tended to drift over
time.
Digital data communications through protocols has the advantages that it is inherently more
stable, reliable, and less susceptible to electrical noise than analog signals.
When any network can transmit data to any other node on the network, the network is called a
peer-to-peer network. Peer-to-peer capability is only possible if the application layer protocol
supports it.
Book-3
DATA COMMUNICATION FOR INSTRUMENTATION AND CONTROL
Chapter-1
Any communications system requires a transmitter to send information, a receiver to accept it
and a link between the two. Types of link include copper wire, optical fiber, radio, and
microwave.Virtually all modern data communication use serial links, in which the data is
transmitted in sequence over a single circuit.
4
INDUSTRIAL NETWORKING
Messages or data are generally sent in packets, which are simply a sequence of bytes. The
protocol defines the length of the packet, which is usually fixed. Each packet requires a source
address and a destination address so that the system knows where to send it, and the receiver
knows where it came from.
A packet starts at the top of the protocol stack,the application layer, and passes down through
the other software layers until it reaches the physical layer. It is then sent over the link. When
traveling down the stack, the packet acquires additional header information at each layer. This
tells the next layer down what to do with the packet. At the receiver end, the packet travels up
the stack with each piece of header information being stripped off on the way. The application
layer only receives the data sent by the application layer at the transmitter.
Basic structure of an information frame defined by a protocol.
1.6 Physical standard
The RS-232C interface standard describes the interface between a terminal (DTE) and a
modem (DCE) specifically for the transfer of serial binary digits. It leaves a lot of flexibility to the
designers of the hardware and software protocols.
5
INDUSTRIAL NETWORKING
RS-232 has a number of inherent weaknesses that make it unsuitable for data communications
for instrumentation and control in an industrial environment. Consequently RS-423, RS-422 and
RS-485 were developed.
RS-423 Interface standard
The RS-423 interface standard is an unbalanced system similar to RS-232 with increased range
and data transfer rates and up to 10 line receivers per line driver.
RS-422 Interface standard
The RS-422 interface system is a balanced system with the same range as RS-423, with
increased data rates and up to 10 line receivers per line driver
RS-485 Interface standard
The RS-485 is a balanced system with the same range as RS-422, but with increased data
rates and up to 32 transmitters and receivers possible per line
1.7 Modern instrumentation and control system
In an instrumentation and control system, data is acquired by measuring instruments and is
transmitted to a controller – typically a computer. The controller then transmits data (or control
signals) to control devices, which act upon a given process.
6
INDUSTRIAL NETWORKING
7
INDUSTRIAL NETWORKING
TRANSMISSIONS CHARACTERISTICS
Signaling Rate/Baud rate-The signaling rate of a communications link is a measure of how
many times the physical signal changes per second and is expressed as the baud rate.
Data rate-The data rate or bit rate is expressed in bits per second (bps), or multiples such as
kbps, Mbps and Gbps.
Bandwidth- is generally expressed in hertz (Hz), meaning cycles per second. This represents
the maximum frequency at which signal changes can be handled before attenuation degrades
the message.
Signal to noise (S/N) ratio-The maximum practical data transfer rate for a link is
mathematically related to the bandwidth, S/N ratio and the number of levels encoded in each
signaling element. As the S/N decreases, so does the bit rate.
CABLING BASICS
The most common types of cables used in data communications systems are:
• Twisted pair
• Coaxial
• Fiber-optic
INTRODUCTION TO PROTOCOLS
When the reduced OSI model is implemented the following limitations exist:
8
INDUSTRIAL NETWORKING
• As there is no transport layer, the maximum size of the application messages is limited by the
maximum size allowed on the channel
• As there is no network layer, no routing of messages is possible between different networks
• As there is no session layer, no full duplex communications are possible
• As there is no presentation layer, message formats must be the same for all nodes
The MiniMap and Fieldbus protocol standards use the reduced three layer OSI model. Similarly,
other industrial protocols such as the Allen Bradley Data Highway Plus protocol, Modbus Plus
and the HART smart instrumentation protocols have all standardized on the three layers only
One of the challenges when using the OSI model is the concept of interoperability and the need
to define another layer called the ‘user’ Layer.
NETWORK TOPOLOGIES
The way in which nodes are interconnected is known as the network topology. The three most
common topologies are:
• Star
• Ring or loop
• Bus (or multidrop)
9
INDUSTRIAL NETWORKING
• CSMA/CD
TRANSMISSION TECHNIQUES
Two main methods used for the transmission of information over a LAN are baseband and
broadband.
Baseband-This is also known as time division multiplexing (TDM). Only one device is allowed
to transmit at any one time and can use the entire bandwidth of the system.
Broadband-Broadband is also known as frequency division multiplexing (FDM). The system
bandwidth is divided into channels that do not overlap, meaning that many pairs of devices can
communicate simultaneously and they usually retain their channel until the message transfer is
complete. As only a part of the system bandwidth is available, data transfer rates for individual
communications are less than for TDM using the same physical setup.
Ethernet is a trade name for a proprietary LAN system Ethernet Version 2, commonly called
‘Blue Book Ethernet’. It uses CSMA/CD as a medium access control method.
Standard and thin Ethernet use a bus topology, in which each node attaches to the
communications cable.
Book-6
ISO/OSI Model-
Instead, the ISO/OSI model represents an abstract definition (independent from hardware or
software implementation) consisting of hierarchical layers Related functions are grouped
together in layers with strict separation between horizontal and vertical communication.
The OSI model defines seven layers, each of which has dedicated functions A brief
description of these functions is given in the following.
Layer 1: Physical Layer
This layer covers the physical part of the communication It contains all
hardware specification data, including the signals used, the electrical and
mechanical characteristics of the connection, and all functional parameters that are
necessary, which include tasks like activating, maintaining, and terminating the
physical connection
Layer 2: Link Layer
The link layer is responsible for providing an error-free connection from one node
to another node in the same network segment (point-to-point communication) It
has to correct errors that occur during the physical transmission by using, for
example, error-correction codes For that, it needs error-correction algorithms and
redundant information in the received data It also adds source and destination
address to the packets that are transmitted
10
INDUSTRIAL NETWORKING
11
INDUSTRIAL NETWORKING
12