C axis parameters (CNCT)

Moderator: cnckeith

Scary
Posts: 89
Joined: Fri Aug 20, 2021 2:12 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: None
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: C axis parameters (CNCT)

Post 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 🤣🤣
suntravel
Posts: 1967
Joined: Thu Sep 23, 2021 3:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 6433DB0446C1-08115074
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Germany

Re: C axis parameters (CNCT)

Post 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
Scary
Posts: 89
Joined: Fri Aug 20, 2021 2:12 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: None
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: C axis parameters (CNCT)

Post 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?
Attachments
20230218_174724.jpg
20230218_174639.jpg
20230218_173617.jpg
20230218_173542.jpg
Scary
Posts: 89
Joined: Fri Aug 20, 2021 2:12 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: None
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: C axis parameters (CNCT)

Post 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 🤣🤣
Attachments
20230218_182233.jpg
suntravel
Posts: 1967
Joined: Thu Sep 23, 2021 3:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 6433DB0446C1-08115074
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Germany

Re: C axis parameters (CNCT)

Post 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
Scary
Posts: 89
Joined: Fri Aug 20, 2021 2:12 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: None
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: C axis parameters (CNCT)

Post 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.
suntravel
Posts: 1967
Joined: Thu Sep 23, 2021 3:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 6433DB0446C1-08115074
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Germany

Re: C axis parameters (CNCT)

Post by suntravel »

I will benchtest this with my spare Acorn Board.

Uwe
Scary
Posts: 89
Joined: Fri Aug 20, 2021 2:12 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: None
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: C axis parameters (CNCT)

Post by Scary »

I will upload the latest report as soon as I can. Thanks heaps for your help on this Uwe.
Scary
Posts: 89
Joined: Fri Aug 20, 2021 2:12 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: None
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: C axis parameters (CNCT)

Post 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.
Attachments
report_E06234633531-0714214931_2023-02-19_10-46-01.zip
(856.64 KiB) Downloaded 8 times
suntravel
Posts: 1967
Joined: Thu Sep 23, 2021 3:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 6433DB0446C1-08115074
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Germany

Re: C axis parameters (CNCT)

Post by suntravel »

I need your reduction ratio from the C-Axis drive, to make a setup for your lathe pls.

Uwe
Post Reply