Mitsubishi Electric MELDAS C6 Programming Manual page 200

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

13. Program Support Functions
(2) The local variables can be used freely in that subprogram.
Main program
G65 P1 A100. B50. J10. F500;
Example of front surface milling
B
In the front surface milling example, argument J is programmed as the milling pitch 10.mm.
However, this is changed to 8.333mm to create an equal interval pitch.
The results of the No. of reciprocation data calculation is set in local variable #30.
To subprogram
J
A
192
13.5 User macro specifications
Subprogram (1)
#30=FUP [#2/#5/2] ;
#5=#2/#30/2 ;
M98 H100 L#30 ;
X#1 ;
M99 ;
N100 G1 X#1 F#9 ;
Y#5 ;
X-#1 ;
Y#5 ;
M99 ;
Local variables set by argument
Local variable data table
A (#1) 100.000
B (#2)
50.000
F (#9)
500
J (#5)
10.000
(#30)
The local variables
can be changed in
the subprogram.
The local variables
can be changed in
the subprogram.
8.333
3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64Meldas c64t

Table of Contents