Re: [Emc-users] Seeking ideas how to sync an AC generator to 60 HZ average.

2010-11-23 Thread Leslie Newell
Generally they adjust the frequency throughout the day. As the load on the system increases the frequency drops. To increase the frequency they bring more generators on line. If the frequency gets too high they reduce the generating capacity. The really tricky bit is matching generating capacit

Re: [Emc-users] OT: Reactor

2010-11-21 Thread Leslie Newell
Yes it does sound like a variable reactor setup. The control signal is DC and pushes the core into saturation, reducing it's inductance. The early BOSS Bridgeport CNC mills used this sort of setup to reduce the idle current on the stepper motors. It also used to be quite commonly used on TIG w

Re: [Emc-users] OT ultra-reliable, long life PC

2010-10-25 Thread Leslie Newell
In my experience hard drives that are kept running continuously often last longer than ones that are started and stopped on a regular basis. Les On 24/10/2010 10:38, Ian W. Wright wrote: > Dell, replaced with Intel, and now Kingston... - He does use > the machine quite intensively, 16 - 18 hou

Re: [Emc-users] OT ultra-reliable, long life PC

2010-10-23 Thread Leslie Newell
Hi Jon, I used hdparm to tell the drive to spin down after 5 minutes of inactivity. The backup is simply rsync running as a cron job. The SSD I used in my office machine was a Kingston. I have to say I was impressed by their customer service. I emailed them on Monday and got an RMA number wi

Re: [Emc-users] OT ultra-reliable, long life PC

2010-10-23 Thread Leslie Newell
I have to admit I like Dells as well. They seem to be pretty well designed. My network server has a fairly old motherboard with an AMD 500MHz processor. They don't run as hot as modern CPUs so it will run fanless with an oversized heatsink. I also have a 12V fan running on 5V just for peace

Re: [Emc-users] OT Re: DXF to G-Code

2010-10-11 Thread Leslie Newell
Yes. The Linux and Windows versions are pretty nuch the same, though the Linux verson is getting a bit out of date now. The license will work with both the Linux and Windows versions. Les > Does the limit apply to the Linux version too ? > > *am* -

Re: [Emc-users] DXF to G-Code

2010-10-11 Thread Leslie Newell
It won't currently do conical or spherical pockets. The Linux version should run under Ubuntu 10.04 32 bit but several people have had problems. I haven't yet found out why. However the Windows version runs quite nicely under Wine. Les On 11/10/10 18:25, Igor Chudov wrote: > Can it do, say,

Re: [Emc-users] DXF to G-Code

2010-10-11 Thread Leslie Newell
Yes, it will perform all of the normal 2.5D milling functions. Les On 11/10/2010 17:23, Igor Chudov wrote: > Dave, can Sheetcam do basic 2.5 D milling (such as drilling holes, > pocketing etc). -- Beautiful is writing

Re: [Emc-users] OT Re: DXF to G-Code

2010-10-11 Thread Leslie Newell
The only limit is the number of lines of code. I'll send you a license that will remove the limit for about 30 days so you can try it out properly. Les Newell www.sheetcam.com On 10/10/2010 21:05, Marshland Engineering wrote: > Thanks Chaps > > I did download it last night and it seems to be v

Re: [Emc-users] EMC controlled sniper robot

2010-10-07 Thread Leslie Newell
Use a paintball gun instead? Fire paint balls at a wall and write your name :-) Les On 07/10/10 05:24, Bill J wrote: > You may want to re-think advertising anything about actually building this, > you're going to be in violation of a few BATFE regulations. They're not > nice to people that viol

Re: [Emc-users] Multiple external Estop switches

2010-09-21 Thread Leslie Newell
I would strongly recommend that your Estops directly shut down the machine. Even if the computer crashes, Estop should still work. If the machine starts removing parts of your anatomy you want to know that Estop WILL shut it down no matter what else happens. To run multiple switches, the best b

Re: [Emc-users] Servos cannot calm down -- maybe I should go away from velocity mode in amplifiers?

2010-09-13 Thread Leslie Newell
I would turn the posts down a bit and see if it makes much difference. If it does then turn them down a bit more. If it makes no difference then it could be that the drives aren't the problem. Take a photo or mark the pots before you tweak them. That way if something goes wrong at least you knw

