Need help setting up XYYZA for stepper motors

More
1 year 7 months ago #325070 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

Please Log in to join the conversation.

More
1 year 7 months ago #325071 by Routerworks
Here are the A asix files 

Attachment not found

 

Attachment not found

Please Log in to join the conversation.

More
1 year 7 months ago #325074 by PCW
What are the errors?
 

Please Log in to join the conversation.

More
1 year 7 months ago #325080 by Routerworks
Here is the error report.  Had to take pictures.  Working on pc windows.  Linuxcnc is on separate pc no wifi.

Thanks in advance

Please Log in to join the conversation.

More
1 year 7 months ago #325081 by Routerworks
Here is the lower half of the report

Please Log in to join the conversation.

More
1 year 7 months ago #325082 by Routerworks
 

Attachment not found

Please Log in to join the conversation.

More
1 year 7 months ago #325083 by PCW
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
 

Please Log in to join the conversation.

More
1 year 7 months ago #325102 by Routerworks
Many thanks, I will give this a try and report back.

Thanks

Please Log in to join the conversation.

More
1 year 7 months ago #325125 by Routerworks
Here is the result after changes. 

Attachment not found

Please Log in to join the conversation.

More
1 year 7 months ago #325126 by PCW
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

Please Log in to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum