You are on page 1of 6

Journal of Mechatronics, Electrical Power and Vehicular Technology ISSN 2087-0116

Vol. 0, No. 0, Juli 2010 SK No: 13/AKRED/LIPI/P2MBI/3/2011

FRAMEWORK OF FLEXIBLE MANUFACTURING SYSTEM (FMS)


FOR EDUCATION BASED ON MICROCONTROLLERS AND
FIELDBUS
Arko Djajadi, Tutuko Prajogo, Maralo Sinaga
Department of Mechatronics,
Faculty of Engineering
Swiss German University
Campus German Centre, Bumi Serpong Damai
Tangerang 15321
Phone/Fax: (021)-537 6221 / 537 6201
Email: arko@sgu.ac.id, maralo.sinaga@sgu.ac.id, tutuko.prajogo@sgu.ac.id

Abstract

Swiss German University has excellent FMS laboratory facility based on FESTO products. However, the
facility is limited in quantity and could not be extended easily due to the relatively high cost for extending the
facility. Consequently, the objectives of preparing students to gain real world industrial automation and the
use of laboratory facility are not optimized. In this paper a framework of an FMS for education based on
microcontrollers and fieldbus is presented. Microcontrollers are chosen due to their widespread availability,
low cost and versatility. Fieldbus is implemented by customizing existing standard bus systems such as
Modbus and Profibus, thus providing hand-on experience and control of the communication bus system. The
framework can thus strengthen the pedagogical to the students and at the same time the functionality of the
laboratory facility can be extended. Existing facility and new equipments can then be combined together as a
network, thus creating a customized FMS. Each new functional part can be developed by a group of students
according to the requirement and an agreed standard fieldbus protocol. After successfully tested
independently, each new part can then be connected to the network to forms a new node in the FMS. The
end result is a really flexible and extendable manufacturing system. The objective of extending laboratory
facility and exposing students to real world applications are thus realizable.

Keywords : Flexible Manufacturing System, Manufacturing Automation, System Design,


Microcontroller, Fieldbus

1. Architecture of FMS deals with process management and control


Before discussing SGU FMS, a typical system at cell level. A gateway to the next
FMS architecture will be used as a reference level is provided.
for the next sections [1,2,3]. Five layers can The fourth level is the field level where
be defined as depicted in Figure 1. fieldbus is used to interconnect elements at
The top level is the first level that deals this level, and where actual smart actuators
with planning activities within a and sensors are attached. The fifth level can
manufacturing unit. As the amount of data be added for specific applications.
communicated at this level is normally high, it
typically involves many computers, equipped
with Ethernet cards. These computers are
interconnected by means of a high speed
internet/intranet infrastructure. A gateway is
used to connect this level to the second level.
The second level is control level that
performs production control, where each
production unit is connected to each other
through a fieldbus network, such as Profibus-
FMS. A gateway is in place to connect this
level to the third level.
The third level is cell level, where each
part is connected trough a fieldbus. This level Figure 1. Model of factory control levels [1,2,3]

19
Framework of Flexible Manufacturing System (FMS) for Education Based on Microcontrollers and Fieldbus
(Arko Djajadi)

Distribution Testing Processing Robot Handling


Station Station
A possible network for different levels of Station Station

control can be summarized as in Figure 2


