Connecting multiple sensors with one probe signal
- suspension
- Offline
- Junior Member
-
Less
More
- Posts: 34
- Thank you received: 1
19 Feb 2023 16:59 #264817
by suspension
Connecting multiple sensors with one probe signal was created by suspension
I have a chinese 6040 CNC which has only one probe input. I want to use this probe input for three sensors.
1. A 3D sensor such as TP06 available from aliexpress. This is an active sensor. This is for edge finding.
2. A Z axis tool sensor also from aliexpress. This I think is a passive sensor.
3. A simple normally open passive probe that I use when milling PCB's. This probe is used to measure height variations on the surface of a cooper board before milling.
Before trying out my own simple circuit to combine all these sensors to give one probe output, I wanted check with the community to understand if there are any suggestions/tips or ready-made solutions available that can be used in this situation. I also noticed that there are significant price differences in these sensors based on whether it is NC or NO.
Thanks
S
1. A 3D sensor such as TP06 available from aliexpress. This is an active sensor. This is for edge finding.
2. A Z axis tool sensor also from aliexpress. This I think is a passive sensor.
3. A simple normally open passive probe that I use when milling PCB's. This probe is used to measure height variations on the surface of a cooper board before milling.
Before trying out my own simple circuit to combine all these sensors to give one probe output, I wanted check with the community to understand if there are any suggestions/tips or ready-made solutions available that can be used in this situation. I also noticed that there are significant price differences in these sensors based on whether it is NC or NO.
Thanks
S
Please Log in or Create an account to join the conversation.
- DEVILHUNTER
- Offline
- Junior Member
-
Less
More
- Posts: 29
- Thank you received: 8
21 Feb 2023 09:04 #264942
by DEVILHUNTER
Replied by DEVILHUNTER on topic Connecting multiple sensors with one probe signal
Assuming your CNC uses a parallel port interface, you have 5 input pins. You can connect each sensor to one pin, then with a MUX multiplexing function in your HAL file and some digital outputs on the code, select the correct pin to read with the probe input signal each time. This is how I manage 3 signals on my machine:
You can also create some M code with bash commands that connect and disconnect the HAL pins before the probing. Either way make sure to select the correct pin to read before executing the probing routine or you will crash.
If you don't have enough free input pins because you have 3 used for homing the axis, you could tie up those 3 in one and program a secuence for the homing routine.
As you said is also possible to phisically connect the 3 inputs in a circuit. In that case just make sure that the inputs you are not using don't get activated while probing with the other one.
# ---probe signal---
loadrt mux_generic config=bb4
addf mux-gen.00 servo-thread
net y-origin-sel mux-gen.00.sel-bit-00 motion.digital-out-07
net z-origin-sel mux-gen.00.sel-bit-01 motion.digital-out-08
net tool-probe-in mux-gen.00.in-bit-00 [HMOT](CARD0).7i76.0.0.input-29-not
net y-origin-in mux-gen.00.in-bit-01 [HMOT](CARD0).7i76.0.0.input-28
net z-origin-in mux-gen.00.in-bit-02 [HMOT](CARD0).7i76.0.0.input-07
net probe-in mux-gen.00.out-bit motion.probe-input
You can also create some M code with bash commands that connect and disconnect the HAL pins before the probing. Either way make sure to select the correct pin to read before executing the probing routine or you will crash.
If you don't have enough free input pins because you have 3 used for homing the axis, you could tie up those 3 in one and program a secuence for the homing routine.
As you said is also possible to phisically connect the 3 inputs in a circuit. In that case just make sure that the inputs you are not using don't get activated while probing with the other one.
Please Log in or Create an account to join the conversation.
Time to create page: 0.098 seconds