Wiki source code of G81: Цикл сверления
Last modified by writer on 2023/09/12 15:31
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | (% style="color:#a0be2d" %)//**G81 (X- Y- Z-) or (U- V- W-) R- L-**// |
2 | |||
![]() |
4.1 | 3 | The (% style="color:#a0be2d" %)//**G81**//(%%) cycle is designed for drilling. |
![]() |
1.1 | 4 | |
![]() |
4.1 | 5 | The cycle includes the following actions: |
![]() |
1.1 | 6 | |
![]() |
4.1 | 7 | 1. Preliminary movement described in the section "[[Canned Cycles>>doc:Руководство пользователя.Описание G-кодов.Список G-кодов, поддерживаемых системой.G80-G89\: Постоянные циклы.WebHome]]". |
8 | 1. Move the Z axis with the current feedrate to Z position. | ||
9 | 1. The Z axis moves quickly to the return height along Z. | ||
![]() |
1.1 | 10 | |
![]() |
4.1 | 11 | ====== Example 1 ====== |
![]() |
1.1 | 12 | |
![]() |
4.1 | 13 | Suppose the current position (X1, Y2, Z3) and the following line of G-code is executed: |
![]() |
1.1 | 14 | |
15 | (% style="color:#a0be2d" %)//**G90 G98 G81 X4 Y5 Z1.5 R2.8**// | ||
16 | |||
![]() |
4.1 | 17 | In the example, when the command is executed, the absolute positioning mode ((% style="color:#a0be2d" %)//**G90**//(%%)) and the mode of returning to the initial height in Z ((% style="color:#a0be2d" %)//**G98**//(%%)) are valid. |
![]() |
1.1 | 18 | |
![]() |
4.1 | 19 | The following movements will take place: |
![]() |
1.1 | 20 | |
![]() |
4.1 | 21 | 1. Quick movement in the XY plane to the point (X4, Y5). |
22 | 1. Fast movement along the Z axis to a point (Z2.8). | ||
23 | 1. Moving along the Z axis at a given feedrate in (Z1.5). | ||
24 | 1. Fast movement along the Z axis in (Z3). | ||
![]() |
1.1 | 25 | |
![]() |
4.1 | 26 | [[Command (% style="color:#a0be2d" %)//**G81**//(%%). Example 1>>image:image2019-6-4_14-4-45.png||alt="Команда (% style=" data-xwiki-image-style-alignment="center"]] |
![]() |
1.1 | 27 | |
![]() |
4.1 | 28 | ====== Example 2 ====== |
![]() |
1.1 | 29 | |
![]() |
4.1 | 30 | Suppose the current position (X1, Y2, Z3) and the following line of G-code is executed: |
![]() |
1.1 | 31 | |
32 | (% style="color:#a0be2d" %)//**G91 G98 G81 X4 Y5 Z-0.6 R1.8 L3**// | ||
33 | |||
![]() |
4.1 | 34 | In the example, when executing the command, the incremental positioning mode ((% style="color:#a0be2d" %)//**G91**//(%%)) and the mode of returning to the initial height in Z ((% style="color:#a0be2d" %)//**G98**//(%%)) are effective. The machine performs a drilling cycle three times. The initial position in X is 5 (= 1 + 4), the initial position in Y is 7 (= 2 + 5), the return height in Z is 4.8 (= 1.8 + 3), the target position in Z is 4.2 (= 4.8-0.6 ) The initial position in Z is 3. |
![]() |
1.1 | 35 | |
![]() |
4.1 | 36 | During the preliminary movement, a quick movement along the Z axis to the position (X1, Y2, Z4.8) is made, since the initial height in Z is less than the return height. |
![]() |
1.1 | 37 | |
![]() |
4.1 | 38 | The first iteration of the loop consists of 3 movements: |
![]() |
1.1 | 39 | |
![]() |
4.1 | 40 | 1. Fast movement in the XY plane in (X5, Y7). |
41 | 1. Moving along the Z axis at a given feedrate in (Z4.2). | ||
42 | 1. Fast movement along the Z axis in (X5, Y7, Z4.8). | ||
![]() |
1.1 | 43 | |
![]() |
4.1 | 44 | The second iteration of the loop consists of 3 movements: |
![]() |
1.1 | 45 | |
![]() |
4.1 | 46 | 1. Fast movement in the XY plane in (X9, Y12, Z4.8). |
47 | 1. Movement along the Z axis with a given feedrate in (X9, Y12, Z4.2). | ||
48 | 1. Fast movement along the Z axis in (X9, Y12, Z4.8). | ||
![]() |
1.1 | 49 | |
![]() |
4.1 | 50 | The third iteration of the cycle consists of 3 movements: |
![]() |
1.1 | 51 | |
![]() |
4.1 | 52 | 1. Fast movement in the XY plane in (X13, Y17, Z4.8). |
53 | 1. Movement along the Z axis with a given feedrate in (X13, Y17, Z4.2). | ||
54 | 1. Fast movement along the Z axis in (X13, Y17, Z4.8). | ||
![]() |
1.1 | 55 | |
![]() |
4.1 | 56 | [[Command (% style="color:#a0be2d" %)//**G81**//(%%). Example 2>>image:image2019-6-4_14-6-45.png||alt="Команда G81. Пример 2" data-xwiki-image-style-alignment="center"]] |
![]() |
1.1 | 57 | |
![]() |
4.1 | 58 | ====== Example 3 ====== |
![]() |
1.1 | 59 | |
![]() |
4.1 | 60 | Suppose that the current position (X0, Y0, Z0) instead of (X1, Y2, Z3), and a line of G-code is executed: |
![]() |
1.1 | 61 | |
62 | (% style="color:#a0be2d" %)//**G90 G98 G81 X4 Y5 Z1.5 R2.8**// | ||
63 | |||
![]() |
4.1 | 64 | Since the initial height in Z is less than the value of the parameter R, during the preliminary movement, the initial movement in Z will be performed. |