L6_programming1
L6_programming1
Robotics
Robot programming
1
2
Motion programming
General Features:
A program is a sequential set of commands
called instructions. In the most general
terms, a program tell the robot:
– Where to go
– How to get there
– What to do when it gets there
3
Motion programming contd.
HandlingTool is the software used in this course to
create motion programs.
All of the statements can be found in the pop-up
menus.
The SELECT button allows for manually moving
from one program to another as well as Create a
program. Each time you enter a line in a program
it is saved to that Teach Pendant file.
Position Confirmation is indicated by an @ symbol
when the robot’s current position exactly matches
any taught position in a program.
4
Display screen of the teach pendant
5
Program how to
Create a Program:
SELECT > F2 [CREATE]
SELECT
CREATE
7
program naming methods
OR
Alpha input
• Defaults to Upper Case
• Up to 36 Letters or Numbers
• No Special Characters or
spaces
• Must Start with a Letter
OR
Options
• Keyboard
8
Program header information
F2 [DETAIL] Key
– Program Name
– Sub Type
– Comment
– Group Mask
– Write Protect
– Ignore Pause
– Stack size
9
Program header information contd.
Sub Type
None
o Can contain any type of
instruction
Macro
o Can contain any type of
instruction
o Can be executed from
operator panel or teach
pendant keys
o Can also be called from a
program when assigned
to a Macro instruction
name
10
Program header information contd.
Sub Type (cont.)
Condition Monitor
o Monitors condition of I/O
signal, register value, or
alarm status during
program execution
o Cannot have Motion
enabled
Two types of Condition Monitors
o Program Monitor
Monitors conditions in TP
Program
o System Monitor
Monitors system parameters
(e.g. PLC I/O signals)
11
Program header information contd.
Comment
Additional naming to
describe program
16 Characters
maximum
No restrictions or
character use
oUpper/Lower is
okay
12
Program header information contd.
Group Mask
[1] Enables Motion
Group
[*] Disables Motion
Group
1st motion group is
for robot’s 6 axes
All others are for
extended axes Group 2-Servo
Gripper
20
21
Creating a motion program
1. Name the program
a) Turn the pendant ON/OFF switch to ON
b)Press SELECT button
c) If F2 [CREATE] is not displayed, press NEXT,
press F2 [CREATE]
d)Move the cursor to a method of naming the
program. The function key labels will change
depending on the naming method you choose. You
may also choose to enter the name by using the full
screen keyboard, chosen under Options
e) Type the program name
2. To view and modify program header information
a) Press f2 [DETAIL]
b)Review the settings on the screen
3 To change the program name
a)Move the cursor to the program name and
press ENTER
b)Move the cursor to select a method of naming
the program
c)Press the function keys whose labels
correspond to the name you want to give the
program. These labels vary depending on the
naming method you chose in Step d. To
delete a character, move the cursor to the
right of the character and press Backspace.
d)When you are finished, press ENTER
22
23
Creating a motion program contd.
4.To type a comment
a)Move the cursor to Comment and press
ENTER
b)Select a method of naming the comment
c)Press the appropriate function keys or full
screen keyboard to add the comment
d)When you are finished, press ENTER
4. To set the group mask (or motion group)
a) Move the cursor to the group you want to enable or
disable. You can use multiple groups in a single
program, but only two groups can perform Cartesian
motion within a single program. The first position in
the group mask corresponds to the first group.
Groups 1-8 are supported.
b) If you want to enable a group, scroll right to the
group you want and press F4 [1] for each enabled
group.
c) If you want to disable a group, scroll right to the
group you want and press F5 [*]. If you disable all
groups, you cannot add motion instructions to your
program
5. When you have finished entering program information
press F1 [END]
24
25
Program detail – header information
ITEM DESCRIPTION
Creation The date on which the program name was created
Date
Modification The date when the file was last displayed in the editor
Date
Copy Source The name of the file from which the file was copied
Positions Indicates whether the program contains recorded robot
positions
Size Indicates the size of thee program in bytes
Program The name of the program
Name
Sub Type The kind of program you want to write. Such as a Macro,
Condition Monitor (Cond) or standard Teach Pendant
Program (None)
header information
Comment A description field describing the purpose of the
program
Group Mask Identifies the group of axes, or motion group, that
the program controls
Write Protect Identifies whether the program can be modified