Page 2 of 2

Re: allin1dc MP11 probe help with pictures

Posted: Tue Apr 05, 2022 10:01 pm
by cncsnw
The simplest way is probably to add a line to InitialStage in your PLC program, to invert INP769.

See https://centroidcncforum.com/viewtopic. ... 19&p=47777 and scroll down.

Re: allin1dc MP11 probe help with pictures

Posted: Wed Apr 06, 2022 7:45 am
by eng199
craigc wrote: Fri Mar 25, 2022 6:09 pm Is there a way to connect a 3 wire hall effect / magnet to a Allin1dc spindle encoder input just to display RPM in CNC 12.
Top
Not really. A circuit would be needed to convert to encoder - like signals. The software readout may not work with 1 count per revolution even if you did that. There are links to very low cost encoders on the forum. One of those would be a better choice.

Re: allin1dc MP11 probe help with pictures

Posted: Wed Apr 13, 2022 11:12 am
by craigc
I have inverted the probe input 769 to NC and tried a simple probe that is 2 wires, now when I run a probing routine the machine does touch and back off numerous times then fails the probing routine. I also tried the code below but couldn't get it to compile. I tried MEM30 and other MEM positions that I thought were unused but no luck.
Out of the whole retrofit this probe stuff is kicking my butt.

new report
screenshot of errors
IMG_20220407_135228_0.jpg

Re: allin1dc MP11 probe help with pictures

Posted: Wed Apr 13, 2022 3:00 pm
by cncsnw
You have Parameter 155 set incorrectly.

Parameter 155 should be 0.

Re: allin1dc MP11 probe help with pictures

Posted: Wed Apr 13, 2022 3:05 pm
by cncsnw
I also tried the code below but couldn't get it to compile. I tried MEM30 and other MEM positions that I thought were unused but no luck.
What code is that?

Re: allin1dc MP11 probe help with pictures

Posted: Wed Apr 13, 2022 3:39 pm
by craigc
Thanks for your help. I feel dumb. Here is the code I was trying but maybe I don't need to bother now.

;...
MechanicalProbe IS INP769 ; N.O. probe: 1 = tripped, 0 = idle
;...
ProbeDetect IS INP771 ; N.O. detect: 1 = present, 0 = not present
;...
ProcessedProbeTrip_M IS MEM30
;...
ProcessProbeFastStage IS FSTG1
;...
;========================
ProcessProbeFastStage
;========================
; Report probe trip if the probe is connected, and tripped
IF ProbeDetect && MechanicalProbe THEN (ProcessedProbeTrip_M)
;...

Re: allin1dc MP11 probe help with pictures

Posted: Wed Apr 13, 2022 4:49 pm
by cncsnw
I don't see anything glaringly wrong with the PLC code fragment.

If I recall correctly, your PLC program does have some other definition for MEM30, but that usually just generates a warning, not a compile error.

Perhaps you tried to insert your new stage and associated logic in the middle of the definitions section, instead of down in the program section?

Re: allin1dc MP11 probe help with pictures

Posted: Thu Apr 14, 2022 9:58 am
by craigc
Thanks for looking at the code. I will correct the input 155 first and see if it works correctly then try the probefaststage following your help.

I will try and post my findings to help others as well.