Need help setting up XYYZA for stepper motors

More
29 Mar 2025 01:02 #325217 by Routerworks
Replied by Routerworks on topic Need help setting up XYYZA for stepper motors
Thank you. I'll give this a try.
Would you consider making the corrections to the files or commenting on what things don't belong there? If not I understand. I'll let you know how this works out.

Thanks

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
29 Mar 2025 02:41 #325223 by tommylight
Replied by tommylight on topic Need help setting up XYYZA for stepper motors
DISPLAY_JOINT = 4
DISPLAY_JOINT_NAME = A
[GEOMETRY]
AXIS_A_JOINT = 4
AXIS_A_TYPE = ROTARY
AXIS_A_LENGTH = 30
[TRAJ]
COORDINATES = X Y Y Z A
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 36
MAX_LINEAR_VELOCITY = 4.00

AXIS_A_JOINT = 4
-
Gray is OK, the rest is not, and it is all over the ini file.

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

More
29 Mar 2025 03:10 #325224 by Routerworks
Replied by Routerworks on topic Need help setting up XYYZA for stepper motors
Many thanks. I'll give it a go.

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

More
31 Mar 2025 17:50 #325420 by Routerworks
Replied by Routerworks on topic Need help setting up XYYZA for stepper motors
Here is my latest iteration of my attempt to straighten this out.  Some progress:
1.) Progam opens up (that's a start)
2.) XZA axis home.  Y axis won't home.
3.) Movement keys are changed; X same, Y-page up down, Z [] brackets up down and + - sign move z up and down
4.) If I start joging the axis I will get an error " must take out of E-Stop.  It's not in it for any reason.

I spent a lot of time going through the ini and hal set ups and am clearly missing something.
Would greatly appreciate any insight you could offer.

Thanks again
Attachments:

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

More
31 Mar 2025 20:04 #325426 by PCW
My guess is that HOME_SEQUENCE is missinghttps://linuxcnc.org/docs/html/config/ini-homing.html#sec:homing-section

(you need as negative number for the Y joints)

Plus, there is a typo in the DISPLAY section:

JOUNT = 5
 

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
31 Mar 2025 20:04 #325427 by tommylight
Replied by tommylight on topic Need help setting up XYYZA for stepper motors
Hal file:
net ystep           => parport.0.pin-04-out
setp parport.0.pin-04-out-reset 1
net ydir            => parport.0.pin-05-out
net ystep           => parport.0.pin-06-out
setp parport.0.pin-06-out-reset 1
net ydir            => parport.0.pin-07-out
but further down
net y0pos-cmd joint.1.motor-pos-cmd => stepgen.1.position-cmd
net y0pos-fb stepgen.1.position-fb => joint.1.motor-pos-fb
net y0step <= stepgen.1.step
net y0dir <= stepgen.1.dir
net y0enable joint.1.amp-enable-out => stepgen.1.enable
and
net y1pos-cmd joint.2.motor-pos-cmd => stepgen.2.position-cmd
net y1pos-fb stepgen.2.position-fb => joint.2.motor-pos-fb
net y1step <= stepgen.2.step
net y1dir <= stepgen.2.dir
net y1enable joint.2.amp-enable-out => stepgen.2.enable
Not going further before clearing some stuff up....or
-does the machine have home/limit switches?
There are none in hal, so if there are no switches, you can NOT use tandem axis/joints
-you can use the same stepgen wired in hal to both Y drive pins (as you have them now)
-you can use a normal XYZA config and wire the two Y drive inputs together in parallel
--both versions above are 4 stepgen/4 joint configs, not 5
-use StepConf wizard to make a new XYZA config, then just add the pins in hal, NO editing beyond that.
If there are switches, and you want to have tandem axis/joints, due to limited number of inputs on a parallel port, that requires using at least two inputs as the tandem joints can not be on the same input. Also requires using LUT5 component (i think) to make the homing of all joints that are on the same input.

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

More
31 Mar 2025 20:39 #325428 by Routerworks
Replied by Routerworks on topic Need help setting up XYYZA for stepper motors
There are no limit switches. Further, I run a 3 axis file successfuly and used this addon to obviate the need for wiring the Y axis together. I believe it uses 2 stepgens successfuly.
Here is what I left out:
HOME_SEARCH_VEL=0
HOME_LATCH_=0
HOME equals to HOME_OFFSET
HOME_SEQUENCE=-2

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
01 Apr 2025 01:06 #325442 by tommylight
Replied by tommylight on topic Need help setting up XYYZA for stepper motors
Again, make a new XYZA config, save, edit the hal file, ONLY add extra pins for the Y axis.
Save.
Test.

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

More
01 Apr 2025 12:23 #325460 by Routerworks
Replied by Routerworks on topic Need help setting up XYYZA for stepper motors
Ok, I'll try it.
Are you saying I can use 1 stepgen and connect it to 2 drivers in the HAL file?  This is different that physically wiring the one output to two drivers.  This sounds better if it will work as I can't be sure 2 stepgen signals driving the same axis are in phase with eachother.
Thanks, I'll let you know what happens.

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

More
01 Apr 2025 18:53 #325473 by Routerworks
Replied by Routerworks on topic Need help setting up XYYZA for stepper motors
Many, Many, Many thanks.  Followed your instructions and it looks like everything is working.  The old acronim about keeping it simple applies.  I will say that all the work I went through to get to the point where I understood what you were talking about was worth it.  However I will say I read a awful lot of suggestions that were all over the field.  You hit the nail on the head.
Sure I have much more to learn.  The only thing I have left to do is calibrate the A axis.

Best Regards,

Routerworks

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

Time to create page: 0.144 seconds
Powered by Kunena Forum