
3. EXECUTION MACRO
B–62073E–2/03
42
When parameter
No. 8538=50
No. 8539=60
M50–M60 become the M codes to call “09009”.
Notes
1 When parameter No. 8538 is 0, this processing cannot be
performed.
2 When the value of parameter No. 8538 is specified as
greater than the value of 8539, it will not operate correctly.
3 Special M codes M00, M01, M02, M30, M99 cannot be used
even they are inside the range.
4 When program calls such as G65, M98, T code are specified
in the same block, G65, etc. has priority.
(5) Subprogram call (O9000) by T–code
By setting the parameter (No. 8508, TCAL), a T–code can be used to
call the P–CODE program (O9000) as a subprogram. At this time,
a specified numeric value is stored as an argument in the macro
variable (#149).
The program check screen displays a T–code, but TF and T–codes are
not transmitted.
(6) Subprogram call (O9029) by S–code
By setting the parameter (No. 8508, SCAL), an S–code can be used
to call the P–CODE program (O9029) as a sub–program. At this
time, a specified numeric value is stored as an argument in the macro
variable (#147).
The program check screen displays an S–code, but SF and S–codes
are not transmitted.
(7) Subprogram call (O9028) by B–code (second auxiliary function
code)
By setting the parameter (No. 8508, BCAL), a second auxiliary
function code (set in parameter No. 1030) can be used to call the
P–CODE program (O9028) as a subprogram. At this time, a specified
numeric value is stored as an argument in the macro variable (#146).
The program check screen displays a second auxiliary function code,
but BF and second auxiliary function codes are not transmitted.
(8) Subprogram call by M code
(O9001 – O9003)
By commanding designated M codes, the P–CODE programs
”O9001 – O9003” registered to the ROM can be called for
subprograms. All the local variables are < Blank >.
N_ _ G_ _ X_ _ Y _ _ M<mm>;
(9) Macro call by G code (O9010 – O9019)
By commanding designated G codes, the programs ”O9010–O9019”
registered to the ROM can be called to macro.
Local variables without argument designation are <Blank>.
N_ _ G <gg> Argument designation>;
Example