Forum Header

Mach3 XML and Stepconfig issues.

More
9 years 6 months ago #91842 by tecno
Sorry no action, did try from 1 to 250000

Please Log in to join the conversation.

More
9 years 6 months ago #91847 by Todd Zuercher
Can you try using Hal Scope to watch the parport.0.pin-06-out and parport.0.pin-07-out pins?
Ask if you need instructions how to do that.

Wait, just had an epiphany. Duh, I think we forgot to connect the enable for the spindle's stepgen.
Add this line to your hal file.
Code:
net spindle-enable <= motion.spindle-on => stepgen.2.enable

Please Log in to join the conversation.

More
9 years 6 months ago #91848 by tecno
Will go down to the shop and try that.

Please Log in to join the conversation.

More
9 years 6 months ago #91850 by tecno
Added line nothing.

Attachment not found

Please Log in to join the conversation.

More
9 years 6 months ago #91851 by tecno

Attachment not found

Please Log in to join the conversation.

More
9 years 6 months ago #91852 by tecno

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
9 years 6 months ago #91853 by tecno
So now we have clockwise F9 working

Please Log in to join the conversation.

More
9 years 6 months ago #91854 by tecno
Pin 7 is not changing direction, pulses only on pin 6 for steps and 7 to go high or low.
How to change this?

Please Log in to join the conversation.

More
9 years 6 months ago #91859 by Todd Zuercher
The way I understood what you wanted, pin 6 should get the clockwise pulses and pin 7 should get the counter clockwise pulses. Is that not what you wanted?

If you want all the step pulses on 6 and toggle a direction bit on pin 7. it is as simple changing one parameter value and changing a couple of pin names.
Change these lines:
Code:
loadrt stepgen step_type=0,0,1 ctrl_type=p,p,v net spindle-cw <= stepgen.2.up net spindle-ccw <= stepgen.2.down
to
Code:
loadrt stepgen step_type=0,0,0 ctrl_type=p,p,v net spindle-cw <= stepgen.2.step net spindle-ccw <= stepgen.2.dir

Please Log in to join the conversation.

More
9 years 6 months ago #91861 by tecno
Thanks Todd,
will try this tomorrow. It seems clear now what does what.

Problem was xml import and also no way to set parameters in the Stepconfig, only CW and CCW.
This is a learning curve for me, also that English is not my native language so it gets misunderstood.

I´m sure other issues will emerge but I am eager to learn.

Cheers
Bengt

Please Log in to join the conversation.

Time to create page: 0.164 seconds
Powered by Kunena Forum