Wiki source code of Управление осями (фоновые операции)
Last modified by writer on 2023/09/08 19:05
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | ===== number AxisGetPos (number axisId) ===== | ||
2 | |||
3 | Getting the current working coordinate of the specified axis. | ||
4 | |||
5 | Options: | ||
6 | |||
7 | * number axisId – axis number, an integer from 0 to 8 (one of the constants defined in the **[[Axis>>doc:Руководство пользователя.Описание M-кодов.Описание функций макроязыка.Управление осями.WebHome||rel="nofollow" shape="rect" style="text-decoration: none;"]] **list can be passed as this parameter). | ||
8 | |||
9 | Return value: | ||
10 | |||
11 | * value of the current working coordinate of the specified axis. | ||
12 | |||
13 | ===== number AxisGetMachinePos (number axisId) ===== | ||
14 | |||
15 | Getting the current machine coordinate of the specified axis. | ||
16 | |||
17 | Options: | ||
18 | |||
19 | * number axisId – axis number, an integer from 0 to 8 (one of the constants defined in the **[[Axis>>doc:Руководство пользователя.Описание M-кодов.Описание функций макроязыка.Управление осями.WebHome||rel="nofollow" shape="rect" style="text-decoration: none;"]] **list can be passed as this parameter). | ||
20 | |||
21 | Return value: | ||
22 | |||
23 | * value of the current machine coordinate of the specified axis. | ||
24 | |||
25 | ===== number GetCurFeedrate () ===== | ||
26 | |||
27 | Getting the current speed of movement. | ||
28 | |||
29 | Return value: | ||
30 | |||
31 | * the module of the velocity vector in XYZ space. | ||
32 | |||
33 | ===== number GetGCodeFeedrate () ===== | ||
34 | |||
35 | Getting the current speed of movement specified in the G-code. | ||
36 | |||
37 | Return value: | ||
38 | |||
39 | * current speed of movement specified in the G-code. | ||
40 | |||
41 | ===== number GetFeedrateOverridePercent () ===== | ||
42 | |||
43 | Getting the percentage of overriding the current speed of movement. | ||
44 | |||
45 | Return value: | ||
46 | |||
47 | * percentage of the actual speed of movement from the set. | ||
48 | |||
49 | ===== void SetFeedrateOverridePercent (number value) ===== | ||
50 | |||
51 | Set the percentage of overriding the current speed of movement. | ||
52 | |||
53 | Options: | ||
54 | |||
55 | * number value - the desired percentage of overriding the current speed of movement. | ||
56 | |||
57 | ===== number GetRapidrateOverridePercent () ===== | ||
58 | |||
59 | Obtaining a percentage of redefining the current speed of rapid movement. | ||
60 | |||
61 | Return value: | ||
62 | |||
63 | * percentage of the actual speed of idle crossings from a given. | ||
64 | |||
65 | ===== void SetRapidrateOverridePercent (number value) ===== | ||
66 | |||
67 | Set the percentage of overriding the current speed of rapid movement. | ||
68 | |||
69 | Options: | ||
70 | |||
71 | * number value - the desired percentage of redefining the current speed of rapid movement. | ||
72 | |||
73 | ===== bool IsAxisReferenced (number axisId) ===== | ||
74 | |||
75 | Allows you to check whether the specified axis is homed. | ||
76 | |||
77 | Options: | ||
78 | |||
79 | * number axisId - axis number, an integer from 0 to 8 (one of the constants defined in the **[[Axis>>doc:Руководство пользователя.Описание M-кодов.Описание функций макроязыка.Управление осями.WebHome||shape="rect" style="text-decoration: none;"]] **list can be passed as this parameter). | ||
80 | |||
81 | Return value: | ||
82 | |||
83 | * true – if axis is homed; | ||
84 | * false – if axis is not homed. | ||
85 | |||
86 | ===== bool IsAxesMaskReferenced (number axesMask) ===== | ||
87 | |||
88 | Allows you to check whether the homing has been performed for all axes defined by the axesMask mask. | ||
89 | |||
90 | Options: | ||
91 | |||
92 | * number axesMask - axis mask, an integer in which bits from 0 to 8 indicate whether the corresponding axes are selected. | ||
93 | |||
94 | Return value: | ||
95 | |||
96 | * true - if the homing was completed; | ||
97 | * false - if the homing was not performed. | ||
98 | |||
99 | ===== number GetJogOverridePercent () ===== | ||
100 | |||
101 | Getting a jog override percent. | ||
102 | |||
103 | Return value: | ||
104 | |||
105 | * a jog override percent. | ||
106 | |||
107 | ===== void SetJogOverridePercent (number value) ===== | ||
108 | |||
109 | Setting a jog override percent. | ||
110 | |||
111 | Options: | ||
112 | |||
113 | * number value – a jog override percent of the commanded. |