Need dummy proof HOM sequence (Resolved)

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
pmchoudek
Posts: 27
Joined: Fri Dec 11, 2020 3:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
MPU11 & GPIO4D -w/ 3rd Party Drives: No
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
CNC Control System Serial Number: 2650

Need dummy proof HOM sequence (Resolved)

Post by pmchoudek »

Hi there, I need to create a homing file that is similar to the one I have, but I need it to home the Y-axis differently...

This is my current home program:

;Disable all limits
M94 /101 /102 /103 /104
;Perform Homing commands

M26/Z
M92/Y L1 ;y axis + home
M26/Y
M91/X L1 ;x axis - home
M26/X
;Enable all limits
M95 /101 /102 /103 /104

Normally, the Y axis would go toward the + direction until it reaches the proximity sensor. Then the input 6 goes to 24V and the slow jog stops and backs off (- direction) a little bit. However, if the Y axis is already in the + coordinates, then the prox sensor is constantly at 24V. This is an issue because if the operator presses the reset home button, the Y axis will not back off until the prox is cleared. It will only back off a little bit, thus changing the Y axis home.

I need to check input 6 to see if it is high or low and base my action for the Y axis off that input. If input 6 is high, then slow jog in - direction until it is low. And then possibly the M92/Y L1.

Please note... The input 6 is also tied to the X home prox sensor as well. The X home sequence (M91/X L1) should not be an issue because the X is always in the + coordinates.

If you have any suggestions, I would appreaciate it!

Thanks,
Peter
tblough
Posts: 1347
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
MPU11 & GPIO4D -w/ 3rd Party Drives: Yes
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
Location: Boston, MA
Contact:

Re: Need dummy proof HOM sequence

Post by tblough »

Command a small y axis move in the - direction before the M26/Y command.
Cheers,

Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
pmchoudek
Posts: 27
Joined: Fri Dec 11, 2020 3:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
MPU11 & GPIO4D -w/ 3rd Party Drives: No
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
CNC Control System Serial Number: 2650

Re: Need dummy proof HOM sequence

Post by pmchoudek »

report attached
Attachments
report_0C1C570715C2-1107192650_2021-01-18_12-38-35.zip
(1006.39 KiB) Downloaded 7 times
pmchoudek
Posts: 27
Joined: Fri Dec 11, 2020 3:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
MPU11 & GPIO4D -w/ 3rd Party Drives: No
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
CNC Control System Serial Number: 2650

Re: Need dummy proof HOM sequence

Post by pmchoudek »

this is the CNCM.hom file code that gets the "undefined variable" error on the G0 G91 Y-50:

;Disable all limits
M94 /101 /102 /103 /104
;Perform Homing commands

M26/Z
IF INP6 THEN G0 G91 Y-50 ; check prox switch
M92/Y L1 ;y axis + home
M26/Y
M91/X L1 ;x axis - home
M26/X
;Enable all limits
M95 /101 /102 /103 /104
cncsnw
Posts: 1909
Joined: Wed Mar 24, 2010 5:48 pm

Re: Need dummy proof HOM sequence

Post by cncsnw »

Try "IF [#50006]" or "IF [!#50006]"

You might also try M105 instead. For example, supposing that INP6 might be open, and you want to move Y- until INP6 is closed, you would use "M105/Y P-50006 F__". If INP6 may be closed, and you want to move Y- until it is open, you would use "M105/Y P50006 F__".

Of course, replace "F__" with the letter F followed by your desired feedrate (inches per minute or millimeters per minute).
tblough
Posts: 1347
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
MPU11 & GPIO4D -w/ 3rd Party Drives: Yes
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
Location: Boston, MA
Contact:

Re: Need dummy proof HOM sequence

Post by tblough »

Or don't even bother to test, just move it. If it wasn't on the switch it will just take a little longer to home.
Cheers,

Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
cncsnw
Posts: 1909
Joined: Wed Mar 24, 2010 5:48 pm

Re: Need dummy proof HOM sequence

Post by cncsnw »

Well, he did say "dummy proof", which means he needs to account for the possibility it is within 50mm of the minus limit of travel when he starts trying to home.
pmchoudek
Posts: 27
Joined: Fri Dec 11, 2020 3:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
MPU11 & GPIO4D -w/ 3rd Party Drives: No
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
CNC Control System Serial Number: 2650

Re: Need dummy proof HOM sequence

Post by pmchoudek »

I tried to use this line in my home file:

IF [!#50006] M105/Y P-50006 F4000

It worked! Now it slow jogs Y- direction until the switch is cleared.

Thanks for the help!
Post Reply