Re: [Emc-developers] stepgen.c

2015-07-29 Thread Sebastian Kuzminsky
On 7/29/15 6:55 AM, Jullian wrote: > Hi, all: > > Now, i am reading the stepgen.c file, and i have some doubts: > > (1)what're the main steps to transform from the position offset to pulses? The best description of how stepgen.c does is probably the source, and this documentation: http://linuxcn

[Emc-developers] stepgen.c

2015-07-29 Thread Jullian
Hi, all: Now, i am reading the stepgen.c file, and i have some doubts: (1)what're the main steps to transform from the position offset to pulses? (2)what's the main effect of make_pulse() , update_freq() and update_pos()? (3)can anyone explain the meaning of Line748:(accum_a-(1<< (PICKOFF-1)))

Re: [Emc-developers] stepgen.c

2015-07-26 Thread andy pugh
On 26 July 2015 at 10:03, Jullian wrote: > As far as i have read, in the stepgen.c, the function of make_pulses() just > processs > the time of periodns. and i cannot find the code processing the position > offset. That is done by the capture-position HAL function, which calls the update_pos C-f

[Emc-developers] stepgen.c

2015-07-26 Thread Jullian
Hi all, As far as i have read, in the stepgen.c, the function of make_pulses() just processs the time of periodns. and i cannot find the code processing the position offset. Does anyone know where's the code about the position offset? Best regards! ---

Re: [Emc-developers] Stepgen.c feature

2010-02-26 Thread EBo
Mario, Can you provide some references for the current control of the phase coils? I think that would interesting for reference... EBo -- "Mario." said: > --0016e6d77ed3d8b6420480862da9 > Content-Type: text/plain; charset=UTF-8 > > Dave: I already have the analog output driver made and it

Re: [Emc-developers] Stepgen.c feature

2010-02-26 Thread Mario.
Dave: I already have the analog output driver made and it makes a real difference. The motor is quiet. At 2000usteps/revolution, when spinning Shinano Kenshi SST83D1C011 motor slowly, you can see every movement clearly. I reconnected the windings inside to be only bipolar, to get lower losses and

Re: [Emc-developers] Stepgen.c feature

2010-02-26 Thread Slavko Kocjancic
I hate step/dir as it make a lot of overhead if software stepgen is used. (set new direction, wait proper time, make step signal active, wait again, relase step signal . wait, wait) For that reason the best is 2 phase (quadrature) just change and forget. Let's stay on original problem/f

Re: [Emc-developers] Stepgen.c feature

2010-02-26 Thread Dave
Once you get much beyond 10 microsteps you are pretty much wasting your time with more. There is no increase in actual mechanical resolution. The trick is that step and direction is a "standard" and unless you are making your own drivers reinventing the wheel is probably not very useful. I

Re: [Emc-developers] Stepgen.c feature

2010-02-26 Thread Slavko Kocjancic
Gray code is good. I use HalfStepping with both pases on. Similar as used in linistepper. But if I use lines directly there is not enougth pins on lpt port. As I use old laptop and can't instal new one I manage that in reality I need only 3 bits and simple xor gate (74HC86). The drive is comple

Re: [Emc-developers] Stepgen.c feature

2010-02-26 Thread Mario.
I had a similar idea long time ago, and I implemented it in the file, but never used. Not yet. First of all, the output encoding should use GRAY CODE format! In other words, quadrature output in 2-bit gray code. Between any two adjacent positions, there is only SINGLE bit change. Also, gray codes

[Emc-developers] Stepgen.c feature

2010-02-25 Thread Slavko Kocjancic
Hello... I'm already post that question/wish on the linuxcnc forum and I got response that here is the right place to ask that. Se here is copy. ;-- Hello... I'm have homemade stepper driver and have phase inputs. The inpu