Robot Manipulator Control Using PLC With Position Based and Image Based Algorithm 2090 4908 1000154
Robot Manipulator Control Using PLC With Position Based and Image Based Algorithm 2090 4908 1000154
lige
Intel nce an
rm d
Patil, Int J Swarm Intel Evol Comput 2017, 6:1
wa
Ev
Intelligence and Evolutionary
ournal of S
oluti
DOI: 10.4172/2090-4908.1000154
onary C
Computation
al J
ISSN: 2090-4908
om
on
pu
tati ati
on Intern
Research Article
Research Article Open Access
Robot Manipulator Control Using PLC with Position Based and Image Based
Algorithm
Madhav D Patil*
Department of Electrical and Computer Engineering, University of Bridgeport, USA
Abstract
Programmable Logic Controller is making big role in automation and robotics. This paper described about
the design and implementation of Artificial intelligence algorithms for controlling the robotic arm or manipulator
hardware platform using Programmable Logic Controller (PLC). The controlled robot is 5 degrees of freedom (DOF)
manipulator with a closed kinematic chain, designed for high-performance pick and place applications. The control
software is fully developed on a commercial PLC system, using its standard programming tools and the multi-tasking
features of its operating system. In particular, the paper analyse in detail the drawbacks and the advantages related
to the choice of standard PLCs in this kind of applications, compared to the much common choice of specialized
hardware or industrial personal computers, with particular emphasis on the computational performances obtained
with the proposed control architecture.
Keywords: Artificial intelligence; Vision system; Programmable 61131-3) allow to easily implement any kind of algorithm that can be
logic controller; Robot manipulator/Arm; Industrial automation used in robot control [5].
Introduction Moreover, even if most PLCs support only their proprietary IDE,
with that specific IDE it is always possible to upload the user software
Robot manipulators are largely used in packaging plants, especially from the controller and modify it, which is not possible on PC-based
for pick and place operations and box filling. In particular, packaging of systems whose software, is a compiled executable [6]. Therefore, PLC
small food products, like cookies or candies, requires high performance programs can be updated and extended by end-users even without
robots with short cycle times and precise motion control, even if their the original source code, which makes PLCs “open” systems. Despite
workspace is relatively small [1]. Such performances can be obtained this feature, PLC-based control systems for robot manipulators are
by means of lightweight parallel-drive or delta-like kinematics, whose quite rare and, in general, limited to simple Cartesian or gantry-like
advantages in terms of reduced moving masses and inertias are well- structures [7].
known. The robots include a vision system, in order to identify and
localize products transported in unordered manner and in a large A robot arm is the combination of links and joints in the form of
number on the conveyors. The robot controller is actually a quite closed a chain with one end is fixed while the other end is free. The joints are
system that customers are not able to extend without specific support either prismatic or revolute, driven by actuators. In order to move the
from the manufacturer. Since the integration of a robotic system with free end, also called the end effector, along a certain path, most, if not
additional, application-specific, tools and features often requires the all, of the joints are to be moved [8]. In doing so it is necessary to solve
development of software or hardware closely matched with the basic the inverse kinematics equation. In the case of redundant manipulator,
robot motion control system, customers often search for openness of inverse kinematics is much more difficult when compared to a non-
robot controllers. In fact, several open architectures for robot control redundant manipulator whose kinematics is not so complicated [7].
can be mentioned, either developed within academic projects or from There are traditional methods such as algebraic solutions, geometric
commercial robot manufacturer [2-4]. In most cases, these architectures solutions and iterative solutions in order to solve the inverse kinematics
take advantage of hardware platforms based on Personal Computers problem. However, these methods are time-consuming and suffer from
(PC). On one hand, the use of PCs for robot control reduces software numerical problems. Recently, the particle swarm optimization (PSO)
development costs, thanks to high level languages and well-designed has been successfully applied to various optimization problems. This
Integrated Development Environments (IDE). On the other hand, new optimization algorithm combines social psychology principles in
standard PCs do not have the reliability required by harsh industrial socio-cognition human agents and evolutionary computations [9].
environments, so that the use of more protective cases and more robust
electronic components actually increase the final cost of PC based robot In this paper, we aim to show that the capabilities of a commercial
controllers.
Programmable Logic Controllers (PLCs) are instead a kind of
control devices playing a dominant role in industrial automation, *Corresponding author: Patil MD, Department of Electrical and Computer
Engineering, University of Bridgeport, Bridgeport, CT, USA, Tel: 203-572-4551;
thanks to their robustness, reasonable cost and ease of use [1].
E-mail: mpatil@my.bridgeport.edu
Electronic components inside PLCs are selected for their reliability
and solid presence on the market, rather than for their performance. Received April 07, 2017; Accepted April 19, 2017; Published April 26, 2017
For this reasons, PLCs are commonly considered as low-level systems, Citation: Patil MD (2017) Robot Manipulator Control Using PLC with Position
whose main purpose is to control simple Boolean signals (i.e. discrete Based and Image Based Algorithm. Int J Swarm Intel Evol Comput 6: 154. doi:
10.4172/2090-4908.1000154
control and sequencing) and to supervise the safety and integrity
of plants and operators. However, modern PLCs have most of the Copyright: © 2017 Patil MD. This is an open-access article distributed under the
terms of the Creative Commons Attribution License, which permits unrestricted
times sufficient computational bandwidth to execute also complex use, distribution, and reproduction in any medium, provided the original author and
mathematical calculations and their programming languages (i.e. IEC source are credited.
Page 2 of 8
Page 3 of 8
quantity depending on the distance between the target and the camera
Home which is difficult to evaluate. A control in the image plane results also
Position to be strongly nonlinear and coupled when mapped on the joint space
of the robot and may cause problems when crossing points which are
singular for the kinematics of the manipulator.
The pseudo code for the position based algorithm is as given below,
Signal Signal not
received from received from For each position
controller Controller
{
Initialize position
Pick up Not pick }
part up part
Do until maximum iterations or minimum error criteria
{
For_each position
Bad Good
Part part {
Area Area
Calculate joint angle kinematics
If_ Joint1 better than Joint2
Metal Nonmetal
{
part part
Set pBest = current Joint angle
}
Start Pick up
conveyor part If pBest is better than gBest
{
1st
2 nd
Place at Set gBest = pBest
position position reject area
}
Figure 2: Transition model of the system.
}
Solution methodology }
Dealing with complex, higher level control system with continuous For each position
interactive subsystem in dynamic environment is difficult and requires {
sophisticated and intellectual controller with continuously process
optimization. We proposed the solution for above stated problem in Calculate joint Velocity
this section. The proposed solution has been applied and tested on Use gBest and Velocity to update position Data
robot manipulator with 5 DOF. The experimental set up is explained in
next section. In this experiment we are using position based algorithm }
in combination with Image based algorithm to finding the best possible The main purpose or goal of this study is to use the visual feedback
solution for our stated problem. As we are implementing Artificial from images captured by the camera and the Cartesian space co-
Intelligence in the robot arm control system based on PLC, we have to ordinates of the target object which ultimately controls the motion of
use search algorithms, inference engine etc. The system is completely the robot to perform a task. The starting position and coordinate frame
knowledge based as uses the sensors, camera and applies the action on boundary is taught to the robot arm. From the calculated co-ordinates
the robot arm and actuators. Solving the inverse kinematics becomes of the target object, the surface model in 3 dimensional co-ordinate
complex and nonlinear as the number of degrees of freedom of the systems will be constructed for robot manipulator. The sensor data
manipulator increases. The position based search algorithm uses the will be used for knowledge base and will be used to avoid collision as
visual data provided by the imaged based algorithm and calculates well as can be used to find optimal shortest possible path or trajectory
the joint velocity and angles to form the inverse kinematic solution by checking each point in its workspace. The sensors can give a signal
in 3 dimensional workspace [16]. By adding vision or imaged based when contact is made with obstacles, detect metal or non-metal objects,
algorithm, the robotic control system is more flexible, adaptable and or measure a force being applied. Due to this knowledge provided
increases the accuracy in the joints movement (Figure 4). by sensory units to the system, robot path can be planned before its
execution to the target position.
The principal advantage of using position-based control is the
chance of defining tasks in a standard Cartesian frame. On the contrary, Firstly, a camera is mounted on a manipulator end effector and
the image-based control is less sensitive to calibration errors; however, it catches a 2-D image, a true potential can be exactly calculated. We
it is required the online calculation of the image Jacobian, that is, a assign the two dimensional coordinate system with the x-axis and
Page 4 of 8
Page 5 of 8
Page 6 of 8
Page 7 of 8
Results
The application we used for testing these two algorithm with PLC
is Pick and Place application with Quality Inspection. As an initial step
we localize the object using a traditional Haar classifier. We trained
Mark is Mark is Not
multiple models for recognition various objects in the scene. At time present in Nut absent in Nut
of training process each Haar object detection model will be fed with
respective positive samples or in class samples and out of class samples.
We then evaluate the performance of the trained model using test data.
Good Part Bad Part
The processing is performed on a windows machine using Matlab
Software. We chose this method (Haar classifier) as it is one of the Figure 12: Job 4 test product images.
Page 8 of 8
We used relay for job 1, it will check whether screw in the socket 5. Asada H, Youcef-Toumi K (1983) Analysis and design of semidirect drive robot
arms. In: Proc Amer C Conf, San Francisco, CA.
is present or not. If cognex checker detects screw on the right position
then it will consider it as good part and send it to accept position else it 6. Kao I, Gong C (1997) Robot based computer integrated manufacturing as
will send it to reject position (Figure 9). applied in manufacturing automation. Robot and Comput Int Manuf 13: 157-
167.
JOB 2 7. Bonfe M, Vignali M, Fiorini M (2009) PLC-based control of a robot manipulator
with closed kinematic chain. In Proc IEEE Int Conf Robotics and Automation.
We used holder for job 2, checker will check whether holding
pins are assembled in holder during manufacturing process or not. If 8. Whitney DE, Lozinski CA, Rourke JM (1986) Industrial robot forward calibration
method and results. J Dyn Sys Meas Control 108: 1-8.
all holding pins are present in holder then checker will consider it as
good product else it will consider it as bad product and send the good 9. Rini DP, Shamsuddin SM, Yuhaniz SS (2011) Particle swarm optimization:
Technique, system and challenges. Int J Comput Appl 14: 19.
product to accept position and bad product to reject position (Figure
10). 10. Hashimoto K, Kimoto T, Ebine T, Kimura H (1991) Manipulator control with
image-based visual servo. In Proc IEEE Int Conf Robotics and Automation.
JOB 3 11. Patil M, Toporovsky Y, Lawrence H, Sobh T (2012) Integration of vision system,
intelligent Robo Actuator, HMI and PLC to design a universal quality inspection
Purell hand sanitizer is used in job 3. In this job we check the label or control machine. I-managers J Mech Eng 2:17.
of Purell brand name in the hand sanitizer container. Container with
Purell brand name is considered as a good product and without Purell 12. Khatib O, Quinlan S, Williams D (1997) Robot planning and control. Robot
Auton Syst 21: 249-261.
brand name is considered as a bad product (Figure 11).
13. Glavina B (1990) Solving findpath by combination of goal-directed and
JOB 4 randomized search. In Proc IEEE Int Conf Robotics and Automation. Pp: 1718-
1723.
We used nut for job 4. Nut with two marks is considered as good
14. Feng-Yih H, Li-Chen F (1995) A new design of adaptive fuzzy hybrid force/
product and nut without marks will be considered as a bad part (Figure position controller for robot manipulators. In Proc IEEE Int Conf Robotics and
12). Automation 1:863-868.