Beruflich Dokumente
Kultur Dokumente
SEMESTER I 2011/2012
Laboratory Manual
MECHATRONICS
ENGINEERING LAB III
(MCT 4159)
(DSD-MicroprocessorsRobotics)
LABORATORY EXPERIMENTS
All experiments except the laboratory project do not require a final
laboratory report.
Data Sheet
(1) Original data sheet. This original data sheet should approved by
instructor(s) during experiment day. If it is a printed from a system
then the original print needs to be approved and signed by the
instructor, else please use the format contain in Appendix B for data
sheet. Make sure the data sheets are approved and signed BEFORE
the end of the laboratory session, marks will be deducted if the data
sheets is not approved and signed prior to end of the laboratory
session.
(2) Calibration curves of instruments which were used in the
performance of the experiment. Include manufacturer of the
instrument, model and serial numbers. Calibration curves will
usually be supplied by the instructor.
(3) Bibliography listing all references used.
PROJECT REPORTS: AN OVERVIEW
All experiments except the laboratory project do not require a final
laboratory report.
The reports MUST BE TYPED and COMPUTER PRINTED and in
the following specification:
Font Type: Times New Roman
Font Size: 12
Any graphs need to be plotted using excel. Please make sure you
use scatter graph when appropriate and add trend lines to those
graph. Identify the R2 value for the graph to see the best fit line
when using as such, discuss on the R 2 value during your discussion
as well. You are only suppose to use a line graph, when you
encounter adding a trend line to the scatter graph as deemed
inappropriate for the discussion that you are suppose to make. The
suitability of the graph used will be considered in marking as well.
Plagiarism is a major offence. Please adhere to universitys
policy for plagiarism. Any student found to commit an offence of
plagiarism will be dealt with accordingly.
Please refer to APA basic format in the LMS for citing and
referencing guides.
Page 2 of
Page 3 of
Report and will have a very large impact on the grade assigned to
the work.
Procedure
The procedure section should contain a schematic drawing of the
experimental setup including all equipment used in a parts list with
manufacturer serial numbers, if any. Show the function of each part
when necessary for clarity. Outline exactly step-by-step how the
project was performed as there is someone desires to duplicate it. If
it cannot be duplicated, the experiment shows nothing.
Results
Include all tables and graphs that document your final results.
Include all relevant information so that you can later refer to these
figures in the discussion section to support your conclusions. If
possible, present the results in the same order that you listed the
objectives. Do not discuss the significance of the results. Include
only final results that satisfy the objectives of the experiment;
lengthier tables and intermediate figures should be included in the
Appendix. Introduce the reader to each figure and table with a brief
paragraph indicating what variables are plotted or tabulated. Each
figure and table must have a unique number and a title or caption.
Graphs
In engineering laboratory reports, one of the methods to represent
the results is graph. The graph sometimes summarized the results.
An acceptable graph has several features. Some of the important
features are as following.
Axis labels defined with symbols and units.
Each line is identified using a legend.
Data points are identified with a symbol: x on the Q ac line to
denote data points obtained by experiment.
Data points are identified with a symbol: o on the Q ac line to
denote data points obtained by theoretical.
Nothing is drawn freehand.
Should have number and title; e.g. Fig. E1.1 Volumetric flow
rate, Q vs. head drop, h. Title is descriptive, rather than
something like Q vs h
All graphs must be generated using a computer. (No scanning or
drawing using pen and pencil)
Assembly Codes / Screen Capture
Some parts of the project may require you to come out with a
program to run certain features such as input from keyboard,
output to display, running a motor, LED, LCD etc. All these
Page 4 of
Page 5 of
Page 6 of
DSD EXPERIMENT 1:
-INTRODUCTION TO BASIC
LOGIC GATES-
Page 7 of
Components needed:
74LS08, 74LS00, 74LS32, 74LS02, 74LS86.
I. Prelab
You must have this information when you ENTER THE LAB.
A.
Use the TTL Logic Data Book to locate the following information.
1.
2.
Locate the datasheets for the following parts: 74LS08, 74LS00, 74LS32,
74LS02, 74LS86.
3.
a.
Create a table that shows the TYPICAL delay values for t PHL and tPLH
for each gate.
b.
There are more delay values for the 74LS86 than there are for the
other gate types. Why is this? EXPLAIN!
b.
c.
d.
e.
B.
C.
Label each of the logic diagrams with pin assignments using the TTL Data
Book.
II. Procedure
Page 8 of
A.
Assemble the circuits in Figure 1 through Figure 5. Verify that each circuit
operates as expected. Compare your results with those in your truth tables.
a
b
1
2
7408
a
b
3
7402
Figure 4 NOR
B.
7400
1
2
1
7432
Figure 3 OR
Figure 2 NAND
Figure 1 AND
a
7486
Figure 5 XOR
A universal gate is a logic gate that can be used to create all the basic logical
functions. These two gates are the NAND and the NOR.
1.
2.
3.
y
Figure 6
4.
x
z
a
b
Figure 7
z
Figure 8
b
Figure 9
a
z
b
b
Figure 10
Figure 11
Page 9 of
C.
Assemble the circuits in Figure 12 and Figure 13 and show that the
(AND/OR) form is equivalent to the (NAND/NAND) form.
a
b
z
c
2.
z
d
Figure 12
Assemble the circuits in Figure 14 and Figure 15 and show that the
(OR/AND) form is equivalent to the (NOR/NOR) form.
a
a
b
b
z
c
D.
Figure 13
Figure 14
Figure 15
In logic circuits it is not always obvious that there is a time delay between the
time an input changes and the time the output changes. This delay is known
as propagation delay and it must be taken into account in many circuit
designs.
1.
Connect the circuit in Figure 19. Notice that the output appears to
always be a logic `1' regardless of the input setting.
x
z
Figure 19
2.
E.
Connect the 1 Mhz digital clock output on the test box to the input of the
circuit. Monitor the input to the circuit on CH1 of the scope and monitor
the output of the circuit on CH2. Adjust the CH2 vertical scale in order to
clearly see the `glitch' caused by propagation delay. Record all
waveforms.
Design Problem
Part 1: Universal NAND Gate
Using a single 7400 IC, connect a circuit that produces the following:
1. A 2-input AND gate
2. A 2-input OR gate
3. A 2-input NOR gate
4. A 2-input XOR gate
Part 2: NAND Circuit
Page 10 of
Page 11 of
DSD EXPERIMENT 2:
- Combinational Logic Circuit
and Basic ALU-
Page 12 of
I. Prelab
You must have this information when you ENTER THE LAB.
1. Download and print out all the datasheets which will be used in this experiment.
2. Prepare truth tables for all the combinational logic circuits shown below (Part 1 and 2) and
derive their expression. For the circuit in part 2, design the circuit using only basic logic gates
(AND, OR and NOT).
Part 1:
Basic combinational circuit - 3 input 1 output logic circuit.
Figure 1.
Multiplexer - 4-to-1 multiplexer.
Figure 2
Page 13 of
Decoder - 2 to 4 decoder
Figure 3
Figure 4 - Adder-subtractor combination: (a) operation table; (b) truth table for yi and c0;
(c) circuit (using XOR); (d) logic symbol
II. Procedure
Assemble all the circuits in Part 1, and 2. Verify that each circuit operates as expected.
Compare your results with those in your truth tables.
Page 14 of
Page 15 of
DSD EXPERIMENT 3:
- Flip Flop and Sequential
Logic Circuit-
Page 16 of
I. Prelab
You must have this information when you ENTER THE LAB.
1. Download and print out all the datasheets which will be used in this experiment.
2. Prepare truth tables for and familiarize yourself with all the circuits shown below (Part 1 and
2). Solve all the design problems in Part 2.
Part 1:
1) Construct the clocked RS flip flop of Figure 1. Draw a complete truth table for the circuit.
Then use clock pulse as an input at E. Use pulse switch as your clock source. Explain how
the circuit behaves.
Figure 1
2) Using the 74LS74 dual D flip flop, investigate the operation of the D flip-flop in Figure 2.
Pay attention to the change in state of the device as the clock signal is rising or falling. Draw
the complete truth table for the circuit.
Page 17 of
Figure 2
3) Using the 74LS76 dual JK flip flop, determine its logical operation. The circuit diagram is
shown in Figure 3. Pay attention to the change in state of the device as the clock signal is
rising or falling. Draw the complete truth table for the circuit.
Figure 3
Part 2: Design Problem
1) Designing a Counter
Using JK flip-flops and any other applicable gates design, implement and verify a counter that
displays the following sequence of numbers:
0, 3, 6, 9, 12, 14 and back to 0 to repeat the sequence.
Note that there will be memory states that are not used. The counter must be self-starting,
that is if the circuit starts from any of the unused (i.e. undefined) states, the counter must
transfer the circuit to one of the defined states to continue the output in the aforementioned
sequence.
In the design you must include a function bit controlling whether you are counting up or down.
Use the 74LS47 (BCD to seven segment display decoder) to drive the display.
2) Designing a Car Security System
The State diagram; and the next-state / implementation table of a car security system are as
shown in Figure 4 below. Please complete the task by using K-map and identify the excitation
equation. Finally construct the logic circuit and test the output to verify the answer
experimentally. From the state diagram, explain how the car security works.
Page 18 of
Figure 4
II. Procedure
Assemble all the circuits in Part 1 and 2. Verify that each circuit operates as expected.
Compare your experimental results with the PreLab.
Page 19 of
MICROPROCESSOR
EXPERIMENT 4:
-INTRODUCTION TO
MC68230 PI/T- INPUT SWTICHES AND
OUTPUT LEDS-
Page 20 of
EXPERIMENT # 4
1. INTRODUCTION TO MC68230 PI/T
2. INPUT SWITCHES AND OUTPUT LEDS
1.1 PRE-REQUISITE READING
Please make sure you have completed a MCT3235 as a
prerequisite or read on your own on the M68000 interfacing
from the recommended book in MCT3235.
Please make sure as well you have read the 68000
Microprocessor Trainer Manual Model: GOTT-MP-68K and Page
1 to 15 of Application Board Manual EXP-AP Model: GOTT-MP68K-APPS
These
manuals
are
available
Systems/Microprocessor Labs.
in
the
Digital
1.2 BACKGROUND
PI/T is one of the fundamentals understanding required in
microprocessor M68000 as this is the basic communication
between requirement between M68000 and the external
peripherals.
In order to control the environment various input and output
devices such as switch, sensors, actuators, cylinders and
solenoids are being used. In this experiment, 2 basic input
output are use to simulate an actual sensor/actuators which
are DIP switch and LEDS.
1.2 OBJECTIVES
The objectives of the experiment are:
1. To introduce students to the world of microprocessor and its
interfacing
2. To introduce students on how to program an assembler and
transfer the program into the microprocessor and memory.
3. To demonstrate basic i/o operation and applications, which is
to read input data from 8-bit DIP Switch (SW1) and Output
the results to 8 LEDs (L1 L8)
4.
1.4 EQUIPMENT:
Personal Computer
Main Trainer Board
Serial connector (Between Main Trainer Board and PC)
Page 21 of
Application Board
1.5
PROCEDURE (1):
1. Make sure that you have read Part 3 (Getting Started) of
68000 Microprocessor Trainer manual. If you have any
question in getting started please make sure you ask the
demonstrator/instructor NOW.
2. Check that your communication between Main Trainer
board and PC is now available. Open to page 12-13 for
testing communication link.
3. Open Easy68K assembly. You are supposed to be familiar
with the assembly already by now, since the same
assembler is being used for your assignment given in
module MCT3235 (Microprocessor Based Design). The
same assembler should help you to ensure consistency in
your programming.
4. FOR PART A: Type in the following instruction into your
assembler.
BEGIN
ORG
MOVE.B
MOVE.B
MOVE.B
MOVE.B
MOVE.B
END
$080C00
#$80, $10000D
#$00, $100005
#$80, $10000F
#$FF, $100007
#$00, $100013
BEGIN
Configure port
Configure port
Configure port
Configure port
clear all o/p
A
A
B
B
ctrl
dir input
ctrl
dir output
PROCEDURES (2)
1. Make sure that you have read Part 3 (Getting Started) of
68000 Microprocessor Trainer manual. If you have any
question in getting started please make sure you ask the
demonstrator/instructor NOW.
2. Check that your communication between Main Trainer
board and PC is now available. Open to page 12-13 for
testing communication link.
Page 22 of
READ
ORG
MOVE.B
MOVE.B
MOVE.B
MOVE.B
MOVE.B
MOVE.B
MOVE.B
BRA
$080C00
#$80, $10000D
#$00, $100005
#$80, $10000F
#$FF, $100007
#$00, $100013
$100011, d0
d0, $100013
READ
END
BEGIN
Configure port A
Configure port A
Configure port B
Configure port B
clear all o/p
Read dip switch
output to LEDs
ctrl
dir input
ctrl
dir output
Page 23 of
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
0
0
0
1.5 RESULTS:
Results of the experiment shall be given in assembly codes for
the report. At the same time, students are to demo to the
demonstrator that they have completed the experiment.
CODES
CODES
CODES
CODES
CODES
CODES
CODES
CODES
CODES
PART
PART
PART
PART
PART
PART
PART
PART
PART
A
B
C
D
E
F
G
H
I
Page 24 of
1.6 DISCUSSION:
Discussion should be based on the results that you have obtained
from the experiments, below are some of the questions that
supposed to be discussed in your discussion and analysis.
Identify what you have done line by line
Explain what is happening to the codes
Page 25 of
MICROPROCESSOR
EXPERIMENT 5:
-7 SEGMENTS DISPLAY-
Page 26 of
EXPERIMENT # 5
7-SEGMENTS DISPLAY
1.1 BACKGROUND
One of the important aspects in microprocessor is its flexibility
in change data based on the requirement of the end user. A
Human-Machine-Interface (HMI) is also vital in ensuring that
programs done are base on real scenario and human
interactions.
1.2 OBJECTIVES
The objectives of the experiment are:
1. To demonstrate microprocessor controller 7-segment display
interface.
2. To demonstrate the flexibility and HMI interactive feature
within the microprocessors.
1.3 EQUIPMENT:
Personal Computer
Main Trainer Board
Serial connector (Between Main Trainer Board and PC)
Application Board
1.4 PROCEDURE:
1. Make sure that you have read Part 3 (Getting Started) of
68000 Microprocessor Trainer manual. If you have any
question in getting started please make sure you ask the
demonstrator/instructor NOW.
2. Check that your communication between Main Trainer
board and PC is now available. Open to page 12-13 for
testing communication link.
3. Open Easy68K assembly. You are supposed to be familiar
with the assembly already by now, since the same
assembler is being used for your assignment given in
module MCT3235 (Microprocessor Based Design). The
same assembler should help you to ensure consistency in
your programming.
4. FOR PART A: ONE DIGIT DECIMAL COUNTER
Type in the following instruction into your assembler.
BEGIN
ORG
MOVE.B
MOVE.B
MOVE.B
MOVE.B
$080C00
#$80, $10000D
#$00, $100005
#$80, $10000F
#$FF, $100007
Configure
Configure
Configure
Configure
port
port
port
port
A
A
B
B
ctrl
dir input
ctrl
dir output
Page 27 of
MOVE.B
#$FF, $100011
CLR
BSR
MOVE.L
CMPI
BEQ
ADDI
MOVE.L
BRA
d0
DISPLAY
d0,d1
#$09,d1
DDD
#$01,d1
d1,d0
EEE
DISPLAY
MOVE.L
#$01ff,d5
REPEAT
MOVE.B
MOVE.B
BSR
SUBQ.L
BNE
RTS
#$fe,$100011
d0,$100013
DELAY
#$1,d5
REPEAT
MOVE.L
SUBQ.L
BNE
RTS
#$03ff,d6
#1, d6
DEL1
END
BEGIN
DDD
EEE
DELAY
DEL1
Increment counter
Copy content
Decrement counter
Loop if d5<>0
Page 28 of
1.5 RESULTS:
Results of the experiment shall be given in assembly codes for
the report. At the same time, students are to demo to the
demonstrator that they have completed the experiment.
CODES
CODES
CODES
CODES
CODES
CODES
PART
PART
PART
PART
PART
PART
A
B
C
D
E
F
1.6 DISCUSSION:
Discussion should be based on the results that you have obtained
from the experiments, below are some of the questions that
supposed to be discussed in your discussion and analysis.
Identify what you have done line by line
Explain what is happening to the codes
Page 29 of
MICROPROCESSOR
EXPERIMENT 6:
-MOTOR CONTROL-
Page 30 of
EXPERIMENT # 6
MOTOR CONTROL
1.1 BACKGROUND
There are many types of application that microprocessor have
been used both in the industry as well as service sectors.
Among others were motors to control movement of certain
parameters within the environment. This experiment will help
to demonstrate the use of microprocessors and its interfacing
with a motor.
1.2 OBJECTIVES
The objectives of the experiment are:
1. To demonstrate microprocessor interfacing and control of a DC
motor.
2. To demonstrate microprocessor interfacing and control of a
stepper motor.
3. To demonstrate HMI control in microprocessor.
1.3 EQUIPMENT:
Personal Computer
Main Trainer Board
Serial connector (Between Main Trainer Board and PC)
Application Board
1.4 PROCEDURE:
1. Make sure that you have read Part 3 (Getting Started) of
68000 Microprocessor Trainer manual. If you have any
question in getting started please make sure you ask the
demonstrator/instructor NOW.
2. Check that your communication between Main Trainer
board and PC is now available. Open to page 12-13 for
testing communication link.
3. Open Easy68K assembly. You are supposed to be familiar
with the assembly already by now, since the same
assembler is being used for your assignment given in
module MCT3235 (Microprocessor Based Design). The
same assembler should help you to ensure consistency in
your programming.
FOR PART A: DC motor controlled MOTOR CONTROL
1. A DC motor operation is controlled by simply turning it on or
off, whereby it will either stop or run. The DC motor is
controlled by bits 0 & 1 of port B. The motor stops when both
bits are 11 or 00. The motor moves forward (clockwise) when
the bit pattern if 01 (bit 0 = 1; bit 1 = 1). The motor moves
Page 31 of
ON
DELAY
DEL1
ORG
MOVE.B
MOVE.B
MOVE.B
MOVE.B
$080C00
#$80, $10000D
#$00, $100005
#$80, $10000F
#$FF, $100007
MOVE.B
BSR
BSR
MOVE.B
BSR
MOVE.B
BSR
BSR
BRA
#$01, $100013
DELAY
DELAY
#$00, $100013
DELAY
#$02, $100013
DELAY
DELAY
ON
Forward
Delay
MOVE.L
SUBQ.L
BNE
RTS
#551800, d6
#1, d6
DEL1
Delay counter
END
BEGIN
Configure
Configure
Configure
Configure
port
port
port
port
A
A
B
B
ctrl
dir input
ctrl
dir output
Stop
Reverse
Repeat
Page 32 of
S_ON
DELAY
DEL1
ORG
MOVE.B
MOVE.B
MOVE.B
MOVE.B
$080C00
#$80, $10000D
#$00, $100005
#$80, $10000F
#$FF, $100007
MOVE.B
BSR
MOVE.B
BSR
BRA
#$10, $100013
DELAY
#$40, $100013
DELAY
S_ON
Motor in CW Dir
Delay
Single Step CW Dir
MOVE.L
SUBQ.L
BNE
RTS
#551800, d6
#1, d6
DEL1
Delay counter
END
BEGIN
Configure
Configure
Configure
Configure
port
port
port
port
A
A
B
B
ctrl
dir input
ctrl
dir output
Repeat
1.5 RESULTS:
Results of the experiment shall be given in assembly codes for
the report. At the same time, students are to demo to the
demonstrator that they have completed the experiment.
Page 33 of
CODES
CODES
CODES
CODES
CODES
CODES
PART
PART
PART
PART
PART
PART
A
B
C
D
E
F
1.6 DISCUSSION:
Discussion should be based on the results that you have obtained
from the experiments, below are some of the questions that
supposed to be discussed in your discussion and analysis.
Identify what you have done line by line
Explain what is happening to the codes
Page 34 of
ROBOTICS
EXPERIMENT 7:
-UNDERSTANDING MANUAL
AND AUTOMATIC
OPERATIONS OF
INDUSTRIAL ROBOTS-
Page 35 of
EXPERIMENT #7
UNDESTANDING MANUAL AND AUTOMATIC
OPERATIONS OF INDUSTRIAL ROBOTS
OBJECTIVES
To manually operate DENSO Robot for certain task using teaching pendant.
To manually operate FANUC Robot for certain task using teaching pendant.
To manually operate YASKAWA MOTOMAN Robot for certain task teaching pendant.
INTRODUCTION
Manual operation refers to direct operation of the robot from operating panel or teaching
pendent. In manual operation mode, there are three types of operation modes available:
a) Joint Mode: used to specify movement of each individual joint of the robots
b) X-Y Mode: the joint of the robot moves simultaneously as to create a motion along the 3
major axis X, Y and Z-axis.
c) Tool Mode: is which specifying movement of the robots hand relative to a frame attached
to the hand
PROCEDURE
The "Manual Operation" and "Valve Operation" was used to transfer three balls from left to
right with DENSO Robot. The operation was done in different modes which are, Joint Mode and X-Y
Mode. Then, the differences in movement are noted in the data sheet.
In the robotics lab, there are nine robots equipped for this course. Students have to practice the
movement of various robot based on different modes. The modes available are Joint mode and X-Y
mode.
Page 36 of
Page 37 of
X-Y Mode
The movement is simultaneously for all joints in
single operation
The motion is not linear (circular or curve)
Interference between two axis will cause damage
single operation
The motion is always on a straight line.
to the motor
To familiarize different kind of teaching pendant due to different robot given a set manual for
the students to read, in industry this is also called On Job Training. (OJT).
To manually operate Fanuc robot for certain task in Joint or X-Y mode using teaching pendant
and to get familiarize with the robot components.
To move the robot end effectors/gripper from one end in manual mode. (The main reasons
here are to identify similarity/differences between DENSO and Fanuc)
Page 38 of
PROCEDURE
1.
The "Manual Operation" is used to move the robot gripper/welder and effectors from right to
left, and then left to right. First in Joint Axis, and then in Rectangular.
2.
We searched from the "Fanuc Manual" in appendix C on how to identify the coordinate of the
current position that we are in. The position is then written down. The robot was moved again
in about L and inverted L shape and the coordinate of the new position is noted.
RESULTS
Coordinates Identified From Different Positions:Current Position
L Shape
Inverted L Shape
J1 = -57.322
J1 = -55.239
J1 = -55.239
J2 = -2.523
J2 = -3.161
J2 = -2.607
J3 = 93.791
J3 = 176.3
J3 = 0.202
J4 = 178.682
J4 = 178.682
J4 = 178.082
J5 = 1.360
J5 = 1.36
J5 = 1.36
J6 = -0.974
J6 = -0.973
J6 = -0.973
Page 39 of
Functions
Controls the line. This unit starts the robot control unit by calling a program.
Hand
done by machine by moving its entire axis in small amount to confirm their current positions. It is
performed right after turning ON the controller before using the robot. The Fanuc robot used is of
Articulated type of configuration coordinate frame because all the joints revolute without any prismatic
motion.
Page 40 of
Upon operating the Fanuc Robot, the sequences of key operations are as follows:Operation
Tasks
1. Turn on the circuit breaker of the control unit.
Power-on Procedure
2. Press the power-on button on the operator's panel. The lamp on the
power-on button goes on.
1. Create a program on the program directory screen. Select "SELECT"
Selecting a Program
from the screen menu, or press the select key to display the program
directory screen.
2. Select a target program, then press the ENTER key.
1. Select a jog mode (which is X-Y Mode). Press the COORD key to
Jogging
2. Start the robot by Jogging. Press a jog key while holding down the
SHIFT key. The robot stops jogging when either the SHIFT key or jog
key is released.
1. Teach a program on the program edit screen. Select EDIT from the
screen menu or press the EDIT key to display the program edit screen.
Teaching Move
Statements
In this experiment, we have also seen both Joint-axis and Rectangular mode for Fanuc. The
motions of both configurations are of similar to the Denso robot. The joint axis mode directs the robot
axes (joint axes) by manipulating corresponding keys on the teach pendant. While the rectangular mode
moves the robot rectilinearly along the axes of a Cartesian coordinate system.
Page 41 of
Page 42 of
ROBOTICS
EXPERIMENT 8:
-OFF-LINE AND ON-LINE
PROGRAMMING OF
INDUSTRIAL ROBOT-
Page 43 of
EXPERIMENT #8
OFF-LINE AND ON-LINE PROGRAMMING
OF INDUSTRIAL ROBOT.
OBJECTIVES
To operate the DENSO robot for certain task with on-line programming using teaching
pendant.
INTRODUCTION
Programming aims to express the operation procedure with language (command). A program
is defined as a chain of flow between beginning of operation and the end of operation. Its possible to
create a maximum of 100 programs and name them PROGRAM 1 to 100. Program is created through
teaching pendent and it is saved in robot controller. There are two types of programming to operate
DENSO robot:
a) Online programming : Using teach pendent
b) Offline programming : Using WINCAPS software
PROCEDURE
As shown in the figure, an online programming is used to program the robot using the unoperational and operational command to move the ball from location A to B:
FOR PICK AND PLACE ROBOT
Page 44 of
Manual Mode
1.
The robot controller is turned ON. Manual mode is set. The teaching pendant is then used to
start the motors. The robot is calibrated. The speed is set to 30% and the working mode is
chosen (either Joint mode or X-Y mode).
2.
Any subroutine in the controller memory location 1 and 2 is deleted if there is any.
Page 45 of
Subroutine 1 is created for chuck close, Subroutine 2 for chuck open (refer to supplementary
manual), or the available subroutine is used if any.
4.
5.
6.
The un-operational and operational command is used to drive the desired motion (refer to
supplementary manual)
7.
The mode is changed to TEACH CHECK mode and the movement of Program 1 is checked.
The speed is set to 20% during this check. All three types of check is then checked; those are
FWD CHECK, BACK CHECK and CYCLE CHECK.
Auto Mode
3.
The Auto mode is set, the motor is started, the robot is calibrated and finally, the desired speed
is determined.
4.
5.
The program is run first in step mode, then in cycle mode. A note of the differences between
the two modes is made.
6.
The robot's speed is increased to a safe speed and the pick is repeated and placed for 20 times.
The differences are noticed. The datum for the object to be pick and place are made sure to be
the same for this observation. The observation is written down in the data sheet.
SAMPLE PROGRAM
Page 46 of
The robot repeatability problem can be solved while programming by putting small amount on
the internal speed and make the time for the robot motion become longer. The difference between the
step and the cycle mode are explained in the diagram below.
VS
Page 47 of
Page 48 of
Editing Operation:
1. Create a new program
2. Insert: Insert a command to create program [INSERT]
3. Deletion: Delete a command from created program [DEL]
4. Display: Display the command of created program [FWD, BACK]
Display the current coordinate of robot [DISP]
5. Copying: Copying the program to another program [COPY]
6. Changing: Changing the numerical value of a command [CHG]
Change the position of a motion command.
PROCEDURE
7.
8.
The step is displayed so that the previous command can be edited using forward or backward
check. The given manual given manual is referred.
9.
The point B is changed to point C. The subroutine will not be included because it is a drilling
robot. The needed position is set and the desired location is edited for drilling.
10. The speed is set to 1000rpm before drilling, and then reset to 500rpm.
11. After the command is changed, the movement is checked by using teach mode and auto mode.
12. The speed is set to 500rpm after moving to another location.
13. The entire program is copied into PROGRAM 2. The manual is referred on how this step
could be achieved.
14. The programs 1 and 2 are edited so that it could run in loops.
15. 20 loops of both program 1 and 2 are run. The difference in timing is noted. All results are
recorded in data sheet.
Page 49 of
RESULTS
DISCUSSION & CONCLUSION
This experiment shows the significance of understanding on how to edit and change the
program sequence upon different cases according to variety of situations. This is important because
different type of product's design requires different type of motions for the machine to perform their
operation. At the same time, we do not want to waste more money and time to change the machines
when different parts are on the production line after a period of time. Therefore, the program should
always be flexible and easily edited in order to suite the variety of products and increase the efficiency
of the process executed by the program.
Below is the process flow of the edited program:ISP 100 : Set ISP to 100
APR E 50 : Move the chuck above the point A
MV E 50 : Move to point A
DEP P 50 : 50mm up
The changed
location
DEP E 50 : 50mm up
Page 50 of
situations if it get in contact with any human because of the extra speed differing to low safety risk
when the speed is slower.
This process of editing is very crucial in the industry. For example, in the manufacturing
industry, while performing assembly of parts. Those different parts require different type of motions
path for them to be fastened or inserted to the right position. Therefore, at different times, the machine
needs to be informed by editing the program with a slight different path command in order to handle
the process effectively.
As a conclusion, the experiment went well and we have basically achieved the main
objectives. We have understood on how to do editing on the programming as required and how does
this application come in handy in the industry itself.
Page 51 of
ROBOTICS
EXPERIMENT 9:
-DEVELOPING AN
AUTOMATION SYSTEM AND
TESTING THE SYSTEM-
Page 52 of
EXPERIMENT #9
DEVELOPING AN AUTOMATION SYSTEM
AND TESTING THE SYSTEM
OBJECTIVES
To branch the program run order to optional step depending on the interfaced signal with the
robot controller input slow using branch instruction JUMP.
PROCEDURE
16. The robot has been fixed with a sensor on its gripper. The gripper will be detected by the
sensor whether it is in closed condition or in open condition. Each sensor is used to identify an
individual condition of closed and open.
17. The ports being used by the sensor are input port number 1 and input port number 2. Short
program identifies is used in order to detect whether port 1 or port 2 is for open or close
condition. The codes are written in the data sheet.
18. Upon identification of the ports for open or close. A program is created to move the parts as
follows using online programming to program the robot so that the ball is moved from
location A to B as shown in the figure below:
19. Include a JI / JZ command in the program to make sure that when a gripper is open, an open
gripper sensor status is checked before it is moved to the next sequence and when a gripper is
closed, the close gripper sensor status is checked before it is move to the next sequence.
20. Through the process that has been programmed earlier, typical cross check mechanism is
created. In next sequence, assuming that the gripper is closed, but the close gripper sensor did
not detect. The program is inserted/edited to include in such a way that the robot would in
sequence:
a) open the gripper
b) check the open gripper status
c) move up
d) move down
e) close the gripper
f) check the close gripper status
g) move the part to another position and so forth
21. The program should run in a loop when the sensor is not triggered. This could be observed
using a teach check mode and moving forward through the programs. Checking the looping
issues within the programs.
RESULTS
Program 11
0010 LABL 7
0020 APR E 50
0030 JI 1-10
Page 53 of
0040 SUB 5
0050 LABL 8
0060 MV E JI=5.38
0070 SUB 10
0080 DEP E 50
0090 APR P
0100 MV E JI=19.48
0110 SUB 5
0120 DEP E 50
0130 JMP 5
0140 END
DISCUSSION & CONCLUSION
This experiment shows the significance of JUMP command instruction while operating a
robot. For the robot system, the inputs are from the switches, proximity, pressure, photoelectric. While
the output accessories are the solenoids, relays and indicator lamps.
The proximity sensors are the input device used to ensure the availability of the pen. They are
able to detect the presence of nearby objects without any physical contact. A proximity sensor often
emits an electromagnetic or electrostatic field, or a beam of electromagnetic radiation (infrared, for
instance), and find for changes in the field or the return signal. The sensor or input should be identified
by the program because the robot will only operates when there are interactions between hardware and
software, space complexity in terms of the memory limitations of the robot's controller, and time
complexity in terms of the speed of the robot's action decisions. Without all these systems, the robot
cannot operate accurately.
It is observed that the robot in the lab has been equipped with optical proximity sensor. It can
detect the presence of nearby objects without any physical contact. This robot can detect the existence
of the part/product to-be-pick during pick and place programming when its receiver receives the signal
from the transmitter. The receiver and transmitter are usually placed at the hand of the robot arm or at
the end effectors. Input Voltage: 20 to 132 Vac.
The two sensors -one for open and one for close- is rather important to the system, because
when the close sensor detects an object; it will close within the certain time according to programming.
Then, the close sensor will detect the thing that it is holding until the thing being released. That means
close sensor cannot be used to detect other signal. Therefore, one more sensor should be put to detect
the place where to put the thing. When 2 sensors detect an object in the close range it will send the
signal to the close sensor to open the gripper. The process is vice-verse.
MANDATORY QUESTIONS
1.
Infrared Sensor this sensor react to the intensity of light projected on them by
changing their electrical resistance. The port for this sensor is on the conveyor. When
the infrared sensor detects the pear on the conveyor, the robot will automatically
activated and pick up the pear which is place between the transmitter and receiver.
Page 54 of
b) Tactile Sensor This is a touch sensor device that sends a signal when physical
contact has been made. The sensor will detect the hardness of the pear. This sensor
will be put at the gripper of the robot, the gripper will give a small pressure during
picking process, if the pear does not follow the specification hardness which has been
set it will consider as old or spoil. Then the pear will be put into the reject basket
meanwhile if the pear meets the hardness specification it will go to further inspection.
c)
Camera sensor This sensor will detect the color of the pear. If the color is green it
will be put into the GREEN basket and if the pear is yellow in color, it will be put
into the YELLOW basket. The sensor also being put nearer to the gripper.
Page 55 of
2.
Start
N=24
Cube on
conveyor
Y=0
Upper conveyor
Close chuck
N=24
Acceptable?
Tactile sensor
Hardness test
Y=0
Page 56 of
N=24
Differentiate
Reject
(Camera)
Y=0
Mechatronics Engineering Lab III Manual
BLACK basket
3. Program
0010 LABL 10
End
0020 JZ 24-10 (wait for workpiece-infrared sensor)
0030 APR E50 (upper conveyor)
0040 MV E (moving to chucking point)
0050 SUB 1 (close chuck)
0060 JI 24-11 (Detect OK or NG signal-tactile sensor)
0070 MV E (moving to camera sensor )
0080 JZ 24-12 (detect color yellow or green-camera sensor)
0090 MV E (moving to GREEN basket)
0100 SUB 21 (Discharging)
0110 JMP 13
0120 LABL 11
0130 MV E (moving to REJECT basket)
0140 SUB 20 (Discharging)
0150 JMP 13
0160 LABL 12
0170 MV E (moving to YELLOW basket)
0180 SUB 20 (Discharging)
0190 LABL 13
0200 END
4. The important of input and output in the robotic system are:
a) Easy for human to communicate with the robot.
b) Input of the robot is sensor and switches. They will collect information about the internal
state of the robot or to communicate with outside environment.
c) Output of the robot is solenoids, relays and indicator lamps. They will do the process that
has been process in the robot system and follow the command from the input.
Page 57 of
A list of binary sensors and actuators, along with the interpretation of their 0 and 1 values are
shown in Table 8.1.
The purpose of the controller is to coordinate the various actions of the physical system, such
as transferring parts into the workholder, feeding the machining workhead, and so on.
One/Zero
Sensor
Interpretation
Contact/no contact
On/off
Limit switch
Photo-detector
Push-button
One/Zero
Motor
Control relay
Interpretation
On/off
Contact/no contact
switch
Timer
Control relay
On/off
Light
On/off
On/off
Contact/no contact
Valve
Clutch
Circuit breaker
Contact/no contact
Solenoid
Closed/open
Engaged/not engaged
Energized/not
energized
logic control, which is concerned with event-driven changes in the system; and
The robot knows when a jig is at its place, completed its task such as drilling, identifying bad units
or welding by using the sensor which is located at certain check point in the PLC line system.
There are a lot of sensor being used in PLC system such as light and infrared sensor, touch and
tactile sensor, proximity sensor, range finder, sniff sensor, vision system and many more.
Page 58 of
Appendix A:
FINAL LABORATORY PROJECT REPORT
Reports Title Page
GROUP NUMBER : 1A
GROUP MEMBERS:
NO:
1. RAHISHAM ABD RAHMAN,
2. MUHAMMAD FAHMI ISMAIL
3. WAN MUHAMMAD IMRAN
4. FAZRI IDRIS
MATRIC
4080484
4271276
4120678
4090974
DATE OF SUBMISSION
Tuesday, 7th May 2012
Page 59 of
Appendix B:
PART C
Appendix C:
Read
Understand
Agree
Introduction and calculation
Read
Understand
Agree
Graphs and procedures
Read
Understand
Agree
Conclusion and discussion part A
Page 2 of