
6. FUNCTIONS OF THE MACRO
EXECUTOR
B–61803E–1/10
PROGRAMMING
158
An execution macro call can be masked by using the executor parameter
or macro variable.
The following execution macro calls can be masked:
Axis address call
T code macro call
T code subprogram call
A masked call instruction is handled as either an axis move command or
a T code output command.
Examples) When bit 0 (AX1CL) of compilation parameter No. 9005 is
set to 1 and bit 0 (MA1) of executor parameter No. 9010 is
set to 0:
User program
00001 ;
G00 X10 Z10; → Calls execution macro program O9009.
G00 X20 Z20; → Calls execution macro program O9009.
:
When bit 0 (AX1CL) of compilation parameter No. 9005 is set to 1 and
bit 0 (MA1) of executor parameter No. 9010 is set to 1:
User program
00001 ;
G00 X10 Z10; → Moves to X10, Z10 in rapid traverse mode.
G00 X20 Z20; → Moves to X20, Z20 in rapid traverse mode.
:
When bit 0 (TCAL) of compilation parameter No. 9002 is set to 1 and
macro variable #8691 is set to 1:
<User program> <P–CODE program>
00001 ; 09000 ;
G00 X10 Z10 ; G00 X....
T11 ; →Calls P-CODE program 09000 :
G00 X20 Z20 ; #8691 = 1 ;
::
T12 ; →T12 code M99 ;
:
6.34
EXECUTION MACRO
CALL MASK
FUNCTION
6.34.1
Function