
11. PROGRAM COMMAND
B–63523EN–1/03
1438
U: Length in the X–axis direction
Specifies the nominal length of the rectangle in the X–axis direction.
V: Length in the Y–axis direction
Specifies the nominal length of the rectangle in the Y–axis direction.
F: Movement speed
Specifies the speed at which the probe is to move for measurement.
W:Workpiece coordinate system
Select a workpiece coordinate system to be set up, and enter the
corresponding number listed below:
G54 to G59: 1 = G54, 2 = G55, 3 = G56, 4 = G57, 5 = G58, and
6 = G59
If 48 coordinate systems are valid, the following numbers are specified
to select desired workpiece coordinate systems:
G54.1P1 to P48: 1001 = G54P1, 1002 = G54P2, ..., 1048 =
G54P48
NOTE
Before issuing a command for this cycle, be sure to set the
probe above the approximate center of the rectangle.
Measurement sequence:
1) The probe moves at the speed fa in the negative Z–axis direction to a
point the distance Z away from the measurement start point.
2) The probe moves at the speed fa in the positive X–axis direction to a
point the distance ”U/2 – a – stylus ball radius” away from the
measurement start point.
3) The probe moves at the speed f in the range ”U/2 + g – stylus ball radius”
until it touches the measurement face (the first measurement session).
4) The probe returns through the distance b at the rapid traverse rate.
5) The probe moves at the specified speed F in the range ”b + g” until it
touches the measurement face (the second measurement session).
6) The probe moves at the rapid traverse rate to the center X coordinate
where it was before the start of measurement, and makes the same
measurement as stated above in the negative X–axis direction and the
Y–axis direction.
Executing G186 obtains the center of a rectangle and the length of its sides
from measured values, and outputs the obtained values to the
W–specified workpiece zero point offset value and the following macro
variables:
#250: Center X coordinate of the rectangle (machine coordinate
system)
#251: Center Y coordinate of the rectangle (machine coordinate
system)
#252: Center X coordinate of the rectangle (workpiece coordinate
system)
#253: Center Y coordinate of the rectangle (workpiece coordinate
system)
#254: Length of the rectangle side along the X–axis
#255: Length of the rectangle side along the Y–axis