Wiki source code of G38.x: Пробинг

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

Show last authors
1 (% style="color: rgb(160,190,45);" %)
2 //**G38.x axes** - [[probing>>doc:Руководство пользователя.Особенности функционирования системы.Пробинг.WebHome]]//
3
4 (% style="color:#a0be2d" %)//**G38.2**//(%%) – perform probing towards the workpiece, stop when touched, error message on failure.
5 (% style="color:#a0be2d" %)//**G38.3**//(%%) – perform probing towards the workpiece, stop when touched.
6 (% style="color:#a0be2d" %)//**G38.4**//(%%) – perform probing in the direction from the workpiece, stop when contact is lost, error message on failure.
7 (% style="color:#a0be2d" %)//**G38.5**//(%%) – perform probing in the direction from the workpiece, stop when contact is lost.
8
9 In order to use probing, you must configure the input for probing in the parameters of the input signals.
10
11 Issue the (% style="color:#a0be2d" %)//**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 (% style="color:#a0be2d" %)//**G38.2**//(%%) and (% style="color:#a0be2d" %)//**G38.4**//(%%) signal an error.
12
13 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.
14
15 {{code language="g-code" title="//The probing command example~~://"}}
16 G38.2 Z-100 F500
17 {{/code}}
18
19 {{error title="**It is an error if:**"}}
20 * the end point is the same as the current position;
21 * no axis is specified;
22 * feed rate is zero;
23 * the probe signal is already in the expected state.
24 {{/error}}
25
26 === Extended G38.x command syntax to use multiple probing inputs ===
27
28 (% style="color:#99cc00" %)//**G38.x Pn axes**//
29
30 * n - an integer denoting the set of Probing inputs to be used when executing this command.
31
32 {{code language="g-code" title="//Example~~://"}}
33 G38.2 P6 X200
34 {{/code}}
35
36 It means that when executing the probing command, the Probing2 and Probing3 inputs will be polled.
37
38 Correspondence between P parameter values ​​and probing inputs.
39
40 (% border="1" class="non-break" style="text-align:center; width:269px" %)
41 |=(% colspan="1" rowspan="2" style="border-color: grey; text-align: center; vertical-align: middle;" %)P|=(% colspan="3" rowspan="1" style="border-color: grey; text-align: center; vertical-align: middle;" %)Probing inputs
42 |=(% style="border-color: grey; text-align: center; vertical-align: middle; width: 74px;" %)Probing|=(% style="border-color: grey; text-align: center; vertical-align: middle; width: 74px;" %)Probing2|=(% style="border-color: grey; text-align: center; vertical-align: middle; width: 74px;" %)Probing3
43 |(% style="text-align:center; vertical-align:middle" %)1|(% style="text-align:center; vertical-align:middle" %)✅| |
44 |(% style="text-align:center; vertical-align:middle" %)2| |(% style="text-align:center; vertical-align:middle" %)✅|
45 |(% style="text-align:center; vertical-align:middle" %)3|(% style="text-align:center; vertical-align:middle" %)✅|(% style="text-align:center; vertical-align:middle" %)✅|
46 |(% style="text-align:center; vertical-align:middle" %)4| | |(% style="text-align:center; vertical-align:middle" %)✅
47 |(% style="text-align:center; vertical-align:middle" %)5|(% style="text-align:center; vertical-align:middle" %)✅| |(% style="text-align:center; vertical-align:middle" %)✅
48 |(% style="text-align:center; vertical-align:middle" %)6| |(% style="text-align:center; vertical-align:middle" %)✅|(% style="text-align:center; vertical-align:middle" %)✅
49 |(% style="text-align:center; vertical-align:middle" %)7|(% style="text-align:center; vertical-align:middle" %)✅|(% style="text-align:center; vertical-align:middle" %)✅|(% style="text-align:center; vertical-align:middle" %)✅
50
51 If the P parameter is not specified, probing ends when any of the Probing, Probing2, Probing3 inputs fires.
52
53 Example of a probing macro for use with a sensor ZATS-01-NC. In this case, the sensor that works first (petals) is assigned to the Probing input, the second one (microswitch) is assigned to Probing2.
54
55 **[[Download M115 macro>>attach:M115_two.pm]]**