
B–62073E–1/042. INTERFACE BETWEEN CNC AND PMC–NA OR NB
– 254 –
2.3.55 Custom macro
(a) Custom macro input signals (UI000 to UI331 [#1, #2])
[Classification]
Input signals
[Function] No function is provided for the control unit. These signals can be read by a custom macro
as a type of system variable, and are used for interface signals between custom macros and
the PMC.
These signals correspond to system variables as indicated below.
Signals
Q’ty Variables Correspondence of values
UI000
UI001
UI001
UI003
:
:
UI030
UI031
1
1
1
1
1
1
#1000
#1001
#1002
#1003
:
:
#1030
#1031
0 at low and 1 at high
UI000 – UI031
UI100 – UI131
UI200 – UI231
UI300 – UI331
32
32
32
32
#1032
#1033
#1034
#1035
32–bit binary code 1
1 Variable value
#1032+n =
ȍ
30
i+0
(2
i
Vi ) * 2
31
V
31
where Vi = 0 when UIni is low and Vi = 1 when UIni is high
n: 0 to 3
Note, however, that these system variables cannot be used on the left side of an assignment
statement.
(b) Custom macro output signals (UO000 to UO331 [#1, #2])
[Classification]
Output signals
[Function] No function is provided for the control unit. These signals can be read or written by a custom
macro as a type of system variable, and are used for interface signals between custom mac-
ros and the PMC.
These signals correspond to system variables as indicated below.
Signals
Q’ty Variables Correspondence of values
UO000
UO001
UO001
UO003
:
:
UO030
UO031
1
1
1
1
1
1
#1100
#1101
#1102
#1103
:
:
#1130
#1131
0 at low and 1 at high
UO000 – UO031
UO100 – UO131
UO200 – UO231
UO300 – UO331
32
32
32
32
#1132
#1133
#1134
#1135
32–bit binary code 1
1 Variable value #1132+n =
ȍ
30
i+0
(2
i
Vi ) * 2
31
V
31
where Vi = 0 when UOni is low and Vi = 1 when UOni is high
n: 0 to 3
These system variables can used on the left side of an assignment statement as well as on
the right side.
If a system variable is used on the left side, a value assigned to the system variable remains
until the system variable is used on the right side.