Trying to Configure Dual Y Axis

More
3 years 3 months ago - 3 years 3 months ago #275460 by tommylight
Nope, no report.
-
Yay, report! :)
Last edit: 3 years 3 months ago by tommylight.

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

More
3 years 3 months ago #275461 by Routerworks
Do you have it now?

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

More
3 years 3 months ago #275464 by tommylight
From your hal file:
net ystep => parport.0.pin-04-out
then
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
That will not work, ystep requires ypos, ystep, ydir, yenable, etc, not y0pos
this is all over the hal file, so to many things to fix.
-
Lets go back, you have a parallel port, so limited IO, do you want:
-to have limit switches on all axis/joints?
-do you need to square the gantry or is it stiff enough to stay trammed?
-do you want to have both motors/drives for Y axis run at the same time, even when jogging and before homing the machine?

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

More
3 years 3 months ago - 3 years 3 months ago #275469 by JPL
Replied by JPL on topic Trying to Configure Dual Y Axis
From the hal file:

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 ystep => parport.0.pin-04-out
setp parport.0.pin-04-out-reset 1
net ydir => 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 ystep => parport.0.pin-08-out
setp parport.0.pin-08-out-reset 1
net ydir => 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-ou


So, ystep and ydir is repeated:
ystep goes to pins 04 and 08
ydir goes to pins 05 and 09

BUT no 'y0' or 'y1'


Then after that you started using y0step and y1step

net y0step <= stepgen.1.step
net y0dir <= stepgen.1.dirAND
net y1step <= stepgen.2.step
net y1dir <= stepgen.2.dir...
Last edit: 3 years 3 months ago by JPL.

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

More
3 years 3 months ago - 3 years 3 months ago #275470 by JPL
Replied by JPL on topic Trying to Configure Dual Y Axis
Not 100% sure, maybe Tommy could confirm but I think that one of the first thing to do is:

replace net ystep => parport.0.pin-04-out    with   net y0step => parport.0.pin-04-out
replace net ydir => parport.0.pin-05-out       with   net y0dir => parport.0.pin-05-out

replace net ystep => parport.0.pin-08-out    with   net y1step => parport.0.pin-08-out
replace net ydir => parport.0.pin-09-out       with   net y1dir => parport.0.pin-09-out

 
Last edit: 3 years 3 months ago by JPL. Reason: Bold to make it easier to read

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

More
3 years 3 months ago #275472 by Routerworks
Good catch. I'll change them.

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

Time to create page: 0.311 seconds
Powered by Kunena Forum