Mitsubishi Electric M700V Series Programming Manual page 378

Hide thumbs Also See for M700V Series:
Table of Contents

Advertisement

13. Program Support Functions
(Example 2) Bolt hole circle
Main program
G81Z–100.R50.F300L0
G65L9920Aa1Bb1Rr1Xx1Yy1 ;
L9920 (Subprogram)
#101=0 ;
#102=#4003 ;
#103=#5001 ;
(Note 1)
#104=#5002 ;
#111=#1 ;
WHILE [#101LT#2] DO1 ;
#120=#24+#18∗COS [#111] ;
#121=#25+#18∗SIN [#111] ;
#122=#120 #123=#121 ;
IF [#102EQ90] GOTO100 ;
#122=#120 − #103 ;
#123=#121 − #104 ;
#103=#120
(Note 1)
#104=#121
N100 X#122Y#123 ;
#101=#101+1 ;
#111=#1+360.∗#101/#2 ;
END1 ;
G23 ;
(Note 1) The processing time can be shortened
by programming in one block.
After defining the hole data with canned cycle (G72 to G89), the macro command is
issued as the hole position command.
To subprogram
(Note 1)
(Note 1)
(Note 1)
13.5 User Macro Specifications
a1 ; Start angle
b1 ; No. of holes
r1 ; Radius
x1 ; X axis center
position
y1 ; Y axis center
position
L9920
0 → #101
G90, G91 mode
Read in → #102
Read previous coordinates
X → #103
Y → #104
Start angle → 111
#101 ≤ No. of holes
Y
Radius ∗ COS [#111]
+ Center coordinates X → #120
Radius ∗ SIN [#111]
+ Center coordinates Y → #121
#120 → #122
#121 → #123
#102=90
N
#120-#103 → #122
#121-#104 → #123
#120 → #103
#121 → #104
N100X#122Y#123
#101+1 → #101
360 deg. ∗ #101/
No. of holes+#1 → #111
366
x1
-X
a1
y1
-Y
#101 = No. of hole count
#102 = G90 or G91
#103 = X axis current position
#104 = Y axis current position
#111 = Start angle
N
END
#120 = Hole position
X coordinates
#121 = Hole position
Y coordinates
#122 = X axis absolute value
#123 = Y axis absolute value
Y
Judgment of G90, G91
mode
#122 = X axis incremental value
123 = Y axis incremental value
X axis current position update
Y axis current position update
Drilling command
No.of holes counter up
#111 = Hole position angle
W

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents