Mitsubishi Electric M700V Series Programming Manual page 541

Hide thumbs Also See for M700V Series:
Table of Contents

Advertisement

14. Coordinates System Setting Functions
(Example 6) Program example when the added workpiece coordinate system offsets are transferred
to the standard workpiece coordinate system offsets and used.
In this example, the workpiece coordinate system offsets for each workpiece are set
beforehand in P1 to P24 when the workpiece is fixed on a rotating table, as shown in the
drawing below.
L20000 (Main)
G28 XYZB ;
G90 ;
G00 B0 ;
G65 L2001 A1 ;
G22 L2002 ;
G00 B90. ;
G65 L2001 A7 ;
G22 L2002 ;
G00 B180. ;
G65 L2001 A13 ;
G22 L2002 ;
G00 B270. ;
G65 L2001 A19 ;
G22 L2002 ;
G28 XYB ;
M02 ;
%
L2001 Transmission of workpiece offsets
#2=5221 ;
#3=(#1-1)∗20+7001 ;
#5=0 ;
WHILE [#5 LT 6] DO1 ;
#6=#6+1 ;
#7=#7+1 ;
#4=#4+1 ;
WHILE [#4 LT 6] DO2 ;
#[#6]=#[#7] ;
#6=#6+1 ;
#7=#7+1 ;
#4=#4+1 ;
END2 ;
#2=#2+20 ;
#3=#3+20 ;
#5=#5+1 ;
END1 ;
G23 ;
%
14.10 Workpiece Coordinate System Setting and Offset
P20
P19
P1
P2
P21
P23
P22
P5
P24
P4
Reference position return
Absolute value mode
Position table to face 1
Load workpiece offsets
Drilling
Position table to face 2
Position table to face 3
Position table to face 4
Return to reference position
Leading No. of workpiece coordinate system variables
Leading No. of added workpiece coordinate
system variables
No. of sets counter clear
Check No. of sets
Set transmission source 1st axis variable No.
Set transmission destination 1st axis variable No.
Clear No. of axes counter
Check No. of axes
Transmit variable data
Set transmission source next axis
Set transmission destination next axis
No. of axes counter +1
Transmission source
Transmission destination Set lead of next variable set.
No. of sets counter +1
529
P3
Y
Z
P6
X
B
Set lead of next variable set.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents