Wiki source code of G10 L20: Установка смещения начала координат (вычисленное значение)
Last modified by writer on 2023/02/09 17:21
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% style="color: rgb(160,190,45);" %) | ||
2 | //**G10 L20 P- axes**// | ||
3 | |||
4 | The (% style="color:#a0be2d" %)//**G10 L20**//(%%) command is identical to the(% style="color:#a0be2d" %)//** G10 L2**//(%%) command, except that the offset is set not to the specified value, but to the calculated value so that the current coordinates become equal to the specified value. | ||
5 | |||
6 | Table of comparison to the value of the parameter P and coordinate systems. | ||
7 | |||
8 | |=(% style="text-align: center;" %)**The value of the parameter P**|=(% style="text-align: center;" %)**Coordinate system** | ||
9 | |(% style="text-align:center" %)0|(% style="text-align:center" %)current selected | ||
10 | |(% style="text-align:center" %)1|(% style="text-align:center" %)G54 | ||
11 | |(% style="text-align:center" %)2|(% style="text-align:center" %)G55 | ||
12 | |(% style="text-align:center" %)3|(% style="text-align:center" %)G56 | ||
13 | |(% style="text-align:center" %)4|(% style="text-align:center" %)G57 | ||
14 | |(% style="text-align:center" %)5|(% style="text-align:center" %)G58 | ||
15 | |(% style="text-align:center" %)6|(% style="text-align:center" %)G59 | ||
16 | |(% style="text-align:center" %)7|(% style="text-align:center" %)G59.1 | ||
17 | |(% style="text-align:center" %)8|(% style="text-align:center" %)G59.2 | ||
18 | |(% style="text-align:center" %)9|(% style="text-align:center" %)G59.3 | ||
19 | |||
20 | {{code language="g-code" title="(% style=~"color:#a0be2d~" %)//**G10 L20 **//(%%)//example line~~://"}} | ||
21 | G10 L20 P1 X1.5 (set the current X position in coordinate system 1 to 1.5) | ||
22 | {{/code}} | ||
23 | |||
24 | {{error title="**It is an error if:**"}} | ||
25 | * parameter P is not an integer in the range from 0 to 9. | ||
26 | {{/error}} |