Integrating a BCL-AMP capacitive sensor to LinuxCNC

More
22 Jan 2025 23:47 - 23 Jan 2025 13:18 #319686 by prokopcio

A cleaner, linear response signal could be the ticket, as I have fiddled with the PID parameters quite a bit as well as my Z axis velocities and accelerations and it is still not really where I'd like it to be.

Have you considered linearizing the output (with lincurve) before feeding the linearized distance to the
PID loop?


This has already been done.

Have you seen linear graphs?

This has its drawbacks though.

Non-linear characteristics are very good because they have higher resolution/accuracy for useful focus ranges and lower for a larger distance which is not very important but you are right, it is more difficult to handle for a standard PID.

The sensor can be switched between linear and non-linear characteristics as needed and desired.

Last edit: 23 Jan 2025 13:18 by prokopcio.

Please Log in or Create an account to join the conversation.

More
24 Jan 2025 02:14 - 24 Jan 2025 02:16 #319741 by Uthayne

A cleaner, linear response signal could be the ticket, as I have fiddled with the PID parameters quite a bit as well as my Z axis velocities and accelerations and it is still not really where I'd like it to be.

Have you considered linearizing the output (with lincurve) before feeding the linearized distance to the
PID loop?
 


 

PCW: That is not something that I had thought to try. I'll have to give that some thought and see how it performs. Thanks for the tip


prokopcio, I'd recommend starting a new thread in this subforum so we can discuss your design. Looks promising!
Last edit: 24 Jan 2025 02:16 by Uthayne.
The following user(s) said Thank You: prokopcio

Please Log in or Create an account to join the conversation.

More
27 Feb 2025 13:04 #322787 by prokopcio

Please Log in or Create an account to join the conversation.

More
14 Feb 2026 14:55 - 14 Feb 2026 15:26 #342939 by Nathan40
Hi All

Thanks for the help with this. But I am truly stuck up in calculation of the below.: 22900 and 23900 & 930000.0
 If the head is away I am getting a safe value of about 24000 for capacitive-sense-velocity in the halshow
My hm2_7c81.0.encoder.00.velocity-rpm is about 1440000 in the halshow.

When i run my program, the IHS happens perfectly but when the the THC takes control the torch just gets the down signal and never goes up. Kindly help with any formulas with these three parameters. Thanks!

# Configure a limit component for the capacitive sensor output since it is scaled
loadrt limit1
addf limit1.0 servo-thread
net capacitive-sense-velocity limit1.0.in
setp limit1.0.min 22900
setp limit1.0.max 23900
# hook up the limited signal to the plasmac arc voltage
net plasmac:arc-voltage-in <= limit1.0.out

and 

# Make a fake Ohmic probe based on the capacitive sensor
# Use the .velocity-rpm so the .velocity can be left unused for arc_ok
loadrt comp count=1
addf comp.0 servo-thread
net fake-ohmic-probe-in hm2_7c81.0.encoder.00.velocity-rpm comp.0.in0
setp comp.0.in1 930000.0
net plasmac:ohmic-probe comp.0.out
# ohmic output is comp.0.out



 
Last edit: 14 Feb 2026 15:26 by Nathan40.

Please Log in or Create an account to join the conversation.

More
14 Feb 2026 16:24 #342947 by tommylight

When i run my program, the IHS happens perfectly but when the the THC takes control the torch just gets the down signal and never goes up. Kindly help with any formulas with these three parameters.

-Cutting voltage set to low
-Voltage readings to high
-Voltage scaling and offsets not set correctly
-No arc voltage reading at all, can be from inverted polarity into THC, wrong wiring from THC, THC input for high voltage while output from plasma is divided
-voltage divider in plasma/resistors set incorrectly
-broken wires from plasma to THC input
-etc

Please Log in or Create an account to join the conversation.

More
14 Feb 2026 16:32 - 14 Feb 2026 17:05 #342948 by Nathan40
Please share min and max values calculation formulas for capacitive sense velocity for the optimum up and low signals for the fiber laser cutter. Eg to set up 100 volts 100/(fmax-fmin) for arc volt scale. Please correct if i am interpreting it wrong.
Last edit: 14 Feb 2026 17:05 by Nathan40.

Please Log in or Create an account to join the conversation.

More
14 Feb 2026 19:45 #342959 by PCW
Those values need a massive offset (-22900), has that been applied?

Please Log in or Create an account to join the conversation.

More
15 Feb 2026 02:41 #342975 by Nathan40
Does this value always needs to be equal to the min value? Please help, thanks.

Please Log in or Create an account to join the conversation.

More
15 Feb 2026 15:15 #343005 by PCW
If you do not, you will have a huge offset that would have to be compensated
by using a similar setpoint. If you use the 22900 offset, you will now have
a 0 to 1000 active range ( if scale = 1)
The following user(s) said Thank You: Nathan40

Please Log in or Create an account to join the conversation.

More
15 Feb 2026 15:56 #343007 by Nathan40
Thanks for the reply.
For the 930000, fake ohmic sensing are we expecting the voltage value to around 15500.

Please let me know

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.138 seconds
Powered by Kunena Forum