On Thursday 24 November 2016 03:58:24 Bernt Hustad Hembre wrote: > On Wed, 23 Nov 2016, Gene Heskett wrote: > > Throwing this out to see if it sticks to the wall. > > 1. Putting a switch on the backgear lever s/b easy enough, shove its > > status into a GPIO. > > 2. Making a bar of 4 high output IR LED's, spaced at the same > > spacing as the grooves in the 4 step sheave under the desk, with a > > set of IR detectors on an identical bar mounted to the clutch handle > > so they swing out of the way if the belt clutch is loosened so that > > hands could get in there and shift the belt. Using a mux16, that > > would give me 5 bits to use as addresses into steering the mux16 so > > that the VFD's range, or over/under. Like the whole chain is in the > > lowest gear, and I ask for 500 rpm, which in terms of motor revs > > would be way over speed. > > I've been having similar ideas for my mill (ZX-45). > > I have two gear levers. High/low and I-II-III > > What I idealy like to have is two servos to shift the gears into right > position before starting the motor. So M3 S1000 will select the best > gear for this speed. > > As a intermediate solution I'd like to do as you suggest. Put some > switches on the gear levers, and give an alarm/warning/change gear > message if the requested speed is impossible with the current gear > position. (in your case gear and belt position) > > > So I want to put 3 vcp indicator buttons on screen under the tach, a > > left red one to advise me thats too slow for the motor and present > > gearing, one green one in the middle that says its ok, and another > > red one on the right that tells me the motor can't make the > > requested speed. > > This would be sufficient for me as well. > > Not sure how to wire this with HAL. Suggestions? > I haven't started hacking on that yet, Bernie. ATM I am redoing all the power wiring because its being wired to run on 254 volt power for the vfd. Then I need to grab the control box and go hang it on the lack of the left post I installed to hold up a crossbar with a 4k lumen led lamp on it, the monitor and control stuff on the left post, and after a tour of Lowes yesterday, will have to make some angled wooden peg racks on the right hand post to hold wrenches handy. I will have it able to make swarf before I get to that. I'll have to bring a speed display to life at the same time, carrying code over from the G0704, but I'll add more small bi-color "led's" to tally it first & build on that. Hal is a nice language to work with. The biggest thing I would like to see it do is better math coverage. It can be cobbled up usually, But the best I can do when I wrote an overshoot tally function to give me an idea how far past the reversal point a g33.1 was going, but without some math, I had to settle for displaying the number of encoder edges that passed by between the reverse command being issued, and the first 2 degrees of spindle motion in reverse. Then I can convert that into distance with a ti-30x or similar pocket calc.
Thats not a really huge problem on the mill as the spindle is easily controlled, with the majority of the mass that counts being the dc motors armature. Such is not the case with TLM which has a 5" 4 jaw, and w/o breaking drive components doing the reversal, I am limited to about 250 rpm in order to get the reversal done in less than 2 full turns of the chuck. This overshoot goes up on a square law curve as the revs rise as the energy to reverse is e=mv2. So there is an on purpose max accel feeding the pid driving the spindle motor to slow the reversal enough that the 1hp and the drive train stands some slight chance of surviving. A secondary problem with that is that the motors flywheel/cooling fan/pulley, a massive forging, is a screwed on the motor shaft connection, and despite have been drilled and pinned axially, it still slowly destroys the motor shaft, and I have to replace the motor. I'd love it if I could find a motor with a large enough shaft OD so it could be broached for a key. But the treadmill junkyard only offers motors that were never intended to be reversed. So at this point, stay tuned. With my back going away I'm not as fast as I was 60 years back up the log. :( > > Cheers > Bernie 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 <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users