Professional Documents
Culture Documents
The School of Information and Communication Engineering, Sungkyunkwan University, Suwon, Korea
(Tel : +82-31-299-4655; E-mail: bboggi33@skku.edu; doradorn@ece.skku.ac.kr)
2
The Department of Mobile System Engineering Engineering, Sungkyunkwan University, Suwon, Korea
(Tel : +82-31-290-7237; E-mail: liberty3@ece.skku.ac.kr)
3
The School of Information and Communication Engineering, Sungkyunkwan University, Suwon, Korea
(Tel : +82-31-290-7129; E-mail: jwjeon@yurim.skku.ac.kr)
Abstract: In this paper, we present a design of a gateway system to adapt the family of industrial computer network
protocols used for real-time distributed control (Fieldbus) and the traditional serial communication. This gateway is
designed to receive the data frame of Fieldbus and send the transferred data via serial communication. The proposed
gateway can combine the properties of the high performance Fieldbus with the serial communication for industrial
distributed control systems. Many control systems use RS-485, since RS-485 serial communication is simple to use
and very popular in low cost control systems. Conversely, the Fieldbus, with high speed, great reliability, simple low
cost line structure, is one of the most popular automation networks in industry. Therefore, combining the Fieldbus and
RS-485 produces a low cost solution for modern communication and the traditional distributed controller. The
implementation of the proposed gateway on a Digital Signal Processor (DSP) based platform, and RS-485 motor driver
to control an X-Y table will verify the correctness of the proposed gateway.
Keywords: Gateway, Fieldbus, EtherCAT, RS-485
It is based on Ethernet. It is high-speed and has reliable
performance [3]. It is open technology, fully disclosed
and supported by the world largest industrial Ethernet
Organization. It only uses standard frames based on
IEEE 802.3 [4]. Fig1 shows the EtherCAT telegram
structure. It overcomes the inherent limitations of other
Ethernet solution.
The Ethernet packet is no longer received then
interpreted, and process data then copied at every device,
but the EtherCAT slave devices read the data addressed
to them, while the frame passes through the node.
Similarly, input data is inserted whilst the telegram
passes through. It can support most topologies, such as
Line, Tree and Start. The bus or line structure known
from the field-buses thus becomes available to Ethernet,
without the quantity limitations implied by cascaded
switches or hubs. The number of organizations applying
EtherCAT is increasing in Korea, Japan and Europe.
1. INTRODUCTION
Many kinds of Fieldbus [1], such as PROFIBUS,
Ethernet for Control Automation Technology
(EtherCAT) [2] and Mechatrolink-III, are used in the
industrial automation field, since Fieldbus provides high
speed, real-time, reliable and low cost solutions. When
using traditional serial communication, network systems
consist of many cables, because usually master and
slaves are connected directly to each other. It is not easy
to set up and maintain network systems. Fieldbus
provides a solution to these problems. Fieldbus uses a
bus network. It can reduce the number of
communication cable lines and their length. This
simplifies the control network system and makes
maintenance easier. This is a major advantage of
Fieldbus implementations. Another advantage is high
speed and reliability, since Fieldbus uses digital
signals. Although Fieldbus has many advantages, many
organizations cannot replace their network system by a
Fieldbus, as they already have machines based on
RS-485 communication. As the price of fieldbus
components is at present higher, it would cost
organizations a lot to replace them. The proposed
gateway can solve this problem. The gateway can
enable the organization to adopt the high performance
Fieldbus.
The remainder of the paper is organized as follows.
Section 2 introduces EtherCAT, an example Fieldbus.
Section 3 introduces the two-axis X-Y table with
RS-485 communication used in the experiment. In
Section 4, we detail the proposed gateway and explain
how it is implemented in Section 5. Finally, we
conclude the paper.
2. Fieldbus : EtherCAT
SA
Type
(6)
(6)
Ethernet
Header
IP
Header
UDP
Header
(20)
(8)
(2/4)
EtherCAT Telegram
Frame
HDR
Data
gram 1
Data
gram 2
(2)
(n)
(m)
ECAT
HDR
Ethernet
Data
gram n
Pad.
FCS
(k)
(32)
(4)
EtherCAT Telegram
DA
ECAT
971
Ethernet
Gateway
Servo drive
With RS-485
4. GATEWAY
In the gateway (Fig 3)[5], we use DSP to convert
command data. The gateway should analyze the data
frame, because Fieldbus has a unique data frame type.
So, DSP will analyze the data frame and convert to the
data type of RS-485 (Fig 4). The gateway consists of the
input Fieldbus protocol part, the analysis and conversion
part by DSP, and the output of RS-485 parts.
5. IMPLEMENTATION
A. The hole system structure
In this proposal, a Fieldbus is applied to the Master
and serial communication is applied to the Slave. So,
the gateway is positioned between Master and Slave.
Fig 5 shows the network structure with the gateway [6].
When the Master sends a data frame, the Gateway
receives the data frame. After receiving it, DSP analyzes
the data frame and converts it to serial communication.
The data frame converted by DSP is transferred to
slaves. This may be implemented in two ways in the
real field. The first includes the Gateway with the slave.
In this case, the organization, with a slave based on
EtherCAT
PHY Chip
DSP
972
Gateways
Servo drive
With RS-485
X-Y Table
Fig 6. The experimental system
Family LAN-card, because the other Family LAN-cards
are unstable in transmitting the EtherCAT protocol data.
BECKHOFF also recommends Intel-Family LAN-cards
in informal comment.
We use the Twin-CAT as a PC based controller
program. This program is made by BECKHOFF. It
supports IEC 61131-3 standard Programming
Languages. So, we use the Structured text language of
the IEC 61131-3 standard to move each axis to draw a
straight line and circle.
Fig 7 depicts the Twin-CAT program flowchart. The
Twin-CAT program consists of two parts: System
Manager and PLC Control. The System Manager scans
EtherCAT devices and maps PLC variables with the
gateway. We can check the status of each EtherCAT
device and the information of the motor, such as the
current position, and speed. The PLC Control receives
and sends data to move the axis. We use two kinds of
equation to draw a straight line and circle in the PLC
Control: a first-order equation and a trigonometrical
equation, respectively.
973
functions correctly.
REFERENCES
[1]
[2]
[3]
[4]
[5]
[6]
[7]
Fig 10. Experiment 2. Drawing a circle
974