Professional Documents
Culture Documents
It is difficult to summarize robotics safety because industrial safety varies depending on the specific
company, application and jurisdiction. Many of the robot safety guidelines that are implemented to
safeguard a company, facility or machine are found in the ANSI/RIA R15.06 safety standards. This
document is updated yearly, but a review of the Chapter 3 Definitions indicates the scope of the
standard, and provides talking points for a general review to students and operators.
1
2
3
The article on the next page was written in preparation for implementation of ANSI/RIA R15.06,
and provides a good summary of some of the safety methods that may easily be implemented in a
high school or college robot training course.
A fun safety video to watch that is related in industrial robots is on the Willow PR2 located at:
https://www.youtube.com/watch?v=9OQK_h6ZB6Q
The following Practical Robot Safety assignment can be given at the start of each year.
Read “Practical Robot Safety” and use complete sentences to list 15 safety methods
designed to protect the people who may come into contact with the Robot. I.e. Do
not let unauthorized people within the work envelope of the robot.
Robot 2 & 3
Read “Practical Robot Safety” and give specific examples of the 15 safety methods
that relate to last years lab activities. I.e. The operating limits of the robot should be
known. Example: The skate wheels cell had a gripper that weighed too much and
was beyond the operating limits of the robot. The robot didn’t work correctly.
4
5
6
7
Practical Robot Safety Answers
8
Intro to Robot & Robot 1
Read “Practical Robot Safety” and list 15 safety methods designed to protect the people who may
come into contact with the Robot. Ie. Do not let unauthorized people within the work envelope of
the robot.
Robot 2 & 3
Read “Practical Robot Safety” and give specific examples of the 15 safety methods that relate to
last years lab activities. Ie. The operating limits of the robot should be known. Example: The
skate wheels cell had a gripper that weighed too much and was beyond the operating limits of the
robot. The robot didn’t work correctly.
1. Guarding, usually some type of six foot fence goes around every robot.
2. Access gates are interlocked so motion is stopped immediately when an employee opens a gate
during the run cycle.
3. An amber light on every robot is lighted whenever drive power to the robot in on. A red strobe
light is on when the robot is in the teach mode and interlocks are disconnected.
4. Two disconnects are provided so the encoder can remain energized and only the connection to
the drive power is locked out.
5. The master control panel is mounted outside the working envelope, and outside the guards.
6. The robot should be in sight of the control panel.
7. Robot movement is restricted only to the amount of space that is needed to do a particular job.
8. Dimensions of the robot work envelope are painted on the floor, where possible.
9. An emergency stop is installed on the teach pendant.
10. Install emergency stops outside the workcell.
11. Operate the robot at slow speeds in the manual teach mode and restrict speed of the robot to 15-
20 inches per second.
12. Axes are marked on the teach pendant to correspond to the direction buttons.
13. Signs warn of special hazards, such as when the worker may be in the working envelope of two
robots.
14. Electrical interlocks prevent two neighboring robots from being in the teach mode at the same
time.
15. Install pressure sensitive mats in the work cell to shut down the robot arm when a danger zone is
about to be entered.
16. Magnetic field detectors – a robot with this device has antennas that put out a magnetic field to
sense if the robot arm is approaching danger.
17. Light curtains may be used to stop the robot arm if someone intrudes into the work area, or if
the robot arm breaches the work area.
18. Lock front and back control doors.
19. Lock power switches to control panel and welding power supplies.
20. Use explosive proof switches when appropriate.
21. Equip the operator with protective clothing and equipment.
22. Use monitors to scan for harmful atmospheric gases.
23. Program a safe point for reentry into the workcell.
24. Simulate welding torch movement before striking the arc.
25. Install interlocking switches to welding jigs and fixtures to indicate safe clamping and removal.
26. Zone 1 is the robot’s work envelope. Zone 2 is the operator’s work area. Zone 3 is the space
outside the workcell.
Name _____________
9
Robotics Safety Test
1. T or F The two most important safety practices in the shop are the wearing of safety
glasses and attitude.
2. T or F The robot does not need to be in sight of the control panel.
3. T or F You don’t need the safety signs in the area of two robots when the
disconnects are engaged.
4. T or F All front and back door control panels need to be locked.
5. T or F An amber light on every robot is on when the main drive power is on.
6. T or F You need to have emergency switches outside the work cell.
7. T or F Entrance gates do not need to have interlock switches.
8. T or F An emergency stop is installed on the teach pendant.
9. T or F The robot movement should be restricted to the movement of the particular job.
10. T or F Mechanical stops may be used when the robot exceeds a danger zone.
11. T or F You should use explosive proof switches in volatile areas.
12. T or F You do not need protective clothing because the robot will be doing the work.
13. T or F Dimensions of the robot work envelope are painted on the floor.
14. T or F In guarding, usually a six foot fence goes around the robot.
15. T or F Signs are only for the visitors and are not needed for the regular personnel.
16. T or F You can always trust a good technician when it comes to safety because
he/she has a lot of experience.
17. T or F Limit switches may be used to stop a system before a danger zone is reached.
18. T or F The amber light is not needed when in the teach mode and the disconnects are
all disabled.
19. T or F The first time and in the teach mode the speed is limited to a slower rate.
20. T or F Axis are marked on the teach pendant to correspond to the direction buttons.
21. T or F A safe point for reentry to the program should always be in the cycle.
22. T or F You are ultimately responsible for the safety of yourself, others and the robot.
23. T or F Single point control is not needed when teaching.
24. T or F The restricted space is the portion of the maximum space to which a robot is
restricted by limiting devices.
25. T or F An interlock is an arrangement where the operation of one control allows or
prevents the operation of another.
Industrial robots have three main parts. Perhaps the most recognizable component is the
mechanical arm to which the end of arm tooling (gripper, welder, paint sprayer, etc.) is attached to.
10
The robot controller is the part of the system that coordinates the output movement of the
mechanical arm and field devices and also processes inputs from the sensors. The power supply
provides electricity for the controller and the power needed to drive the motion of the mechanical
arm. The Scorbot arm utilizes electric motors coupled to gears and belts to move the arm through a
programmed trajectory.
The analogy of a robot to a human is that the mechanical arm is your body. Your body converts the
food you eat into energy, which allows your muscles and ligaments to move the different parts of
your body in motion to complete the task you are working on. The robot controller is the brain and
utilizes input sensors such as your eyes, ears and touch to make decisions in order to perform
outputs such as talking and walking.
11
Mechanical Arm – The Scorbot robot arm will most likely be blue (ER4u) or green
(ER4pc), although orange (ER3), red (ER2u) and gray (ER5+) arms also exist.
Find the model of your Scorbot printed on the robot and circle the type of arm that
you are using from the list below. Note the ER5 model designation is a Roman
Numeral V or V+. Circle the robot arm you are using:
If you have an ER3 or ER5, this procedure will not work for homing.
Controller – Trace the cable coming from the robot into the controller. Be sure the
robot connection to the controller is tight. NEVER CONNECT OR
DISCONNECT THE ROBOT CABLE WHEN THE CONTROLLER IS ON.
Your controller may be a metal enclosure approximately 1 foot square by 6 inches
high or it may be a larger metal enclosure approximately 2 foot square by 6 inches
high. The type of controller is indicated on the back where the cable connects.
Circle the type of controller you have:
If you have an ER3 or ER5 controller, this procedure will not work for homing.
Computer – This may be a laptop or desktop depending on the model and will be
used to startup, program and run the robot.
Computer Controller Cable – Trace the cable coming from the computer to the
robot controller. Some computers utilize a USB computer cable that connects to a
USB port on the robot controller (ER4u). Some computers will utilize a USB
computer cable that connects to the 25 pin robot controller port (ER5+). Some
computers utilize a 9 pin computer port that connects to the 25 pin robot controller
port. Some computers utilize a large 50 pin cable that connects to a 50 pin robot
controller port (ER 4pc). Be sure these cables are tight and circle your
connection:
Power Supply – Be sure the power cables for the computer, monitors and controller
are plugged in.
5. Once the “combo” screen is loaded, select OPTIONS and then ON-Line
to initialize the controller.
6. Select the “House” icon to Home the robot. This will take a few
minutes as the cams on the robot arms / axis find the limit switch.
13
7. Move the robot around by clicking and holding down the axis controls.
Example: clicking and holding 1 will cause the robot to rotate the
base. Clicking and holding Q will cause the robot to rotate the base
the other direction. You may also use the computer keyboard or
teach pendant to move the individual axis.
1 – Base
2 – Shoulder
3 – Elbow
4 – Wrist Pitch
5 – Wrist Roll
6 – Gripper Open and Close
10. Run the program single step, then single cycle then continuous
14
Upon Completion of the activity you should be able to:
1 GP 1 s5
2 GP 3 s5
3 GP 2 s5
4 GP 1 s5
5 GP 2 s5 or whatever order you need to call the positions.
Project 1 – Robot Positioning
Industrial robots utilize closed loop, feedback control to operate at a specific speed and trajectory.
As the Scorbot controller executes the program to move through the positions you have taught,
optical encoders monitor the progress of the robot arm and send signals back to controller.
15
The robot controller counts the number and frequency of signal pulses in order to adjust the robot
velocity and stop the arm at specific locations. For example, the command GP1 (Goto Position)
might required motor 1 to turn through 2718 signal pulses in 6.7 seconds, motor 2 to turn through
1819 signal pulses in 6.7 seconds and motor 3 to turn through 2111 signal pulses in 6.7 seconds.
The signal pulses could be recorded from the HOME position.
The homing of the robot is important because this moves the robot to a set location and zeros the
signal pulse counts.
You can check the encoder counts as you move the robot arm to witness the counting of the signal
pulses. Select View then Dialog Bars then Encoder Counts. The values appear at the bottom of the
screen.
Each Scorbot axis has a limit switch that is activated by a rotary cam. When homing, the Scorbot
finds each of the limit switches to return to the same homing position each time.
16
Many industrial robots have absolute encoders that retain their value because they connected to a
batter backup. In the event of a battery backup failure, these robots also must be “homed” or
“calibrated” to a set reference position similar to the way Scorbot is prior to each use.
There are two other ways that industrial robots store the locations of the positions that are taught.
One such way is joint angles. For example the Scorbot base could be rotated through an angle of 91
degrees, the shoulder could be rotated through an angle of 42 degrees and the elbow could be
rotated through an angle of 21 degrees. This would locate the end of arm at a specific location
relative to the mounting of the base. You can see the joint angles by selecting View then Dialog
Bars then Joints. The values will appear at the bottom of the screen.
A final way positions are recorded are Cartesian coordinates of the tool center point. The end of the
gripper could be located at 18.1” in the x direction, 9.7” in the y direction and 6.3” in the z
direction. The pitch could be 45 degrees and the roll 21 degrees. This description provides a single
point where the gripper would be located relative to a specific origin. The origin and Cartesian
system are often located from the base of the robot. You can see the Cartesian coordinates by
selecting View then Dialog Bars then XYZ. The values will appear at the bottom of the screen.
APPROACH #2 APPROACH #4
SAFE #1
STACK PALLET
ORDER OF POSITIONS: 1 2 3 2 4 7 4 2 6 2 4 5 4 1
Safe Position – A location free of hazards where the robot idles while awaiting
movement commands. (Use GP fast commands)
Stack – A location that will receive moved parts from the pallet.
Approach – Slow, linear movement from a “safe” location close to a stack or pallet.
(Use GP, Speed 3)
Depart – Slow linear movement away from a stack or pallet to a “safe” location. (Use
GP, Speed 3)
Student Procedure:
Create Diagram of 7 positions. (provided on the lab cover sheet)
Write out program. (should be 19 lines without remarks)
1. GP 1, fast Safe location
2. GP 2, fast Pick approach above blocks
3. OG Open Gripper
4. GP 3, s 3 First block pick location
5. CG Close Gripper
6. GP 2, s 3 Pick depart above blocks
7. Etc, etc, etc.
Pos Describe
1 Safe
2 Pick Approach
3 Pick Block 1
4 Drop Approach
5 Drop Block 1
6 Pick Block 2
7 Drop Block 2
Instructions:
1. Move the robot to each of the 7 positions from project 1 and have your partner
help record the positional data.
20
Position 1:
Joint: Base ____ Shoulder ____ Elbow ____ Pitch ____ Roll ______
XYZ: X ____ Y ____ Z ____ Pitch ____ Roll ______
Encoder: 1 ____ 2 ____ 3 ____ 4 ____ 5 ______
Position 2:
Joint: Base ____ Shoulder ____ Elbow ____ Pitch ____ Roll ______
XYZ: X ____ Y ____ Z ____ Pitch ____ Roll ______
Encoder: 1 ____ 2 ____ 3 ____ 4 ____ 5 ______
Position 3:
Joint: Base ____ Shoulder ____ Elbow ____ Pitch ____ Roll ______
XYZ: X ____ Y ____ Z ____ Pitch ____ Roll ______
Encoder: 1 ____ 2 ____ 3 ____ 4 ____ 5 ______
Position 4:
Joint: Base ____ Shoulder ____ Elbow ____ Pitch ____ Roll ______
XYZ: X ____ Y ____ Z ____ Pitch ____ Roll ______
Encoder: 1 ____ 2 ____ 3 ____ 4 ____ 5 ______
Position 5:
Joint: Base ____ Shoulder ____ Elbow ____ Pitch ____ Roll ______
XYZ: X ____ Y ____ Z ____ Pitch ____ Roll ______
Encoder: 1 ____ 2 ____ 3 ____ 4 ____ 5 ______
Position 6:
Joint: Base ____ Shoulder ____ Elbow ____ Pitch ____ Roll ______
XYZ: X ____ Y ____ Z ____ Pitch ____ Roll ______
Encoder: 1 ____ 2 ____ 3 ____ 4 ____ 5 ______
Position 7:
Joint: Base ____ Shoulder ____ Elbow ____ Pitch ____ Roll ______
XYZ: X ____ Y ____ Z ____ Pitch ____ Roll ______
Encoder: 1 ____ 2 ____ 3 ____ 4 ____ 5 ______
Essay: Which positioning method appears to produce the most dramatic change in values from
position to position? Why do you think this is?
Industrial robots are utilized in a variety of different application due to their ability to be accurate
and repeatable. The definitions are different.
Accuracy – The ability of a robot to move to a specific point. The Scorbot is accurate to .02”
depending on the payload that the gripper is carrying. The Scorbot has a maximum payload of 2.2
lbs. Attempting to move objects greater than 2.2. lbs will reduce the robots accuracy. Increasing
the speed will also reduce the accuracy of the robot.
21
Repeatability - The ability of the robot to return to the specific point on each cycle of the program.
This definition is similar to Accuracy, but is different because it defines accuracy over a repeated
number of cycles. If is better to be more repeatable than more accurate. For example, if a robot
“misses” the taught position by .02” in the x-direction every time, then the programmer can adjust
for this anticipated error.
If you are attempting to position small parts that require accuracy that is greater than .02”, other
techniques such as passive compliance will need to be incorporated. Some industrial robots are
much more accurate than the .02” of the Scorbot.
An understanding of the Degrees of Freedom and the axis is important to understanding robot
positioning. Each joint or movable axis on the robot arm represents a Degree of Freedom (DOF).
Thus the Scorobt has 5 degrees of freedom (base, shoulder, elbow, pitch, roll) plus gripper control.
A robot with 6 degrees of freedom adds yaw, in addition to pitch and roll, to the wrist providing
movement similar to the human wrist.
The axis are categorized into two groups, the position axes which are base, shoulder and elbow and
the orientation axes which are pitch, roll, yaw. The position axes are usually much more sturdy
than the orientation axes and can move larger payloads through a trajectory with higher accuracy
and repeatability. The robots accuracy is usually limited by the ability of the orientation axes as
these are used to finely define a programmable point and are affected by greater payloads.
When teaching, the orientation axes (axis 1, 2, 3) are driven in joint mode to move the robot arm
very quickly to approximate locations. The approximate location of the orientation axes (4,5) are
also set using joint mode.
Once the robot position has been approximated, it helpful to switch to World (XYZ) mode or Tool
(XYZ) mode to move the robot in the Cartesian plane to determine exact robot positions.
22
Referencing the above pictorial, World (XYZ) mode is determined by the Cartesian coordinate
system located as the base. The Cartesian Scorbot robot movement is accomplished by selecting
XYZ instead of JOINT.
It is useful to move the robot in the XYZ mode but change back to JOINT prior to teaching the
position as this results in less math for the robot controller resulting in faster robot movement.
Referencing the above pictorial, TOOL mode aligns the Cartesian coordinate system such that it
moves in the direction of the gripper or tool center point. This is particularly useful because the
robot will move linearly in the direction of the tool which makes teaching part insertion easier. The
Scorbot is not capable of operating in TOOL mode but industrial robots typically are.
23
Purpose To see the accuracy of your robot positions using repeatability.
Instructions:
1. Complete the lab using the following grading criteria.
C = correctly running program with: hand written program + printed program
with diagram of positions and program remarks
B = Include Flow Chart using Inspiration or have cycle time under 100
seconds with accurate block placement.
A = Include Flow Chart using Inspiration and have cycle time under 100
seconds with accurate block placement.
2. Save your flow chart and program to your flash drive.
Process:
Procedure:
Write the program out on a piece of paper (Hint: It’s between 35-40 lines not
counting remarks)
Move the robot in JOINT mode to the approximate block locations and switch to
XYZ mode to teach exact positions. Teach position 6 first. Then move the robot
slightly in the X direction to teach position 3. Then move the robot slightly more in
the X direction to teach position 2. Switch back to JOINT mode and swing axis 1
only to the drop location. Switch to XYZ mode and teach the positions in this order
4 then 7 then 5.
You should be able to rapidly teach the positions using this method.
24
3 Times = 40 x 3 = 120 Lines. This is a long program.
Or:
Use Counters:
1. Set Variable A = 0
2. GP #1 Speed Fast
3. Label: Loop
4. GP #2 Speed Fast
5. Wait 10 (1 sec)
6. GP #3 Fast
7. Set Variable A = A+1
8. If A < 4 Jump to Loop
Labels must have the same case and spacing. LOOP1 is not the same as LOOP 1.
Be sure you have selected Level 3 or Pro for additional programming commands.
Don’t forget to use JOINT mode to get close. And then use XYZ mode to move in the Z direction
to make block placements on top of each other perfect. If block placement is not perfect, the blocks
will get misplaced over the course of 3 runs back and forth and will no longer sit on top of each
other.
Use the Goto Position Linear (GL) to increase accuracy when approaching and departing.
Create the Flow Chart, Diagram of Positions and write the program first. Once this is signed off by
the instructor, utilize you partner to quickly code the program into the computer and teach the
positions.
Add REMARKS to your program after you have entered it into the computer.
25
26
Scorbot 2 – Final Project
Student Name
Date
Contact sensors require physical contact to activate the sensor. The most common contact sensor is
a limit switch that must be pushed to activate. The doors on your car have limit switches that turn
off the interior lights depending on if the door is open or closed.
Non-contact sensors activate if something comes within a range of the robot. The most common is
proximity sensors that might sense an object if it comes within an inch of the sensor. Optical
sensors, magnetic sensors and sound sensors are also non-contact sensors. The door to a hardware
store has an optical sensor on it that senses your presence and opens or closes the door depending
on if you have entered the doorway threshold.
Process monitoring sensors may be either contact or non-contact and return information about the
status of the robot. Temperature, pressure and vision systems are examples of process monitoring
sensors. A door to a secure building might have a vision system that scans your face, retina or
fingerprints to determine if you are someone who should be allowed access to the building.
Below is a comparison of some types of sensors that provide information to a robot controller or the
human brain.
Sensors can further be classified as digital or analog. Digital or Discrete sensors only have two
states which are typically ON or OFF. Engineers classify these states at HIGH or LOW and robots
analyze the state in a binary sense as 1 or 0. Analog sensors have an infinite number of values or
28
states and usually categorized as transducers. A thermometer is a good example of an analog device
as today the temperature might be 78 and tomorrow it might be 76. The resolution is also important
when defining an analog sensor. The thermometer might record a temperature of 76, 76.15 or even
76.1578 degrees depending on the resolution. Changes in temperature with a high resolution
thermometer will provide infinite values or states.
Scorbot inputs 1-8 on the ER4 controller and inputs 1-16 on the ER5 controller are digital and are
configured as sourcing. This means that one side of the digital input must be sunk to ground.
Directly jumping the input terminal to the ground terminal will activate the input.
The ER4 digital inputs 1-8 are shown above with the ground connection directly below them.
Shown below is the electrical schematic for connecting a pushbutton to Scorbot input 3.
It is often useful to use an input common if components such as pushbuttons are located in close
proximity to one another. Incorporating a common saves wire and time because a single wire acts
as the sink for every input. Show below is the electrical schematic for connecting 3 pushbuttons to
Scorbot inputs 1, 4 and 7. Schematics created using free software at digikey.com.
29
The construction of a pushbutton input / output board is recommended in order to complete the
Scorbot labs included in the book. The plans for such a board are shown below using the following
wiring color scheme where Blue is -VDC and Red is +VDC.
Input Ground = Blue, Inputs = Yellow, Output Common = Red, Outputs = Green
The I/O field devices (lights and switches) are drilled at 1” spacing. A 8” x 4” x ¾” plywood based,
which is wood screwed to a 8” x 3” x ¼” plywood panel works good and is easy for the students to
make. A 10 slot contact block is mounted and wired as shown.
An I/O board similar to the one described above and pictured here can be purchased from this
vendor for $30.
30
Robot - Scorbot Project 3
Instructions:
Complete the lab using the following grading criteria.
31
C = correctly running program with: hand written program + printed
program with diagram of positions and program remarks + properly wired
(labeled, clean, no exposed copper)
B = Include Flow Chart using Inspiration
A = Include Flow Chart using Inspiration and incorporate master control
relay circuit for I/O board.
Process:
Complete the preliminary diagram of positions, flow chart, program and I/O legend and schematics
prior to beginning in the lab.
A conditional jump is when the program will move to the specified line if the
condition is met. In Scorbot 2, you used a conditional jump IF A < 3 then JUMP to
Label LOOP.
32
A lot of industrial robots us GOTO instead of JUMP but the meaning is the same. An
unconditional jump does not need to satisfy a condition and will move to the
specified line. An example is JUMP to Label END.
If Input 1 is not pushed, it will be OFF, which makes line 3 true, triggering a
conditional jump to line 2 which is label BEGIN. Once Input 1 is pushed, line 3 is
not longer true, and therefore the robot will not jump and will execute line 4.
Input – A signal received by the controller. This usually means a switch has been
closed. If inputs are already wired into your controller, check you input assignment
before beginning the lab.
Fuse Block – Controller is equipped with a fuse block. (Input light indicates switch
has been closed)
Print to Screen is important to alert operator he/she must act.
33
34
35
Input Type Describe
1 NO PB Pick Blocks
2 NO PB Drop Blocks
Project 4 – Emergency Stops
36
An industrial robot features several levels of E-stops. The highest level of E-stop is the circuit
breakers that control the electricity to the robot controller, computer and field devices. Hitting the
main “lab” E-stop will turn off all power to the lab or room and turn off all power to the circuits
controlling the workcell. This E-stop is absolute with regards to electrical safety but requires the
time consuming restart and boot of all computer and robot systems in order to get the workcell
functioning. The second level of E-stop is the normally closed robot arm power port on the robot
controller. Hitting this E-stop will halt operation of the robot but does not remove power to the
robot controller. The robot motors remain energized so a complete restart of the workcell is not
necessary. A third level of E-stop is the interruptible program state. Hitting this E-stop causes the
robot program to halt the robot. The robot system remains completely energized and the robot
remains in run mode. A safety program begins running instead of the main program. This type of
E-stop can be dangerous because the entire workcells remains running even though the robot is not
moving. The benefit is that the workcell operation can be immediately returned to the run state. A
final safety procedure is a Master Control Relay. Hitting the stop on the MCR removes all AC and
DC electrical power to the field devices. It is also good practice to have the MCR close the robot
arm power port which means that the MCR must be latched in order to operate the robot arm.
Safety devices are wired Normally Closed because if there was an electrical fault in the wiring or
solid state safety devices, it is probable that the circuit would become fused open. Level two and
level three E-stops also need to be wired Normally Closed, as the controller and programs will be
looking for a change of state from high to low indicating the E-stop circuit has been activated
(opened).
The interruptible input command is different than the normal conditional input. The normal IF
INPUT command examines the state of a specific input at only one specific instance. An if input #1
command inserted at line 38 of a robot program only examines the state of input #1 at line 38.
Pushing input #1 when the robot program is executing line 56 has no effect. The Scorbots’ On
Input Interrupt command is different because is examines that state of the specific input at every
line of the program. On Input Interrupt #1 command would cause the same conditional response if
input #1 was pushed at line 38 or line 56 or any other line.
The next program will incorporate SUBROUTINES. A subroutine is a program that is run out of
the main program. When a subroutine is called, it will run and dictate the primary operation of the
robot, but the main program will continue to run in the background. Returning from the subroutine
will end the subroutine operation and main the program will again take over operation of the robot.
A good way to understand subroutines is to draw analogies to several Hollywood movies. The first
movie to watch is The Matrix which is a story about a large computer program. This program is
similar to the main program the affects the movements of the Scorbot. Mr. Smith is an “agent” in
the movie and is another computer program. The computer program, Mr. Smith, is a subroutine and
is designed to run within the larger Matrix program when something goes wrong. You will have a
main program named Scorbot 4, which will have a subroutine program called Safety. The Safety
program will not run, unless the E-stop is pressed, indicating something has gone wrong.
37
Purpose To use a variety of inputs. To use a safety gate and subroutine.
Instructions:
Complete the lab using the following grading criteria.
C = correctly running program with: hand written program + printed program
with diagram of positions and program remarks + e-stop wired + I/O legend and
schematics
B = Include Flow Chart using Inspiration
A = Include Flow Chart using Inspiration and include correct light scheme.
Process:
Safety Gate
Pickup Pallet
Complete the preliminary diagram of positions, flow chart, program and I/O legend and schematics
prior to beginning in the lab.
OI – On input interrupt (Whenever the input is hit, it reacts the safety gate)
38
NC switch – If signal if OFF something has occurred.
NO switch – If signal is ON something has occurred.
Safety Sub:
Interruptible Input #3 stops the main program and starts the subroutine. Input #4
allows the subroutine to complete so that it may return to the main program.
Subroutines need to be added at the very end of the program. You cannot have main
programming code after you have started coding the subroutines.
39
Project 4 Diagram of Positions Project 4 Flow Chart
40
I/O Legend and Schematics
41
Project 5 – Outputs
42
There are 3 different type of power systems used in industrial robots. The most common is electric.
Electricity is used because it is readily available and because of commonality and availability of
electronic components. Common electrical voltages are 12 volts direct current (DC), 24 VDC, 120
volts alternating current (AC) and 240 VAC. 240 VAC and 480 VAC 3-phase are also common
electrical sources in manufacturing facilities but are much more dangerous that 120 VAC single
phase. Other advantages of the electrical power source, is that it is clean and does not contaminate
the work area, it provides direct control of the drive systems and it provides quiet operation. A
drawback is that payload may be limited as compared to a hydraulic system and that the feedback
control system is more complicated and expensive.
A hydraulic system uses a high pressure fluid (oil) to move actuators and provides high power. The
hydraulic system utilizes a pump, tank, valves and linear and rotary actuators to pressurized oil up
to 2000 psi. The drawbacks of this power source are that fluid leaks and is messy increasing the
risk of injury and fire. Additionally, the equipment is expensive and load. Hydraulic control is
often simpler as components are either on or off, and speed of actuation is controlled with flow
control valves rather than electrical feedback. Electric robots have improved significantly in their
ability to move large payloads, but hydraulics remains prevalent in industry to accomplish the
largest tasks.
A pneumatic system uses compressed air to move rotary and linear actuators. Pneumatic systems
are similar to hydraulic systems, but have substantially less power as compressed air operates at
approximately 100 psi. Pneumatic systems are popular for clamping, grippers and blow off as most
manufacturing facilities have a central compressed air system. The cost of the compressed and
equipment is less than hydraulics. Pneumatics is a well developed power source and system leaks
are not an issue. Pneumatic control systems are also usually very simple utilizing some type of
programmable controller to activate valves states (on or off).
A final type of power incorporated in robot systems is spring force. The above power systems may
work opposite a spring in order to store residual power in a system. Turning off the power source
will result in the spring force actuating a valve or fixture to the opposite state.
Since the ER5 controller outputs are internally sinking, and because the ER4 inputs are internally
sourcing, it might be useful to wire the ER5 and ER4 relay outputs as sinking. This allows the
output field device common to be 12VDC (red) and the input field device common to be ground
(blue).
The wiring of the relay type outputs of the ER 4 and ER5 is shown below:
43
The wiring of the transistor outputs on the ER5 is shown below:
The wire color scheme that has been adopted to this point is:
Red = 12 VDC, Blue = Ground, Yellow = Inputs, Green = Outputs
Safety Gate
Drill
Complete the preliminary diagram of positions, flow chart, program and I/O legend and schematics
prior to beginning in the lab.
Scorbot Project 5 Instructor Notes
On Output #1 – Changes state of Normally Open (NO) and Normally Closed (NC)
contacts.
The Pickup and Pallet locations vary, but the buffing and drilling sequence is the
same for each part.
Use a subroutine drill and buff in order to reduce the amount of programming.
46
I/O Legend and Schematics
47
Recommended projects:
48