Allin1DC - Z-Axis Homing Problem

All things related to Centroid Oak, Allin1DC, MPU11 and Legacy products

Moderator: cnckeith

Post Reply
CSpurge
Posts: 15
Joined: Tue Nov 10, 2020 7:23 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Allin1DC - Z-Axis Homing Problem

Post by CSpurge »

When I initially setup this machine I had no problems homing in all axis. It would work after restart, or whenever homing was required.

Now, for no apparent reason, the Z-axis moves to the + limit and faults the whole program without attempting to move away. If I go into the homing program and comment out (;) the Z-axis, X and Y home without issue.

I can also go into Setup>>Config>> Find Home and the z-axis will work properly... This is the only way I can get the machine to home.

Can anyone give me some insight to this problem?

Thanks!
CSpurge
Posts: 15
Joined: Tue Nov 10, 2020 7:23 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Allin1DC - Z-Axis Homing Problem

Post by CSpurge »

I'm not sure why this worked but I had an Acorn controlled machine previously so I took the homing program from it, which had some logic at the top. Now it works.

The original program was just the simple M-codes as shown below.

M92/Z L1
M26/Z
M92/Y L1
M26/Y
M91/X L1
M26/X

Here is the program I replaced it with.

N100 ;Check for an open home switch
;First axis minus and plus
IF #21301 == 0 THEN #111 = 9 ELSE #111 = #21301
IF #21401 == 0 THEN #112 = 9 ELSE #112 = #21401
IF [#20101 != 78] && [#21301 != 0] && !#[50000 + [#111]] THEN M225 #100 "Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20101 != 78] && [#21401 != 0] && !#[50000 + [#112]] THEN M225 #100 "Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20101 != 78] && [#21301 != 0] && !#[50000 + [#111]] THEN #101 = #101 + 1
IF [#20101 != 78] && [#21401 != 0] && !#[50000 + [#112]] THEN #101 = #101 + 1

;Second axis minus and plus
IF #21302 == 0 THEN #111 = 9 ELSE #111 = #21302
IF #21402 == 0 THEN #112 = 9 ELSE #112 = #21402
IF [#20102 != 78] && [#21302 != 0] && !#[50000 + [#111]] THEN M225 #100 "Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20102 != 78] && [#21402 != 0] && !#[50000 + [#112]] THEN M225 #100 "Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20102 != 78] && [#21302 != 0] && !#[50000 + [#111]] THEN #101 = #101 + 1
IF [#20102 != 78] && [#21402 != 0] && !#[50000 + [#112]] THEN #101 = #101 + 1

;Third axis minus and plus
IF #21303 == 0 THEN #111 = 9 ELSE #111 = #21303
IF #21403 == 0 THEN #112 = 9 ELSE #112 = #21403
IF [#20103 != 78] && [#21303 != 0] && !#[50000 + [#111]] THEN M225 #100 "Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20103 != 78] && [#21403 != 0] && !#[50000 + [#112]] THEN M225 #100 "Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20103 != 78] && [#21303 != 0] && !#[50000 + [#111]] THEN #101 = #101 + 1
IF [#20103 != 78] && [#21403 != 0] && !#[50000 + [#112]] THEN #101 = #101 + 1

;Fourth axis minus and plus
IF #21304 == 0 THEN #111 = 9 ELSE #111 = #21304
IF #21404 == 0 THEN #112 = 9 ELSE #112 = #21404
IF [#20104 != 78] && [#21304 != 0] && !#[50000 + [#111]] THEN M225 #100 "Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20104 != 78] && [#21404 != 0] && !#[50000 + [#112]] THEN M225 #100 "Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20104 != 78] && [#21304 != 0] && !#[50000 + [#111]] THEN #101 = #101 + 1
IF [#20104 != 78] && [#21404 != 0] && !#[50000 + [#112]] THEN #101 = #101 + 1
IF #101 != 0 THEN GOTO 100

;Perform Homing commands
M92/Z L1
M26/Z
M92/Y L1
M26/Y
M92/X L1
M26/X
cncsnw
Posts: 3833
Joined: Wed Mar 24, 2010 5:48 pm

Re: Allin1DC - Z-Axis Homing Problem

Post by cncsnw »

Did your original homing program have "L1" after every M92 line?

That is normally used only on open-loop controls (i.e. Acorn), because with no encoder feedback, there is no index pulse to search for.

Unless you are seeing a "Home switch tripped!" message when you run the homing program, all the other lines you added from the Acorn homing program are doing nothing at all. On an Allin1DC, since you would typically have the limit switches designated as both limits and homes, you would generally be unable to even begin homing while a switch was tripped. Instead you would get a "407 ... limit tripped" message in the message box.

Can you elaborate on what "faults the whole program" means? E.g. in terms of a message that appears in the message box?

If your homing problem, whatever it was, went away when you changed "M92/Z" to "M92/Z L1", then you probably have a faulty index pulse on that encoder.
Post Reply