Mitsubishi Electric MELDAS C6 Programming Manual page 195

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

13. Program Support Functions
(4) Even if the miscellaneous command entered above is issued during a user macro subprogram
called by the M code, macro call will not result and it will be handled as an ordinary
miscellaneous command.
(5) All S, T and B codes call the subprograms in the prescribed program numbers of the
corresponding S, T and B functions.
(6) A maximum of 10 M codes can be set. However when not setting all 10. Set the parameters as
shown below.
[ MACRO ]
<Code> <Type> <Program No.>
M [01]
20
M [02]
21
M [03] 9999
M [04] 9999
M [05] 9999
:
:
M [10] 9999
Differences between M98 and G65 commands
(1) The argument can be designated for G65 but not for M98.
(2) The sequence number can be designated for M98 but no for G65, G66 and G66.1.
(3) M98 executes a subprogram after all the commands except M, P, H and L in the M98 block
have been executed, but G65 branches to the subprogram without any further operation.
(4) When any address except O, N, P, H or L is included in the M98 block, single block stop
results. This is not the case with G65.
(5) The level of the M98 local variables is fixed but it can be varied in accordance with the nesting
depth for G65. (#1, for instance, has the same significance either before or after M98 but a
different significance in each case with G65.)
(6) The M98 nesting depth extends up to 8 levels in combination with G65, G66 and G66.1. The
G65 nesting depth extends up to only 4 levels in combination with G66 and G66.1.
Macro call command nesting depth
Up to 4 nesting levels are available for macro subprogram calls based on simple call or modal call.
The argument with a macro call instruction is valid only on the called macro level. Since the nesting
depth for macro calls extends up to 4 levels, the argument can be used as a local variable for the
program with each respective macro call.
(Note 1)
When a G65, G66, G66.1 G code macro call or miscellaneous command macro call
is conducted, this is regarded as nesting level 1 and the level of the local variables is
also incremented by one.
(Note 2)
The designated user macro subprogram is called every time the movement
command is executed with modal call A. However, when the G66 command has
been duplicated, the next user macro subprogram is called every time an axis is
moved even with movement commands in the macro.
User macro subprograms are called in sequence from the subprogram commanded
last.
0
8000
0
8001
0
199999999
0
199999999
0
199999999
:
:
:
:
0
199999999
187
13.5 User macro specifications
Setting to call O8000 with type 0
(M98 type) during M20 command
Setting to call O8001 with type 0
(M98 type) during M21 command
Set parameters not being used as
shown on left.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64Meldas c64t

Table of Contents