Prevent HOM file overwrite in v5.24 wizard

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

tkbot47
Posts: 146
Joined: Fri Mar 02, 2018 12:01 am
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: haven't installed CNC12 yet
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: No

Prevent HOM file overwrite in v5.24 wizard

Post by tkbot47 »

Hello all,
This is I'm sure a trivial question, but I've looked quite a bit for an answer and can't find one.

I'm upgrading my CNC12 router from 5.02 to 5.24, and I note the wizard for Homing has changed, and I'm unable now to keep the HOM file from being overwritten. If I check "I'll write my own HOM program" I can't also check "Autohome to home switches" above it - I can only check one of the boxes. I'm just using HomeAll to home switches with soft limits.

What am I missing and how do I set this in 5.24 wizard like I did in 5.02?

Thanks.


suntravel
Posts: 3136
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: Prevent HOM file overwrite in v5.24 wizard

Post by suntravel »

If you choose write your own home file, all other options could not be selected, because they are for the type of writing a home file by the wizard.

Uwe


tkbot47
Posts: 146
Joined: Fri Mar 02, 2018 12:01 am
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: haven't installed CNC12 yet
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: No

Re: Prevent HOM file overwrite in v5.24 wizard

Post by tkbot47 »

The problem is if I select write my own HOM file, when I activate home the axes move but don't sense the proximity switches - they bypass them. If I select auto home (1st option), it homes properly, but overwrites my HOM file with the standard one. With the previous version, you used to have to select both auto home to switches AND use your own home file. Not so anymore, evidently, which is confusing.
I'm sure there's a simple solution, but I'm just not seeing it.


suntravel
Posts: 3136
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: Prevent HOM file overwrite in v5.24 wizard

Post by suntravel »

The solution is to write a functional home file, if you choose to write your own...

You can first let the wizard write one, then choose write your own and modify the file.

Uwe


centroid467
Posts: 623
Joined: Thu Apr 14, 2022 2:46 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Prevent HOM file overwrite in v5.24 wizard

Post by centroid467 »

Please post a report with your custom home file. It should get included in the report automatically.


tkbot47
Posts: 146
Joined: Fri Mar 02, 2018 12:01 am
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: haven't installed CNC12 yet
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: No

Re: Prevent HOM file overwrite in v5.24 wizard

Post by tkbot47 »

centroid467 wrote: Tue Feb 04, 2025 10:14 am Please post a report with your custom home file. It should get included in the report automatically.
I can generate a report with the file when I get out to my shop, but the point I'm trying to make is this file worked before with v5.02, back when the wizard had you check BOTH auto home to switches AND don't overwrite user hom file. Now, the 5.24 wizard doesn't allow both to be checked at the same time, and when I just check user user written hom file, it moves the axes, but doesn't stop at the home switches. Interestingly, I noted that back when v5.19 beta rev 9 was released, there was a comment "Fixed bug where "I will create my own home program" option would set the home type as Simple, thereby not running cncm/t.hom" Is that possibly what's happening here? I don't see a file t.hom, but it seems like checking use user written hom is not triggering auto home.
Here's the homing program I was using in 5.02 and tried to use in 5.24, with use user hom pgm checked. I had input one as HomeAll NC, and it was working in v5.02, and in v5.24, it moves axes in the right direction, but doesn't stop at the switches (proximity NC)

N100 ;Check for open home switch
IF !#[50000 + #9822] THEN M225 #100 "HomeAll switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF !#[50000 + #9822] THEN GOTO 100

;Disable all limits
M94 /101 /102 /103 /104

;Perform Homing commands
M92/Z L1
M26/Z
M91/Y L1
M26/Y
M91/X L1
M26/X
;M92/A L1
M26/A
g53 x1 L100
g53 y1 L100

;Enable all limits
M95 /101 /102 /103 /104


tkbot47
Posts: 146
Joined: Fri Mar 02, 2018 12:01 am
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: haven't installed CNC12 yet
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: No

Re: Prevent HOM file overwrite in v5.24 wizard

Post by tkbot47 »

I did a little test to portray what's going on here:

1. I started CNC12 v5.24, set the wizard to autohome to switches, saved the wizard (where it auto generated a homing program based on my settings), then exited CNC12. I added 2 lines at the bottom (just to move X and Y a bit positive). I then started CNC12 again, went into the wizard and told it I'd use my own HOM and not to erase it, saved and exited CNC12. So, now the homing program is what CNC12 auto generated plus 2 lines. I started CNC12, verified the HOM program is as I intended, and ran home. it blew by the switches and was headed for the mechanical stop before I halted the pgm. It seems like setting of "don't rewrite HOM" goes in Simple mode and doesn't see the home proximity switches. The report with time 3:09 pm details the machine state when this happened.

2. I then went into the wizard, changed the homing to Autohome to switches, saved, and exited CNC12. Restarted CNC12, verified that the HOM program looks like the first one but had been rewritten to it's original state without the added 2 lines, and ran the homing program. This time it homed properly, recognized all the switches, and ran to completion properly. The second report, timed 3:28 pm, reflects the machine state at that time.

Can anyone tell me why this is happening? Again, I did notice that in a beta for 5.19, this had to be fixed, that is, I will write my own HOM improperly set homing to Simple instead of Auto. Is this happening again in v5.24?
Attachments
report_3403DE6EC850-0724192312_2025-02-04_15-28-00.zip
(1017.07 KiB) Downloaded 2 times
report_3403DE6EC850-0724192312_2025-02-04_15-09-35.zip
(1.04 MiB) Downloaded 3 times


cnckeith
Posts: 8511
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: Prevent HOM file overwrite in v5.24 wizard

Post by cnckeith »

define "ran home" do you mean you power cycled the acorn? or?

i think what you are after is the "i will create my own home program" selection in the Wizard so it doesn't overwrite you custom .hom program
i will create.png



simple homing mode doesn't run a home program that moves, by definition it homes in place.
if you force ran a custom .hom program while cnc12 is in simple mode your results my vary.
selecting "simple homing" WILL by definition change the home program to just all M26's

M297 ; Ignore software travel limits
M26/Z
M26/Y
M26/X
M26/A

i just tested using the information in the reports you posted and v5.24 is working as expected.
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html


tkbot47
Posts: 146
Joined: Fri Mar 02, 2018 12:01 am
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: haven't installed CNC12 yet
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: No

Re: Prevent HOM file overwrite in v5.24 wizard

Post by tkbot47 »

Keith
Thanks for the comments, but I fear I did not properly explain what my issue is.....I'll try again.

First, by "ran home" I meant I ran the home cnc program to home the machine.

Let me re-explain my issue:

1. I set Homing Type to "Automatic Homing machine seeks switches" in the Wizard, and ran machine homing successfully with it.

2. I then changed the wizard to "I will create my own home program", and tried to home the machine with the same .hom program generated in (1), and it failed, not stopping at the switches. Self written .hom files have worked perfectly in v5.02 for quite some time on my machine, a ShopBot retrofitted with Acorn 6 and Clearpath motors.

I never selected Simple Home, I meant that homing as per (2) acted like Simple Home would act, by failing to see and stop at the switches.

I was thinking of trying to reinstall v5.24 and try again, but I concerned that the program created in Automatic Homing doesn't work after switching to I will create my own home program. That's what I was hoping for some insight into. I'm especially interested in the fact that you tested both


cnckeith
Posts: 8511
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: Prevent HOM file overwrite in v5.24 wizard

Post by cnckeith »

thanks, i did the same process and it works. so trying to figure out what you did to get those results.
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html


Post Reply