Re: [Emc-users] Servos cannot calm down -- maybe I should go away from velocity mode in amplifiers?

2010-09-13 Thread Leslie Newell
Yes, with this loop, stability is more important than accuracy. You can still get get very good results with no velocity feedback at all. Les > Maybe I should turn the gain on the amplifier loop way down? > > i > > ---

Re: [Emc-users] Servos cannot calm down -- maybe I should go away from velocity mode in amplifiers?

2010-09-13 Thread Leslie Newell
Two velocity loops shouldn't be a problem. Have you tried reducing the amp gain? Somewhere the amps must have controls for the loop gain. Try turning the gain down. It doesn't matter if the amp velocity loop is a bit weak as EMC's loop will compensate. Les On 13/09/2010 15:37, Igor Chudov wrot

Re: [Emc-users] Lathe ATC integration

2010-07-26 Thread Leslie Newell
I really can't understand why they use a stepper for this task. There is no need for expensive stepper drivers and mucking about with allowing for lost pulses. A DC motor works easily as well if not better. Here is a video of an Emco conversion I did.

Re: [Emc-users] Machine Lubrication via EMC

2010-07-13 Thread Leslie Newell
I would suggest that you try ClassicLadder. It is a little overkill for just the lube pump but once you get the hang of it, you will probably find lots of other uses for it. For instance on my lathe it takes a second or two after they are enabled for the drives to signal back that they are ok.

Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-18 Thread Leslie Newell
> Les' manual toolchange fix allows that without the risk of the unknowns > involved with the run from here command. > > Steve Blackmore > Er, actually it does use run from here. For example if you were to use all incremental code from the tool change onwards it would foul up in a big way.

Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-18 Thread Leslie Newell
> I've been running emc2 all day today and every job has required a manual tool > change. What I do is simply divide up my program and end each section with > M00 so it doesn't continue past that point, then I just hit escape, jog, > change tools, touch off, and then use run from here on the fi

Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Leslie Newell
I agree. There is no need for an estop button in the GUI. In fact the start button is of dubious value. On any machine I build you have to physically press a button to enable the drives. Trying to do it in the GUI will do nothing. Les Slavko Kocjancic wrote: > I'm aware of that. And I have

Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Leslie Newell
> As run from selected line just do RUN FROM SELECTED LINE! > and if machine is metric and in 1'st line you have G20 then part come > out realy big. > and if somwhere within program some variables are set after Run from > selected line they have big chance to be wrong. > I thought it re-ran

Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Leslie Newell
How about tagging each move? Each move has a unique number. If you stop to change tool halfway through the system knows exactly what move it is on and how far through that move it is. For instance you may be 50% through move 5227. When you restart, the interpreter dry runs the code using the ne

Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-16 Thread Leslie Newell
It has been a while since I last looked at it but if I remember correctly my 'fix' is just a hack to the tool change routine. on a tool change it takes a note of the current line then stops the interpreter. You can then jog etc. Afterwards it just does a 'run from here'. This only works on a to

Re: [Emc-users] Tangential tool configuration

2010-04-20 Thread Leslie Newell
> > I would like to do it without any additional cost and in EMC > so that i can use my current CAM application, so that is why i was > asking, if someone has managed to implement preprocessor for EMC that > does tangential control. I fully understand. Apart from the monetary cost of buying anothe

Re: [Emc-users] Tangential tool configuration

