Need help setting up XYYZA for stepper motors
- Routerworks
- Offline
- Premium Member
-
Less
More
- Posts: 106
- Thank you received: 8
27 Mar 2025 15:42 #325070
by Routerworks
Need help setting up XYYZA for stepper motors was created by Routerworks
I need help setting dual Y, X, Z and A axis . A is rotation. The config wizard won't set up YY with A axis. I have a functional XYYZ program that I copied the additional Y axis ini and hal file components from and added to an XYZA file I was able to configure in config wizard. Maybe someone can see what I am missing as I get all kinds of errors. The Dual Y Axis Mill works fine.
thanks in advance for any help.
Routerworks
thanks in advance for any help.
Routerworks
Please Log in or Create an account to join the conversation.
- Routerworks
- Offline
- Premium Member
-
Less
More
- Posts: 106
- Thank you received: 8
27 Mar 2025 15:45 #325071
by Routerworks
Replied by Routerworks on topic Need help setting up XYYZA for stepper motors
Here are the A asix files
Attachments:
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18384
- Thank you received: 5018
27 Mar 2025 16:24 #325074
by PCW
Replied by PCW on topic Need help setting up XYYZA for stepper motors
What are the errors?
Please Log in or Create an account to join the conversation.
- Routerworks
- Offline
- Premium Member
-
Less
More
- Posts: 106
- Thank you received: 8
27 Mar 2025 17:53 #325080
by Routerworks
Replied by Routerworks on topic Need help setting up XYYZA for stepper motors
Here is the error report. Had to take pictures. Working on pc windows. Linuxcnc is on separate pc no wifi.
Thanks in advance
Thanks in advance
Please Log in or Create an account to join the conversation.
- Routerworks
- Offline
- Premium Member
-
Less
More
- Posts: 106
- Thank you received: 8
27 Mar 2025 17:54 #325081
by Routerworks
Replied by Routerworks on topic Need help setting up XYYZA for stepper motors
Here is the lower half of the report
Please Log in or Create an account to join the conversation.
- Routerworks
- Offline
- Premium Member
-
Less
More
- Posts: 106
- Thank you received: 8
27 Mar 2025 17:59 #325082
by Routerworks
Replied by Routerworks on topic Need help setting up XYYZA for stepper motors
Attachments:
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18384
- Thank you received: 5018
27 Mar 2025 18:12 - 27 Mar 2025 18:21 #325083
by PCW
Replied by PCW on topic Need help setting up XYYZA for stepper motors
setp stepgen.4.position-scale [JOINT_4]SCALE
setp stepgen.4.steplen 1
setp stepgen.4.stepspace 0
setp stepgen.4.dirhold 40000
setp stepgen.4.dirsetup 40000
setp stepgen.4.maxaccel [JOINT_3]STEPGEN_MAXACCEL
net zpos-cmd joint.4.motor-pos-cmd => stepgen.4.position-cmd
net zpos-fb stepgen.4.position-fb => joint.4.motor-pos-fb
net zstep <= stepgen.4.step
net zdir <= stepgen.4.dir
net zenable joint.3.amp-enable-out => stepgen.4.enable
net estop-out <= iocontrol.0.user-enable-out
net estop-out => iocontrol.0.emc-enable-in
The red text probably should be:
setp stepgen.4.maxaccel [JOINT_4]STEPGEN_MAXACCEL
net apos-cmd joint.4.motor-pos-cmd => stepgen.4.position-cmd
net apos-fb stepgen.4.position-fb => joint.4.motor-pos-fb
net astep <= stepgen.4.step
net adir <= stepgen.4.dir
net aenable joint.4.amp-enable-out => stepgen.4.enable
Note that you also need to connect the astep and adir signals to the appropriate
parallel port pins similar to this (z highlighted ):
setp parport.0.pin-01-out-invert 1
net estop-out => parport.0.pin-01-out
net xstep => parport.0.pin-02-out
setp parport.0.pin-02-out-reset 1
net xdir => parport.0.pin-03-out
net y0step => parport.0.pin-04-out
setp parport.0.pin-04-out-reset 1
net y0dir => parport.0.pin-05-out
net zstep => parport.0.pin-06-out
setp parport.0.pin-06-out-reset 1
net zdir => parport.0.pin-07-out
net y1step => parport.0.pin-08-out
setp parport.0.pin-08-out-reset 1
net y1dir => parport.0.pin-09-out
net spindle-cw => parport.0.pin-14-out
net spindle-pwm => parport.0.pin-16-out
net xenable => parport.0.pin-17-out
setp stepgen.4.steplen 1
setp stepgen.4.stepspace 0
setp stepgen.4.dirhold 40000
setp stepgen.4.dirsetup 40000
setp stepgen.4.maxaccel [JOINT_3]STEPGEN_MAXACCEL
net zpos-cmd joint.4.motor-pos-cmd => stepgen.4.position-cmd
net zpos-fb stepgen.4.position-fb => joint.4.motor-pos-fb
net zstep <= stepgen.4.step
net zdir <= stepgen.4.dir
net zenable joint.3.amp-enable-out => stepgen.4.enable
net estop-out <= iocontrol.0.user-enable-out
net estop-out => iocontrol.0.emc-enable-in
The red text probably should be:
setp stepgen.4.maxaccel [JOINT_4]STEPGEN_MAXACCEL
net apos-cmd joint.4.motor-pos-cmd => stepgen.4.position-cmd
net apos-fb stepgen.4.position-fb => joint.4.motor-pos-fb
net astep <= stepgen.4.step
net adir <= stepgen.4.dir
net aenable joint.4.amp-enable-out => stepgen.4.enable
Note that you also need to connect the astep and adir signals to the appropriate
parallel port pins similar to this (z highlighted ):
setp parport.0.pin-01-out-invert 1
net estop-out => parport.0.pin-01-out
net xstep => parport.0.pin-02-out
setp parport.0.pin-02-out-reset 1
net xdir => parport.0.pin-03-out
net y0step => parport.0.pin-04-out
setp parport.0.pin-04-out-reset 1
net y0dir => parport.0.pin-05-out
net zstep => parport.0.pin-06-out
setp parport.0.pin-06-out-reset 1
net zdir => parport.0.pin-07-out
net y1step => parport.0.pin-08-out
setp parport.0.pin-08-out-reset 1
net y1dir => parport.0.pin-09-out
net spindle-cw => parport.0.pin-14-out
net spindle-pwm => parport.0.pin-16-out
net xenable => parport.0.pin-17-out
Last edit: 27 Mar 2025 18:21 by PCW.
Please Log in or Create an account to join the conversation.
- Routerworks
- Offline
- Premium Member
-
Less
More
- Posts: 106
- Thank you received: 8
27 Mar 2025 20:18 #325102
by Routerworks
Replied by Routerworks on topic Need help setting up XYYZA for stepper motors
Many thanks, I will give this a try and report back.
Thanks
Thanks
Please Log in or Create an account to join the conversation.
- Routerworks
- Offline
- Premium Member
-
Less
More
- Posts: 106
- Thank you received: 8
27 Mar 2025 23:09 #325125
by Routerworks
Replied by Routerworks on topic Need help setting up XYYZA for stepper motors
Attachments:
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18384
- Thank you received: 5018
27 Mar 2025 23:46 #325126
by PCW
Replied by PCW on topic Need help setting up XYYZA for stepper motors
That's an odd error as a parallel port in mode "out" should have pin 16
Can you comment out any line that causes an error, launch LinuxCNC
and then in a terminal type:
halcmd show pin parport
and show the results here
Can you comment out any line that causes an error, launch LinuxCNC
and then in a terminal type:
halcmd show pin parport
and show the results here
Please Log in or Create an account to join the conversation.
Time to create page: 0.146 seconds