Configuring my A Axis

More
25 Apr 2020 17:55 #165556 by blockbuffer
I just finished a thread in the Installing LinuxCNC forum, and now have moving motors on my Taig Mill/G540/7i92 installation.

As I worked through that, I'm as sure as I can be that I asked pncconf for XYZA axes, not XYZ, but in any case, here I am with XYZ now moving, but no A (a Sherline rotary table using the same steppers as X,Y, and Z).

I did do two passes through pncconf, so it's always possible that I missed it on the second one, just seems doubtful to me.

However I ended up here, I'm sure that others before me have added an Axis to an existing machine, so I'd like to understand how best to do that.

Do I re-run pncconf and recreate my hal and ini files, because yes, I surely must have made a mistake?
-OR-
Do I edit the files, copy/paste an existing Axis and then make changes(?) to implement the rotary table?
-OR-
Some other alternative?

Thanks for your help with this!

- Bob

Please Log in or Create an account to join the conversation.

More
25 Apr 2020 18:38 #165559 by tommylight
Replied by tommylight on topic Configuring my A Axis
you can do any of those and it will work, but if you hand edited any of the files using pncconf will revert them back to stock, meaning you will loose any additional functionality you added.
It is much safer to make a copy of the working config to the desktop or even better to a USB drive, then decide if you want to use pncconf again or do some more editing.
One way would be to make another config with pncconf and ignore everything possible (some stuff can not be ignored ) and set the A axis there, save, then open hal and ini files of both configs and copy the parts pertaining to A axis from the newly created one to the working one. It takes a bit more work as some other stuff has to be added to loadrt, addf if any, another PID, etc, but you learn a lot on the way.
Or make a backup and use pncconf, in case you mess something, just delete that config and copy the existing working one back. Be sure to coppy the machine_name.pncconf file also.
The following user(s) said Thank You: blockbuffer

Please Log in or Create an account to join the conversation.

More
25 Apr 2020 18:47 - 25 Apr 2020 18:51 #165560 by cmorley
Replied by cmorley on topic Configuring my A Axis
I would suggest:
reload the working config in pncconf.
on the base information page change the machine name.
Now the new config will keep the settings of the old but will not overwrite it because it will use the new name.
On that same page make sure 'Axis Configuration' says XYZA

Run through the pages untill the Mesa page - add the A axis stepper designations.
run through until the A axis pages come up and fill them in.
run through pages until the end and pncconf saves the config.

Now you should have two configs one without A and one with.
Also what version of linuxcnc are we talking about?

Chris
Last edit: 25 Apr 2020 18:51 by cmorley.
The following user(s) said Thank You: tommylight, blockbuffer

Please Log in or Create an account to join the conversation.

More
25 Apr 2020 18:47 #165561 by blockbuffer
Replied by blockbuffer on topic Configuring my A Axis
Are you saying that pncconf should have, would now create a hal, ini, etc. for XYZA?

Because if it didn't do that simply because I goofed on the second try and left A out, then that seems to be the simplest, low-guesswork path. Just re-do and reapply the changes from the other thread...

You're expecting pncconf to be able to generate config files for all 4 axes?

Please Log in or Create an account to join the conversation.

More
25 Apr 2020 18:49 #165562 by tommylight
Replied by tommylight on topic Configuring my A Axis
Cmorley's idea is much better, thank you Chris.

Please Log in or Create an account to join the conversation.

More
25 Apr 2020 18:57 #165564 by blockbuffer
Replied by blockbuffer on topic Configuring my A Axis
Just saw cmorley's post - that sounds good.

My linuxcnc version is 2.7.14

Please Log in or Create an account to join the conversation.

More
25 Apr 2020 18:57 #165566 by tommylight
Replied by tommylight on topic Configuring my A Axis
On the second page, choose modify an existing config, when you press forward it will open "open file" window, chose the working config with .pncconf extension. On the next sreen change the name of the machine and choose XYZA, mm or inch, then click forward until you get to the Mesa setup page, there should already be tabs for connectors, so on one of those tabs add another stepgen or PWM for the A axis. Press forward untill you get to the setup for the A axis, set it there as you need it and forward to save.
Let me know if i made a mess.

Please Log in or Create an account to join the conversation.

More
28 Apr 2020 00:55 #165884 by blockbuffer
Replied by blockbuffer on topic Configuring my A Axis
Well, I'm on hiatus for a bit and will have to come back to this. :-(

After having moved motors, my G540 has decided to persistently illuminate its fault light... I'm going with 'infant mortality' until a better explanation comes along. I've had the board here since early 2016, but it's just now that I've had space and time to get on with setup, so it's only been powered for perhaps a couple of days in total.

Tried basic stuff like disconnecting everything, but that didn't change anything. Used Gecko's video to open it up and look for fried chips, but nothing I can see.

Anyway... I have an email into their support address to see if they'll support the board, given the situation.

Gonna have to come back to this when I have a working controller board...

Thanks so much for the support, folks. I'll be back with updates when my lights are green again.

- Bob

Please Log in or Create an account to join the conversation.

More
28 Apr 2020 08:43 #165924 by tommylight
Replied by tommylight on topic Configuring my A Axis
Does the G540 have a switch to enable or disable charge pump?
Move that and test again.

Please Log in or Create an account to join the conversation.

More
28 Apr 2020 21:45 #166014 by blockbuffer
Replied by blockbuffer on topic Configuring my A Axis
Tom,

Yep. Tried that, no joy.

But...between Gecko's troubleshooting video and an email from one of their support techs, my motors are moving again. Basically just took it apart, powered up the G540's motherboard (green!), added stuff back (stayed green!), and voila! Back to moving motors. No idea what changed, apart from takeapart and gradually reassemble, but it works. Wired the same, switches the same...ah, well...mysteries of life.

Anyway, back to the subject at hand...my A axis now works!

Using Modify to ADD a new axis did NOT work for me. I think I did indeed forget to specify XYZA (vs. XYZ) when I ran the wizard the second time, despite getting the pin mapping right later. Anyway, Modify did NOT let me advance to configuration for the "A" axis after selecting XYZA, and instead threw errors when I tried. I can post a picture of the error page, if someone wants it.

Gave it a couple of tries before giving up on that and just doing a fresh config, which worked fine.

So I think I'm through the all-axes-moving 'gate', and it's on to the next challenge - trying to do something useful with them! :-)

Thanks again for your help with this!

- Bob
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.087 seconds
Powered by Kunena Forum