2010-04-20 Thread Leslie Newell
: > Viesturs, > > I was able to do it through Sheetcam (http://www.sheetcam.com/) and slightly > customizing the post for some special conditions required for use with an > ultrasonic knife. I expect Leslie Newell will chime in on this, as it does > require a special post which I

Re: [Emc-users] EMC2 to Compact Flash

2010-04-13 Thread Leslie Newell
If you use a CF to IDE adapter you can install EMC on it just like any other hard drive. There is some useful stuff on the wiki Les On 13/04/10 22:49, RogerN wrote: > I'm interested in trying to run my EMC2 lathe from a CF card. I b

Re: [Emc-users] CAM solutions

2010-03-21 Thread Leslie Newell
SheetCam isn't open source but it is pretty reasonably priced and there is a Linux version as well as a Windows version. The Linux version is a little out of date at the moment but the Windows version runs well under Wine. I am working on an update to the Linux version. Les Karl Schmidt wrot

Re: [Emc-users] Jog under PAUSE / tool cnange

2010-03-16 Thread Leslie Newell
While my 'jog during tool change' code mostly works it is not foolproof. I wrote it quickly to get around the problem but it was never properly tested or finished. I can't find it here. Steve, you probably have the most up to date version. Les Steve Blackmore wrote: > > Les Newall's "jog durin

Re: [Emc-users] Absolute Encoder Feature Request

2010-03-09 Thread Leslie Newell
I have to say that pretty much every machine I have ever worked on (I do quite a bit of repair work) that had an override used a pot, giving an absolute position. I don't think I have seen one with an incremental control for the overrides. Les John Kasunich wrote: > The NIST/EMC way of doing t

Re: [Emc-users] Absolute Encoder Feature Request

2010-03-09 Thread Leslie Newell
The way I got around this problem is to use the hal_input component with a USB game port adapter such as this one . These ones

Re: [Emc-users] Installing

2009-11-25 Thread Leslie Newell
Hi Ray, It is looking for a drive that doesn't exist. Either you have changed your hardware configuration or you installed over the previous Ubuntu installation and something got left behind. I would suggest that you re-install from the live cd but make sure the hard drive is reformatted when

Re: [Emc-users] Deadband, FF1 and FF2

2009-11-23 Thread Leslie Newell
FF1 adds a percentage of the commanded velocity to the output. Ideally in a steady state FF1 should be high enough that P doesn't have to do anything. FF2 adds a percentage of the commanded acceleration to the output. Ideally FF2 should be high enough that D doesn't do anything. Basically they a

Re: [Emc-users] Compact Flash card for Hard Drive

2009-11-23 Thread Leslie Newell
Hi Kirk, You must be very lucky. I have a whole stack of dead drives. When a hard drive fails it is very often catastrophic failure and you lose everything. One day it's working fine, the next day it won't boot. With Flash if you do get a failure it is likely to only be a few bits which can be

Re: [Emc-users] Compact Flash card for Hard Drive

2009-11-22 Thread Leslie Newell
The main reason for me is reliability. Generally hard drives are the least reliable part of a computer. I am fed up with swapping out failed hard drives. Les Kirk Wallace wrote: > Is there any advantage to using a CF or thumb drive as opposed to a 2.5 > or 1" hard disk? Physical size should not

Re: [Emc-users] Compact Flash card for Hard Drive

2009-11-22 Thread Leslie Newell
There are two potential issues with CF cards in IDE adapters. Some adapters don't implement UDMA correctly which can cause problems. With windows you get intermittent read and write errors. With Linux the kernel usually crashes when it tries to mount the drive. Also some cards report themselves

Re: [Emc-users] Compact Flash card for Hard Drive

2009-11-22 Thread Leslie Newell
The trick is to turn off virtual memory. Obviously you must have enough ram to handle this. If you are just running emc then the memory requirements are fairly low. 512M works well on my lathe. There are other workarounds as I describe on the wiki page. Les RogerN wrote: > I'm not sure if thi

Re: [Emc-users] Compact Flash card for Hard Drive

2009-11-21 Thread Leslie Newell
Hi Gene, > But booting a normal linux like the version we use for emc, that uses ext3 as > the filesystem would probably use it up in a week or 2. Don't underestimate the number of write cycles a CF card can handle. As long as you disable atime and stick the logs into a ram drive, as I descri

Re: [Emc-users] Compact Flash card for Hard Drive

2009-11-21 Thread Leslie Newell
I have done quite a few of these now. Unless you know your card adapter can handle UDMA, disable it. Not all card adapters are wired for UDMA and you get all sorts of problems if you try to use UDMA on them. As far as I know all SATA CF card adapters can handle UDMA. It may give you a bit more

Re: [Emc-users] How Exactly does a Mister Work

2009-11-20 Thread Leslie Newell
Carbon dioxide is 66% oxygen (CO2). As aluminum is very active it will strip oxygen out of the CO2. That is also the reason why you should never use a CO2 fire extinguisher on magnesium fires. Les Andy Pugh wrote: > I am fairly sure it would displace the oxygen (being heavier) and so > would bo

Re: [Emc-users] How Exactly does a Mister Work

2009-11-20 Thread Leslie Newell
In general flood with a water based coolant will shift more heat than a mist system. Flood also usually shifts the chips better. On the down side it is very messy and can actually reduce the life of carbide tooling. Carbide tooling can take a lot of heat but it hates thermal shock. The cutting

Re: [Emc-users] Mister for small mill

2009-11-20 Thread Leslie Newell
Glow engines are dying out for the smaller stuff. Electric power has come on so much in the last few years. Electric power is now pretty close as far as power/weight is concerned and it is so much more convenient. Les Gene Heskett wrote > I'll do that the next time I get to Bridgeport. although

Re: [Emc-users] Mister for small mill

2009-11-20 Thread Leslie Newell
Sounds like you have an aquarium air valve. Find a hobby shop that sells models that use engines. Ask for a mixture needle assembly. Most shops have a stack of broken models out the back that they raid for parts. Generally the needle valves have a 1/8" hose barb on one end and a thread on the o

Re: [Emc-users] Mister for small mill

2009-11-19 Thread Leslie Newell
As far as I know you don't have to hold it hot for very long. Get it red, quench and job done. Quenching in battery acid helps remove the black oxide but beware of the fumes. Les Andy Pugh wrote: > 2009/11/19 Gene Heskett : > >> What is the best procedure to anneal just the last 1/8" of this t

Re: [Emc-users] Mister for small mill

2009-11-19 Thread Leslie Newell
I would be concerned about having a very fine needle sticking out. It would be very vulnerable. I have no problems with a piece of 1/16" OD tube and a needle valve. You are going to need a needle valve anyway because some jobs need more oil than others. Les Gene Heskett wrote: > On Thursday 19

Re: [Emc-users] Mister for small mill

2009-11-18 Thread Leslie Newell
If you are machining some of the softer grades of aluminum you need a pretty much constant flow of coolant. You don't need much but if it runs dry it can clog the cutter very quickly. Also if you are using carbide a sudden squirt of coolant could cause the cutting edges to crack. Les Ron Ginge

Re: [Emc-users] Mister for small mill

2009-11-16 Thread Leslie Newell
From past experiences with IC radio controlled models, this is a definite drawback to castor oil. Les Ian W. Wright wrote: > There's good reason not to want castor oil mist spraying > about too much - those first world war fighter aces were > never constipated breathing in all the castor oil

Re: [Emc-users] Mister for small mill

2009-11-15 Thread Leslie Newell
Hi Gene, >almost exactly the same as an air brush gun, where the liquid > comes out of the center. So that center tube feeding in the oil is > surrounded by by the air exiting through the gap between the OD of that tube > and the drilled holes walls. Yup. The tricky bit is finding the right

Re: [Emc-users] Mister for small mill

2009-11-15 Thread Leslie Newell
Here is how I did it. I took a short piece of brass bar and drilled most of the way through with a drill slightly bigger than the smallest tube I could easily obtain. This creates the air jet. I then drilled the rest of the way with a drill the same size as the tube. Next I drilled diagonally i

Re: [Emc-users] Toothed belt pulleys [Was: Re: G2 moves puzzle ]

2009-11-07 Thread Leslie Newell
Most cad packages will open dxf files. A quick Google search popped up LinuxCad . It says it opens dxf files. Les Erik Christiansen wrote: > > Asking wikipedia about "dxf file", I've found a long list of > applications which can display that stuff. I'll see if I can f

Re: [Emc-users] Where to put controllers?

2009-10-06 Thread Leslie Newell
Hi Ian, The signal lines are FAR more sensitive to noise than the stepper lines. It is virtually impossible to pick up enough noise on the motor lines to affect the motor. I don't think your Z axis problem was directly related to pickup on the motor wires. It is possible that there was some noi

Re: [Emc-users] A couple of videos

2009-09-02 Thread Leslie Newell
Hi Andy, > It's nice to see one of those lathes with a new lease of life, they > are very nice machines. > Yes, they are good machines. I stripped off most of the enclosure as it is mainly used in manual mode for one-offs. The electronics now run on single phase, including the inverter which

[Emc-users] A couple of videos

2009-08-31 Thread Leslie Newell
Hi all, I uploaded a couple of videos to Youtube showing my EMC converted Colchester Triumph 2000. This one is cutting a keyway in a gear This one is turning and threading a piece of stainless. Les --

Re: [Emc-users] G76

2009-08-31 Thread Leslie Newell
Hi Chris, Steve wants the display units to change with the G-code. If the code is metric, the display is metric. If the code is inch the display is in inches. Having inch code with metric DROs or vice-versa can be very confusing. Les > > You can pick whichever display units you want in the m

Re: [Emc-users] G76

2009-08-30 Thread Leslie Newell
Hi Steve, Here's my take on G76: > I don't understand the implementation method, in particular the "drive > line" mentioned in the manual. The drive line is the safe clearance outside the thread. It is the current X axis position when you call G76. I normally use thread peak + 1mm. I is the

Re: [Emc-users] OT - Sheetcam

2009-08-18 Thread Leslie Newell
I don't know what is wrong then. I have it working on this computer (9.04), my lathe (8.04) and on a 8.04 virtual machine. Can you send me a copy of the debug report. Les Eric H. Johnson wrote: > Les, > > Yes, both machines support OpenGL. One is a workstation with an NVidia > graphics acceler

Re: [Emc-users] OT - Sheetcam

2009-08-18 Thread Leslie Newell
Hi Eric, The Linux version was developed and built on 8.04 so it should run. Do you have working OpenGl? If you don't have OpenGl you may get a crash as TNG loads. Les Eric H. Johnson wrote: > Les, et al, > > I am posting here in case this is of benefit to anyone else. > > I was just takin

Re: [Emc-users] Realistic spindle encoder count for parallel port?

2009-08-18 Thread Leslie Newell
Hi Steve, Yep - only for threading, but in counter mode can EMC still make corrections for spindle speed variations? Yes. I am not sure if you can thread with the spindle in reverse using counter mode though. Hopefully this list allows attachments. This circuit uses a 4024 or 74CHT4024

Re: [Emc-users] Realistic spindle encoder count for parallel port?

2009-08-17 Thread Leslie Newell
If this is just for threading then you could run in counter mode. That would effectively divide the pulse rate by 4. If you still have problems then a simple binary counter such as a 74HCT93 can be used to divide one channel (counter mode only uses one channel) by 2,4,8 or whatever. 74HC series

Re: [Emc-users] Pulley ranges and VFD's

2009-08-05 Thread Leslie Newell
I have been working on a spindle component that can handle up to 16 gears. For each gear you can specify the acceleration, deceleration, min speed, max speed and output scaling. If you have a spindle encoder it uses the feedback to limit the acceleration based on spindle load. It also provides

Re: [Emc-users] Is G76 broken in trunk?

2009-07-27 Thread Leslie Newell
I just did a completely fresh Git checkout and that worked. Weird... Les -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listin

Re: [Emc-users] Is G76 broken in trunk?

2009-07-26 Thread Leslie Newell
Thanks Chris, If I program a thread using multiple G33 calls I get a perfect thread. It is seeing the index and the feed tracks the spindle speed. If I use G76 it is completely ignored. If I run the G76.ngc sample it completely ignores the G76. If I try single stepping through the example the

[Emc-users] Is G76 broken in trunk?

2009-07-26 Thread Leslie Newell
I finally got around to testing threading on my lathe and I can't get G76 to work. I ran the G76 sample and it blows straight through the G76. Entering a G76 in MDI results in no movement and no error messages. I initially suspected my setup but G33 works fine. I can't currently use the release

Re: [Emc-users] Trouble with EMC spiral example

2009-07-22 Thread Leslie Newell
Are you using backlash compensation? If so, what is your backlash compensation speed? Les Jeffrey Pease wrote: > Hi EMC, > > I'm tuning my machine, and I am having some weird problems with the > EMC spiral example. This issue is entirely repeatable, and seems to > happen without fail regard

Re: [Emc-users] Synchronised cam turning

2009-07-21 Thread Leslie Newell
Thanks, I'll have a play. Les Jeff Epler wrote: > On Tue, Jul 21, 2009 at 01:20:48PM +0100, Leslie Newell wrote: >> Thanks Jeff, you have been very helpful. >> >> One last question for the moment ;-). What is the best way to compile C >> components? With .comp c

Re: [Emc-users] Synchronised cam turning

2009-07-21 Thread Leslie Newell
at 08:42:24AM +0100, Leslie Newell wrote: > >> Hi Jeff, >> >> Sorry, I meant do you know of any components that use shared memory to >> communicate between a user space part and a real time part. >> > > Oh, yes. There are several: > Users

Re: [Emc-users] Synchronised cam turning

2009-07-21 Thread Leslie Newell
Hi Jeff, Sorry, I meant do you know of any components that use shared memory to communicate between a user space part and a real time part. Les Jeff Epler wrote:> > No, I don't think there are any. I proposed something similar (but it > doesn't have the adding/removing offsets problem) to some

