16. CUSTOM MACRO
When #1=#4001; is executed, the resulting value in #1 is 0, 1, 2, 3, or
If the specified system variable for reading modal information
corresponds to a G code group which cannot be used, a P/S alarm is
Position information cannot be written but can be read.
Table 16.2(k) System variables for position information
#5001–#5008 Block end point Workpiece
#5021–#5028 Current position Machine
#5041–#5048 Current position
#5061–#5068 Skip signal position
#5081–#5088 Tool length offset
#5101–#5108 Deviated servo
S The first digit (from 1 to 8) represents an axis number.
S The tool length offset value currently used for execution rather than the
immediately preceding tool offset value is held in variables #5081 to
S The tool position where the skip signal is turned on in a G31 (skip
function) block is held in variables #5061 to #5068. When the skip
signal is not turned on in a G31 block, the end point of the specified
block is held in these variables.
S When read during movement is ”disabled,” this means that expected
values cannot be read due to the buffering (preread) function.
D Current position