[1,2], including some sample nodes on their
respective networks. At the top level the
concern is fast and high capacity data PLC PLC PLC PLC
communication, utilizing high speed medium Figure 3. MPS stations with PLCs and inter
typically 100 MBit/s or above. On the PLC I/O communication
contrary, at the bottom level where sensors
and actuators are attached, the amount of data 2.1.2 PLC-based Controlling and Direct I/O
communicated is low, but its timing is very Networking
critical. Here the data exchange must be in
real time to allow the actuators to react The MPS is controlled directly by PLCs. As
instantly based on the sensors outputs. there are four stations, four PLCs are required
for complete control. Input/output information
exchange between stations is accomplished by
passing certain PLC output bits from one
station to the input bits of next or previous
station. As the distance is short, this method
works well. In this way, there is no true
networking involved. Option is available for
this MPS to be networked with Profibus, as
has been done, by replacing three PLCs,
except the first one, with three extended I/O
cards having profibus interfaces.
Figure 2. Network on the different levels of a 2.1.3 Operation
factory [1,2,3] The MPS works on pieces of tubes or piston
housings that are taken from a magazine in the
2. Existing FMS Laboratory distribution station. It incorporates some
There are two working systems available at sensing elements and electro-pneumatics
the SGU for students to learn about FMS, actuators controlled by a PLC.
namely Modular Processing System (MPS) From the distribution station, the
and Flexible Manufacturing System (FMS), workpiece is transferred to the testing station
both of them are FESTO products. Below is to test its color and its acceptable size. Color
the description of both. identification is done by optical, inductive and
capacitive sensors together, as the final
2.1 Modular Processing System (MPS) processing later will be grouped according to
The first is Modular Processing System the workpiece color. If the size matches and
(MPS). This system is used extensively in the its color has been determined, the workpiece
automation technology learning processes. is ready for next processing in the processing
Each part can be disassembled, assembled station or otherwise rejected.
back, programmed, tested and integrated as In the processing station, the workpiece is
required. The students are assigned such tasks subsequently placed in a rotary table, sent to a
from time to time. drilling unit for creating a hole, sent to an
inspection unit for final checking. The robot
2.1.1 Stations handling station is then signaled that the
In this MPS, four stations are connected workpiece is ready for storage.
together to accomplish a typical automated In addition to workpiece readiness status,
manufacturing processes in a small scale. information about its color are also passed to
Each station is controlled by its own master the robot handling. Finally the robot picks the
PLC but without SCADA. The station names workpiece up and stores it in the correct
are distribution, testing, processing and robot location based on its color. Then the process
handling. is repeated from the start until the magazine is
empty.

20
Journal of Mechatronics, Electrical Power and Vehicular Technology ISSN 2087-0116
Vol. 0, No. 0, Juli 2010 SK No: 13/AKRED/LIPI/P2MBI/3/2011

workstations running SCADA Software for


2.2 Flexible Manufacturing System (FMS) graphical monitoring and control of all
The second is Flexible Manufacturing System stations.
(FMS) with SCADA. This FMS is used
mostly for demonstrating what normally 2.2.3 Operation
happens in more automated systems with How the FMS operates will be
higher degree of complexity than the MPS. summarized below. After initializing all
stations, the FMS is ready for operations.
2.2.1 Stations Depending on the task assigned by the
In addition to four stations existing in the operator from the master SCADA PC, the
MPS, in this FMS there are automatic storage FMS will perform different operations. Here,
and retrieval station (ARS), magazine stock for example the task is to assemble a set of
manager, conveyor and two PCs for the four pieces of finished pistons consisting of a
SCADA. They are controlled by a network of housing, spring, piston and locking cover.
PLCs linked with Profibus to accomplish Upon a start command, a set of 4 piston
typical automated manufacturing processes in housings is retrieved automatically by a
a larger and much more complex scale, as dedicated ARS from the storage area
shown in Figure 4. Each station is controlled maintained by a dedicated stock manager.
by its own PLC, but all PLC are mastered by The set is placed on a carrier on the conveyor
the SCADA PC. It is also possible for each ready to convey it to the processing stations.
station to work independently on its own, in The carrier stops exactly in front of the
which each PLC is acting as the master. processing station, where the handling robot
of the processing station lifts the full carrier to
Master Robotic a designated place.
Distribution Testing Assembly
SCADA Station Station Processing The handling robot hand smartly takes
Station
single piston housing and places it in a
clamped position. Subsequently the handling
robot adds a piston, a spring, and lastly a
locking cover that are taken from their
PLC PLC PLC respective storage or stacks. The robot hand
presses and twists the locking cover on the
assembly and a final piston system is
PLC
Profibus
PLC
produced and placed back on the original
carrier. The other three piston housings are
treated similarly until four completed pistons
Slave are obtained.
SCADA The full carrier is then lifted, moved and
ARS Conveyor
Station Station placed back on the conveyor. The conveyor
brings the full carrier to the ARS who will
Figure 4. Existing FMS stations store the final product in the storage area
based on the information from the stock
2.2.2 Profibus-based Controlling and manager PC. In this example, as the
Networking component to be assembled is from storage
Profibus is a fieldbus standard developed area, the distribution and testing stations are
in a joint research project in 1987. In 1991, idle unless instructed otherwise.
DIN 19245 was adopted, whereby the
Profibus became one of the first standardized 3. Extended FMS
fieldbus systems. This is an open fieldbus Based on the available MPS and FMS systems,
standard covering a wide area within process an extended FMS version is developed to
and building automation [1,2,3]. support the practical teaching and learning
This more advanced FMS has many process.
stations and each station is controlled directly
by a dedicated PLC. Networking is done by 3.1 Purpose
means of Profibus system to allow advanced The purpose of developing extended FMS
integration with SCADA on two dedicated PC is to utilized the four MPS stations except