Re: [Emc-users] Synchronised cam turning

2009-07-21 Thread Leslie Newell
Hi Jack, I have done this. A couple of years back I built a 2' x 4' router for a local wood worker. It also had an A axis that he used for turning barley twist legs and such like. It took a bit of settings up but it worked reasonably well. I created a SheetCam post to do the appropriate axis s

Re: [Emc-users] Synchronised cam turning

2009-07-20 Thread Leslie Newell
Thanks Jeff I'll look into it. Do you know off-hand if there are any current components that do this? Les > > rtai has shared memory between realtime components and userspace. This > is how the communication between task and motion works, and how it works > between the userspace and realtime

Re: [Emc-users] Synchronised cam turning

2009-07-20 Thread Leslie Newell
Heh. An A axis would be too easy :-) TBH I think I may pass on this job. Too many unknowns. I will check if the cams can be made in pieces. If so then I could simply mill the lobes. Les Gene Heskett wrote: > On Monday 20 July 2009, Dave Caroline wrote: >> An excuse to put a milling spindle on t

Re: [Emc-users] Synchronised cam turning

2009-07-20 Thread Leslie Newell
Hi Jeff, I would have replied earlier but I blew up my X11 settings and it took me this long to get it working again... > is one of two things: you have lots of tiny moves, Yes. There isn't much choice in this. To even get a simple offset circle you need to generate lots of short lines. > or

