Mitsubishi Electric CR750-Q Instruction Manual page 131

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

•Program example 1
The hand direction is the same in all grid points of a pallet (values of the A, B and C axes are identical)
Program
1 P3.A=P2.A
2 P3.B=P2.B
3 P3.C=P2.C
4 P4.A=P2.A
5 P4.B=P2.B
6 P4.C=P2.C
7 P5.A=P2.A
8 P5.B=P2.B
9 P5.C=P2.C
10 Def Plt 1, P2, P3, P4, P5, 3, 5, 2
11 M1=1
12 *LOOP
13 Mov P1, -50 *1)
14 Ovrd 50
15 Mvs P1
16 HClose 1
17 Dly 0.5
18 Ovrd 100
19 Mvs , -50 *1)
20 P10=(Plt1,M1)
21 Mov P10, -50 *1)
22 Ovrd 50
23 Mvs P10
24 HOpen 1
25 Dly 0.5
26 Ovrd 100
27 Mvs , -50
28 M1=M1+1
29 If M1<=15 Then *LOOP
30 End
'Assigns the posture component (A) of P2 to the posture component (A) of P3.
'Assigns the posture component (B) of P2 to the posture component (B) of P3.
'Assigns the posture component (C) of P2 to the posture component (C) of P3.
'Assigns the posture component (A) of P2 to the posture component (A) of P4.
'Assigns the posture component (B) of P2 to the posture component (B) of P4.
'Assigns the posture component (C) of P2 to the posture component (C) of P4.
'Assigns the posture component (A) of P2 to the posture component (A) of P5.
'Assigns the posture component (B) of P2 to the posture component (B) of P5.
'Assigns the posture component (C) of P2 to the posture component (C) of P5.
'Defines the pallet. Pallet No. = 1, start point = P2, end point A = P3, end point B = P4,
diagonal point = P5, quantity A = 3, quantity B = 5, pallet pattern = 2 (Same direction).
'Substitutes value 1 in numeric variable M1. (M1 is used as a counter.
'Designates label LOOP at the jump destination.
'Moves with joint interpolation from P1 to a position retracted 50mm in hand direction.
'Sets movement speed to half of the maximum speed.
'Moves linearly to P1. (Goes to grasp workpiece.)
'Closes hand 1. (Grasps workpiece.)
'Waits 0.5 seconds.
'Sets movement speed to maximum speed.
'Moves linearly from current position (P1) to a position retracted 50mm in hand direction. (Lifts
up workpiece.)
'Operates the position in pallet No. 1 indicated by the numeric variable M1, and substitutes
the results in P10.
'Moves with joint interpolation from P10 to a position retracted 50mm in hand direction.
'Sets movement speed to half of the maximum speed.
'Moves linearly to P10. (Goes to place workpiece.)
'Opens hand 1. (Places workpiece.)
'Waits 0.5 seconds.
'Sets movement speed to maximum speed.
'Moves linearly from current position (P10) to a position retracted 50mm in hand direction.
(Separates from workpiece.)
'Increments numeric variable M1 by 1. (Advances the pallet counter.)
'If numeric variable M1 value is less than 15, jumps to label LOOP and repeat process. If
more than 15, goes to next step.
'Ends the program.
Explanation
MELFA-BASIC V functions 4-111
4MELFA-BASIC V

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents