
B–61803E–1/10
3. EXECUTION MACRO
PROGRAMMING
27
The P-CODE program 09000 registered to the ROM can be called by a
T code.
The commanded T code is stored as an argument in the common variable
#149.
All the local variables will become <Vacant>.
N_ G_ X_ Y _ T < tttt >;
By commanding M codes which is designated by compilation parameter,
the programs O9001, O9002, O9003” registered to the ROM can be called
for subprograms. All the local variables are <Blank>.
N_ G_ X_ Y _ M<mm> ;
By setting character codes (decimal notation of ASCII codes) to the
parameters (No. 6090, 6091) of CNC, the P-CODE program (09004,
09005) corresponding to the address can be called as a subprogram. The
defined integer will be stored as a parameter to the macro variable (#146,
#147). The actual use of this function is decided by specifying the
appropiate compilation parameter (No. 9002#1, 9002#2, ACL1, ACL2).
Example) Compiler parameter (No. 9002#1, ACL=1)
When parameter No. 6090 = 66 at execution
Definable addresses for T series: A, B, F, H, I, K, M, Q, R, S, T
Definable addresses for M series: A, B, D, F, H, I, J, K, M, Q, R, S, T
User’s program
O0001;
O0001;
:
G00X123Y456B100;
:
M02;
P–CODE program
O9004;(#146=100.)
3.1.1
Calling Subprogram
O9000 by T code
3.1.2
Calling subprograms
O9001–9003 by M code
3.1.3
Calling a Subprogram
Using Specified Codes