Re: [Emc-users] Carving a spiral

2024-04-10 Thread gene heskett
On 4/10/24 01:57, John Dammeyer wrote: A friend and I have been discussing exactly how to write the G-Code to create a spiral scroll. His rotary table 90:1 reduction with a 1600 micro-step motor could be set up to move N steps for each step of the X axis to create the spiral. But that approach

Re: [Emc-users] Carving a spiral

2024-04-10 Thread marcus . bowman
As I recall, someone on this list posted a note or a link about how to create a fusee for a clock (essentially a tapered spiral, running from large diameter to smaller diameter while spiralling - rather like a tapered woodscrew thread). Is a constant-diameter version of that what you had in

Re: [Emc-users] Carving a spiral

2024-04-10 Thread andy pugh
On Wed, 10 Apr 2024 at 06:59, John Dammeyer wrote: > > Without using G2 or G3 it's really just a triangle isn't it? Move rotary > table distance A and move X axis distance A'. Do it in small enough > increments and you get a spiral. But I feel like I'm missing something > really simple. If

Re: [Emc-users] Carving a spiral

2024-04-10 Thread gene heskett
On 4/10/24 03:37, John Dammeyer wrote: Hi Marcus, Here's the problem. My Alibre CAD/Cam can produce a spiral slot in a disk using X and Y motion. I looked at alibre, could not get my Iowa farm kid head around it. Far easier for me to write my own gcode. In linuxcnc, you can trade the axis

Re: [Emc-users] Carving a spiral

2024-04-10 Thread John Dammeyer
Hi Marcus, Here's the problem. My Alibre CAD/Cam can produce a spiral slot in a disk using X and Y motion. If I tell it to use my 4th axis it's like the video you posted. Designed for creating a spiral on something horizontal to say the X axis. I think I'd have to buy the 5th axis

[Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread Leonardo Marsaglia
Hello guys, I hope you're doing well I'm having problems with a Daewoo Puma 12L lathe to index some tools. The problem is that some tools work well and others don't seem to be detected by the control to stop at the position and clamp the turret. So the turret keeps rotatring until the timeout

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread andy pugh
On Wed, 10 Apr 2024 at 13:03, Leonardo Marsaglia wrote: > > I'm having problems with a Daewoo Puma 12L lathe to index some tools. The > problem is that some tools work well and others don't seem to be detected > by the control to stop at the position and clamp the turret. So the turret > keeps

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread Leonardo Marsaglia
Hi Andy, It seems there is a pattern, but it's a pretty weird one. Let me sum it up. Tools 1, 2, 3, 7 and 9 work will in all the cases. Tools 4, 5, 6 and 10 can't stop in position and the turret keeps rotating. The interesting thing is tool 10 was working perfectly a few days ago. Now tool 8

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread Leonardo Marsaglia
> > Digging back into my own by now dim 54 yo memory, is that cpu perchance > a zylog, z80 or derivitive? The z80 has shadow registers, duplicating > the main set that there was a machine code to swap them. But zylog were > AH's and by the time I had troubleshot my code to determine the cpu was >

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread andy pugh
On Wed, 10 Apr 2024 at 15:05, Leonardo Marsaglia wrote: > > It seems there is a pattern, but it's a pretty weird one. Do you know if the output is binary or gray code? Gray code is more likely. encoder value 00 = = not used? 01 = 0001 = good 02 = 0011 = good 03 = 0010 = good 04 = 0110

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread Leonardo Marsaglia
Hi Todd, Yes, this one has the Balluff BRGE1-WSE10 encoder mounted behind the turret cover. It's an absolute 10 position encoder and as told in the other message, I'm just doubting this is the problem. I'm beginning to believe may be there's a CPU problem because I'm getting too many weird

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread gene heskett
On 4/10/24 10:08, Leonardo Marsaglia wrote: Hi Todd, Yes, this one has the Balluff BRGE1-WSE10 encoder mounted behind the turret cover. It's an absolute 10 position encoder and as told in the other message, I'm just doubting this is the problem. I'm beginning to believe may be there's a CPU

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread Todd Zuercher via Emc-users
Are you sure that the machine uses an encoder for the turret positioning? The fact that it will work at some tool positions seems to sound more like it has a series of switches, and that one of them isn't working. The switches might be arrayed kind of like a Gray code encoder to give a form

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread Jon Elson
On 4/10/24 08:46, Todd Zuercher via Emc-users wrote: Are you sure that the machine uses an encoder for the turret positioning? The fact that it will work at some tool positions seems to sound more like it has a series of switches, and that one of them isn't working. The switches might be

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread gene heskett
On 4/10/24 10:58, Leonardo Marsaglia wrote: Digging back into my own by now dim 54 yo memory, is that cpu perchance a zylog, z80 or derivitive? The z80 has shadow registers, duplicating the main set that there was a machine code to swap them. But zylog were AH's and by the time I had

Re: [Emc-users] Carving a spiral

2024-04-10 Thread Alan Condit via Emc-users
John, Here us a subroutine I wrote to cut a scroll. #<_xorigin>, and #<_yorigin> are the center of the scroll. Basically it changes the radius of the circle every ¼ turn. (Subroutine to cut spiral in) (o call [X] [Y] [Depth] [Stepover] [Radius]) o sub (#1 is X center) (#2 is Y center) (#3 is Z

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread Leonardo Marsaglia
From what I could find in the manual of the lathe it works in plain binary. Now I'm trying to measure the signals. Here's a link to the encoder manual: https://mp-elektronik.de/wp-content/uploads/2020/07/MP-BA-BRGE1-...-K-SA12-SA13-en.pdf El mié, 10 abr 2024 a las 12:51, andy pugh ()

Re: [Emc-users] Carving a spiral

2024-04-10 Thread andy pugh
On Wed, 10 Apr 2024 at 17:30, Alan Condit via Emc-users < emc-users@lists.sourceforge.net> wrote: > > Here us a subroutine I wrote to cut a scroll. > #<_xorigin>, and #<_yorigin> are the center of the scroll. Basically it > changes the radius of the circle every ¼ turn. This is what I was

Re: [Emc-users] Carving a spiral

2024-04-10 Thread Sam Sokolik
G33 for the win! sam On Wed, Apr 10, 2024 at 12:31 PM Chris Albertson wrote: > Do you even need a rotory table to cut a spiral? > > > On Apr 10, 2024, at 12:09 AM, gene heskett wrote: > > > > On 4/10/24 01:57, John Dammeyer wrote: > >> A friend and I have been discussing exactly how to write

Re: [Emc-users] Carving a spiral

2024-04-10 Thread John Dammeyer
Hi Gene, Just like I can't get my head around Fusion360 or similar CAD. AlibreCAD has gone downhill since they trashed their relationship with MecSoft which correspondingly trashed AlibreCAM. I'll take a closer look at your approach later today. Thanks John > -Original Message- > From:

Re: [Emc-users] Carving a spiral

2024-04-10 Thread Chris Albertson
Do you even need a rotory table to cut a spiral? > On Apr 10, 2024, at 12:09 AM, gene heskett wrote: > > On 4/10/24 01:57, John Dammeyer wrote: >> A friend and I have been discussing exactly how to write the G-Code to >> create a spiral scroll. >> His rotary table 90:1 reduction with a 1600

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread John Dammeyer
I'd take a closer look at the power supplies. A system from 1997 could easily have electrolytic capacitors that have aged enough to no longer be effective. If you have an ESR meter you could pull caps and check against new ones. Or just go whole hog and replace them all. John > > >>

Re: [Emc-users] Carving a spiral

2024-04-10 Thread gene heskett
On 4/10/24 13:30, Chris Albertson wrote: Do you even need a rotory table to cut a spiral? Now that you ask, I think the answer is probably no. Take a look at the nurbs command G5.2 where a group of points describes the curve. Then rotate the points about one end in polar/rectangular space.

Re: [Emc-users] Carving a spiral

2024-04-10 Thread gene heskett
On 4/10/24 13:03, John Dammeyer wrote: Hi Gene, Just like I can't get my head around Fusion360 or similar CAD. AlibreCAD has gone downhill since they trashed their relationship with MecSoft which correspondingly trashed AlibreCAM. I'll take a closer look at your approach later today. My

Re: [Emc-users] Carving a spiral

2024-04-10 Thread John Dammeyer
Hi Andy, > -Original Message- > From: andy pugh [mailto:bodge...@gmail.com] > Sent: April 10, 2024 1:54 AM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] Carving a spiral > > On Wed, 10 Apr 2024 at 06:59, John Dammeyer > wrote: > > > > > Without using G2 or G3 it's

Re: [Emc-users] Carving a spiral

