Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Joachim Feld
Siemens AG
Gleiwitzer Str. 555
90475 Nurnberg
joachim. feld@,siemens.coni
Abstract
PROFINET is the Industrial Ethernet Standard devised by PROFIBUS International (PI) for either
modular machine and plant engineering or distributed
IO. Using a plant-wide multi-vendor engineering for
modular machines, commissioning time as well as
costs are reduced. With dishibuted IO IO-Controllers
(e.g. PLCs) with their associated IO-devices may also
be integrated into PROFINET solutions. Communication is a major part of PROFINET. Real-time
communication for standard factory automation applications as well as extensions which enables motion
control applications is covered in a common real-time
protocol. The advantages of modular and multi-vendor
engineering and distributed IO can be used even in a j plications with time-critical data transfer requirements.
1. Introduction
PROFINET is the Standard of PROFIBUS Intemational (PI) to emerge Ethernet to the next generation of
industrial automation. PROFINET consists of several
topics such as distributed automation (PROFINET
CBA), decentralized field devices (PROFINET IO),
network management installation guidelines and web
integration. All these different topics will help to make
standard switched Ethernet [3,4] easier to use in industrial automation.
In the distributed automation concept PROFINET
CBA machines and systems are divided into technological modules, each of which is comprised of mechanical and electronical components, electronics and
software. The functionality of the technological modules is encapsulated in the form of PROFINET CBA
components. From the outside the PROFINET CBA
components can be accessed via interfaces with stan-
0-7803-8734-1/04/$20.00
Q2004 IEEE.
33
OMMUNICATION
COMMUNICATION
Layer 7
34
I RT Driver I
'
The scheduling of the PROFINET real-time communication system both for local and synchronized
real-time scheduling is based on the following parameters (see figure 4):
Sendclock
The attribute send clock is expressed in multiples of
the time base 3 1,25 microseconds. A typical value
of the send clock is 32 so the length of a phase (see
below) is exactly 1 ms.
Reduction Ratio
This attribute contains the reduction ratio of the
send clock of the device. The actual send cycle of
the data is reduction ratio multiplied with the send
clock.
Phase
This attribute indicates in which particular send cycle the data has to be sent. Allowed values are between l and the selected Reduction Ratio. The attribute phase allows to spread the sending of the
frames over a whole send cycle and provides a
means to manage distribution of the used bandwidth. The phases e.g. 1 to 4 are possible if the Reduction Ratio is set to 4.
Sequence
This attribute contains the position of the data
frame in the sending queue.
Frame Send Offset
This attribute contains the relative send offset to the
start of the related reduction ratio and phase. Sequence and frame send offset can be used altemative because sequence is not as precise as needed
for motion control requirements.
35
31,25usc= T-m
e4ms
...
I
As shown figure 5 , the sending of frames at the
local DT!? interface is divided into different cycles at
the local interface. Each cycle is defined by T s ~ ~ ~ ~ L
which is between 31,25 microseconds and 4
milliseconds. At the beginning of cycle at tS,kl,k
the
Figure 6. Example of dropping RT frames b e
cyclic scheduled RT frames that are related to the
cause of local overload
device are sent The number of frames depends on the
scheduled kames for the current phase and may be also
3.2.2 Synchronized Real-time Scheduling
zero. The time for RT frames should not exceed a
certain amount of the bandwith (e.g. 50 percent) for
Inside switched Ethernet, different kames that shall
each cycle. Subsequently, possible acyclic real-time
be sent on the same port are processed on a First
(aRT) frames will be sent. The time for such frames
come, First served strategy. With VLAN Tags it is
should also not exceed a certain amount (e.g. IO
possible to improve the delay for special frames, but
percent) of the bandwith. Then Non real-time (NRT)
queuing still adds unpredictable delays to the transfer
frames (uDP,TCP) will be sent during the rest of
time. To improve the determinism for the transfer of
available time.
frames Ethernet bandwidth has to be reserved explicThe amibutes reduction ratio and phase should be
itly for real-time data not only in the devices but also in
used for the distribution of the RT frames over the
the switches.
time. The network load is limited and steady by these
means.
36
Beside the existing cycles on the local device interface, an IRT (isochronous RT) cycle is inserted (see
figure 7). Inside the IRT cycle only designated IRT
frames are transferred. The destination of IRT frames
is based on the application ID and the time offset inside
the cycle when the kames are sent (time scheduled
communication). Other RT frames are buffered until
the RT cycle starts. As stated above RT frames are
transferred based on standard IEEC 802.1 switching.
Building 2
'
37
4. Conclusion
With communication based on local time scheduling
as well as synchronized real-time scheduling
PROFINET offers solutions for real-time communication for factory automation concepts as well as high
end motion control applications. Based on a common
real-time protocol for cyclic and acyclic data transfer
migration between the two real-time approaches is very
easy to achieve.
38