Wiki source code of Управление шпинделем
Last modified by writer on 2023/09/08 18:38
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | ===== number SpindleGetCurRPM() ===== | ||
2 | |||
3 | Getting the current spindle speed. | ||
4 | |||
5 | Return value: | ||
6 | |||
7 | * current spindle speed, rpm. | ||
8 | |||
9 | ===== number GetGCodeSpindleRPM() ===== | ||
10 | |||
11 | Getting the current spindle speed specified in the G-code. | ||
12 | |||
13 | Return value: | ||
14 | |||
15 | * current spindle speed specified in the G-code, rpm. | ||
16 | |||
17 | ===== number SpindleGetOverridePercent() ===== | ||
18 | |||
19 | Obtaining a percentage of overriding the current spindle speed. | ||
20 | |||
21 | Return value: | ||
22 | |||
23 | * the percentage that the actual spindle speed is from the specified. | ||
24 | |||
25 | ===== void SpindleStartCW() ===== | ||
26 | |||
27 | Turn on the spindle clockwise. | ||
28 | |||
29 | ===== void SpindleStartCCW() ===== | ||
30 | |||
31 | Turn on spindle rotation counterclockwise. | ||
32 | |||
33 | ===== void SpindleStartCWRPM(number rpm) ===== | ||
34 | |||
35 | Turns on the spindle clockwise at the indicated rotation speed. | ||
36 | |||
37 | Options: | ||
38 | |||
39 | * number rpm – desired spindle rotation speed. | ||
40 | |||
41 | ===== void SpindleStartCCWRPM(number rpm) ===== | ||
42 | |||
43 | Turns on the spindle counterclockwise at the indicated rotation speed. | ||
44 | |||
45 | Options: | ||
46 | |||
47 | * number rpm – desired spindle rotation speed. | ||
48 | |||
49 | ===== void SpindleStop() ===== | ||
50 | |||
51 | Stop spindle rotation. | ||
52 | |||
53 | ===== bool GetSpindleAutoStop() ===== | ||
54 | |||
55 | Allows you to check if the option to automatically turn off the spindle when stopping the G-code execution is active. | ||
56 | |||
57 | Return value: | ||
58 | |||
59 | * true – if automatic spindle turn off when G-code execution is stopped is active. |