Lab 4 Robotics
Lab 4 Robotics
Thursday 12-3 PM
Akshit Kumar
The robotic arm begins by moving to an initial position using the MoveJ
command. Based on input signals provided by the digital push buttons, the
robot selects and executes a programmed geometric path by calling the
specific subroutine. Each path employs a combination of MoveJ, MoveL, or
MoveC commands to achieve the desired shape with precise transitions.
Equipment List
Equipment Description
ABB – IRB 120 Robot Robot used for the task
Touch Pendant Used to communicate and program the robot
Pneumatic Gripper Used to hold the drill chuck
Drill Chuck Used to hold the metal rod
Metal Rod Acted as the end of the tool center point
Metal Posts Acted as a square or box that was traced around
Layout Diagram
Label no. Equipment Description
1 Metal Rod
2 Drill Chuck
3 Pneumatic Gripper
4 ABB – IRB 120 Robot
5 Metal Posts
System Setup
Steps to startup were as follows:
4) Testing of the robot through simple jog commands that ensured that
the robot was operating as expected
Control Program
MODULE MainModule
PROC main()
IF diPB1=1 THEN
square;
circle;
Triangle;
ENDIF
ENDPROC
PROC square()
RETURN;
ENDPROC
PROC Circle()
RETURN;
ENDPROC
PROC Triangle()
RETURN;
ENDPROC
ENDMODULE
Observations
During the experiment, it was observed that when the pushbutton diPB1 was
pressed before initiating the program, the robot executed the Square
subroutine, tracing the square path accurately. The robot transitioned to the
starting point using the MoveJ command, taking an optimized yet
unpredictable path. Subsequently, the robot used a combination of MoveL
commands to navigate the corners and edges of the square, ensuring
precise straight-line motion between points.
It was also noted that the robot returned to its home position using MoveJ
after completing each subroutine. Adjustments to the zone value impacted
the sharpness of corner transitions, with a lower zone value resulting in more
precise and angular paths for the square and triangle shapes. The
experiment demonstrated the robot’s ability to execute predefined paths
accurately in response to specific input signals, validating the effectiveness
of the IF-ELSE conditional logic.
Safety
Safety was a critical consideration throughout the experiment to ensure both
operator and equipment protection. Before starting, the instructor reviewed
safety guidelines, emphasizing the importance of maintaining a safe distance
from the robot while it was in motion. Additionally, the robotic workcell was
inspected to confirm that all components, including the pneumatic gripper
and drill chuck, were securely attached and operational.
The teach pendant used for programming and monitoring was equipped with
a dead man’s switch, ensuring the robot would stop immediately if released.
Moreover, all programmed code was debugged and tested prior to execution
to prevent unexpected movements or errors. Operators were also instructed
to remain vigilant and avoid the robot’s operational area during execution,
as there were no physical barriers separating the robot from its
surroundings.
Discussion
This lab effectively demonstrated the integration of digital inputs and
conditional IF-ELSE statements in robotic programming, showcasing how
such logic enhances the adaptability and versatility of automated systems.
The use of IF-ELSE logic allowed the robotic arm to dynamically select a
specific geometric path, square, circle, or triangle, respectively, based on
input signals, providing insight into how digital signals can be utilized to
control robotic behavior.