2024-04-10 Thread John Dammeyer
Thanks Alan, I'll take a look at this later today. John > -Original Message- > From: Alan Condit via Emc-users [mailto:emc-users@lists.sourceforge.net] > Sent: April 10, 2024 9:27 AM > To: EMC-Users > Cc: Alan Condit > Subject: Re: [Emc-users] Carving a spiral > > John, > > Here us a

Re: [Emc-users] Carving a spiral

2024-04-10 Thread andy pugh
On Wed, 10 Apr 2024 at 19:11, Sam Sokolik wrote: G33 for the win! Not a silly idea. You could arrange for an encoder to be rotated by the rotary table any way that was convenient, then set that up as as the "spindle" input into LinuxCNC. Then you could simply wind the rotary table by hand. --

Re: [Emc-users] Carving a spiral

2024-04-10 Thread Chris Albertson
> On Apr 10, 2024, at 10:44 AM, Ralph Stirling via Emc-users > wrote: > > Use the parametric equation of a spiral and compute it *inside* your > g-code program. > > x(t) = c1 * t * cos(t) + x0 > y(t) = c2 * t * sin(t) + y0 COnceptually that is it. But do you really want to cut afull depth

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread Leonardo Marsaglia
Found the main issue. The terminal block in wich the turret signals were connected is broken. Some of them were making contact. I isolate the terminals and now the no indexing problem is solved. The only problem I have left to solve is why with some tools (like tool 8 for example) even if the

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread Nicklas SB Karlsson
As I could read this is grey code. Maybe not any specific pattern. What's great with gray code for absolute angle is only one bit it changed betweeb each count so no glitch in between. Nicklas Karlsson ons 2024-04-10 klockan 16:48 +0100 skrev andy pugh: > On Wed, 10 Apr 2024 at 15:05,

Re: [Emc-users] Carving a spiral

2024-04-10 Thread Ralph Stirling via Emc-users
Use the parametric equation of a spiral and compute it *inside* your g-code program. x(t) = c1 * t * cos(t) + x0 y(t) = c2 * t * sin(t) + y0 Choose as fine a step as you like for t and make a while loop to generate the x and y values and do G1 moves. See

Re: [Emc-users] Carving a spiral

2024-04-10 Thread gene heskett
On 4/10/24 14:09, Sam Sokolik wrote: G33 for the win! forgot that, thanks Sam. sam On Wed, Apr 10, 2024 at 12:31 PM Chris Albertson wrote: Do you even need a rotory table to cut a spiral? On Apr 10, 2024, at 12:09 AM, gene heskett wrote: On 4/10/24 01:57, John Dammeyer wrote: A

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread gene heskett
On 4/10/24 15:53, John Dammeyer wrote: I'd take a closer look at the power supplies. A system from 1997 could easily have electrolytic capacitors that have aged enough to no longer be effective. If you have an ESR meter you could pull caps and check against new ones. Or just go whole hog

Re: [Emc-users] Carving a spiral

2024-04-10 Thread Todd Zuercher via Emc-users
Sudo spirals using line segments of arbitrary length are very simple with polar coordinates. Here is a small g-code with anl o-sub that make one: g20 g64 g90 s3400 m3 g0 z1 g0 x2 y0 g1 z-.1 f24 o100 repeat [800] g91 g1 @-.0025 ^4.5 o100 endrepeat g90 g0 z1 m2 Todd Zuercher P. Graham Dunn Inc.

Re: [Emc-users] OT: Balluff BRGE1-WSE10 encoder

2024-04-10 Thread Todd Zuercher via Emc-users
Your tool error problem may be unrelated to the encoder issue. I'd start by examining the clamping mechanism and related safety switches that tell the control that the tool is properly locked in position. Todd Zuercher P. Graham Dunn Inc. 630 Henry Street Dalton, Ohio 44618 Phone:

Re: [Emc-users] Carving a spiral

2024-04-10 Thread Dave Engvall
https://www.britannica.com/science/spiral-mathematics Several options here, take your pick. Should be trivial to move it from floating pt to fixed. May have to scale to make it happy. ;-) Dave > On Apr 10, 2024, at 12:09 AM, gene heskett wrote: > > On 4/10/24 01:57, John Dammeyer wrote: >>

[Emc-users] carousel component question for andy

2024-04-10 Thread andrew beck
Hey Andy I see your component supports step direction now. 2 questions. Does it still do shortest path calculations to speed up tool changes? And 2nd question does it happen to support analog servo drives with a built in pid in linuxcnc? Regards Andrew