G38.x: Probing

Last modified by writer on 2022/09/01 01:16

G38.x axes - probing

G38.2 – perform probing towards the workpiece, stop when touched, error message on failure.
G38.3 – perform probing towards the workpiece, stop when touched.
G38.4 – perform probing in the direction from the workpiece, stop when contact is lost, error message on failure.
G38.5 – perform probing in the direction from the workpiece, stop when contact is lost.

In order to use probing, you must configure the input for probing in the parameters of the input signals.

Issue the G38.x axes command to perform probing. The axis parameters are optional, but at least one of them must be specified. All of the indicated axes define a point towards which movement is made during probing. If probing did not work before reaching the endpoint, commands​​​​​​​ G38.2 and​​​​​​​ G38.4 signal an error.

The movement to the endpoint during probing is carried out with the current feed rate and stops (subject to acceleration restrictions) when the endpoint is reached or when the probing input signal is expected to change, whichever occurs earlier.

The probing command example:
G38.2 Z-100 F500

Error
It is an error if:
  • the end point is the same as the current position;
  • no axis is specified;
  • feed rate is zero;
  • the probe signal is already in the expected state.

Расширенный синтаксис команды G38.x для использования нескольких входов пробинга

G38.x Pn axes
где n - целое число, обозначающее набор входов Probing, которые будут использоваться при выполнении данной команды.

Например:
G38.2 P6 X200
означает, что при выполнении команды пробинга будут опрашиваться входы Probing2 и Probing3.

Соответствие значений параметра P и входов пробинга.

PВходы пробинга
ProbingProbing2Probing3

1

  
2  
3 
4  
5 
6 
7

Если параметр P не указан, пробинг завершается при срабатывании любого из входов Probing, Probing2, Probing3.

Пример макроса пробинга для использования с датчиком ZATS-01-NC. На вход Probing в данном случае назначается датчик, который срабатывает первым (лепестки), на Probing2 - второй (микровыключатель).

Download M115 macro