
15. CUSTOM MACRO
15.2 Creation of Custom Macro Body
END 1;
DO 1;
M98.....;
(ves)
END
1;
15.2.6
Macro and NC statements’
The following blocks are called macro statements.
0
i
(ii)
(iii)
0
0
i
(ii)
Operation command (block including
=
)
Control command (block including
GOTO,
DO or END)
Macro call command (block including G65, G66, G67 or G codes calling macro)
Blocks other than macro
statem.ents
are sometimes referred to as NC
statements.
The following blocks have the same features as the macro statements:
A subprogram call block (a block including subprogram call command by M98,
a
M, or T code) which does not include any command address other than 0, N, P
and L.
A block which includes
MQQ
but does not include any command address other
than 0,
N,
P and L.
The macro statement differs from the NC statement in the following points:
In the normal single block mode, the single block stop does not occur.
The time of execution differs.
(ii) is described below in further detail.
(a) The macro statement existing next to the block which does not buffer the
,next
one (block of non-buffering M code, or G3l block) is executed after that
block is executed.
(Example 1)
Nl
Xl
OOOMOO;
Block currently executed
N2#1100=1; Macro statement
Execution of
macro
statements
-
Execution of
NC statmentt
-
Time
4
N2
,
Nl
.
(b)
Macro statement existing next to the block buffering the next one.
When the current block starts to be executed, the next macro statement is
immediately executed. The macro statement up to the next NC statement
is executed.