On Sunday 06 April 2014 02:54:42 Howard Mearns did opine: > I need some clarification on lathe setup. The integrator manual seems > to indicate that I should remove the [axis_1] section. Some older posts > say that I will have to make a dummy 'y' axis. > > I worked on ini/hal bugs/learning curve until I got Axis to appear > without crashing setup just as a mill. I then went to the lathe > configuration section of the integrators manual and did as instructed. > (g 18, , lathe=1, remove [axis 1].) Now it crashes and gives me an > error that the axis 2 enable out pin does not exist. (What does axis 2 > have to do with axis 1?) > > Does removing the y axis mean that axis 1 is now the z axis?
No, at least not in my config, axis 1 is removed, not in my .hal file, but axis 2 is still the Z. As for the enable, one is sufficient if its buffered and has enough drive to enable everything. >From my [TRAJ] section: [TRAJ] TRAJECTORY_PERIOD =500000 AXES = 3 COORDINATES = X Z So it says 3, but the COORDINATES line only specifies X Z. FWIW, I have never tried telling it axes = 2, it might even work. Finally, a bit of advice to help control the control lags which will be important if you are controlling the spindle motor as a variable speed device. You can loadrt in any order, but when adding the addf's to bring them into use in your hal file, do the addf's so the signal path is as in order sequentially from module to module, that way a signal change can propagate through many modules, from the signal source to the parport output pin in 1 loop through the servo-thread. Put them in the wrong order and it might take 10 passes thru the servo loop to cascade from source to output pin. That amount of delay can make the PID module virtually un-tunable. That is "somewhat" of a black art anyway, but can be mastered well enough for good spindle speed control. In your case the drive servo's too. > > Thank you, > Howard > > Project lathe particulars: > Wasino L5-J2 circa 1986 > 12 position turret (behind spindle centerline) > DC Fanuc spindle control > Fanuc 3T yellow cap servos and drives > Mesa 5i25,7i77 (I have 5v and field power applied with flashing green > light when Axis opens successfully) EMC 2.5 > Jitter 10k to 15k ns > Started from John Thornton's sample configuration files sounds good from here. That jitter is a bit high, one of the dual core atom boards with "isolcpu = 1" on the kernel command line in grub, can bring that down to 3k or 4k ns. However, running servo's you should not even need to specify a BASE_THREAD, so that amount of jitter is a complete never mind. Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
