Resetting to 0 after each line of code

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
Exhibitology
Posts: 58
Joined: Sun Apr 28, 2013 9:19 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 1218120647
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Newark, NJ
Contact:

Resetting to 0 after each line of code

Post by Exhibitology »

Greetings,

I finished installing an Acorn board into a DynaMyte 3300 slant bed lathe retrofitted with stepper motors.

To test my work, I was going to create 3 replacement registration popup pins for one of our CNC routers.

I created two seperate turning files with Intercon. One to turn down a .875" aluminum rod to 20mm. The other to put a shoulder on the end.

The first file ran flawlessly. The shoulder file not so much. I've attached photos of what Intercon graphed the file as and what the lathe cut.
I've also attached G-Code for both files and a Report.

It appears to me that rather than returning to Z0 after each pass, it is resetting Z0 to the end of the first pass. I can confirm that after aborting the job, Z0 was no longer at the end of the stock where I set it.

Thinking that it was a software corruption, I reloaded CNC12 v4.18 Lathe. I re-ran Intercon for the first file--turning .875" down to 20mm. This time this file behaved the same way the shoulder file did. After its first pass, it didn't return to Z0 but reset Z0 and proceeded to the next X depth.

Any insight or help you can provide is much appreciated.

Richard
Attachments
report_780473281B80-0321191802_2019-06-25_17-18-51.zip
(282.92 KiB) Downloaded 117 times
IMG_6139.jpg
IMG_6139.jpg (13.12 KiB) Viewed 3453 times
IMG_6140.jpg
IMG_6140.jpg (43.51 KiB) Viewed 3453 times
popup shoulder.cnc
(1.29 KiB) Downloaded 148 times
popup retry.cnc
(838 Bytes) Downloaded 120 times
pop-up.cnc
(796 Bytes) Downloaded 121 times
cnckeith
Posts: 7363
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: Resetting to 0 after each line of code

Post by cnckeith »

axis motors and drives being used?

loose motor to screw coupler?

loosing steps on the rapid retrack move?
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
martyscncgarage
Posts: 9914
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Resetting to 0 after each line of code

Post by martyscncgarage »

Exhibitology wrote: Tue Jun 25, 2019 5:22 pm Greetings,

I finished installing an Acorn board into a DynaMyte 3300 slant bed lathe retrofitted with stepper motors.

To test my work, I was going to create 3 replacement registration popup pins for one of our CNC routers.

I created two seperate turning files with Intercon. One to turn down a .875" aluminum rod to 20mm. The other to put a shoulder on the end.

The first file ran flawlessly. The shoulder file not so much. I've attached photos of what Intercon graphed the file as and what the lathe cut.
I've also attached G-Code for both files and a Report.

It appears to me that rather than returning to Z0 after each pass, it is resetting Z0 to the end of the first pass. I can confirm that after aborting the job, Z0 was no longer at the end of the stock where I set it.

Thinking that it was a software corruption, I reloaded CNC12 v4.18 Lathe. I re-ran Intercon for the first file--turning .875" down to 20mm. This time this file behaved the same way the shoulder file did. After its first pass, it didn't return to Z0 but reset Z0 and proceeded to the next X depth.

Any insight or help you can provide is much appreciated.

Richard
Your pictures are very small, can't see much detail. Take them in higher resolution like 640x480 or so.
Post the intercon file .icn created as well.
Marty
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
Exhibitology
Posts: 58
Joined: Sun Apr 28, 2013 9:19 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 1218120647
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Newark, NJ
Contact:

Re: Resetting to 0 after each line of code

Post by Exhibitology »

Thanks for the quick reply.

The motors are Keling KL34H2160-62-8A wired bipolar at 4.4 amps at 61 VDC.

The drives are Pacific Scientific 6410's at 1/16 microsteps.

The couplings are solid.

Just in case, I halved my maximum job rates.

It is definitely not loosing steps. It is resetting my Z zero work coordinate. You can watch it in real time.

It has to be something I'm doing wrong in Intercon. I have one file that works correctly and one goes haywire. One file,
popup.ItM
, correctly turns down a -1.7 inches of a .875" diameter aluminum rod to .787". The other
popup retry.ItM
, starts at Zero, resets Zero 1.8" in the positive direction, goes there, resets Zero 1.8" in the positive direction, goes there, etc.