21
Framework of Flexible Manufacturing System (FMS) for Education Based on Microcontrollers and Fieldbus
(Arko Djajadi)

their PLCs, add other relevant processing network that will be used later. Tutuko
stations, integrate all of them by means of a Prayogo and Bambang Darwis created the
serial bus / fieldbus network and complete the first FMS Simulator using Microsoft Visual
whole system with SCADA capability. Basic to support the Automation Technology
Networking with fieldbus will simplify wiring lecture and laboratory.
between stations. The main drive is to have a By networking PCs through its serial port
testbed to experiment open-endedly and to use equipped with RS232-to-RS485 converter,
low cost microcontrollers as the brain of each each PC is thus physically connected to other
node, without risking of damaging the PCs along a segment of serial cable. The FMS
existing FMS. Simulator is then run on each PC, one acting
as the master node while the rest acting as the
3.2 Microcontroller as Controlling and slave nodes.
Networking Elements
The extended FMS is based on 3.3.1.2 RS232 to RS485 Converter Card
microcontrollers which will function as the RS232 is a serial, bi-directional,
smart nodes controlling sensors and actuators asynchronously operating interface. It
attached to them. On the other hand the operates with a signal level against ground
microcontrollers with their built-in serial port and is therefore relatively interference-prone
are equipped with RS232-to-RS485 (distances of up to 30 m). RS232 is not
converters to allow multipoint-connection and designed to communicate data by more than
thus creating a simplified fieldbus network. two stations.
Figure 5 illustrates such network. Therefore, to allow multipoint
connections RS485 is used. To do so, a
converter card from RS232-to-RS485 is built.
By using a number of converter cards,
simplified fieldbus network can be realized.
The RS485 is the most widely used
hardware for fieldbus systems. It defines a
line with a maximum of 32 stations, restricted
by bus terminating resistors at both ends.
Originally it defined a data transfer rate of up
to 500 kBit/s. In the meantime, up to
12MBit/s are now realized. Depending on the
data transfer rate, distances are between
Figure 5. Master/slave system in a simplified approximately 1200 m and 200 m.
fieldbus network The RS485 operates using twisted and
screened data transfer lines. The twisted line
3.3 Components (also known as ‘twisted pair’) consists of a
The main components of the extended FMS pair of wires, which is twisted like a string.
will be explained below. Starting with some The purpose of this is to ensure that electrical
necessary inhouse developed add-ons, such as interference affects both wires simultaneously.
FMS protocol simulator, serial converter and If both wires are floating-ground or of
protocol converter, the 8 stations of extended identical potential to ground then such a
FMS are discussed. system is highly insensitive to interference, as
the signal is measured in the form of a
3.3.1 Inhouse Developed Add-Ons differential voltage signal irrespective of
Before the extended FMS can be realized, ground
there are a number of issues that must be
solved first. Each of the issue will be 3.3.1.3 Protocol Converter Card
discussed. Another problem arose when trying to
integrate the 6 DOF robot handling station to
3.3.1.1 FMS Protocol Simulator the network, as it is controlled by its
Before really starting the projects to build proprietary on-board computer. Interfacing to
the whole system of an extended FMS, the it must be accomplished through serial port,
first step is to build and test the protocol and which is normally used to upload/download

22
Journal of Mechatronics, Electrical Power and Vehicular Technology ISSN 2087-0116
Vol. 0, No. 0, Juli 2010 SK No: 13/AKRED/LIPI/P2MBI/3/2011

