× Forum Header

Mach3 XML and Stepconfig issues.

More
22 Apr 2017 13:58 #91842 by tecno
Sorry no action, did try from 1 to 250000

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

More
22 Apr 2017 15:20 - 22 Apr 2017 15:20 #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.
net spindle-enable <= motion.spindle-on => stepgen.2.enable
Last edit: 22 Apr 2017 15:20 by Todd Zuercher.

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

More
22 Apr 2017 15:24 #91848 by tecno
Will go down to the shop and try that.

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

More
22 Apr 2017 15:49 #91850 by tecno
Added line nothing.
Attachments:

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

More
22 Apr 2017 15:50 #91851 by tecno
Attachments:

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

More
22 Apr 2017 15:56 #91852 by tecno
Attachments:

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

More
22 Apr 2017 16:01 #91853 by tecno
So now we have clockwise F9 working

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

More
22 Apr 2017 16:16 #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 or Create an account to join the conversation.

More
22 Apr 2017 20:20 #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:
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
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 or Create an account to join the conversation.

More
22 Apr 2017 20:37 - 22 Apr 2017 20:46 #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
Last edit: 22 Apr 2017 20:46 by tecno.

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

Time to create page: 0.211 seconds
Powered by Kunena Forum