
4. CONVERSATIONAL MACRO FUNCTION
B–62073E–2/03
54
The auxiliary macro function is executed at an execution level the same
as the conversational macro function.
The following functions can be executed in this function.
Macro command (definition of variable, replacement, addition type
calculation, branching, repetition)
Read/write of common variables
Startup of conversational macro body
Simple call (G65, M98)
Read/write of P–CODE exclusive variables
Data reading of A/D converter
Conversational window function
Reading of relative coordinates
Reading of cutting time and cutting distance, and preset
Torque limit override control
RS–232–C control
(1) Starting up the auxiliary macro program
The auxiliary macro program to be started up is the program number
of the value of the conversational macro execution control variable
2 (#8600). The value of the conversational macro execution control
variable 2 (#8600) when turning on the power is set by parameter
(No.8537). However, when the parameter (No.8537) is ”0”, the
auxiliary macro program cannot be started up.
(2) Stopping the auxiliary macro program
The auxiliary macro program cannot be stopped by such as reset,
single block, feed hold. However, the auxiliary macro program can
be stopped by either setting the parameter (No.8537) to ”0” or by
setting the conversational macro execution control variable 2 (#8600)
to 0.
(3) Setting the auxiliary macro execution cycle
The auxiliary macro executes one block of a P–CODE program
approximately every 32 ms. This execution cycle can be changed
using parameter No.7045, thus enabling faster execution of the
auxiliary macro.
Note
The faster the auxiliary macro executes the program, the
longer it takes for the program to be displayed on the CNC
screen.
Address
79045 Auxiliary macro execution cycle
Parameter input
Data format : Byte type
Data range : 0 to 20
The parameter value N indicates the number of blocks (N+1) that can be
executed every 32 ms. Examples follow.
N = 0: Approx. 32 ms per a block
N = 1: Approx. 32 ms per two blocks
N = 2: Approx. 32 ms per three blocks
:
4.3
AUXILIARY MACRO
FUNCTION