Wiki source code of G10 L2: Установка смещения начала координат
Last modified by writer on 2022/11/02 13:32
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% style="color:#a0be2d" %)//**G10 L2 P- <axes R-> **// | ||
2 | |||
3 | * //P// – coordinate system (0-9); | ||
4 | * //R// – angle of rotation around the Z axis). | ||
5 | |||
6 | The (% style="color:#a0be2d" %)//**G10 L2 **//(%%)command changes the offset of the specified coordinate system to a value specified by the axis parameters. The offset is counted from the machine zero set in the base search process. An offset replaces the current offset valid for the specified coordinate system. The offset on axes that are not specified will not be changed. | ||
7 | |||
8 | Use parameters P0 to P9 to indicate which coordinate system to change. | ||
9 | |||
10 | (% class="wrapped" %) | ||
11 | |=(% style="text-align: center;" %)**Parameter P**|=(% style="text-align: center;" %)**Coordinate system**|=(% style="text-align: center;" %)**G-code** | ||
12 | |(% style="text-align:center" %)0|(% style="text-align:center" %)Current|(% style="text-align:center" %)- | ||
13 | |(% style="text-align:center" %)1|(% style="text-align:center" %)1|(% style="text-align:center" %)//**[[G54>>doc:Руководство пользователя.Описание G-кодов.Список G-кодов, поддерживаемых системой.G40-G79.G54-G59\.3: Выбор системы координат||shape="rect" style="color: rgb(160,190,45);"]]**// | ||
14 | |(% style="text-align:center" %)2|(% style="text-align:center" %)2|(% style="text-align:center" %)//**[[G55>>doc:Руководство пользователя.Описание G-кодов.Список G-кодов, поддерживаемых системой.G40-G79.G54-G59\.3: Выбор системы координат||shape="rect" style="color: rgb(160,190,45);"]]**// | ||
15 | |(% style="text-align:center" %)3|(% style="text-align:center" %)3|(% style="text-align:center" %)//**[[G56>>doc:Руководство пользователя.Описание G-кодов.Список G-кодов, поддерживаемых системой.G40-G79.G54-G59\.3: Выбор системы координат||shape="rect" style="color: rgb(160,190,45);"]]**// | ||
16 | |(% style="text-align:center" %)4|(% style="text-align:center" %)4|(% style="text-align:center" %)//**[[G57>>doc:Руководство пользователя.Описание G-кодов.Список G-кодов, поддерживаемых системой.G40-G79.G54-G59\.3: Выбор системы координат||shape="rect" style="color: rgb(160,190,45);"]]**// | ||
17 | |(% style="text-align:center" %)5|(% style="text-align:center" %)5|(% style="text-align:center" %)//**[[G58>>doc:Руководство пользователя.Описание G-кодов.Список G-кодов, поддерживаемых системой.G40-G79.G54-G59\.3: Выбор системы координат||shape="rect" style="color: rgb(160,190,45);"]]**// | ||
18 | |(% style="text-align:center" %)6|(% style="text-align:center" %)6|(% style="text-align:center" %)//**[[G59>>doc:Руководство пользователя.Описание G-кодов.Список G-кодов, поддерживаемых системой.G40-G79.G54-G59\.3: Выбор системы координат||shape="rect" style="color: rgb(160,190,45);"]]**// | ||
19 | |(% style="text-align:center" %)7|(% style="text-align:center" %)7|(% style="text-align:center" %)//**[[G59.1>>doc:Руководство пользователя.Описание G-кодов.Список G-кодов, поддерживаемых системой.G40-G79.G54-G59\.3: Выбор системы координат||shape="rect" style="color: rgb(160,190,45);"]]**// | ||
20 | |(% style="text-align:center" %)8|(% style="text-align:center" %)8|(% style="text-align:center" %)//**[[G59.2>>doc:Руководство пользователя.Описание G-кодов.Список G-кодов, поддерживаемых системой.G40-G79.G54-G59\.3: Выбор системы координат||shape="rect" style="color: rgb(160,190,45);"]]**// | ||
21 | |(% style="text-align:center" %)9|(% style="text-align:center" %)9|(% style="text-align:center" %)//**[[G59.3>>doc:Руководство пользователя.Описание G-кодов.Список G-кодов, поддерживаемых системой.G40-G79.G54-G59\.3: Выбор системы координат||shape="rect" style="color: rgb(160,190,45);"]]**// | ||
22 | |||
23 | Optionally, you can use the R parameter to specify the rotation of the XY axes around the Z axis. The direction of rotation is counterclockwise relative to the positive direction of the Z axis. | ||
24 | |||
25 | The incremental positioning mode [[(% style="color:#a0be2d" %)//**G91**//>>doc:Руководство пользователя.Описание G-кодов.Список G-кодов, поддерживаемых системой.G90-G99.G90, G91\: Задание режима абсолютныхотносительных координат.WebHome]](%%) does not affect the (% style="color:#a0be2d" %)//**G10 L2 **//(%%)command. | ||
26 | |||
27 | {{warning title="**Important notes:**"}} | ||
28 | * the (% style="color:#a0be2d" %)//**G10 L2 Pn**//(%%) command does not change the current coordinate system, to select a coordinate system, use the commands [[(% style="color:#a0be2d" %)//**G54-G59.3**//>>doc:Руководство пользователя.Описание G-кодов.Список G-кодов, поддерживаемых системой.G40-G79.G54-G59\.3: Выбор системы координат]](%%); | ||
29 | * if offset [[(% style="color:#a0be2d" %)//**G92**//>>doc:Руководство пользователя.Описание G-кодов.Список G-кодов, поддерживаемых системой.G90-G99.G92\: Смещение начала координат.WebHome]](%%) has been set, it will continue to operate after command (% style="color:#a0be2d" %)//**G10 L2**//(%%); | ||
30 | * the coordinate system for which the offset is set by the (% style="color:#a0be2d" %)//**G10 L2**//(%%) command can be active or inactive at the time the command is executed. If the coordinate system is active, the new offset will take effect immediately. | ||
31 | {{/warning}} | ||
32 | |||
33 | {{error title="**It is an error if:**"}} | ||
34 | * parameter P is not an integer in the range from 0 to 9. | ||
35 | {{/error}} | ||
36 | |||
37 | {{code language="g-code" title="(% style=~"color:#a0be2d~" %)//**G10 L2 **//(%%)//example line~~://"}} | ||
38 | G10 L2 P1 X3.5 Y17.2 | ||
39 | {{/code}} | ||
40 | |||
41 | In this example, the origin for the first coordinate system is set to X = 3.5 and Y = 17.2. Since only the X and Y axes are indicated, the origin is shifted along these axes, other coordinates are not changed. | ||
42 | |||
43 | {{code language="g-code" title="(% style=~"color:#a0be2d~" %)//**G10 L2 **//(%%)//example line~~://"}} | ||
44 | G10 L2 P1 X0 Y0 Z0 (zero offsets in X, Y & Z in coordinate system 1) | ||
45 | {{/code}} | ||
46 | |||
47 | In the above example, the XYZ coordinates of the origin of system 1 are set to zero. |