How to re-enable a disabled axis

Moderators: TomKerekes, dynomotion

jpbarad7
Posts: 15
Joined: Wed Dec 07, 2022 6:25 pm

Re: How to re-enable a disabled axis

Post by jpbarad7 » Sun Oct 27, 2024 11:39 am

Tom,

Great information about the Mach3 flags - Thanks!

Here's what I found after the testing you recommended:

When I press the individual 'Ref axis' buttons on Mach3's Diagnostic screen, Kmotion's console confirms accurate receipt of each signal (i.e. a value of 1 for X, 2 for Y .... 32 for C), and the respective axis is appropriately Zeroed within both Mach3 and Kmotion.

However, when I press the 'Ref All Home' button on Mach3's Program Run screen, Kmotion's console shows that flags for only 4 of the 5 enabled axes is being sent (X,Y,Z, and A). The C axis is omitted, and, consesequently, axis C is not zeroed within either Mach3 or Kmotion.

The problem I am having, therefore, is occurring within Mach3, not Kmotion.

I CAN manually zero the C axis in both Mach3 and Kmotion by pressing the 'Ref C' button on Mach3's Diagnostics screen, and this IS a viable work-around, but it still would be really nice if all 5 axes could be zeroed with a single button push.

Do you know if there is a way to tell Mach3 to send a flag for all enabled axes, when the 'Ref All Home' button is pressed?

I have searched through Mach3's configuration screens, but have been unable to find anything that works.

Thank you again for helping me.

Jim

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: How to re-enable a disabled axis

Post by TomKerekes » Sun Oct 27, 2024 6:36 pm

Hi Jim,

I think you will need to modify the Button Script for the REF ALL HOME button.

From the Mach3 menu | Operator | Edit Button Script | Then click on REF ALL HOME.

Button 27 is probably the Ref C button

RefALL.png
RefALL.png (6.23 KiB) Viewed 145 times
Regards,

Tom Kerekes
Dynomotion, Inc.

jpbarad7
Posts: 15
Joined: Wed Dec 07, 2022 6:25 pm

Re: How to re-enable a disabled axis

Post by jpbarad7 » Mon Oct 28, 2024 10:26 pm

Tom,

Thank you. I will give it a try.

I discovered a good work around (before receiving your reply).

I added code in the HomeEncoderMach3 program to also reference the C axis whenever the 'ref A' button is pressed.

This allows me to reference each axis separately using buttons on the Diagnostics page and all simultaneously using the 'Ref All Home' on the home page.

If your suggestion works (and I'm sure it will), I will reverse my code edits....

Thank you again for all your help!

Jim

Post Reply