2 simple macro questions.

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
DICKEYBIRD
Posts: 536
Joined: Sat Jul 08, 2017 7:38 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: n/a yet
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
Location: Collierville, TN USA

2 simple macro questions.

Post by DICKEYBIRD »

#1: How would I go about modifying the homing macro on my lathe to make the axis back off the switch farther (.100” or so) before traveling back & tripping the switch the 2nd time?

Here is what I’m using now which is working "OK" with my combined mechanical switch/opto-sensor homing scheme. I think it will be more accurate & repeatable with a longer back off/reversal movement.

M106 /X P50002 F5
M105 /X P-50002 F.5
M106 /X P50002 F.5
M26 /X
M106 /Z P50003 F5
M105 /Z P-50003 F.5
M106 /Z P50003 F.5
M26 /Z

#2: I now have a Centroid wireless pendant (LOVE IT!!) and will set it up with 2 of its aux button/macros to initiate my X and Z tool setting moves. Is it possible to set them up so that the 2 buttons will *ONLY* operate from inside the tool setting menu option in CNC 12? If that’s not possible, set them so they will *ONLY* operate when a second button is pressed at the same time? This should prevent a dumb-a$$ (such as myself) from starting an unwanted movement.
Milton in Collierville, TN

"Accuracy is the sum total of your compensating mistakes."
DICKEYBIRD
Posts: 536
Joined: Sat Jul 08, 2017 7:38 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: n/a yet
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
Location: Collierville, TN USA

Re: 2 simple macro questions.

Post by DICKEYBIRD »

I tried a few changes last night with no success but when I re-RTFM'd on the M105 & M106 I'm puzzled by the "G92" in the example. G92 is a threading cycle according to the manual. How would G92 "Set X position to 10?" A typo maybe? I'll admit being easily confused by this stuff. :oops:

"M105 - Move Minus to Switch
M105 moves the requested axis in the minus direction at the current feedrate until the specified switch opens (if the
given P parameter is positive), or until the scecified switch closes (if P parameter is negative).
Example:
M105/X P5 F30 ; move the X axis in minus direction at 30"/min until
; the switch on INP5 opens
G92 X10 ; Sets X position to 10
M105/Z P-6 ; move the Z axis in minus direction until switch on INP6 closes"
Milton in Collierville, TN

"Accuracy is the sum total of your compensating mistakes."
cnc_smith
Posts: 238
Joined: Mon Nov 20, 2017 10:13 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: Yes
Location: Frenchville, PA

Re: 2 simple macro questions.

Post by cnc_smith »

DICKEYBIRD wrote: Thu Mar 14, 2019 10:55 am I tried a few changes last night with no success but when I re-RTFM'd on the M105 & M106 I'm puzzled by the "G92" in the example. G92 is a threading cycle according to the manual. How would G92 "Set X position to 10?" A typo maybe? I'll admit being easily confused by this stuff. :oops:

"M105 - Move Minus to Switch
M105 moves the requested axis in the minus direction at the current feedrate until the specified switch opens (if the
given P parameter is positive), or until the scecified switch closes (if P parameter is negative).
Example:
M105/X P5 F30 ; move the X axis in minus direction at 30"/min until
; the switch on INP5 opens
G92 X10 ; Sets X position to 10
M105/Z P-6 ; move the Z axis in minus direction until switch on INP6 closes"
For the Lathe G50 is for Coordinate system setting not the G92 as used on the mill. Use G50 X10 ; sets X position to 10. Also the lathe does not have the G90 ABS and the G91 INC. To move the X and Z incremental moves you use U and W. U-.200 W.5 would move the X-.2 in an incremental move and the Z+.5 in an incremental move.

For your #2 question someone else more familiar with the that type of macro will have to answer that.
Dana

When requesting support, please ALWAYS post a current report.
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
DICKEYBIRD
Posts: 536
Joined: Sat Jul 08, 2017 7:38 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: n/a yet
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
Location: Collierville, TN USA

Re: 2 simple macro questions.

Post by DICKEYBIRD »

Thanks Dana, that helps a lot!

I was using the T-Series CNC11 V.3.16 lathe manual. I realize there are differences when working with an Acorn.
Milton in Collierville, TN

"Accuracy is the sum total of your compensating mistakes."
Post Reply