Mitsubishi Electric MELDAS C6 Programming Manual page 192

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

13. Program Support Functions
Modal call A (called after the movement command)
Main program
G65Pp1Ll1 <argument>;
G67
When the block with a movement command is commanded between G66 and G67, the movement
command is first executed and then the designated user macro subprogram is executed. The
number of times the subprogram is executed is l1 times with each call.
The <argument> is the same as for a simple call.
Format
G66 P___ L___ <argument> ;
P___
L___
Detailed description
(1) When the G66 command is entered, the specified user macro subprogram will be called after
the movement command in the block with the movement commands has been executed until
the G67 (cancel) command is entered.
(2) The G66 and G67 commands must be paired in the same program.
A program error will result when G67 is issued without the G66 command.
(Example) Drill cycle
N1 G90 G54 G0 X0Y 0Z0;
N2 G91 G00 X-50.Y-50. Z-200.;
N3 G66 P9010 R-10. Z-30.F100;
N4 X-50.Y-50.;
N5 X-50.;
To subprogram af ter axis command execution
N6 G67;
-150. -100.
X
N5
(Note 1) After the axis command is executed in the main program, the subprogram is
(Note 2) The subprogram is not executed in the blocks following G67.
To subprogram
: Program No.
: No. of repetitions
To subprogram af ter axis command execution
-50.
W
N1
N2
N3
-50.
N4
-100.
Y
executed.
13.5 User macro specifications
To main program
To subprogram
To main program
N10
N20
Argument F
184
Subprogram
O
o1
M99
O 9010
N10 G00 Z #18 M0;
N20 G09 G01 Z #26 F#9;
N30 G00 Z- [#18+ #26];
M99;
Argument R
N30
Argument Z

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64Meldas c64t

Table of Contents