Import LinuxCNC source tree

This commit is contained in:
Wang Dequan
2026-08-20 06:17:39 +08:00
commit 2c814634c3
9429 changed files with 10556013 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<pyvcp>
<!--
Include your PyVCP panel here.
The contents of this file will not be overwritten when you run stepconf again.
-->
</pyvcp>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,361 @@
<pyvcp>
<hbox>
<labelframe text="Inputs">
<hbox>
<label>
<text>""</text>
</label>
</hbox>
<hbox>
<led>
<halpin>"led.2"</halpin>
<disable_pin>True</disable_pin>
</led>
<label>
<text>"Input pin 2"</text>
<halpin>"led_text.2"</halpin>
<disable_pin>True</disable_pin>
</label>
</hbox>
<hbox>
<led>
<halpin>"led.3"</halpin>
<disable_pin>True</disable_pin>
</led>
<label>
<text>"Input pin 3"</text>
<halpin>"led_text.3"</halpin>
<disable_pin>True</disable_pin>
</label>
</hbox>
<hbox>
<led>
<halpin>"led.4"</halpin>
<disable_pin>True</disable_pin>
</led>
<label>
<text>"Input pin 4"</text>
<halpin>"led_text.4"</halpin>
<disable_pin>True</disable_pin>
</label>
</hbox>
<hbox>
<led>
<halpin>"led.5"</halpin>
<disable_pin>True</disable_pin>
</led>
<label>
<text>"Input pin 5"</text>
<halpin>"led_text.5"</halpin>
<disable_pin>True</disable_pin>
</label>
</hbox>
<hbox>
<led>
<halpin>"led.6"</halpin>
<disable_pin>True</disable_pin>
</led>
<label>
<text>"Input pin 6"</text>
<halpin>"led_text.6"</halpin>
<disable_pin>True</disable_pin>
</label>
</hbox>
<hbox>
<led>
<halpin>"led.7"</halpin>
<disable_pin>True</disable_pin>
</led>
<label>
<text>"Input pin 7"</text>
<halpin>"led_text.7"</halpin>
<disable_pin>True</disable_pin>
</label>
</hbox>
<hbox>
<led>
<halpin>"led.8"</halpin>
<disable_pin>True</disable_pin>
</led>
<label>
<text>"Input pin 8"</text>
<halpin>"led_text.8"</halpin>
<disable_pin>True</disable_pin>
</label>
</hbox>
<hbox>
<led>
<halpin>"led.9"</halpin>
<disable_pin>True</disable_pin>
</led>
<label>
<text>"Input pin 9"</text>
<halpin>"led_text.9"</halpin>
<disable_pin>True</disable_pin>
</label>
</hbox>
<hbox>
<led>
<halpin>"led.10"</halpin>
<disable_pin>True</disable_pin>
</led>
<label>
<text>"Input pin 10"</text>
</label>
</hbox>
<hbox>
<led>
<halpin>"led.11"</halpin>
<disable_pin>True</disable_pin>
</led>
<label>
<text>"Input pin 11"</text>
</label>
</hbox>
<hbox>
<led>
<halpin>"led.12"</halpin>
<disable_pin>True</disable_pin>
</led>
<label>
<text>"Input pin 12"</text>
</label>
</hbox>
<hbox>
<led>
<halpin>"led.13"</halpin>
<disable_pin>True</disable_pin>
</led>
<label>
<text>"Input pin 13"</text>
</label>
</hbox>
<hbox>
<led>
<halpin>"led.15"</halpin>
<disable_pin>True</disable_pin>
</led>
<label>
<text>"Input pin 15"</text>
</label>
</hbox>
</labelframe>
<labelframe text="Outputs">
<hbox>
<label>
<text>"Output pin 1 "</text>
</label>
<button>
<halpin>"button.1"</halpin>
<disable_pin>True</disable_pin>
<text>"On"</text>
</button>
<checkbutton>
<halpin>"checkbutton.1"</halpin>
<text>"Latch"</text>
<font>("Helvetica",8)</font>
</checkbutton>
</hbox>
<hbox>
<label>
<text>"Output pin 2 "</text>
<halpin>"button_text.2"</halpin>
<disable_pin>True</disable_pin>
</label>
<button>
<halpin>"button.2"</halpin>
<disable_pin>True</disable_pin>
<text>"On"</text>
</button>
<checkbutton>
<halpin>"checkbutton.2"</halpin>
<text>"Latch"</text>
<font>("Helvetica",8)</font>
</checkbutton>
</hbox>
<hbox>
<label>
<text>"Output pin 3 "</text>
<halpin>"button_text.3"</halpin>
<disable_pin>True</disable_pin>
</label>
<button>
<halpin>"button.3"</halpin>
<disable_pin>True</disable_pin>
<text>"On"</text>
</button>
<checkbutton>
<halpin>"checkbutton.3"</halpin>
<text>"Latch"</text>
<font>("Helvetica",8)</font>
</checkbutton>
</hbox>
<hbox>
<label>
<text>"Output pin 4 "</text>
<halpin>"button_text.4"</halpin>
<disable_pin>True</disable_pin>
</label>
<button>
<halpin>"button.4"</halpin>
<disable_pin>True</disable_pin>
<text>"On"</text>
</button>
<checkbutton>
<halpin>"checkbutton.4"</halpin>
<text>"Latch"</text>
<font>("Helvetica",8)</font>
</checkbutton>
</hbox>
<hbox>
<label>
<text>"Output pin 5 "</text>
<halpin>"button_text.5"</halpin>
<disable_pin>True</disable_pin>
</label>
<button>
<halpin>"button.5"</halpin>
<disable_pin>True</disable_pin>
<text>"On"</text>
</button>
<checkbutton>
<halpin>"checkbutton.5"</halpin>
<text>"Latch"</text>
<font>("Helvetica",8)</font>
</checkbutton>
</hbox>
<hbox>
<label>
<text>"Output pin 6 "</text>
<halpin>"button_text.6"</halpin>
<disable_pin>True</disable_pin>
</label>
<button>
<halpin>"button.6"</halpin>
<disable_pin>True</disable_pin>
<text>"On"</text>
</button>
<checkbutton>
<halpin>"checkbutton.6"</halpin>
<font>("Helvetica",8)</font>
<text>"Latch"</text>
</checkbutton>
</hbox>
<hbox>
<label>
<text>"Output pin 7 "</text>
<halpin>"button_text.7"</halpin>
<disable_pin>True</disable_pin>
</label>
<button>
<halpin>"button.7"</halpin>
<disable_pin>True</disable_pin>
<text>"On"</text>
</button>
<checkbutton>
<halpin>"checkbutton.7"</halpin>
<font>("Helvetica",8)</font>
<text>"Latch"</text>
</checkbutton>
</hbox>
<hbox>
<label>
<text>"Output pin 8 "</text>
<halpin>"button_text.8"</halpin>
<disable_pin>True</disable_pin>
</label>
<button>
<halpin>"button.8"</halpin>
<disable_pin>True</disable_pin>
<text>"On"</text>
</button>
<checkbutton>
<halpin>"checkbutton.8"</halpin>
<font>("Helvetica",8)</font>
<text>"Latch"</text>
</checkbutton>
</hbox>
<hbox>
<label>
<text>"Output pin 9 "</text>
<halpin>"button_text.9"</halpin>
<disable_pin>True</disable_pin>
</label>
<button>
<halpin>"button.9"</halpin>
<disable_pin>True</disable_pin>
<text>"On"</text>
</button>
<checkbutton>
<halpin>"checkbutton.9"</halpin>
<text>"Latch"</text>
<font>("Helvetica",8)</font>
</checkbutton>
</hbox>
<hbox>
<label>
<text>"Output pin 14"</text>
</label>
<button>
<halpin>"button.14"</halpin>
<disable_pin>True</disable_pin>
<text>"On"</text>
</button>
<checkbutton>
<halpin>"checkbutton.14"</halpin>
<font>("Helvetica",8)</font>
<text>"Latch"</text>
</checkbutton>
</hbox>
<hbox>
<label>
<text>"Output pin 16"</text>
</label>
<button>
<halpin>"button.16"</halpin>
<disable_pin>True</disable_pin>
<text>"On"</text>
</button>
<checkbutton>
<halpin>"checkbutton.16"</halpin>
<font>("Helvetica",8)</font>
<text>"Latch"</text>
</checkbutton>
</hbox>
<hbox>
<label>
<text>"Output pin 17"</text>
</label>
<button>
<halpin>"button.17"</halpin>
<disable_pin>True</disable_pin>
<text>"On"</text>
</button>
<checkbutton>
<halpin>"checkbutton.17"</halpin>
<font>("Helvetica",8)</font>
<text>"Latch"</text>
</checkbutton>
</hbox>
</labelframe>
</hbox>
</pyvcp>

