13. Program Support Functions
13.5 User Macro Specifications
310
Command format
∗∗∗∗
;
Designates the address and code
∗∗∗∗
:
:
ASCII code for calling out macro (one character)
Value or expression output to variable
(Setting range: ±999999.9999)
Detailed description
(1) The command above functions in the same way as that below. The correspondence of
commands is set for each ASCII code with the parameters.
0: G22 L
ΔΔΔΔ
;
1: G65 L
ΔΔΔΔ
<Argument> ;
2: G66 L
ΔΔΔΔ
<Argument> ;
3: G66.1 L
ΔΔΔΔ
<Argument> ;
In order to cancel the modal call while parameters are set for 2 and 3 above, issue the cancel
command (G67) after commanding the call code or the during the user macro.
(2) The ASCII code for calling the macro and the program No. L
ΔΔΔΔ
to be called are set with the
parameters.
Up to two ASCII codes can be registered.
(3) The code section is output to the variables, but the output destination differs according to the
call type and address.
(a) For G22 type
The code section is output to the common variable, and the variable No. is set with the
parameters.
When corresponding to the first address (parameter #7401), the section is output to the
common variable where the first variable No. (parameter #7404) is indicating.
(b) For G65/G66/G66.1 type
The code section is output to the local variable. The variable No. differs according to the
address, and corresponds to the following table.
Address #
Address
#
Address
#
A 1
K 6
U 21
B 2
L 12 V 22
C 3
M 13 W 23
D 7
N 14 X 24
E 8
O 15 Y 25
F 9
P 16 Z 26
G 10
Q 17
H 11
R 18
I 4
S 19
J 5
T 20
(Note)
The following addresses can be used.
A, B, D, F, H, I, J, K, M, Q, R, S, T