Re: [Emc-users] Lathe Configuration help

2014-04-20 Thread David Armstrong
On 06/04/14 05:17, Howard Mearns wrote:
> 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?
>   
> 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
>   
> --
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
Howard
all you need to do is edit these lines in your INI file


[DISPLAY]
LATHE = 1

[TRAJ]
AXES = 3
COORDINATES = X Z

you can leave axis_1 in place if you wish it bears no part now
axis names do not change

axis 0 = X
axis 2 = Z


--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Lathe Configuration help

2014-04-06 Thread andy pugh
On 6 April 2014 05:17, Howard Mearns  wrote:
> Does removing the y axis mean that axis 1 is now the z axis?

Others have explained what to do, but here is a small explanation of why.

When LinuxCNC was first written there was an assumption made that an
"X" in the G-code would always drive motor-0, "Y" would drive motor-1
and so on.
The G-code axis words are (in this fixed sequence) X-0, Y-1, Z-2, A-3,
B-4, C-5, U-6, V-7, W-8.
Internally the motion module creates enough axis-data for as many axes
as are specified in the HAL file line that loads the motion
controller.
If you look in the HAL file you will probably see a line like this:
loadrt [EMCMOT]EMCMOT ... num_joints=[TRAJ]AXES
That loads the motion controller specified in  the INI file [EMCMOT]
section and tells it to handle [TRAJ]AXES axes.
What this means in practice is that [TRAJ]AXES isn't actually the
count of axes needed, it is the index of the highest axis in use.

You could have a single-axis machine using only W and that would need
a 9-axis config.

There is a development branch of LinuxCNC which removes some (or
perhaps all) of these assumptions.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Lathe Configuration help

2014-04-06 Thread Gene Heskett
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 =50
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 


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Lathe Configuration help

2014-04-05 Thread Marius Liebenberg
You remove the axis section out of the ini but you do this
Under [TRAJ] section
AXIS = 3
COORDINATES = X Z

Then you will have
[AXIS_0]
tralala

[AXIS_2]
tralala

Note that the Z is still AXIS_2


On 2014-04-06 06:17, Howard Mearns wrote:
> 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?
>   
> 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
>   
> --
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

-- 

Regards /Groete

Marius D. Liebenberg
+27 82 698 3251
+27 12 743 6064
QQ 1767394877


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users