[Emc-users] Synchronised cam turning

2009-07-20 Thread Leslie Newell
Has anyone tried turning a cam on a lathe using EMC? I tried using lots of G33 moves but they seem to get out of sync. My machine has pretty high acceleration and top speed but even at very low spindle speeds (14rpm) it doesn't seem to keep up. Does EMC have any other way of doing synchronised

Re: [Emc-users] Hostmot2 homing

2009-07-18 Thread Leslie Newell
Hi Peter, What is the default value for the filter? I found that a value of 1 nearly sorted the problem. A value of 2 was pretty well rock solid. Just to be sure I set it to 6 as my max frequency is well under 200kHz. I guess it is already on your to-do list but I would guess that it would be

Re: [Emc-users] Hostmot2 homing

2009-07-18 Thread Leslie Newell
Hi Ken, It does make sense. It looks like the encoder outputs are push-pull. Just fro the record I never said they had pullups. Someone just mentioned that some encoders do have weak pullups. Les Kenneth Lerman wrote: > Does that make sense? If the terminator is really 100 ohms, that would >

Re: [Emc-users] Uni-directional approach?

2009-07-18 Thread Leslie Newell
As long as your backlash is the same all over the travel then backlash compensation can work quite well in a point to point application. It helps to have a little bit of friction in the ways. If you are using ball slides then it doesn't work as well. With lower friction slides, keeping the acce

