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 plunge depth)
(#4 is the stepover amount )
(#5 is the ending radius )
(# is the amount to increment start of the next loop)
# = #1
# = #2
# = [0-#3]( Depth of cut )
# = #4 ( Size of stepover )
# = #5  ( Starting Radius )
#=[#/4] ( 1/4 of stepover )
# = #

G10 L2 P3 X[#<_xorigin>+#] Y[#<_yorigin>+#] Z#<_zorigin> ( Set the 
Current Coordinate for G56 )
# = #<_close_Z>( set Zcut to top of material )
G56  ( Select Coordinate system 3 )
G00 X0 Y[0-#] Z#<_close_Z>
G01 Z# F#<_xyfeed>
o WHILE [# GT 0]
  o IF [[# - #] GE #]
G03 X0 Y[[#-#]*[-1]] R[#-#]
  o ENDIF
  o IF [[# - [2*#]] GE #]
G03 X[#-[2*#]]Y0 R[#-[2*#]]
  o ENDIF
  o IF [[# - [3*#]] GE #]
G03 X0 Y[#-[3*#]]R[#-[3*#]]
  o ENDIF
  o IF [[# - #] GE #]
G03 X[[#-#]*[-1]]  Y0 R[#-#]
  o ENDIF
  # = [#-#] 
o ENDWHILE
G0 Z#<_close_Z>
G55
o endsub 


Alan
> From: "John Dammeyer" mailto:jo...@autoartisans.com>>
> Subject: [Emc-users] Carving a spiral
> Date: April 10, 2024 at 12:55:36 AM CDT
> To: "Enhanced Machine Controller \(EMC\)"  >
> 
> 
> 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 seems clumsy.
> 
> Say I wanted to cut a scroll with a 6mm pitch using a 3mm cutter.  
> 
> 
> 
> 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.
> 
> 
> 
> Suggestions?
> 
> Thanks
> 
> John





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


[Emc-users] Changing login name from cnc to "newname"

2024-01-11 Thread Alan Condit via Emc-users
Change User Name commands
sudo passwd root
restart and login as root
usermod -l newname cnc
usermod -u UID newname
usermod -m -d /home/newname newname

The above commands successfully change the username, usergroup, and user 
directory to "newname"
When I have done this in the past, that was all I had to do, then I could 
reboot and log back in
as "newname". On the new download of 
rpi-5-debian-bookworm-6.1.61-rt15-arm64-ext4-2023-11-17-1520.img.xz
I can't login as "newname" unless I first login as root and then change user to 
"newname".
When I go to logout from "newname" it says "logout from cnc"
So, I have clearly missed something, but I don't know what. Help!!!

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


Re: [Emc-users] Damaged an SSR

2024-01-01 Thread Alan Condit via Emc-users
Hi Gene,
I had already tested my Router (also a Hitachi mv12) in a different circuit and 
knew it was working. The SSR that went bye-bye was one that I bought several 
years ago (used on EBay). So, after your reply, I checked the signal from the 
7i76e to the SSR and (thank goodness) it was good. So I just went ahead and 
replaced the SSR with a new one. Now everything is working.
This SSR is just controlling a line outlet. I had been using the old one for 
sometime without any problems. I have never tripped a breaker. The line into 
the cabinet feeds an SE600-48v switcher, a small 5v supply, a small 24v supply 
and the SSR controlled line outlet.
Thanks,
Alan

> From: gene heskett 
> Subject: Re: [Emc-users] Damaged an SSR
> Date: December 31, 2023 at 1:42:07 PM CST
> To: emc-users@lists.sourceforge.net
> 
> 
> On 12/31/23 12:50, condit.alan--- via Emc-users wrote:
>> I was using an SSR to turn on the spindle on my PCBMill. By mistake I 
>> reached over and turned off the switch on the router while it was turned on. 
>> When I tried to turn it back on, it no longer worked. I am hoping that I 
>> just blew out the SSR and not the 7i76e. I have a spare SSR. Is there any 
>> precaution I should take for the future?
> The only scenario I can imagine is only valid if the router has a soft start 
> circuit like a hitachi mv12 has.  Turning it back on before it got stopped 
> might damage that circuit in the router.  Does it work from its own switch if 
> plugged straight into the line?
> 
> I use big HoymC or Crydom SSR's all over the place but I also trigger them 
> on-off in sequence from timers in my .hal files.  Usually in an attempt to 
> start motor supplies which if just slammed with a mechanical switch, will 
> instantly clear a 30 amp breaker from the turn on in-rush, so when I do an 
> on, they get power for the first 4 seconds thru a 50 ohm 200 watt resistor 
> that a second SSR shorts out 4 seconds later after the filters are pretty 
> well charged. With the motor itself limited to about 2x nameplate FLA, I can 
> run my cnc'd G0704 on a legal for 10 gauge wire, 20 amp breaker.  At turn off 
> I throw the big resistor back in series for a second then drop the other SSR 
> to turn it all off. Been doing that w/o any SSR failures I caused for about a 
> decade. Had a nearby lightning strike blow one of then to the permanently on 
> state, the only failure I've had.
> 
> Does it still work if plugged in direct?  And if the SSR is switching a 
> duplex does a test lamp work plugged in beside the router?
> 
>> Alan
>> Sent from my iPhone
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>> .
> 
> Cheers, Gene Heskett.


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


Re: [Emc-users] LinuxCNC 2.9.0Pre not finding tool.tbl

2023-09-23 Thread Alan Condit via Emc-users
Sorry, stupid problem. I had a thumb drive in the machine and I was looking at 
the files on the thumb drive.
The files on the machine had been overwritten when I installed 2.9.0Pre. I 
copied the correct files over and
cured the problem.

> From: Nicklas SB Karlsson 
> Subject: Re: [Emc-users] LinuxCNC 2.9.0Pre not finding tool.tbl
> Date: September 23, 2023 at 11:38:43 AM CDT
> To: Alan Condit via Emc-users 
> 
> 
> Also had some problem. If I remember correct space in folder name was the 
> problem. It happened in newer version but not older.
> 
> Nicklas Karlsson
> 
> 
> Den 2023-09-23 kl. 17:10, skrev Alan Condit via Emc-users:
>> When I edited the tool table under 2.8 it was working fine but now it 
>> doesn’t work when I try to change tools and surprise, surprise,
>> the tool table is blank when I try to edit it. It loads the blank table. I 
>> have my tool table “tool.tbl” in "~/linuxcnc/configs/" and a copy of my tool 
>> table “tool.tbl” in the folder with my ini file 
>> “~/linuxcnc/configs/myCNCLathe/”. It has 9 tools in it and when I compared 
>> it to a backup and it appears identical.
>> My .ini file has
>> [EMCIO]
>> EMCIO = io
>> CYCLE_TIME = 0.100
>> TOOL_TABLE = tool.tbl
>> 
>>  Any ideas what is going on? Where is it looking for the tool.tbl?
>> 
>> Thanks,
>> Alan
>> 
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users


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


[Emc-users] LinuxCNC 2.9.0Pre not finding tool.tbl

2023-09-23 Thread Alan Condit via Emc-users
When I edited the tool table under 2.8 it was working fine but now it doesn’t 
work when I try to change tools and surprise, surprise,
the tool table is blank when I try to edit it. It loads the blank table. I have 
my tool table “tool.tbl” in "~/linuxcnc/configs/" and a copy of my tool table 
“tool.tbl” in the folder with my ini file “~/linuxcnc/configs/myCNCLathe/”. It 
has 9 tools in it and when I compared it to a backup and it appears identical.
My .ini file has
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl

 Any ideas what is going on? Where is it looking for the tool.tbl?

Thanks,
Alan

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


[Emc-users] Wiring Step Dir on KM5056E

2023-07-03 Thread Alan Condit via Emc-users
I am in the process of wiring up a new controller for RPi4 using 7c81 and 7i76. 
In the process of doing so, I discovered that I had wired my controller for my 
PCBMill with a 7i76E Step+ to KM5056E Pulse-, Step- to KM5056E Pulse+, Dir+ to 
KM5056E Dir-, and Dir- to KM5056 Dir+.
It seems to run fine but, if I correct the connections Step+ to Pulse+, Step- 
to Pulse-, Dir+ to Dir+ and Dir- to Dir- what will happen. I don’t really want 
to break something that works.

Thanks in Advance,
Alan

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


Re: [Emc-users] Drilling holes in the back of a stepper motor

2023-06-25 Thread Alan Condit via Emc-users
John,

I have used JB-weld to rebuild plastic parts (commercially manufactured) so 
that I could drill and tap where a threaded support had pulled out. I just used 
clay to build a dam around the area that I wanted to fill with epoxy. Then 
after setting I drilled and tapped the new support. It was much stronger than 
the original part.

Alan

> From: "John Dammeyer" 
> Subject: Re: [Emc-users] Drilling holes in the back of a stepper motor
> Date: June 25, 2023 at 1:19:01 AM CDT
> To: "'Enhanced Machine Controller \(EMC\)'" 
> 
> 
> Some of the stepper motors available from SteppersOnline show two pairs of
> screw holes near the edges.  And you are correct.  Youtube videos of stepper
> dismantling show that it's pretty thin near the edges and the windings are
> really close.
> However, I've read that once you dismantle a stepper motor it loses some of
> the magnetism.   That they are magnetised with much higher pulses of current
> when the motor is assembled.  But that might also be an urban legend.
> Anyway, the back end also has the motor leads coming out so pulling it apart
> may also damage it.  Or not.  Easier to just order a new motor perhaps.
> John


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