Bill Hribar wrote: > Hi all: > > Is it possible for EMC2 to be setup to use info from encoders to stop > movement > of a cnc machine when the EMC2 system is driving steppers? > > I have read the wiki; Steppers with encoders - jlmjvm's story, the author > said > he is able to do just that! > > I noted that he said he would post his .hal and .ini files, but I have not > been > able to find where he has posted them or his e-mail address. > It is most certainly possible. My Universal Stepper Controller provides a capability to do that. It was more aimed at step/servos like the Gecko 320, but can definitely be used to monitor stepper position and cause a following error when there is a loss of position. Normally, the USC board counts step pulses going out, and reports that back to EMC. By flipping a switch on the board, each axis can be selected to read an encoder for actual position instead. This will not allow you to recover from a stall, but will alert EMC that a stall has occurred. It will allow EMC to correct occasional single step errors due to timing problems when reversing direction and such things.
See http://pico-systems.com/codes/univstep/ for a set of configs files using the USC board. The only change in the configs files would be to set the correct value of the SCALE parameter for the encoder you are using. Jon ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users