Re: [Emc-users] Hostmot2 homing

2009-07-17 Thread Leslie Newell
Hi Ken, Yes, this was under load. Les Kenneth Lerman wrote: > Did you measure that while it was connected to the receiver? If the > terminator is 100 ohms and the pull up is 1K ohms, the voltage under > load would only be around 400 mv. That should be fine, I think. > > If the pull up is 10K,

Re: [Emc-users] Hostmot2 homing

2009-07-17 Thread Leslie Newell
I'll give it a try tomorrow. Thanks, Les > > Well if the extra filtering of the TTL inputs helps, I would do the trick > with > raw-write to setup the filter time constant (the QFilterRate register at > 0x3400). Currently the filter frequency is 33 MHZ which gives a 450 ns time > constant: g

Re: [Emc-users] Hostmot2 homing

2009-07-17 Thread Leslie Newell
Hi Peter, Each output swings from 0.48V to 4.1V. When IDX is high, /IDX is low. Therefore the voltage between them is about 3.6V. Les > What I was asking about (maybe not very well) is differential drive: in other > words measured between IDX and /IDX. This should be positive in one index >

Re: [Emc-users] Hostmot2 homing

2009-07-17 Thread Leslie Newell
Hi Peter, > One difference is that the TTL inputs have an RC filter, the differential > inputs have none. Hmm, that could still point towards a noise issue then. > I wonder if your index outputs can drive the termination resistor. Have you > measured you index and /index outputs for reasonabl

