Skip to content

Commit afdb19a

Browse files
committed
plasmac: remove safe_min from THC top limit check in Mode 2
Also reduces the number of decimal places in the low_cut_volts error message.
1 parent 1d62992 commit afdb19a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/hal/components/plasmac.comp

Lines changed: 4 additions & 4 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-
013
10+
014
1111

1212
=== SUMMARY
1313

@@ -772,9 +772,9 @@ FUNCTION(_) {
772772
stop_type = PAUSE;
773773
probe_required = TRUE;
774774
rtapi_print_msg(RTAPI_MSG_ERR,"arc voltage fell below safe level while THC active\n"
775-
"target voltage = %f\n"
775+
"target voltage = %.2f\n"
776776
"low cut volts = %d\n"
777-
"arc voltage = %f\n"
777+
"arc voltage = %.2f\n"
778778
"program is paused.\n", target_volts, low_cut_volts, arc_voltage_out);
779779
probe_inhibit = TRUE;
780780
state = MAX_HEIGHT;
@@ -1922,7 +1922,7 @@ FUNCTION(_) {
19221922
led_down = TRUE;
19231923
}
19241924
}else if(move_up && !cornerlock_is_locked){
1925-
if(z_offset_counts + thc_velocity + safe_min >= offset_max){
1925+
if(z_offset_counts + thc_velocity >= offset_max){
19261926
torch_on = FALSE;
19271927
stop_type = PAUSE;
19281928
program_pause = TRUE;

0 commit comments

Comments
 (0)