Integrating a BCL-AMP capacitive sensor to LinuxCNC
- prokopcio
-
- Offline
- Junior Member
-
Less
More
- Posts: 36
- Thank you received: 24
22 Jan 2025 23:47 - 23 Jan 2025 13:18 #319686
by prokopcio
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.
Replied by prokopcio on topic Integrating a BCL-AMP capacitive sensor to LinuxCNC
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.
- Uthayne
- Offline
- Premium Member
-
Less
More
- Posts: 145
- Thank you received: 46
24 Jan 2025 02:14 - 24 Jan 2025 02:16 #319741
by Uthayne
prokopcio, I'd recommend starting a new thread in this subforum so we can discuss your design. Looks promising!
Replied by Uthayne on topic Integrating a BCL-AMP capacitive sensor to LinuxCNC
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 tipA 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?
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.
- prokopcio
-
- Offline
- Junior Member
-
Less
More
- Posts: 36
- Thank you received: 24
27 Feb 2025 13:04 #322787
by prokopcio
Replied by prokopcio on topic Integrating a BCL-AMP capacitive sensor to LinuxCNC
Please Log in or Create an account to join the conversation.
- Nathan40
- Offline
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 1
14 Feb 2026 14:55 - 14 Feb 2026 15:26 #342939
by Nathan40
Replied by Nathan40 on topic Integrating a BCL-AMP capacitive sensor to LinuxCNC
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
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.
- tommylight
-
- Online
- Moderator
-
Less
More
- Posts: 21424
- Thank you received: 7305
14 Feb 2026 16:24 #342947
by tommylight
-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
Replied by tommylight on topic Integrating a BCL-AMP capacitive sensor to LinuxCNC
-Cutting voltage set to lowWhen 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.
-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.
- Nathan40
- Offline
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 1
14 Feb 2026 16:32 - 14 Feb 2026 17:05 #342948
by Nathan40
Replied by Nathan40 on topic Integrating a BCL-AMP capacitive sensor to LinuxCNC
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.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17794
- Thank you received: 5205
14 Feb 2026 19:45 #342959
by PCW
Replied by PCW on topic Integrating a BCL-AMP capacitive sensor to LinuxCNC
Those values need a massive offset (-22900), has that been applied?
Please Log in or Create an account to join the conversation.
- Nathan40
- Offline
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 1
15 Feb 2026 02:41 #342975
by Nathan40
Replied by Nathan40 on topic Integrating a BCL-AMP capacitive sensor to LinuxCNC
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.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17794
- Thank you received: 5205
15 Feb 2026 15:15 #343005
by PCW
Replied by PCW on topic Integrating a BCL-AMP capacitive sensor to LinuxCNC
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)
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.
- Nathan40
- Offline
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 1
15 Feb 2026 15:56 #343007
by Nathan40
Replied by Nathan40 on topic Integrating a BCL-AMP capacitive sensor to LinuxCNC
Thanks for the reply.
For the 930000, fake ohmic sensing are we expecting the voltage value to around 15500.
Please let me know
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