Second Probe

More
5 years 9 months ago #194320 by mrmike
Second Probe was created by mrmike
How would one add a second, inverted probed onto a 7i96 card? I currently have a touch probe that closes a ground loop between my router bit and a metal plate. I built a touch probe for G-Ripper that opens a ground loop, therefore they can't be paralleled. Does one need to use motion.probe? Can one add another pin that will act like the same?

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

More
5 years 9 months ago #194344 by alkabal

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

More
5 years 9 months ago - 5 years 9 months ago #194400 by mrmike
Replied by mrmike on topic Second Probe
I guess if I look at the forum list, I might have seen this :)
I followed the text file you posted, but the error I get upon opening axis is that and2 already exists at loadrt and2 names=and2.combined.setter.
Here is what I changes the text to, in my custom.hal file if that might matter:

# --- probe signals separated for probe + toolsetter with status checking and possible bypass from macro ---
loadrt or2 names=or2.combined-touch
loadrt and2 names=and2.combined-probe
loadrt and2 names=and2.combined-setter
loadrt not names=not.combined-probe-on
loadrt not names=not.combined-setter-on
addf or2.combined-touch servo-thread
addf not.combined-probe-on servo-thread
addf not.combined-setter-on servo-thread
addf and2.combined-probe servo-thread
addf and2.combined-setter servo-thread

net touch-probe-not-in <= motion.digital-out-01
net touch-probe-not-in => not.combined-probe-on.in

net touch-setter-not-in <= motion.digital-out-02
net touch-setter-not-in => not.combined-setter-on.in

net touch-probe <= hm2_7i96.0.gpio.006.in
#net touch-probe <= hm2_7i96.0.0.input-14
net touch-probe => and2.combined-probe.in0
net touch-probe-on-psng <= not.combined-probe-on.out # M65 P1 activate / M64 P1 inhibit output from macro #motion.digital-out-01
net touch-probe-on-psng => and2.combined-probe.in1;
net touch-probe-and2-psng <= and2.combined-probe.out
net touch-probe-and2-psng => or2.combined-touch.in0

net touch-setter <= hm2_7i96.0.gpio.008.in_not
net touch-setter => and2.combined-setter.in0
net touch-setter-on-psng <= not.combined-setter-on.out # M65 P2 activate / M64 P2 inhibit output from macro #motion.digital-out-02
net touch-setter-on-psng => and2.combined-setter.in1
net touch-setter-and2-psng <= and2.combined-setter.out
net touch-setter-and2-psng => or2.combined-touch.in1

net touch-probe-combined <= or2.combined-touch.out
net touch-probe-combined => motion.probe-input
Last edit: 5 years 9 months ago by mrmike. Reason: Added hal component

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

More
5 years 9 months ago #194407 by alkabal
Replied by alkabal on topic Second Probe
I appologize with this setup you need to use

[HAL]
TWOPASS=ON


or you need to do the loadrt in only one line like thi exemple
loadrt and2 names=and2.combined-probe, and2.combined-setter
loadrt not names=not.combined-probe-on, not.combined-setter-on

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

More
5 years 9 months ago #194428 by mrmike
Replied by mrmike on topic Second Probe
That worked, but I had to do this in the hal fil, change from
#loadrt [HOSTMOT2](DRIVER) board_ip=[HOSTMOT2](IPADDRESS) config="num_encoders=[HOSTMOT2](ENCODERS) num_stepgens=[HOSTMOT2](STEPGENS) num_pwmgens=[HOSTMOT2](PWMGENS) sserial_port_0=[HOSTMOT2](SSERIAL_PORT)"
to this
loadrt hm2_eth board_ip="192.168.1.121" config="num_encoders=1 num_stepgens=4 num_pwmgens=1 sserial_port_0=1"
The debug from starting the file was telling me I had a rtapi-app-main:permission denied in the start-up

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

More
5 years 9 months ago #194432 by mrmike
Replied by mrmike on topic Second Probe
BUT,
now when I start the cnc program, I can't home the Z axis easily, as it stops on probe input, and then the Y axis claims it is not in sync (dual motors). I took out the twopass, and tried
loadrt and2 names=and2.combined-probe, and2.combined-setter
loadrt not names=not.combined-probe-on, not.combined-setter-on
starting the cnc debuged out "Invalid parameter 'and2.combined-setter'

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

Time to create page: 0.063 seconds
Powered by Kunena Forum