Re: [Emc-users] Hostmot2 homing

2009-07-16 Thread Leslie Newell
Hi Peter, I have been doing some more tests on this. Playing around with filters and screening had no noticeable effect. However I have hit an odd anomaly. Just out of interest I switched the 7I29 to single ended input and suddenly it is rock solid. So it can't be noise pickup in the cabling.

Re: [Emc-users] Using MDI or Jog during a program?

2009-07-16 Thread Leslie Newell
If you want to align your path to the start and end points you will have to both shift and rotate your coordinates. How good are your programming skills? EMC is pretty easy to work with so it wouldn't be difficult to write an application that does exactly what you want. Les Tim Hedlund wrot

Re: [Emc-users] Using MDI or Jog during a program?

2009-07-15 Thread Leslie Newell
That script will only work on a tool change. I don't think there is a way of running a script from M0 or M1. Tim, is the weld line straight or a complicated shape? If I was doing it I think I would write a script to do all of it and bypass the g-code completely. Another alternative would be to

Re: [Emc-users] Bug: Halui.spindle.forward is not the same as M03

2009-07-15 Thread Leslie Newell
The spindle on button in Axis exhibits the same behavior, though it initially commands a very low spindle speed instead of 500rpm. This is in trunk. I haven't tested the release version yet. I have already switched over to using M3/M4 on my buttons. Les Jeff Epler wrote: > Perhaps you want M3

[Emc-users] Bug: Halui.spindle.forward is not the same as M03

2009-07-15 Thread Leslie Newell
On my lathe I have spindle on/off buttons that are implemented using halui.spindle.forward and halui.spindle.stop. I have noticed some odd effects when using them. Often the spindle starts at 500 RPM instead of the commanded speed. For instance if I enter M3S1000 in MDI the spindle runs at 1000

[Emc-users] bug: Axis trunk MDI history

2009-07-12 Thread Leslie Newell
The MDI history in Axis trunk appears to be broken. In the release version, pressing up arrow after entering an MDI command highlights the first item in the history list. In the release version it doesn't appear to reset the selection so pressing up arrow could end up selecting an item quite a

[Emc-users] Lost encoder detection

2009-07-11 Thread Leslie Newell
After my discussion with Peter last night I decided to have a go at tweaking PID. I first set it up so maxerrorI and maxerrorD also trigger the saturated output. This helped quite a bit. Next I added a function that scales all of the maxerror values when the machine has been stationary for more

Re: [Emc-users] Hostmot2 homing

2009-07-10 Thread Leslie Newell
How about tripping if the PID output is greater than a certain percentage and the encoder velocity is below a certain threshold? Les Peter C. Wallace wrote: > I think the nuisance tripping can be avoided with the right time delay > in other words if your PID output or integral term are saturate

Re: [Emc-users] Hostmot2 homing

2009-07-10 Thread Leslie Newell
Hi Peter, Interesting idea. You probably still need a delay to allow for braking. This isn't a real problem to implement though. Les Peter C. Wallace > That gives me another idea: if commanded velocity is 0, set the PID output > limit to 20% or so and use the PID saturate ---

Re: [Emc-users] Hostmot2 homing

2009-07-10 Thread Leslie Newell
Hi Peter, > With a small error (1 count or so) thats possible but that also most likely > indicates that your integral term is way too low. LOL. Most people have been telling mee i'm using too MUCH I term... > Thats probably something that should be fixed in the PID component (indicate > satur

Re: [Emc-users] Hostmot2 homing

2009-07-10 Thread Leslie Newell
Hi Peter, I can't see any way of achiving a trip in 20ms. I have the PID saturation limit hooked to my estop chain but it only trips once the amp reaches full output (BTW, the hostmot2 example config does not implement this). If the I term doesn't build up quickly to saturate the output then t

Re: [Emc-users] Hostmot2 homing

