
6. FUNCTIONS OF THE MACRO
EXECUTOR
B–62093E–1/02
PROGRAMMING
106
When compilation parameter PWSR (No. 9002, #6) is set to 1, the
function for finding a P–CODE work number can be used.
When an operation program created in the program editing memory
makes a G–, M–, or T–code call, usual an execution macro (P–CODE
program on the level of memory operation and execution) is called and
executed as a subprogram or a macro program. If automatic operation is
started with this function, an P–CODE program cataloged in the Power
Mate can be directly activated.
A conversational or auxiliary macro is used to write the number of the
P–CODE program to be started in the P–CODE work number control
variable (#8610).
If the value of #8610 is not null or 0 when the automatic operation is
started in the automatic operation (AUTO) mode while the CNC unit is
in the reset state, the P–CODE program having the number indicated by
the value of #8610 is found and executed from the beginning.
If the value of #8610 is null or zero, the program currently selected by the
CNC unit is executed as usual.
If the program started by this function ends with M99, the currently
selected program is executed after M99.
When power is turned on, the value of #8610 is set to 0.
WARNING
When #8610 is a value other than zero, this function starts
a P–CODE program regardless of the program currently
selected by the CNC unit (the program displayed on the
CNC screen). When this function is used, measures to
prevent an operator error must be taken. For example, an
alarm lamp activated by an auxiliary macro or the PMC and
interlock processing are helpful.
6.25
FUNCTION FOR
FINDING A P–CODE
WORK NUMBER