LECTURE - 08-Robot Programming
LECTURE - 08-Robot Programming
The robot
The controller
A monitor & keyboard
A teach pendant
1. planning mode
2. interactive mode
3. edit mode
4. run mode
4. Run mode
Run mode is used to execute the high level
program written in edit mode.
HERE A
MOVE A
Will cause the robot to move from its current
position to A. the form of the motion will be joint
interpolated.
If the line consists of
MOVES A
APPRO A, 75
MOVE A
DEPART 75
APPRO B, 75
MOVE B
DEPART 75
The motion commands can be executed in the
interactive mode by using the DO command. For
example, if the following is typed in at the keyboard
DO MOVES A
OPEN I
Will cause the gripper to open.
The command
CLOSE I
Will cause the gripper to close.
HERE # LOC1
It is possible to change the position LOC1 by
using the SHIFT command as follows:
IF…THEN…ELSE…END
WHILE…DO …END
WHILE…DO.
IF Y = 8 THEN
GOTO 100
ELSE
GOTO 200
END
These means that if the variable Y is equal to the
value 8 then go to the program line identified by
the flag 100 otherwise go to the line identified by
the flag 200.
PROGRAM COMMENTS
MOTION TO HOME
GRIPPER OPEN
LOOP Control
GRIPPER CLOSE
GRIPPER OPEN
Yes
Repeat LOOP?
No
MOTION HOME
END
A simple programming task using VAL2
.Program pallet
1. REMARK NAME PALLET
2. REMARK A PROGRAM TO DE-PALLETIZE FIVE
BLOCKS
3. REMARK ONTO A CONVEYOR
4. REMARK VERSION 1.0
5. REMARK
6. MOVE #HOME
7. OPENI
8. SET A = PICK
9. COUNT = 0.
10. FOR COUNT =1TO 5 STEP 1
11. APPROS A,200.0
12. MOVES A
13. CLOSE I
14. DELAY 0.5
15. DEPARTS 200.0
16. APPROS PLACE,200.0
17. MOVES PLACE
18. OPEN I
19. DELAY 0.5
20. DEPARTS 200.0
21. SHIFT (A BY 0.00,75.00,0.00)
22. END
23. MOVE #HOME
24. TYPE END OF PROGRAM
.END