View File

@@ -0,0 +1,31 @@
<?xml version='1.0' encoding='UTF-8'?>
<pyvcp>
<vbox>
<relief>RIDGE</relief>
<bd>6</bd>
<label>
<text>"Spindle Speed:"</text>
<font>("Helvetica",20)</font>
</label>
<bar>
<halpin>"spindle-speed"</halpin>
<max_>3000</max_>
</bar>
<label>
<text>"Spindle-At-Speed:"</text>
<font>("Helvetica",20)</font>
</label>
<hbox>
<label>
<text>" "</text>
<font>("Helvetica",20)</font>
</label>
<led>
<halpin>"spindle-at-speed-led"</halpin>
<size>30</size>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
</led>
</hbox>
</vbox>
</pyvcp>

View File

@@ -0,0 +1,193 @@
<?xml version='1.0' encoding='UTF-8'?>
<pyvcp>
<labelframe text="Signals">
<hbox>
<vbox>
<led>
<halpin>"Led-FloatSwitch"</halpin>
<size>20</size>
<on_color>"blue"</on_color>
<off_color>"grey"</off_color>
</led>
<led>
<halpin>"Led-TorchOn"</halpin>
<size>20</size>
<on_color>"yellow"</on_color>
<off_color>"grey"</off_color>
</led>
<led>
<halpin>"Led-ArcOK"</halpin>
<size>20</size>
<on_color>"green"</on_color>
<off_color>"grey"</off_color>
</led>
<led>
<halpin>"Led-ExtEStop"</halpin>
<size>20</size>
<on_color>"red"</on_color>
<off_color>"grey"</off_color>
</led>
</vbox>
<vbox>
<label text="Float Switch"/>
<label text="Torch On"/>
<label text="Arc OK"/>
<label text="External EStop"/>
</vbox>
</hbox>
</labelframe>
<labelframe text="Adjustments">
<vbox>
<hbox>
<vbox>
<led>
<halpin>"Led-MoveUp"</halpin>
<size>20</size>
<on_color>"green"</on_color>
<off_color>"grey"</off_color>
</led>
<led>
<halpin>"Led-MoveDown"</halpin>
<size>20</size>
<on_color>"green"</on_color>
<off_color>"grey"</off_color>
</led>
</vbox>
<vbox>
<label text="Move UP"/>
<label text="Move Down"/>
</vbox>
</hbox>
<hbox>
<relief>RIDGE</relief>
<bd>1</bd>
<label text="Step Size"/>
<spinbox>
<halpin>"Spin-THCStepSize"</halpin>
<min_>0.01</min_>
<max_>1</max_>
<width>"6"</width>
<resolution>.01</resolution>
<format>"5.2f"</format>
<justify>RIGHT</justify>
</spinbox>
</hbox>
<hbox>
<relief>RIDGE</relief>
<bd>1</bd>
<label text="Travel Height"/>
<spinbox>
<halpin>"Spin-TravelHeight"</halpin>
<min_>1</min_>
<max_>99</max_>
<initval>54</initval>
<width>"3"</width>
<resolution>1</resolution>
<format>"3.0f"</format>
<justify>RIGHT</justify>
</spinbox>
</hbox>
<hbox>
<relief>RIDGE</relief>
<bd>1</bd>
<label text="Sw. Travel"/>
<spinbox>
<halpin>"Spin-SwitchTravel"</halpin>
<min_>-50</min_>
<max_>50</max_>
<initval>2</initval>
<width>"5"</width>
<resolution>.01</resolution>
<format>"5.2f"</format>
<justify>RIGHT</justify>
</spinbox>
</hbox>
</vbox>
</labelframe>
<labelframe text="Piercing">
<vbox>
<vbox>
<hbox>
<relief>RIDGE</relief>
<bd>1</bd>
<label text="Delay Timer"/>
<number>
<halpin>"Num-PierceDelayTimer"</halpin>
<format>"+4.2f"</format>
</number>
</hbox>
<hbox>
<vbox>
<label text="Delay"/>
<label text="Gap"/>
<label text="AutoStart"/>
</vbox>
<vbox>
<spinbox>
<halpin>"Spin-PierceDelay"</halpin>
<min_>0.00</min_>
<max_>10</max_>
<initval>0.01</initval>
<width>"6"</width>
<resolution>.01</resolution>
<format>"5.2f"</format>
<justify>RIGHT</justify>
</spinbox>
<spinbox>
<halpin>"Spin-PierceGap"</halpin>
<min_>0.01</min_>
<max_>10</max_>
<initval>0.5</initval>
<width>"6"</width>
<resolution>.01</resolution>
<format>"5.2f"</format>
<justify>RIGHT</justify>
</spinbox>
<checkbutton>
<halpin>"Check-AutoStart"</halpin>
<initval>1</initval>
<bd>1</bd>
</checkbutton>
</vbox>
</hbox>
</vbox>
</vbox>
</labelframe>
<labelframe text="Corner Height Lock">
<vbox>
<hbox>
<vbox>
<led>
<halpin>"Led-HeightLocked"</halpin>
<size>20</size>
<on_color>"green"</on_color>
<off_color>"grey"</off_color>
</led>
<checkbutton>
<halpin>"Check-CHLEnable"</halpin>
<bd>1</bd>
</checkbutton>
</vbox>
<vbox>
<label text="Locked"/>
<label text="Enable"/>
</vbox>
</hbox>
<vbox>
<relief>RIDGE</relief>
<bd>1</bd>
<label text="Threshold %"/>
<scale>
<halpin>"Scale-CHLThreshold"</halpin>
<min_>10</min_>
<max_>99</max_>
<initval>60</initval>
<resolution>1</resolution>
<orient>HORIZONTAL</orient>
</scale>
</vbox>
</vbox>
</labelframe>
</pyvcp>

