Always Active THC for Fiber Laser

More
2 years 6 months ago #299414 by Uthayne
I have a need for the THC to be always active, regardless of torch_on state or current velocity since the fiber laser senses capacitance at the nozzle which doesn't care if the "torch" is on or off. This is also a convenient way to tune the THC and Z-axis parameters during a dry run. Maintaining a closely controlled cut height is crucial to high cut quality.

For my testing purposes, I modified plasmac.comp as follows:

IS:
Code:
if(!mesh_enable && !ignore_arc_ok_0 && !ignore_arc_ok_1){ //THC active during dry run *LASER*
WAS:
Code:
if(torch_on && !mesh_enable && !ignore_arc_ok_0 && !ignore_arc_ok_1){

also,
IS:
Code:
if(current_velocity * 60 > 0){ //always enable THC *LASER*
WAS:
Code:
if(current_velocity * 60 > requested_feed_rate * 0.999){

I realize that as written this breaks functionality for plasmas, so something more elegant will have to be created that includes a LASER_MODE bool or something similar as we start to grow the fiber laser features of Plasmac.

Phill/Snowy, if there's an easier way to do this outside of the plasmac.comp, I'd be interested in knowing

Thanks!

Please Log in to join the conversation.

More
2 years 5 months ago #299433 by phillc54

I realize that as written this breaks functionality for plasmas, so something more elegant will have to be created that includes a LASER_MODE bool or something similar as we start to grow the fiber laser features of Plasmac.

Phill/Snowy, if there's an easier way to do this outside of the plasmac.comp, I'd be interested in knowing

I think that the LASER_MODE bool would be the best way to go.

Please Log in to join the conversation.

More
2 years 5 months ago #299602 by Uthayne
This is what I have changed it to:

For input pins,
Code:
pin in bit laser_mode "laser mode for fiber lasers";
Code:
/* while cutting and it is not a dry run or laser mode is enabled and mesh mode is not enabled: * if thc is enabled then vary the torch height to keep the arc voltage constant * if corner lock enabled, only allow THC if current velocity is greater than the threshold percentage of requested velocity * if voidlock is enabled, only allow THC if the voltage change is less than the threshold voltage * adjust torch height and target voltage to suit if height override requested */ if((torch_on || laser_mode) && !mesh_enable && !ignore_arc_ok_0 && !ignore_arc_ok_1){ if(target_volts == 0){ cornerlock_is_locked = TRUE; /* wait until velocity reaches 99.9% of requested velocity or if laser mode is enabled*/ if((current_velocity * 60 > requested_feed_rate * 0.999) || laser_mode){

Please Log in to join the conversation.

More
2 years 5 months ago #299603 by phillc54
Would you like to create a pull request for this?
 

Please Log in to join the conversation.

More
2 years 5 months ago #299604 by Uthayne
Yes I will be submitting one. Just testing a few things out and making sure everything is good to go

Please Log in to join the conversation.

More
2 years 5 months ago #299606 by phillc54
Great, could you please also bump the version numbers in both:
src/hal/components/plasmac.comp
share/qtvcp/screens/qtplasmac/qtplasmac_handler.py

and also add an update to:
share/qtvcp/screens/qtplasmac/versions.html

Please Log in to join the conversation.

More
2 years 5 months ago #299667 by Uthayne
Pull request has been submitted.

Please Log in to join the conversation.

Time to create page: 0.084 seconds
Powered by Kunena Forum