Probe AND HomeAll to one input, possible?

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Spartan117
Posts: 101
Joined: Mon Apr 11, 2022 3:37 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Probe AND HomeAll to one input, possible?

Post by Spartan117 »

suntravel wrote: Thu Jun 30, 2022 6:37 am try this one and see what happens if INP7 is switched,
Thank you very much, I'll give it a try!
suntravel wrote: Thu Jun 30, 2022 6:37 am I would expect ProbeTripped while homing :D
Such possibilities are the reason why I asked here, hoping the centroid-pros can say something to it. :D
suntravel
Posts: 1967
Joined: Thu Sep 23, 2021 3:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 6433DB0446C1-08115074
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Germany

Re: Probe AND HomeAll to one input, possible?

Post by suntravel »

Well if it works that INP7 can trigger two things in the PLC (use PLC detective to find out) the rest is kind of easy.

Needs some kind of counter to tell the PLC that on first use INP7 triggers HomeAll and after first use ProbeTripped.

Uwe
Spartan117
Posts: 101
Joined: Mon Apr 11, 2022 3:37 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Probe AND HomeAll to one input, possible?

Post by Spartan117 »

OK, seems like that could do something...^^

Compiled the .src and startet cnc12 and PLC Inspector (CTRL+E)-
I could see that both signals become 1 (high) when switching that input INP7
CNC12 gives me a message "Probe tripped", but that's fine if it will also works as HOME-Switch.

But i couldn't test homing, because i couln't get it to work like expected...
In the wizward there still was "manual homeing" active. So i changed that to "automatic homing", "let the wizard program my macro", and saved.
But then i got tons of error messages (from compiling), really scaring^^

Seems like combining the wizard with manual changes in the PLC is not the best idea...
I hope that will work better with the turret-src later.

It seems like there are not much people who are able to use the advantages of the editable PLC, even here. And indeed, until now, it seems very complicated to me.

Tomorrow i will try another order:
1. Find and compile a matching turret-lathe.src
2. Start the wizard and edit Axes, Inputs and Outputs to match my setup.
3. Edit PLC with Notepad++ and try to get that to work then
suntravel
Posts: 1967
Joined: Thu Sep 23, 2021 3:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 6433DB0446C1-08115074
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Germany

Re: Probe AND HomeAll to one input, possible?

Post by suntravel »

Yes I forgot to mention, that with these kind of changes the wizard will not work. Probably if it is set to use Custom PLC.

So the order is like I would do this also. Messing up the Inputs as last setp :mrgreen:

But first step, update to 4.79 Beta3. PLC is different from 4.64, so a later update to final 4.8 will be faster to do than spending lots of time with the old PLC.

Uwe
Spartan117
Posts: 101
Joined: Mon Apr 11, 2022 3:37 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Probe AND HomeAll to one input, possible?

Post by Spartan117 »

suntravel wrote: Fri Jul 01, 2022 6:19 pm But first step, update to 4.79 Beta3. PLC is different from 4.64, so a later update to final 4.8 will be faster to do than spending lots of time with the old PLC.
OK, maybe that will solve my problems with occuring error-messages at startup regarding the "missing sourcefile of the PLC" or something like that^^

It seems like just deleting all older .src and start again with new .src is not that easy as i thought

But hey, at least all my electronic setup works at the first try :)
Steppers work, always backwards with half-current and full-current-forward works, every output-relay-wiring works, E-stop-contactor works, ALARM of all stepper-drivers works and cutting power of the stepper-powersupply works, too.
Sometimes it's the little things in life that make us happy :D
suntravel
Posts: 1967
Joined: Thu Sep 23, 2021 3:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 6433DB0446C1-08115074
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Germany

Re: Probe AND HomeAll to one input, possible?

Post by suntravel »

The working *.src must have the name acorn_lathe_plc.src, other names will not work.

Uwe
Post Reply