Skip to content

Commit 1d62992

Browse files
committed
plasmac: allow THC up/down outputs in Mode 2 when idle
When in Mode 2, if halui.machine.is-on and halui.program.is-idle are True, allow plasmac.led-up/led-down outputs to reflect plasmac.move-up/move-down inputs. This enables testing without cutting material.
1 parent 59cf0ce commit 1d62992

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/hal/components/plasmac.comp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A plasma cutting table control component for use with the LinuxCNC 2.10.
77

88
=== VERSION
99

10-
012
10+
013
1111

1212
=== SUMMARY
1313

@@ -73,7 +73,7 @@ pin in s32 laser_recovery_start "start laser offset for cut recovery
7373
pin in s32 laser_x_offset "alignment laser x axis offset (scaled units)";
7474
pin in s32 laser_y_offset "alignment laser y axis offset (scaled units)";
7575
pin in float lowpass_frequency "lowpass cutoff frequency for arc voltage output";
76-
pin in bit machine_is_on "machine is on signal";
76+
pin in bit machine_is_on "machine is on signal, connect to halui.machine.is-on";
7777
pin in float material_thickness "material thickness (machine units)";
7878
pin in s32 max_offset = 5 "maximum height offset (mm)";
7979
pin in bit mesh_arc_ok = FALSE "Do not require arc ok for mesh mode.";
@@ -942,6 +942,10 @@ FUNCTION(_) {
942942
// if(!offsets_active && program_is_idle){
943943
// z_offset_enable = FALSE;
944944
// }
945+
if (mode == 2 && program_is_idle){
946+
led_down = move_down;
947+
led_up = move_up;
948+
}
945949
if(probe_inhibit && !float_switch && !breakaway && !ohmic_detected){
946950
probe_inhibit = FALSE;
947951
}else if(!probe_inhibit){

0 commit comments

Comments
 (0)