Jack Ensor wrote:
> In emc2 after altering core_stepper.hal to:
> 
> # stepper module, three step generators, all three using step/dir
> loadrt stepgen step_type=2,2,2

Step type 2 is quadrature, which I think is what you want.  You would 
avoid future confusion if you changed the comment immediately above the 
loadrt line to say so...

> # connect signals to step pulse generator outputs
> newsig Xstep bit
> newsig Xdir  bit
> newsig Ystep bit
> newsig Ydir  bit
> newsig Zstep bit
> newsig Zdir  bit
> linkps stepgen.0.step Xstep   <-- LINE 62
> linkps stepgen.0.dir  Xdir
> linkps stepgen.1.step Ystep
> linkps stepgen.1.dir  Ydir
> linkps stepgen.2.step Zstep
> linkps stepgen.2.dir  Zdir

You changed the step generator to do quadrature, but you are still 
trying to hook "step" signals to "step" outputs.  Those outputs no 
longer exist.  In quadrature mode, the outputs are phase-A and
phase-B.

> Running HAL config file /home/jack/emc2/configs/stepper/stepper.hal
> HAL: ERROR: pin 'stepgen.0.step' not found
> HAL:62: link failed

This says EXACTLY what went wrong, and even tells you that the problem 
is on line 62 of home/jack/emc2/configs/stepper/stepper.hal.

About a week ago, you asked how to use quadrature instead of step/dir, 
and I answered:

 >> Somewhere in your hal files (probably in core_stepper.hal) is a
 >> line that looks like:
 >>
 >> loadrt stepgen step_type=0,0,0
 >>
 >> If you want all three axes to use quadrature, change it to:
 >>
 >> loadrt stepgen step_type=2,2,2
 >>

You did that part fine.  But I also said:

 >> Also in core_stepper.hal, you will find lines like:
 >>
 >> newsig Xstep bit
 >> linkps stepgen.0.step Xstep
 >> (similar for dir, and for each axis)
 >>
 >> These lines define HAL signals that carry step and dir to the
 >> parport.  You no longer have step and dir signals, you have
 >> quadrature phase-A and phase-B, so you need new signals.
 >>
 >> You should change them to:
 >>
 >> newsig X_phaseA bit
 >> linkps stepgen.0.phase-A X_phaseA
 >> (similar for phaseB, and for each axis)

You didn't do that part.

Regards,

John Kasunich

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to