All the while, it has also reset the machine position's Z axis Zero point. After loading and running
popup retry.ItM
, I have to rehome my machine because machine Zero has been changed. Running again puts me out of limits.

I went thru this three times. Home machine, Zero X and Z, load and start
popup.ItM
. No problem. Load and start
popup retry.ItM
. Problem.

I've attached screen shots of my Intercom turning screen. You'll probably see something that jumps right out at you. I wish I did.

Thanks for your help.

Best Regards

Richard
Attachments
IMG_6163.jpg
IMG_6163.jpg (17.15 KiB) Viewed 3389 times
IMG_6161.jpg
IMG_6161.jpg (12.09 KiB) Viewed 3389 times
IMG_6160.jpg
IMG_6160.jpg (12.66 KiB) Viewed 3389 times
IMG_6157.jpg
IMG_6157.jpg (17.23 KiB) Viewed 3389 times
Exhibitology
Posts: 58
Joined: Sun Apr 28, 2013 9:19 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 1218120647
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Newark, NJ
Contact:

Re: Resetting to 0 after each line of code

Post by Exhibitology »

By changing a G99 to a G98, the files now run identically.

Previously the file with a G99 was resetting work and machine coordinates
as the G code was executed. After a cut path, instead of a rapid return
for the next cut path, home was reset to the end of the first cut path
and a new cut path would begin from there.

The lathe has an working encoder connected to the inverter that
controls the spindle.

Why would a command for feed per revolution instead of one for
feed per minute would cause the resetting of work and machine
coordinates in the Z axis.
martyscncgarage
Posts: 9914
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Resetting to 0 after each line of code

Post by martyscncgarage »

Can you please post the intercon files? They have a .lth extension.
We'll see if we can get Centroid's lathe tech to look at this. He will want to see the Intercon files along with the G code you posted.

A video of it cutting the part would be helpful too.

We'll try and get you squared away. This area is not my forte'
Marty
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
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: Resetting to 0 after each line of code

Post by DICKEYBIRD »

Exhibitology wrote: Tue Jul 09, 2019 4:08 pm The lathe has an working encoder connected to the inverter that
controls the spindle
Shouldn't that be "The lathe has a working encoder connected 1:1 to the spindle that is controlled by the inverter."? I don't think it will work any other way.
Milton in Collierville, TN

"Accuracy is the sum total of your compensating mistakes."
cnc_smith
Posts: 237
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: Resetting to 0 after each line of code

Post by cnc_smith »

DICKEYBIRD wrote: Tue Jul 09, 2019 5:20 pm It has to be something I'm doing wrong in Intercon. I have one file that works correctly and one goes haywire. One file,

popup.ItM

, correctly turns down a -1.7 inches of a .875" diameter aluminum rod to .787". The other

popup retry.ItM

, starts at Zero, resets Zero 1.8" in the positive direction, goes there, resets Zero 1.8" in the positive direction, goes there, etc.

All the while, it has also reset the machine position's Z axis Zero point. After loading and running

popup retry.ItM

, I have to rehome my machine because machine Zero has been changed. Running again puts me out of limits.

I went thru this three times. Home machine, Zero X and Z, load and start

popup.ItM

. No problem. Load and start

popup retry.ItM

. Problem.
For the file popup retry.cnc running G99 - Feed per Rev you have F22 which would be 22 inches per rev. In inches per minute this would be over 6000 inches per minute. This would cause you to loose position. When using G99 the feed rate you should be like .010 - .020 per rev for roughing and .002 to .004 for finish pass to get a 32 finish or better. For the file pop-up.cnc you have the G98 in you have the feed rate at F3 which would be 3 inches per minute which .0015 feed per rev.
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
Exhibitology
Posts: 58
Joined: Sun Apr 28, 2013 9:19 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 1218120647
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Newark, NJ
Contact:

Re: Resetting to 0 after each line of code

Post by Exhibitology »

Thank you. I had a hunch it had to do with the
inches per rev. setting only because if I switched
that setting the problem disappeared.

Your explanation makes complete sense.

Best Regards

Rich
Post Reply