spindle feedback and latency issues
i built a cnc lathe out of a 7x12 benchtop lathe, it ran with Mach3 - but i wasnt able to cut extra fine threads with it. (had 2 pitches instead the expected 1) normal threads (pitch >1mm) worked like a charm
So i decided to take a look on LinuxCNC. As a Click&Error master, setup was quite easy, i'm running it on a HP Compaq 6700 P4(HT disabled) and gettin <40.000 Jitter
Had my backlashenabled X axis ballscrew G0-ing around half an hour with no lost steps. (1/8 microstepping)
i also did the SMI trick as figured in the wiki, but it doesnt load, guess my chipset does not support it
But everytime at startup, the programm tells me latency isnt alright and i should check it - what does that mean?
Also i cant manage to get spindle feedback working..
i do have a spindle index card (cnc4pc C3), optoisolated, single slot disc and a working signal at HAL (spindle index= true, false)
Wiki says i need to configure "encoder phase a" and "index pulse"
When assigning the "encoder phase a" in the stepconf wizard, im able to give a value for "steps per rev" but linuxcnc wont load my machine then and aborts
What am i doing wrong? I just have 1 Input signal to handle spindle feedback for feed per rev. and threading..
i hope someone may can help me
![:( :(](/media/kunena/emoticons/sad.png)
Please Log in or Create an account to join the conversation.
It means that the base thread (stepgen etc) has over-run. You could try increasing the base-thread period.But everytime at startup, the programm tells me latency isnt alright and i should check it - what does that mean?
What values does the latency test give? (it's in the CNC menu, I think)
You need to add an encoder function, set it to counter-mode and set the scale to 1, then use the position-interpolated pin to link to motion.spindle.revs.Also i cant manage to get spindle feedback working..
i do have a spindle index card (cnc4pc C3), optoisolated, single slot disc
I am rather expecting that not much of that makes any sense to you, so feel free to ask for more details.
Please Log in or Create an account to join the conversation.
For a start,
You might want to review this...
www.linuxcnc.org/docs/2.4/html/config_stepconf.html#r1_1
and
wiki.linuxcnc.org/cgi-bin/wiki.pl?TroubleShooting
Run your latency test for an extended period of time while using some graphic programs, drag windows around and such.
Use the resulting numbers to run Stepconfig again to make sure you are not trying to run faster than your computer is capable of.
Rick G
Please Log in or Create an account to join the conversation.
thats what latency-test shows me after 15min of 2x glxgears and some surfin arround with firefox
when starting a programm jitter raises up to 1million, is that normal? i resettet latency-test after loading my programms and let it run from that on - giving a base 50535 and servo 25304
in stepconf i picked Encoder Phase A instead of Index Pulse and linuxCNC just wont start now.
Please Log in or Create an account to join the conversation.
No, it is not normal, and might be a serious problem.i redid the stepconf and entered a higher jitter, 50535
thats what latency-test shows me after 15min of 2x glxgears and some surfin arround with firefox
when starting a programm jitter raises up to 1million, is that normal?
wiki.linuxcnc.org/cgi-bin/wiki.pl?TroubleShooting
It looks like your INI file is no longer specifying the PyVCP file which contains the spindle speed gauge.in stepconf i picked Encoder Phase A instead of Index Pulse and linuxCNC just wont start now.
Please Log in or Create an account to join the conversation.
HP DC7600
P4 3Ghz 4GB RAM, On board video, Ubuntu 10.04 LTS installed from LiveCD?, HT Disabled in BIOS, 2x glxgears running, snd kernel modules disables, SMI disabled
i dont know where to disable kernel modules, and the SMI modification doesnt work here
How do i solve the PYVCP thing?
Please Log in or Create an account to join the conversation.
It looks like it might be worth turnign off hyperthreading in the BIOS.i dont know where to disable kernel modules, and the SMI modification doesnt work here
I am not sure what you mean about "SMI not working here"
If it is a problem with opening files then perhaps there is something funny with the HDD.
It might be interesting to try opening a file from a USB stick to see if there is a problem then.
This thread might be interesting www.linuxcnc.org/index.php/french/forum/...ne-hard-drive-access
Though all it really says is that IDE drives might be bad.
If it worked before, then it sounds like you missed something out in stepconf. Or stepconf got too clever and decided you don't have a spindle encoder any more and didn't put the gauge in. If you look in the INI file do you see a PYVCP= entry?How do i solve the PYVCP thing?
Please Log in or Create an account to join the conversation.
It looks like it might be worth turnign off hyperthreading in the BIOS.
I am not sure what you mean about "SMI not working here"
If it is a problem with opening files then perhaps there is something funny with the HDD.
It might be interesting to try opening a file from a USB stick to see if there is a problem then.
This thread might be interesting www.linuxcnc.org/index.php/french/forum/...ne-hard-drive-access
Though all it really says is that IDE drives might be bad.
I allready disabled HT in the Bios, gave a huge boost (down ofc) while double glxgear
I'll borrow me an usb stick to test this
I followed the wiki guide to load the SMI module with linuxcnc, but it doesn't load
If it worked before, then it sounds like you missed something out in stepconf. Or stepconf got too clever and decided you don't have a spindle encoder any more and didn't put the gauge in. If you look in the INI file do you see a PYVCP= entry?
yes, there is a entry
Please Log in or Create an account to join the conversation.
loading the mp3 made no difference (RTAI latency test), but opening the stock ubuntu 12.04 player caused every time a +3 overrun and latency max up to 108.000
Latency Average (RTAI latency test) is allways a negative amount
at the HDD Read test, my SATAII HDD had a accesstime of 14.6ms (retailer datasheed=9ms)
Memtest86+ was just fine, 2x1024mb modules synch dualchannel
P4 Hyperthreading off, all BIOS features look like recommended in the wiki
Nvidia 7100GS+, PCI-E, tried with and without the ubuntu-recommendet driver, no difference - Programms never load "smooth" aswell scrolling in firefox
I'm gonna buy me a SSD today, hope this solves it... i want to stop banging my head to the table...
Please Log in or Create an account to join the conversation.
Rick G
Please Log in or Create an account to join the conversation.