Some advices for a noob

More
02 Jul 2013 22:23 - 02 Jul 2013 22:24 #36238 by andypugh
Replied by andypugh on topic Some advices for a noob

loadrt threads
here i don't have servo_thread or base_thread only thread1

If you want a useful PWM output then you will need a fast thread as well as the the slower "servo" thread.
Something like
loadrt threads name1=fast, name2=slow, period1=50000, period2=1000000
www.linuxcnc.org/docs/html/man/man9/threads.9.html

here how i connect pwmgen.0.value ,and pwmgen.0.pwm to parport.0.pin-09.out ?

setp pwmgen.0.enable 1
net pwm-out pwmgen.0.pwm => parport.0.pin-04-out

(or similar)
Last edit: 02 Jul 2013 22:24 by andypugh.

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

More
03 Jul 2013 00:08 #36243 by kenran
Replied by kenran on topic Some advices for a noob
Ok my configure doesn't crash anymore at startup but now how i connect xstep to pwmgen ?
net Xstep => pwmgen.0. value ?

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

More
03 Jul 2013 01:54 #36246 by andypugh
Replied by andypugh on topic Some advices for a noob

Ok my configure doesn't crash anymore at startup but now how i connect xstep to pwmgen ?


Why would you want to do that? What do you expect that to achieve?

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

More
03 Jul 2013 02:19 #36247 by kenran
Replied by kenran on topic Some advices for a noob
I try to move my X axis via pwmgen (like a spindle but in fact it's a linear axis)

I found a good configuration i think :
linuxcnc.org/lucid/emc2/index.php/russia...os-1-stepper?limit=6

connecting pwm pulse to the opto pwm->analog converter in LPT pin 5 :
net Xpwm pwmgen.0.pwm
net Xpwm => parport.0.pin-05-out

connecting direction signal to LPT pin 6:
net Xdir <= pwmgen.0.dir
net Xdir => parport.0.pin-06-out

various signals :
net Xenable => pwmgen.0.enable

I just need to configure an encoder to have feedback position

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

More
03 Jul 2013 02:22 #36248 by andypugh
Replied by andypugh on topic Some advices for a noob

I try to move my X axis via pwmgen (like a spindle but in fact it's a linear axis)


OK, what you have is a servo config, using the word "step" just confused me.

You will need a PID component too.

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

Time to create page: 0.509 seconds
Powered by Kunena Forum