CNC12 v5.22 - Auto Squaring

The Wizard in v5.22 has clearly received an update and some welcome new features.
Regarding the Homing and Travel > Axes Pairing and Paired Axes Homing…
Is this just an initial machine setup tool or should Auto Squaring be engaged?
The associated pdf manual is watermarked as a draft.

Are you using “our” version CNC12 or the one downloaded directly from Centroid? If you’re reading a manual that’s watermarked as a draft it sounds like you got that directly from Centroid

Yes, your version of cnc12.
There’s a link to the manual in the Wizard.

Ahh, that’s on the “advanced” side of the wizard. That link you found is to Centroid’s “stock” squaring setup. We don’t use that.

On servos we use hard stop homing for squaring, and on steppers we use our own special homing script that handles squaring for you. Those are on by default.

Did you have a particular need to go into that advanced menu for something that’s beyond the squaring we offer?

Gotcha.
Had to adjust a bunch of things considering the update seems akin to building from scratch… inputs, outputs, all machine settings, Corbin’s atc stuff, etc.

The MPU firmware gets updated when switching between a v5.18 and v.5.22 profile - this is expected, yes?

If you’re using one of our machines when you setup from scratch you shouldn’t need to do anything in the advanced side save for maybe configuring the bar for Corbin’s scripts. Just trying to save you a headache :wink:

As far as the firmware update that always happens when you switch major versions.

Roger that.
Thanks Eric.

When you say “special” homing script for stepper based systems are you indicating that the system doesn’t use Acorn’s approch with a single relay to decouple the y axis along with slightly offseting the proximity sensors? Does this have anything to do with the additional relay on the interconnect board that isn’t shown in the schematics but is shown in a random picture? What is Avid’s method? If I was already in the process of retrofitting my own acorn board to my current MACH 4 control box like you did for your initial prototype but I only I only used the single relay for the auto squaring routine per Centroid’s instructions would that prohibit me from using AVID’s version of CNC 12.?

We use the single relay method as well for squaring. We have a special homing script that differs from the Centroid stock one in a lot of ways. Not only does it do squaring, but it detects your machine type and will set different things (And home differently) depending on your machine settings.

If you want to run our software on your retrofit you are welcome to do it, but for our software to work properly you’ll need to match the IO to what we have chosen. You can verify all that from the schematics.

If you want to tweak our install you’re welcome to do that as well. The homing scripts are written as Centroid macros that are easy to edit.

Thank you so much for your response. I have been going through AVID’s published schematics very carefully this weekend as well as cross referncing them with Centroid’s Schematic #S15200 which are almost identical. (https://www.centroidcnc.com/dealersupport/schematics/uploads/S15200.r4.pdf)

One thing that I don’t understand is the wiring and operation for the relay autosqauring. I understand the concept but the way the wires are hooked up seems counterintuitive to how the Centroid auto squaring routine is discribed as working.

Both Centroid and Avid show hooking up Y2 Pulse(-) to COM and Y1 Pulse(-) to NC at Relay #8.

image

image

My understanding of the signal flow is as follows:

  1. The signal for DIRECTION 2 comes FROM Pin 5 of the DB 25 terminal on the ACORN board and is sent TO the DIR (-) terminal of both Y1 & Y2 stepper drivers (I believe Avid’s new interconnect board includes some signal inversion magic as well…)
  2. The signal for STEP 2 comes FROM Pin 4 of the DB 25 terminal on the ACORN board and is sent TO the PUL (-) terminal on the Y2 Stepper Driver AND the COM terminal on Relay #8.
  3. The signal for STEP 2 comes FROM the NC terminal on the Relay #8 ACORN board and is sent TO the PUL (-) terminal on the Y1 Stepper Driver.
  4. If the relay is closed, both Y1 and Y2 are recieving the same STEP 2 signal and are “paired”.
  5. If the relay is open, Y2 is still recieving the STEP 2 signal but Y1 is “unpaired”.
  6. Centroid’s standard homing routine is to seek home for Y2 and then decouple (by opening the relay I assume…) and then seeks home for Y1.

What I don’t understand (and what is driving me CRAZY!!!) is shouldn’t it be the other way around? First home the master axis, then dissconnect and continue homing the slave axis…? Becuase if the STEP 2 signal is coming throug COM and out NC, opening the relay would interupt that. You would still have control of Y2 but you are cut off from Y1. Am I looking the signal flow backwards? What am I missing?

I’m not sure why Centroid shows it that way… It’s really simple: Just cut the step pulse off to one of the Y motors by way of a relay.

You want that step pulse to go through the relay when it’s NC, and that’s really it.

The trickier part is the homing logic… you have to account potentially a random Y sensor hitting first, and how you handle that.

So let’s say you cut the signal for Y1, but Y2 hits first you need to “crabwalk” the gantry into square.

If Y1 hits first that’s easier, you just cut of iff there and keep moving Y2 until it hits.

Ok, so I’m not crazy for calling that out as weird, that’s good.

I guess that’s why Centroid suggest offseting the 2 sensor flags slightly to insure that one always hits before the other (unless things are really out of wack…)

Either way is, as long as match my I/O to the AVID shematic I should be compatible with their
version of CNC 12?

One other thing, will avid sell their tool setter à la carte?

Thank you so much for your feedback!

If you have the inputs it’s certainly an easier way to do it, but you can do it like we do with just one relay.

It should be. We’ve done a lot of custom macros and such to make this all work together. As you’ve discovered it’s all open for you to see, the schematics are there and all of the things you need to tweak like homing macros and such are available for you to look at and edit if need be.

The beauty here is that you can match our IO (or as close as you can get it) and use our software and change any settings that you need (we leave ALL of the Centroid stock stuff intact) or you can start with “stock” CNC12 and pull in our tweaks if you want.

I suspect the way you’re heading the former will be the best strategy for you.

Probably.. contact support and ask :slight_smile:

Thank you so much for being willing to educate and inform on top of AVID being so transparent with all their schematics. Alot of companies will say they want to support their customers but actions speak louder then words. Your willingnes to answer my questions proves that AVID is here to support past customers as well as new ones.

No problem! This stuff is a bit of extra work on our part, but we’re happy to do it. We love seeing folks adapt our machines for all kinds of interesting use cases.

Thanks for the explanation. One issue I’ve been chasing is that when re-engaging the Y2 stepper, it jumps, maybe 0.01" which throws off the squaring regardless of which sensor is tripped first. It looks pretty consistent but not 100%, is there a squaring strategy that can work around this? Best I’ve come up with is Y2 hits first, disable Y2, move Y1 to flag then move 0.01" to match what the Y2 jump might be, reactivate Y2, then iterate until they both hit simultaneously. Or am I overthinking this?

Is this happening on our box or a custom box?

Looks like that’s a NO on buying a just the tool setter from AVID. Oh well.

I ran one of these for a long time:

They work great, and can wire right in. Just get yourself a field wireable M12 A coded adapter (Male)

Custom box - Leadshine closed-loop steppers (pre EX announcement, wish I would have known)…