View File

@@ -0,0 +1,209 @@
<?xml version='1.0' encoding='UTF-8'?>
<pyvcp>
<vbox>
<relief>RIDGE</relief>
<bd>6</bd>
<labelframe text="Set G92 Origon">
<font>("Helvetica",20)</font>
<hbox>
<label>
<width>10</width>
</label>
<button>
<halpin>"MDI-zerox"</halpin>
<text>" Zero X "</text>
<justify>"right"</justify>
</button>
</hbox>
<hbox>
<label>
<width>10</width>
</label>
<button>
<halpin>"MDI-zeroy"</halpin>
<text>" Zero Y "</text>
</button>
</hbox>
<hbox>
<label>
<width>10</width>
</label>
<button>
<halpin>"MDI-zeroz"</halpin>
<text>" Zero Z "</text>
</button>
</hbox>
<hbox>
<label>
<width>6</width>
</label>
<button>
<halpin>"MDI-clear-offset"</halpin>
<text>" Clear G92 offset "</text>
</button>
</hbox>
</labelframe>
<label>
<width>1</width>
</label>
<labelframe text="Jog">
<font>("Helvetica",20)</font>
<hbox>
<label>
<width>5</width>
</label>
<button>
<halpin>"jog-x+"</halpin>
<text>" X + "</text>
<justify>"right"</justify>
</button>
<label>
<width>5</width>
</label>
<button>
<halpin>"jog-x-"</halpin>
<text>" X - "</text>
<justify>"right"</justify>
</button>
</hbox>
<hbox>
<label>
<width>5</width>
</label>
<button>
<halpin>"jog-y+"</halpin>
<text>" Y + "</text>
</button>
<label>
<width>5</width>
</label>
<button>
<halpin>"jog-y-"</halpin>
<text>" Y - "</text>
</button>
</hbox>
<hbox>
<label>
<width>5</width>
</label>
<button>
<halpin>"jog-z+"</halpin>
<text>" Z + "</text>
</button>
<label>
<width>5</width>
</label>
<button>
<halpin>"jog-z-"</halpin>
<text>" Z - "</text>
</button>
</hbox>
<hbox>
<label>
<width>3</width>
</label>
<label>
<text>"Jog Speed"</text>
</label>
<label>
<width>1</width>
</label>
<spinbox>
<halpin>"jog-speed"</halpin>
<min_>0</min_>
<resolution>.5</resolution>
<format>"2.1f"</format>
<width>5</width>
<font>("Arial",30)</font>
<justify>RIGHT</justify>
<initval>20</initval>
</spinbox>
</hbox>
</labelframe>
<label>
<width>1</width>
</label>
<labelframe text="MDI commands">
<font>("Helvetica",20)</font>
<hbox>
<button>
<halpin>"MDI-z_up"</halpin>
<text>"Goto Z Zero"</text>
</button>
<button>
<halpin>"MDI-reference"</halpin>
<text>"Goto Reference"</text>
</button>
</hbox>
</labelframe>
<label>
<width>1</width>
</label>
<labelframe text="Optional Stop">
<font>("Helvetica",20)</font>
<hbox>
<label>
<width>1</width>
</label>
<button>
<halpin>"ostop-on"</halpin>
<text>" on "</text>
</button>
<label>
<width>5</width>
</label>
<led>
<halpin>"ostop-is-on"</halpin>
<size>20</size>
<on_color>"blue"</on_color>
<off_color>"grey"</off_color>
</led>
<label>
<width>5</width>
</label>
<button>
<halpin>"ostop-off"</halpin>
<text>" off "</text>
</button>
</hbox>
</labelframe>
<label>
<width>1</width>
</label>
<labelframe text="Program Control">
<font>("Helvetica",20)</font>
<hbox>
<vbox>
<button>
<halpin>"pause"</halpin>
<text>"Pause"</text>
<bg>"red"</bg>
</button>
</vbox>
<button>
<halpin>"resume"</halpin>
<text>"Resume"</text>
<bg>"green"</bg>
</button>
<button>
<halpin>"step"</halpin>
<text>"Single block"</text>
<bg>"yellow"</bg>
</button>
<vbox>
</vbox>
</hbox>
</labelframe>
</vbox>
</pyvcp>