9 2
Macros
96-8000 rev R June 2007
#4101-#4126 Last Block (Modal) Address Data
Address codes A-Z (excluding G) are maintained as modal values. The information represented by the last line of
code interpreted by the lookahead process is contained in variables 4101 through 4126. The numeric mapping of
variable numbers to alphabetic addresses corresponds to the mapping under alphabetic addresses. For example,
the value of the previously interpreted D address is found in #4107 and the last interpreted I value is #4104. When
aliasing a macro to an M-code, you may not pass variables to the macro using variables 1-33; instead, use the
values from 4101-4126 in the macro.
#5001-#5005 Last Target Position
The final programmed point for the last motion block can be accessed through variables #5001-#5005, X, Y, Z, A, and
B, respectively. Values are given in the current work coordinate system and can be used while the machine is in
motion.
Axis Position Variables
#5021 X-axis
#5022 Y-axis
#5023 Z-axis
#5024 A-axis
#5025 B-axis
#5026 C-axis
#5021-#5025 Current Machine Coordinate Position
The current position in machine coordinates can be obtained through #5021-#5025, X, Y, Z, A, and B, respectively.
The values CANNOT be read while the machine is in motion. The value of #5023 (Z) has tool length compensation
applied to it.
#5041-#5045 Current Work Coordinate Position
The current position in the current work coordinates can be obtained through #5041-5045, X, Y, Z, A, and B, respec-
tively. The values CANNOT be read while the machine is in motion. The value of #5043 (Z) has tool length compensa-
tion applied to it.
#5061-#5065 Current Skip Signal Position
The position where the last skip signal was triggered can be obtained through #5061-#5065, X, Y, Z, A, and B,
respectively. Values are given in the current work coordinate system and can be used while the machine is in
motion. The value of #5063 (Z) has tool length compensation applied to it.
#5081-#5085 Tool Length Compensation
The current total tool length compensation that is being applied to the tool. This includes tool length offset referenced
by the current value set in H (#4008) plus the wear value.
Note: The mapping of the axes are x=1, y=2, … b=5. So as an example, the Z machine coordinate system variable
would be #5023.
#6996-#6999 Parameter access using macro variables
It is possible for a program to access parameters 1 to 1000 and any of the parameter bits, as follows:
#6996: Parameter Number
#6997: Bit Number (optional)
#6998: Contains value of parameter number in variable 6996
#6999: Contains bit value (0 or 1) of parameter bit specified in variable 6997.
Note: Variables 6998 and 6999 are read-only.
Usage
To access the value of a parameter, the number of that parameter is copied into variable 6996, after which, the value
of that parameter is available using macro variable 6998, as shown:
#6996=601 (Specify parameter 601)
#100=#6998 (Copy the value of parameter 601 to variable #100)
To access a specific parameter bit, the number of that parameter is copied into variable 6996 and the bit number is
copied to macro variable 6997. The value of that parameter bit is available using macro variable 6999, as shown:
#6996=57 (Specify parameter 57)
#6997=0 (Specify bit zero)
#100=#6999 (Copy parameter 57 bit 0 to variable #100)
Содержание Mill
Страница 12: ...96 8000 rev R June 2007 Safety 5 ...
Страница 14: ...96 8000 rev R June 2007 Safety 7 LATHE WARNING DECALS ...
Страница 15: ...8 Safety 96 8000 rev R June 2007 ...
Страница 17: ...10 Introduction 96 8000 rev R June 2007 ...
Страница 117: ...110 4 5 Axis Programming 96 8000 rev R June 2007 ...
Страница 199: ...Settings 192 96 8000 rev R June 2007 ...
Страница 213: ...206 Maintenance 96 8000 rev R June 2007 ...