Cycle 418 PRESET FROM 4 HOLES (#17 / #1-05-1)

ISO programming

G418

Application

Touch probe cycle 418 calculates the intersection of the lines connecting two opposite hole center points and sets the preset at the point of intersection. If desired, the control can also write the point of intersection coordinates to a datum table or the preset table.

Cycle run

  1. The control positions the touch probe at the center of the first hole 1, using positioning logic.
  2. Positioning logic

  3. Then the probe moves to the entered measuring height and probes four points to determine the first hole center point.
  4. The touch probe returns to the clearance height and then to the position entered as center of the second hole 2.
  5. The control moves the touch probe to the entered measuring height and probes four points to determine the second hole center point.
  6. The control repeats this step for holes 3 and 4.
  7. The control returns the touch probe to the clearance height.
  8. Depending on the cycle parameters Q303 and Q305, the control processes the determined preset, (see Fundamentals of touch probe cycles 408 to 419 for preset setting).
  9. The control calculates the preset as the intersection of the lines connecting the centers of holes 1/3 and 2/4 and saves the actual values in the Q parameters listed below.
  10. If desired, the control subsequently determines the preset in the touch probe axis in a separate probing operation.

Q parameter
number

Meaning

Q151

Actual value of intersection point in reference axis

Q152

Actual value of intersection point in minor axis

Notes

 
Notice
Danger of collision!
During execution of touch probe cycles 400 to 499, all coordinate transformation cycles must be inactive. Otherwise, there is a danger of collision!
  1. Do not activate the following cycles before the use of touch probe cycles:
    • Cycle 7 DATUM SHIFT
    • Cycle 8 MIRRORING
    • Cycle 10 ROTATION
    • Cycle 11 SCALING FACTOR
    • Cycle 26 AXIS-SPECIFIC SCALING
  2. Reset any coordinate transformations beforehand.
  • This cycle can be executed only in the FUNCTION MODE MILL machining mode.
  • The control will reset an active basic rotation at the beginning of the cycle.

Note on programming

  • Before defining this cycle, you must have programmed a tool call to define the touch probe axis.

Cycle parameters

Help graphic

Parameter

Q268 1st hole: center in 1st axis?

Center of the first hole in the main axis of the working plane. This value has an absolute effect.

Input: –99999.9999...+9999.9999

Q269 1st hole: center in 2nd axis?

Center of the first hole in the secondary axis of the working plane. This value has an absolute effect.

Input: –99999.9999...+99999.9999

Q270 2nd hole: center in 1st axis?

Center of the second hole in the main axis of the working plane. This value has an absolute effect.

Input: –99999.9999...+99999.9999

Q271 2nd hole: center in 2nd axis?

Center of the second hole in the secondary axis of the working plane. This value has an absolute effect.

Input: –99999.9999...+99999.9999

Q316 3rd hole: Center in 1st axis?

Center of the third hole in the main axis of the working plane. This value has an absolute effect.

Input: –99999.9999...+99999.9999

Q317 3rd hole: Center in 2nd axis?

Center of the third hole in the secondary axis of the working plane. This value has an absolute effect.

Input: –99999.9999...+99999.9999

Q318 4th hole: Center in 1st axis?

Center of the fourth hole in the main axis of the working plane. This value has an absolute effect.

Input: –99999.9999...+99999.9999

Q319 4th hole: Center in 2nd axis?

Center of the fourth hole in the secondary axis of the working plane. This value has an absolute effect.

Input: –99999.9999...+99999.9999

Q261 Measuring height in probe axis?

Coordinate of the ball tip center in the touch probe axis in which the measurement will be performed. This value has an absolute effect.

Input: –99999.9999...+99999.9999

Q260 Clearance height?

Coordinate in the tool axis at which no collision between touch probe and workpiece (fixtures) can occur. This value has an absolute effect.

Input: –99999.9999...+99999.9999 or PREDEF

Q305 Number in table?

Indicate the number of the row in the preset table or datum table in which the control saves the coordinates of the point of intersection of the connecting lines. Depending on Q303, the control writes the entry to the preset table or datum table.

If Q303 = 1, the control will write the data to the preset table.

If Q303 = 0, the control will write the data to the datum table. The datum is not automatically activated.

Saving the calculated preset

Input: 0...99999

Q331 New preset in reference axis?

Coordinate in the main axis at which the control will set the calculated intersection of the connecting lines. Default setting = 0. This value has an absolute effect.

Input: –99999.9999...+99999.9999

Q332 New preset in minor axis?

Coordinate in the secondary axis at which the control will set the calculated intersection of the connecting lines. Default setting = 0. This value has an absolute effect.

Input: –99999.9999...+9999.9999

Q303 Meas. value transfer (0,1)?

Define whether the calculated preset will be saved in the datum table or in the preset table:

-1: Do not use. Is entered by the control when old NC programs are loaded see Application

0: Write the calculated preset to the active datum table. The reference system is the active workpiece coordinate system.

1: Write the calculated preset to the preset table.

Input: -1, 0, +1

Q381 Probe in TS axis? (0/1)

Define whether the control will also set the preset in the touch probe axis:

0: Do not set the preset in the touch probe axis

1: Set the preset in the touch probe axis

Input: 0, 1

Q382 Probe TS axis: Coord. 1st axis?

Coordinate of the touch point in the main axis of the working plane; the preset will be set at this point in the touch probe axis. Only effective if Q381 = 1. This value has an absolute effect.

Input: –99999.9999...+99999.9999

Q383 Probe TS axis: Coord. 2nd axis?

Coordinate of the touch point in the secondary axis of the working plane; the preset will be set at this point in the touch probe axis. Only effective if Q381 = 1. This value has an absolute effect.

Input: –99999.9999...+99999.9999

Q384 Probe TS axis: Coord. 3rd axis?

Coordinate of the touch point in the touch probe axis; the preset will be set at this point in the touch probe axis. Only effective if Q381 = 1. This value has an absolute effect.

Input: –99999.9999...+99999.9999

Q333 New preset in TS axis?

Coordinate in the touch probe axis at which the control will set the preset. Default setting = 0. This value has an absolute effect.

Input: –99999.9999...+99999.9999

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

Change the following contents as needed:

  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions (e.g., with M91)
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

Example

11 TCH PROBE 418 PRESET FROM 4 HOLES ~

Q268=+20

;1ST CENTER 1ST AXIS ~

Q269=+25

;1ST CENTER 2ND AXIS ~

Q270=+150

;2ND CENTER 1ST AXIS ~

Q271=+25

;2ND CENTER 2ND AXIS ~

Q316=+150

;3RD CENTER 1ST AXIS ~

Q317=+85

;3RD CENTER 2ND AXIS ~

Q318=+22

;4TH CENTER 1ST AXIS ~

Q319=+80

;4TH CENTER 2ND AXIS ~

Q261=-5

;MEASURING HEIGHT ~

Q260=+10

;CLEARANCE HEIGHT ~

Q305=+12

;NUMBER IN TABLE ~

Q331=+0

;PRESET ~

Q332=+0

;PRESET ~

Q303=+1

;MEAS. VALUE TRANSFER ~

Q381=+1

;PROBE IN TS AXIS ~

Q382=+85

;1ST CO. FOR TS AXIS ~

Q383=+50

;2ND CO. FOR TS AXIS ~

Q384=+0

;3RD CO. FOR TS AXIS ~

Q333=+0

;PRESET