2009-07-10 Thread Leslie Newell
Thanks, I'll take a look. Les > Take a look at the HostMot2 manual page about raw-write and the regmap file. > The sample rate of all encoders in HM2 is controlled by the QFilterRate > register at offset 0x3400. If you set this register to 0x008 you will have 10 > times longer filter time co

Re: [Emc-users] Hostmot2 homing

2009-07-10 Thread Leslie Newell
Hi Wayne, It isn't that near a fluorescent light but it is obviously in close proximity to the motor cables and it is also in the same cabinet as the 7.5kW spindle inverter. The cable isn't screened. Screened 50 way ribbon cable is difficult to obtain and very expensive. Les Wayne Patterson

Re: [Emc-users] Hostmot2 homing

2009-07-10 Thread Leslie Newell
Thanks Peter, > rate sample rate yet, but this could be tried by using the raw-write command > in your HAL init file. With a 5I20, the encoder sample rate is 33 MHz, when > the filter is on, 15 clocks are required to recognize an input (the ~.5 uSec > above) If for example the sample rate were

Re: [Emc-users] Hostmot2 homing

2009-07-10 Thread Leslie Newell
Hi Peter, If it is edge sensitive then as you say, inverting the signal has little effect. I was going by your previous statement where you said it was dependent on the state. After doing more tests, noise looks to be a possible culprit. It seems odd that I have a relatively bad noise problem

Re: [Emc-users] Hostmot2 homing

2009-07-09 Thread Leslie Newell
Here you go... Les John Kasunich wrote: > > To be honest, one of the best ways to share your HAL config is to start > EMC, and then (in another shell) run "halcmd show all", redirect the > output to a file, and post that. The show all command will show you > ever

Re: [Emc-users] Hostmot2 homing

2009-07-09 Thread Leslie Newell
Hi Chris, You may regret asking that :-). Here we go: ini http://pastebin.ca/1490014 Hal is broken into a number of files load.hal - loads modules http://pastebin.ca/1490015 motion.hal - motion control If the spindle code looks complicated it is because of the three speed electromechanical gea

Re: [Emc-users] Hostmot2 homing

2009-07-09 Thread Leslie Newell
That was one of the first things I tried. I have now found the problem. encoder.nn.index-invert does not work. Setting it to 1 or 0 makes no difference (at least for encoder 05). Inverting the index pulse by physically swapping the encoder outputs sorted the problem. Les > > Did you try inde

Re: [Emc-users] Hostmot2 homing

2009-07-09 Thread Leslie Newell
Basically it is ignoring the index signal. If I press home and manually operate the home switch I can get it to home anywhere. Doing this it should only home to an integer multiple of the screw pitch. I just tried homing with HOME_SEARCH_VEL = 0 and that works correctly. It sees the index and h

Re: [Emc-users] Servo tuning

2009-07-09 Thread Leslie Newell
Hi Peter, I have a lot more work to do on the machine and jobs queued up for it so that will have to do for the time being. If I change the servo thread frequency I'll have to re-do all of the tuning and I don't have time. When I get a bit more time I'll have a go. Thanks, Les Peter C. Walla

Re: [Emc-users] Servo tuning

2009-07-09 Thread Leslie Newell
Hi Jon, 8 counts is 0.0098mm or 0.00038". Steady state is within 1 count (0.00122mm). I'm happy with that. Les Jon Elson wrote: > > Well, what is 8 counts in real units? If you have coarse encoders, it > could be a lot, if your encoders have very fine resolution, then that is > wonderful! >

Re: [Emc-users] Servo tuning

2009-07-09 Thread Leslie Newell
Hi Terry, Actually it is very low. I am using millimeters. At the moment I have it set to one count. Les Terry wrote: > Glad you got it figured out Leslie. > > Is your Deadband .0001? That seems kind of high > But I forgot encoder count is. > I had some good results lowering mine > below one

[Emc-users] Hostmot2 homing

2009-07-09 Thread Leslie Newell
Now I have the motor tuning sorted out and here is my next problem... I am using hostmot2 and trying to use index and home switch. My setup is as follows: hm2 configuration: loadrt driver=hm2_pci config="firmware=hm2/5i20/SV12.BIT num_encoders=6 num_pwmgens=6 num_stepgens=0" net xinex-en axis.0

  1   2   3   >