You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-3Lines changed: 32 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,35 @@ Under development. Based on [LinuxCNC specification](http://linuxcnc.org/docs/2.
35
35
| $364 - Ok High Voltage | - | This sets the voltage threshold below which Arc OK signal is valid.|
36
36
| $365 - Ok Low Voltage | - | This sets the voltage threshold above which the Arc OK signal is valid.|
37
37
38
-
#### Supported M-Codes
38
+
#### Auxiliary I/O
39
+
40
+
| Setting | Description |
41
+
|-------------------------|-------------|
42
+
| $366 - Arc voltage port | This sets which analog input port to use for the arc voltage signal. Set to -1 to not use any.<sup>1</sup> |
43
+
| $367 - Arc ok port | This sets which digital input port to use for the arc ok signal. Set to -1 to not use any.<sup>2</sup> |
44
+
| $368 - Cutter down port | This sets which digital input port to use for the cutter down signal. Set to -1 to not use any. |
45
+
| $369 - Cutter up port | This sets which digital input port to use for the cutter up signal. Set to -1 to not use any. |
46
+
47
+
<sup>1</sup> This pin/port is required to enable voltage controlled THC.
48
+
<sup>2</sup> This pin/port is required to enable the plugin.
49
+
50
+
Tip: use the `$PINS` command to list available pins. The port number is the number following the "_Aux in_" text, an example: `[PIN:P3.2,Aux in 0,P0]`.
51
+
52
+
#### $674 - Plugin options
53
+
54
+
| Bit | Value |Description |
55
+
|-----|-------|------------|
56
+
| 0 | 1 | Enable virtual ports. |
57
+
| 1 | 2 | Sync Z position. Update the Z position when THC control ends. |
58
+
59
+
Add the _Value_ fields for the functionality to enable to get the one to use for the setting.
60
+
61
+
> [!NOTE]
62
+
> Virtual ports will shadow any real ports with the same port number. Some dummy ports may also be added.
63
+
64
+
#### Virtual ports
65
+
66
+
Virtual ports are controlled by regular M-Codes.
39
67
40
68
*`M62 P2` will disable THC \(Synchronized with Motion\)
41
69
@@ -56,11 +84,12 @@ The maximum percentage allowed is 100%, values above this will be set to 100%.
56
84
57
85
#### Dependencies:
58
86
59
-
Driver must support a number of [ioports ports](../../templates/ioports.c).
87
+
Driver must support a number of auxiliary I/O ports, at least one digital input for the arc ok signal.
88
+
Some drivers support the MCP3221 I2C ADC, when enabled it can be used for the arc voltage signal.
0 commit comments