coordinate values and instructions to/from PC. remove the workpiece from the processing
This problem is solved by designing a special station and place it on the orientating station.
protocol converter card that translates and The orientating stating will check whether the
encapsulates each packet traveling in the workpiece is upside-down or not. If so, it will
fielbus network to/from the robot handling be rectified.
station. Once the checking and orientating
operations are completed, the workpiece is
3.3.2 Stations placed on a carrier parking on the conveyor
As already stated in the purpose above, the belt. The SCADA PC then gives orders to the
idea is to create extended FMS based on MPS. conveyor station to carry the workpiece to the
There are 8 stations, and their names are designated point, from which the workpiece
distribution, testing, processing, robot will be taken away and stored in the ARS
handling[4], orientating[5], conveyor[6], station. The cycle is then repeated from the
ARS[7] and SCADA[8] stations. beginning under the control of the master
SCADA PC.
Master
Distribution Testing Processing
Robotic All communication is thus performed
SCADA Handling
Station Station Station Station along the fieldbus. The packet conversion
from RS232 format, when the packet leaves
the each node, to RS485 format is done by
RS232-to-RS485 converter attached to each
uC uC uC uC
node.
fieldbus As mentioned earlier, a special
uC uC uC
microcontroller-based protocol converter is
developed to allow the robot handling station
to be configured as a separate node, since this
station has its own proprietary built-in Zilog-
ARS Conveyor Orientating
Station Station Station based computer [9]. It accepts special robotic
commands, such “NT” for nesting or “RS” for
Figure 5. Extended FMS stations
reset, and returns specially formatted response,
which must be encapsulated correctly before
All stations are treated as nodes, assigned
transferring it in the fieldbus network. Each
unique station IDs and integrated on a
packet must be formatted to have an ID,
segment of serial bus network.
function code, data and CRC to allow correct
Microcontrollers are the brain of each node
addressing, instruction and error checking.
except the SCADA which is a PC, thus
One of the stations, the master, controls
creating a microcontroller-based fieldbus
bus access by issuing a time limited send
network.
authorization cyclically to the other stations,
i.e. the slaves. With a master/slave system,
3.4 Operations only the master has control over the bus. All
The operation of the extended FMS for the other stations, the slaves, must continually
the first three workstations (distribution, listen to the bus and can only send data via the
testing, processing) is similar to the original bus following a request by the master.
MPS described earlier. The difference is that
now these three stations are no longer
4. Lesson learned
controlled by 3 master PLCs, but by a single
Briefly will be discussed the valuable
slave microcontroller. This slave
lesson learned from developing the extended
microcontroller is functioning as one of the
FMS.
node with a unique address in a fieldbus
network, mastered by a PC designated as the
4.1 Practical Learning Process
SCADA station.
The effort has benefited tremendously to
Upon the completion of the operation in
everyone involved in the projects. It improves
the first three stations, a ready status is sent by
considerably both theoretical and practical
the slave node that controls these three
knowledge that is highly valued in
stations to the SCADA PC. The SCADA PC
mechatronics learning processes. Many
then instructs the robot handling station to
subjects learned in the classes and labs, such

23
Framework of Flexible Manufacturing System (FMS) for Education Based on Microcontrollers and Fieldbus
(Arko Djajadi)

as microcontroller and automation, are put [2]. Monika Bliesener, Sabine Scharf,
into practice in solving both challenging and “Fieldbus technology Profibus-DP”,
rewarding real life industrial problem. FESTO Workbook TP 402 Denkendorf,
Germany, 2003
4.2 What next? [3]. Jonas Berge, “SMAR The Fieldbus
As the main objective to create a Book”, Year 2002 edition
framework of FMS has already been achieved, [4]. Avioko Leksiantoro, “ Test and
the next step is to improve its reliability, Distribution Station in Flexible
functionality and flexibility that are still weak Manufacturing System”, Thesis Report
in the first version. This is an ongoing effort in Mechatronics Department SGU,
in parallel with the learning process that is 2005
expected to benefit everyone involved. [5]. Sandy Budiman, “ Prototype of a Disk
Orientating Station Controlled by the
5. Conclusion ATMEGA16 Microcontroller”, Thesis
A framework of an FMS for education Report in Mechatronics Department
based on microcontrollers and fieldbus has SGU, 2005
been developed and presented. [6]. Sugianto, “ Prototype of a Conveyor
Microcontrollers are chosen due to their System using the ATMEGA16
widespread availability, low cost and Microcontroller”, Thesis report
versatility. Fieldbus is implemented by Mechatronics Department SGU, 2005
customizing existing standard bus systems [7]. Brian Satrio Pono, “ Automatic Storage
Modbus. The end result is a really flexible and and Retrieval in Flexible
extendable learning system with modular Manufacturing System”, Thesis report
approach under the same control through a Mechatronics Department SGU, 2005
standard fieldbus network. The objective of [8]. Edward , “Flexible Manufacturing
extending laboratory facility and exposing System (FMS) integrated with
students to real world applications are thus SCADA”, Thesis report Mechatronics
realizable. Department SGU, 2005
[9]. - , “MovemasterEX - Industrial Micro-
References Robot System, Model RV-M1”,
[1]. Monika Bliesener, Ralph C. Weber, MovemasterEX Mitsubishi Manual,
“Fieldbus technology AS-Interface”, BFP-A5191E-B
FESTO Workbook TP 401 Denkendorf,
Germany, 2003

24

You might also like