Re: [Emc-users] O subroutines limited to 4 parameters, not 30?

2018-12-15 Thread andy pugh
On Sat, 15 Dec 2018 at 23:02, Ted Hyde  wrote:

> Greets - I'm calling an o sub from python and need to pass 8 parameters
> to it. Per the docs, I'm expecting to be able to pass up to 30
> parameters, not just 4
> Whether I make the call in python, or just in Axis' MDI window, I get
> the same response at the 5th parameter "Interp_error Bad Character '['
> used."

Well, I routinely pass more than 4 parameters on my lathe, so I am
sure it can work..

Which version of LinuxCNC are you using? (I am months / years behind
on the lathe, running a pre-merge external offsets branch)

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916


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


[Emc-users] O subroutines limited to 4 parameters, not 30?

2018-12-15 Thread Ted Hyde
Greets - I'm calling an o sub from python and need to pass 8 parameters 
to it. Per the docs, I'm expecting to be able to pass up to 30 
parameters, not just 4
Whether I make the call in python, or just in Axis' MDI window, I get 
the same response at the 5th parameter "Interp_error Bad Character '[' 
used."
I can replicate this with any o sub (as external file) and it always 
fails on the 5th parameter, eg:


300.ngc:
o<300> sub
(DEBUG, I actually have 8 params: [#1] [#2] [#3] [#4] [#5] [#6] [#7] [#8])
o<300> endsub

and calling it via python or just simply in Axis' MDI: o<300> call [1.0] 
[2.0] [3.0] [4.0] [5.0] [6.0] [7.0] [8.0]

will cause it to fail..
Calling only o<300> call [1.0] [2.0] [3.0] [4.0]
will run, but of course a full routine is missing parameters 5-8.
Running (Axis) 2.7.0 on Wheezy from LiveCD install.

Any help appreciated.

Thanks,
Ted.


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


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread Gene Heskett
On Saturday 15 December 2018 13:13:30 nkp wrote:

> retrofitting big_machine (17t) (EMC2_control)
>
17tons? Thats definitely out of my pay grade. I think I'm the lists 
resident old fart at 84. But it seems to me that a steering switch to 
redirect the axis's to the backplot, in the .ini might be something 
doable.

Or do I not fully understand the backplot view problem, Andy? Something 
in the same block of code that looks for the keyword LATHE in the .ini 
file, could it look for "HORIZ_BORE = yes" too, but preserve what I 
assume is the articulation laterally and vertically this big machine 
probably has?

Even better for those of us with rotateable heads on our mills, a python 
button to switch from the std mill view to a horizontal bore view would 
be a nice addition. Moving the envelope markings might be just as 
complex. Those are set in the .ini also from the MIN_LIMIT and MAX_LIMIT 
per axis/joint settings now.

> > What are you trying to do?



-- 
Cheers, Gene Heskett
--
"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] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp

Thanks Andy for the push in the right direction!)
I almost got what I wanted.

OpenGLTk.py:

rotation_vectors = [(1.,0.,0.), (0., 1., 0.)]

rotates around Y axis


(but  rotates around Z axis( require  - around Y)






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


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp

https://www.mail-archive.com/emc-developers@lists.sourceforge.net/msg17937.html



ps
 Vismach in some tasks was limited:





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


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp

Thanks!
But now required Axis.
ps
 Vismach in some tasks was limited:
 https://www.mail-archive.com/emc-developers@lists.sourceforge.net/msg17936.html

 but VisMach is pretty easy to visualize the placement






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


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread Kirk Wallace

On 12/15/18 5:48 AM, nkp216 wrote:

Has anyone ever had experience setting up (source code editing) Axis
(gremlin) for horizontal boring machines?

https://imgur.com/gallery/m8UhfDJ

  Now 3d view is not very convenient.

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




I don't know if this addresses your issue, but VisMach is pretty easy to 
visualize the placement and motion of machine parts.



http://linuxcnc.org/docs/html/gui/vismach.html


For me, the real problem is in representing the tool path. After looking 
at OpenGL, tool control point issues, and 3D graphics in general 
(elements in space, and viewpoint of the space), it seemed to me that 
just defining the problem was a big hurdle.


Old information (red herring and rabbit hole warning):

http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Gremlin


Handling the three XYZ linear space is fairly easy. Defining the 
graphics for rotary or other additional axes seems to be an order of 
magnitude harder, and there don't seem to be any examples to copy from.


--
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/


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


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp

retrofitting big_machine (17t) (EMC2_control)


What are you trying to do?





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


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread Gene Heskett
On Saturday 15 December 2018 08:48:35 nkp216 wrote:

> Has anyone ever had experience setting up (source code editing) Axis
> (gremlin) for horizontal boring machines?
>
> https://imgur.com/gallery/m8UhfDJ

imgur has now hiden the images if you've not registered and logged in.
>
>  Now 3d view is not very convenient.

No, its not, for horizontal boring, but IIRC I was able to rotate the 
view and get something semi-useful.

I've set the head of my Grizzly G0704 to horizontal and used it that way. 
Including carving the holder for the round motor I was working on the 
shaft of. Wasn't all that hard to do in axis. Biggest problem was 
re-tramming the head back to vertical when I was done. The glued on 
scale marking for the rotation of the head weren't near accurate enough. 
Off a couple degrees at least. But its a Chinese mill, $1189 in a box in 
the back of my pickup about 5 years back at the Lycoming Mall PA store 
they had then. Making it accurate IS up to the user. :)

Boring depth will be limited by how much tool projects from the spindle 
unless swinging a fly cutter bigger that the spindle OD. That /might/ 
get you to 2" deep.

What are you trying to do?

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



-- 
Cheers, Gene Heskett
--
"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] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp

if in glnav.py (function set_view_p)
edit :
self.lat = 0
self.lon = 0


p_view -  normal

(but  rotates around Z axis( require  - around Y)



You can change the views here:
https://github.com/LinuxCNC/linuxcnc/blob/master/lib/python/glnav.py#L395






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


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread andy pugh
On Sat, 15 Dec 2018 at 14:54, nkp  wrote:

> Now it looks like this:
> https://imgur.com/gallery/cW2PQbO

You can change the views here:
https://github.com/LinuxCNC/linuxcnc/blob/master/lib/python/glnav.py#L395

I suspect that by editing the .lat and ,lon in set_view_p() you can
get what you want.

I experimented with editing that fole and it does change the view. I
am, however, not sure how to do it in a way that will persist through
a software update.

I tried making a small Python script for the job (that could be called
during startup, or from an M-code)

8>< 
#! /usr/bin/python
from glnav import GlNavBase
GlNavBase.set_viewangle(160,230)
8>< 

Which sort-of works, in that it finds the right code, but doesn't find
the right GlNavBase instance (or something along those lines, it
doesn't work, is all I can really say)

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916


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


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp



Now it looks like this:
https://imgur.com/gallery/cW2PQbO

Isn't that view identical to the top-down view of a conventional mill?





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


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread andy pugh
On Sat, 15 Dec 2018 at 14:26, nkp  wrote:
>
> If the axes are positioned in this way:
>
> https://imgur.com/gallery/gqfFde0
>
> the perception of the trajectory will be better.(IMHO)

So it's the rotary table you want to visualise, rather than the radial
mounted on the Z (probably a W?)

Isn't that view identical to the top-down view of a conventional mill?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916


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


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp

If the axes are positioned in this way:

https://imgur.com/gallery/gqfFde0

the perception of the trajectory will be better.(IMHO)


What would change? Are you wanting to add the radial axis?





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


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread andy pugh
On Sat, 15 Dec 2018 at 13:50, nkp216  wrote:

> Has anyone ever had experience setting up (source code editing) Axis
> (gremlin) for horizontal boring machines?

What would change? Are you wanting to add the radial axis?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916


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


[Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp216
Has anyone ever had experience setting up (source code editing) Axis
(gremlin) for horizontal boring machines?

https://imgur.com/gallery/m8UhfDJ

 Now 3d view is not very convenient.

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