Page 2 of 4

Re: C axis parameters (CNCT)

Posted: Fri Feb 17, 2023 5:26 pm
by Scary
Thanks for that. I have written that in but still no control of the axis. I have put an M200 at the end of M51 macro to ensure it is exiting the loop and finishing and it is closing out of the macro fine. I know it has to be something simple but I cant figure it. I have tried P35=3 (same as C axis) and P35=5. It doesn't seem to change anything other than on 3, I cant set the two seperate encoder/step counts.

I still get the "tracking" behaviour when I set the C axis encoder to the same as the spindle so I know the acorn can control the motor, it just wont for some reason. Is there a way to "force" the axis open regardless of e-stops or other settings? I'd just be happy to see it move at the minute 🤣🤣

Re: C axis parameters (CNCT)

Posted: Sat Feb 18, 2023 2:46 am
by suntravel
For testing just out comment " M101 /70014 ;Wait for Zero Speed " in M51

How is your C-axis driven, do you have pictures?

Uwe

Re: C axis parameters (CNCT)

Posted: Sat Feb 18, 2023 3:57 am
by Scary
Thanks again for the help. I have comented out the M101 line again and still no avail. I dont understand why there is a call for M51 inside the M51 function but if it is not in there I get an error of "no axis to unwind" when it runs the M151.

I have the closed loop stepper set up very similar to yours. I don't have any homing switches for the axis yet, I will set them up when I get movement. I am driving all my signals from the DB25 connector (as well as both other axis) and I have triple checked the pin mapping and dont believe the issue is mechanical/electrical as the DRO for C will not increment at all. The M68/M88 commands are engaging/disengaging the clutch correctly however I normally comment them out for testing although I have tried both ways. Any ideas?

Re: C axis parameters (CNCT)

Posted: Sat Feb 18, 2023 4:32 am
by Scary
A further development, I changed P93=1 and I can control the axis both by jogging and with code. I was able to roughly calibrate the stepper to the spindle encoder via a manual axis DRO. I still have no functionality of the C if I declare the axis as C in the parameters. I am happy to live with this however it would be nice to have the C axis index options in intercon rather than hand coding. I'd rather not have to go to CAD/CAM for this as most my work is keyways or gear teeth. Basic indexing is all I need for the most part. I am also intimidated by CAM software like fusion as I have no idea how to use the CAM side of things, let alone export it to CNC12 and not have it crash the machine costing me more tooling 🤣🤣

Re: C axis parameters (CNCT)

Posted: Sat Feb 18, 2023 1:42 pm
by suntravel
You must have P93=145 to have C-axis in Intercon.

C-Axis will appear in the DRO only after MDI M51 with this setting

Uwe

Re: C axis parameters (CNCT)

Posted: Sun Feb 19, 2023 4:47 pm
by Scary
Yes, I have tried 145. Anytime I designate the C axis in P93, the C axis DRO appears and disapears as it should with m50 and m51 but I loose all control of the motor. I am unable to jog or move with gcode and the DRO will not increment at all. If I set P93 to 0 or 1, I can control the axis perfectly with jog or code. I don't need the m51/m50 commands other than to control the clutch. The only issue is that I have no C options in intercon. It feels like the M51 is not enabling function of the motor when it turns it on.

Re: C axis parameters (CNCT)

Posted: Sun Feb 19, 2023 5:18 pm
by suntravel
I will benchtest this with my spare Acorn Board.

Uwe

Re: C axis parameters (CNCT)

Posted: Sun Feb 19, 2023 5:19 pm
by Scary
I will upload the latest report as soon as I can. Thanks heaps for your help on this Uwe.

Re: C axis parameters (CNCT)

Posted: Sun Feb 19, 2023 5:35 pm
by Scary
A glitch I have found with this beta version is the manual axis I have set up for my spindle. It will randomly display ****.**** and shortly after CNC12 closes out without warning. No big deal as once I have the C axis working I will no longer need the manual DRO but it has been handy in the past. I had no issue with previous version.

I have attached the latest report. I am not sure what the M51 code is written as I have tried many different edits in an effort to control the drive.

Re: C axis parameters (CNCT)

Posted: Mon Feb 20, 2023 7:11 am
by suntravel
I need your reduction ratio from the C-Axis drive, to make a setup for your lathe pls.

Uwe