
B-63983EN/02 5.WINDOW FUNCTIONS
- 445 -
5.4.12 Reading a Custom Macro Variable (High-speed Response)
[Description]
A custom macro variable in the CNC can be read.
Custom macro variables may or may not be read depending on the
variable type.
(1) Local variables
Local variables (#1 to #33) cannot be read.
(2) Common variables
Common variables (#100 to #149 and #500 to #531) can be read
in floating-point representation. When the option to add
common variables is provided, however, common variables
range from #100 to #199 and #500 to #999.
For details of the custom macro variables, refer to the Operator's
Manual for the CNC.
CAUTION
System variables cannot be read.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code)
21
(Completion code)
−
(Need not be set)
(Data length)
−
(Need not be set)
(Data number)
N
(N = Custom macro
variable number)
(Data attribute)
M
(M: Number of decimal places)
(Data area)
−
(Need not be set)
≈≈
42