. .
Page 4 of 8 FirstFirst ... 23456 ... LastLast

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quote Originally Posted by Neale View Post
    Mach3 certainly disables limits when homing if you use common home and limit switches. Seems likely that it does the same with separate switches - I'm sure I remember reading this in the manual somewhere but that was a long while ago.
    If that's the way it is, it ain't going to be changed now. If I had my machine available, it would be an easy test - set homing going and trigger a limit switch.

  2. #2
    Quote Originally Posted by cropwell View Post
    Anyway, My question is about homing and limits and I cannot find any reference to the query in the Mach3 reference manuals.
    So what's your question.?

  3. #3
    Quote Originally Posted by JAZZCNC View Post
    So what's your question.?
    Does Mach3 disable limits when homing, or is this an option? (post #25)

  4. #4
    OK, after serious consideration my priority has to be getting the #$%^*&^%$#@ing machine actually working so I can make some stuff with it. Playing about with circuit ideas is fine, but...

    I'm not wasting a long weekend off work waiting for RS to send me some new cable and other components including 2mm pitch plugs for the PCB headers, so I've made a circuit board which connects into the existing screw terminals without the need to remove/replace surface mount components on the BOB itself. I expect it's going to work. If so, it'll do for now and I'll make a more reliable change to the wiring later. This machine is after all just a toy in my shed rather than the heart of a commercial operation.
    Watch this space for details if it works!
    An optimist says the glass is half full, a pessimist says the glass is half empty, an engineer says you're using the wrong sized glass.

  5. #5
    Well this has been an interesting day! I think the moral has to be: If you've got the test gear, use it!!

    I did some quick mods in line with previous suggestions but to no avail. I was soooooo confident as well.

    I finally got the oscilloscope out and looked at the noise on the limit switch inputs to the board. Clean as a whistle until I enabled the motors. Then there are short bursts of a surprisingly sinusoidal 6MHz waveform. Same on the 5V power rail. Same on the 5V ground rail!! I thought all the earthing was OK, Could be better, but OK. Clearly the wiring to the sensors needs to be completely replaced. At the moment it's modded from what was there for the microswitches. Obviously not good enough.

    Problem is at that frequency a 20cm length of earth wire is too long. I measured 400mV (peak-peak) across the two ends of a wire les than that length from the chassis to the 5V ground connection on the board. The real killer comes from switching on the mains to the VFD. There's a transient on the Z sensor input that goes from 4.5V to below zero. It only lasts about a tenth of a microsecond but that's long enough. Obviously I'm not switching the VFD mains on and off while the machine is in use but it indicates there's a problem in need of fixing.

    I did take a squillion screen grabs of the waveforms to show off with but the fact is that the controller needs to be rebuilt with more care taken over the earthing and the sensor cabling needs to be replaced with a separate, unbroken screened cable from each sensor (existing unscreened cables cut short as advised earlier). I suspect some of the wiring and existing filtering attempts are ringing and I doubt that even the most expensive new control board could be relied upon to work faultlessly in this electrical environment, so I'll stick to my well used $20 unit for now, as well as the old computer and parallel interface. Perhaps a complete new machine will materialise once I've retired. Whenever that turns out be now that the world has turned upside down.

    I now have to wait for RS to deliver the goodies required for the improvements so will have to try being patient for a few days. Maybe I should try designing that low cost DIY optical fibre interface that would allow the motor drivers to sit next to the motors and no long wires through the machine except power rails. Well we must keep the old brain busy during these long spells stuck at home. Does anyone know if the professionals have moved to fibre connections for motor controllers and/or limit switches? It would solve a lot of problems.
    An optimist says the glass is half full, a pessimist says the glass is half empty, an engineer says you're using the wrong sized glass.

  6. #6
    Doddy's Avatar
    Lives in Preston, United Kingdom. Last Activity: 3 Weeks Ago Has been a member for 9-10 years. Has a total post count of 1,364. Received thanks 188 times, giving thanks to others 66 times. Referred 1 members to the community.
    Quote Originally Posted by Kitwn View Post
    Maybe I should try designing that low cost DIY optical fibre interface that would allow the motor drivers to sit next to the motors and no long wires through the machine except power rails. Well we must keep the old brain busy during these long spells stuck at home..
    The first time I attached a scope to my spindle encoder on the lathe my jaw hit the floor with the noise from the 3-phase motor, so I appreciate where you're coming from. I'm surprised you're seeing that behaviour on short cables though comms theory was never my strong point - I'll believe your experience over my memory any day. I still think using cheap (or expensive!) BoBs with opto-isolated inputs offers a lot of advantages, if only for the pathetic frequency response that will filter any amount of HF noise as well as providing much better noise immunity level than HC-series logic.

    In my case (the spindle encoder) - the design of the 7i76e Mesa card is intelligent and offers a differential input for shaft encoders with 130R input, which allows easy connectivity to a RS485 driver to allow transmission over a balanced twisted pair - helped massively. I appreciate this doesn't work in your case.

  7. #7
    Quote Originally Posted by Doddy View Post
    The first time I attached a scope to my spindle encoder on the lathe my jaw hit the floor with the noise from the 3-phase motor, so I appreciate where you're coming from. I'm surprised you're seeing that behaviour on short cables though comms theory was never my strong point - I'll believe your experience over my memory any day. I still think using cheap (or expensive!) BoBs with opto-isolated inputs offers a lot of advantages, if only for the pathetic frequency response that will filter any amount of HF noise as well as providing much better noise immunity level than HC-series logic.
    What gobsmacked me the most was the amount of noise before I ever put mains on to the VFD. It's enabling the motors that introduces all the trouble. And the fact that the same noise is on the ground of the BOB. I thought the screening and earthing was quite reasonable but noooooo!

    One thing that all this does point out is how noise-resistant it is to use NC microswitches on the limits. Under normal operation all the limit inputs have a hard-wired, all metal connection short circuit on them. This is why I've never had any of this trouble before. Ironically I did briefly consider using miniature relays to act as the 12 or 24V to 5V interface but considered it unprofessional and was in fear of being laughed at by my forum fellows. Actually it would work a treat! I doubt if the variation in triggering delay would noticeably affect the accuracy of the homing and the low-pass filtering effect would be even better than your suggested opto-couplers!

    Re the 'experience', which isn't really as great as you so kindly implied: When I was a trainee at the BBC, back when Boris Johnson had a poster of Prime Minister Thatcher on his school dormitory wall, one of the trainers gave a demonstration of how there's no such thing as an earth connection at radio frequencies. This was at the Daventry short wave station which is now long gone. We went out into the antenna field and he took a coin out of his pocket and dragged it at head height down the side of a steel support post which carried one of the feeders to an antenna. This post was about 20cm or so in diameter and solidly concreted into the ground. There were distinct, bright sparks between the coin and the post!
    An optimist says the glass is half full, a pessimist says the glass is half empty, an engineer says you're using the wrong sized glass.

  8. #8
    Quote Originally Posted by Kitwn View Post
    What gobsmacked me the most was the amount of noise before I ever put mains on to the VFD. It's enabling the motors that introduces all the trouble. And the fact that the same noise is on the ground of the BOB. I thought the screening and earthing was quite reasonable but noooooo!
    That doesn't really suprise me - I remember when I powered up my first PWM audio amplifier - which was switching roughly the same voltage and frequency as a decent microstepping drive - and the radio in the workshop promptly went off. Holding a 'scope probe 6" above the speaker leads gave a few volts of noise in thin air, I ended up using screened speaker cable :. Are the cables to your motors screened I wonder? As with the sensors when I extended my cables I cut them very short then extended with screened (2 pair) which might explain why I've not had any problems in a setup which seems somewhat similar to yours - I'm using basically the same type of sensor albeit in the M8 size. The motor cable screens I returned to the HT- pins on the drivers (always return your shit to where it's generated!) which then has a VERY SHORT ground lead down to the aluminium back plate of the enclosure which acts as a ground plane - being an RF man you'll appreciate the benefits of those.

  9. #9
    Of course, most machines are massive lumps of cast iron and steel cabinets which form a good hard ground and provide a lot of shielding into the bargain. In contrast, if you are constructing a relatively spaced out router(?) using extruded sections with long lengths (high stray inductance), you lose many of those benefits.

    For my machines, I've used Lapp Olflex shielded drag cables, which have shielded bundles within a shielded outer braid. I noticed that the original wiring in my Shizuoka (Matchmaker CNC system, using Parker hannefin servos etc) used simple screened multicore cables for stuff like the encoders but simple unscreened wires for most of the rest (limit switches, solenoids etc). The spindle motor and brushed servos were wired through flexible, grounded steel conduits, which would have contained a lot of the HF noise. I reused that system when I swapped out the electronics and it's been very well behaved.

    I have the Yaskawa VFD in the same cabinet as the rest of the electronics but I bought the pukka Yaskawa-Schaffner EMC filter to go with it. I've not had any issues with that either.

  10. #10
    Dean,
    For a commercial machine that has to earn it's keep I'm in complete agreement with you. I'd have gone bankrupt a long time ago if I were mad enough to try and use the machine I've built as part of a business. But for me it's just a toy I have in my shed and I can't justify spending large amounts of money on it for new parts I can probably do without if I apply some time and ingenuity to the problems that arise. With the $AUD currently worth no more than about 60 US cents, prices of most other board options are way too high.

    In practice this $20 BOB has done everything I need from it for several years now and the current noise problem is nothing to do with the board itself. I'm actually quite impressed that it worked so reliably before, with NC microswitches to hide the problem, and has proved quite robust as well, not complaining at all when I accidentally put 12V on one of the 5V limit inputs.

    Building and modifying the machine and learning from the problems that occur is part of the fun of making it for me, it's hobby in itself, though there is an ever-increasing list of other projects on hold that are waiting for it to be working properly again.
    An optimist says the glass is half full, a pessimist says the glass is half empty, an engineer says you're using the wrong sized glass.

Page 4 of 8 FirstFirst ... 23456 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Limit switch problem
    By ECCO in forum General Electronics
    Replies: 7
    Last Post: 25-12-2015, 11:28 AM
  2. Which Type of Limit Switch
    By manofgresley in forum General Electronics
    Replies: 52
    Last Post: 29-07-2014, 03:43 PM
  3. Limit switch issues?!?
    By jonbabbz in forum General Electronics
    Replies: 10
    Last Post: 06-02-2014, 07:37 PM
  4. One limit switch per axis
    By EddyCurrent in forum General Electronics
    Replies: 17
    Last Post: 30-09-2013, 11:38 AM
  5. Limit switch Cable ...
    By Wobblybootie in forum General Electronics
    Replies: 3
    Last Post: 17-01-2011, 04:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •