
2000/02/08 H. Minami
A-78392EN
FANUC Series 16i/18i/21i-MA
Embedded macro for measurement
Title
Drawing No.
Page
Descri
tionDateEdit
14/36
Z
: Height for Z axis
Input the height from the measuring start point to the point which will be measured.
D
: Measure direction
1 : X axis 2 : Y axis
V
: Groove width
Input the approximate width of the groove.
F
: Feed rate for movement
Input the feed-rate for movement on measuring.
W
: Work coordinate system number
Input the work-piece coordinate system number which will be set.
G54
↔
G59 : (
1
: G54,
2
: G55,
3
: G56,
4
: G57,
5
: G58,
6
: G59)
G54.1P1
↔
P48 : (
1001
: G54 P1,
1002
: G54 P2……….
1048
: G54 P48)
Note ) Please be sure to move the probe right over the approximate center of
groove before executing this cycle.
Movements
:
1. The probe moves the distance (Z) along –Z axis with feed-rate (fa).
2. Moving the distance (V/2 –
α
– stylus radius) along the X or Y axis with feed-rate (fa).
3. Moving within the distance (V/2 +
γ
– stylus radius) with the feed-rate (f) until touching
the work-piece.
→
First measurement
4. Return the distance (
β
) with rapid traverse.
5. Moving within the distance (
β
+
γ
) with the feed-rate (F) until touching the work-piece
→
Second measurement
6. Repeat steps 1. to 5. in the direction –X axis and –Y axis.
When
G182
is executed, the system will calculate the center position and width of groove
from measurement position and output it to the work-piece origin offset value and the
following variables.
#250
: X coordinate of groove center (Machine coordinate system)
#251
: Y coordinate of groove center (Machine coordinate system)
#252
: X coordinate of groove center (Work-piece coordinate system)
#253
: Y coordinate of groove center (Work-piece coordinate system)
#254
: Width of groove