
B–62073E–2/03
4.CONVERSATIONAL MACRO FUNCTION
97
#8996 : Complete code
#8997 : Information I.D.
#8998 : Axis number
#8999 : Relative coordinate value
Macro
Variable
Contents
#8997
Information ID
500: Reading relative coordinate
#8998 Axis number (1 to 8)
#8999 Relative cordinate value
#8996
Complete code
0: Normal end
–1: Abnormal end
Example:
Relative coordinate value of 1st axis is read as –123456 to #500 if
#8997=500 ;
#8998=1; (Incorporates contents of 1st axis)
#500=#8999;
is set when –123.456
1)
The value which will be read by #8999 is <Vacant> when a value outside
1–8 is specified to #8998.
2) For #8998, 0 is set when turning on the power.
(2) Preset of relative coordinate value
The relative coordinate value can be freely preset by G360 Aa Qq.
The axis number is set in address A.
A1 to 8
Set the relative coordinate you desire to preset to address Q.
Q–999999999 to 999999999
The relative coordinate value can be preset by executing this control
code.
Example:
When you desire to preset the relative coordinate value of 1st axis to
–123.45
G360 A1 Q–123450 ;
1) G360 command is ignored when a value other than 1 to 8 is specified
to address A, or when A is not specified.
2) The units of address Q are the minimum setting units of the specified
axis.
The address function is that which returns the PMC address or NC
parameter contents as a functional value. However, the address function
cannot be described to the left side of the calculation because it cannot be
written.
Caution
Caution
4.5.20
Address Function