. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    I know this is a long shot, but does anybody perhaps know if its possible to get the encoder position from the driver so I can use it e.g. for limits. Getting the protocol for the serial interface on the drivers would be first prize but I don't think its published. Any suggestions?

  2. Getting the encoder info from the drivers isn't easy, getting it of the encoder would be easier, however the encoder data is typically just a pulse train so you'd need some external intelligence to use it. I think Mach3 can run its internal DRO off the encoder pulse train but whether it can use it for hard limits I don't know.

  3. #3
    Yes, they will likely be incremental rather than absolute. Could you mount an absolute encoder on the end of the shaft ? There are commercial encoder limit switches but probably expensive.
    Last edited by EddyCurrent; 01-12-2014 at 10:31 AM.
    Spelling mistakes are not intentional, I only seem to see them some time after I've posted

  4. #4
    Thanks gents. My knowledge of electronics is a bit lacking so I would be hesitant to try and split the built in encoder output to the ESS driver and use it into an arduino or something. The shaft does run through the stepper but the build in encoder is mounted on that back part. Haven't fiddled with it in a while but if I recall correctly you can plot the encoder position on those graphs in protune so I'll drop them an email and ask if they are willing to give a little insight into the serial protocol. Did not even think about the absolute/incremental thing. These are likely incremetal so I guess its not going to be very helpful for something like zeroing.

    What actually triggered this search again was the laser scanning thread. I bought a laser distance sensor several years back but it was never practical to use as there's no way I could get a real-time xy in mach3 via vb script so the best I could do was to stop and read hight at each xy in the loop which defeats the purpose of using a sensor that can pump height at a reasonable rate. I just ended up with an an expensive probe and was hoping to toy with that again.

  5. #5
    You can get to the encoder DRO's in Mach3, do a search in this document for them; http://www.machsupport.com/forum/ind...0;attach=27839
    Then you might be able to write a Mach3 'Brain' to achieve what you want.
    Spelling mistakes are not intentional, I only seem to see them some time after I've posted

  6. #6
    Thanks, Eddy, at the time I went the add-on route (Wizard) but I could not figure out a way to read the oemDRO's while the machine was moving e.g. if you do a
    code "G1 X 100" the script would just sit on that line till the movement is completed before moving to the code that gets height from the sensor so I had to go the move stop, then get height route.

    I'm not familiar with brains and will certainly read up on that. Would a brain allow some custom script to execute while some g-code is executing, as that would be exactly what I need? For interest sake the sensor I have is a Wenglor CP35MHT80

  7. #7
    Quote Originally Posted by EddyCurrent View Post
    You can get to the encoder DRO's in Mach3, do a search in this document for them; http://www.machsupport.com/forum/ind...0;attach=27839
    Then you might be able to write a Mach3 'Brain' to achieve what you want.
    But only if the encoder talks to Mach3 and in this case they don't. The loop is closed at the drive and Mach never see's the encoder so that won't work.

    Not sure if the drives will report encoder position thru the serial connection but suspect they will or could be made too.? In which case it may be possible to feed this to Mach3 then use a brain like Eddy suggests.?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Leadshine website and AM882
    By EddyCurrent in forum General Electronics
    Replies: 12
    Last Post: 24-08-2018, 01:59 AM
  2. Wiring up the Alarm output on Leadshine AM882
    By Shinobiwan in forum Motor Drivers & Controllers
    Replies: 42
    Last Post: 01-08-2017, 02:07 AM
  3. Controller for 8NM closed loop leadshine drivers
    By Matt81 in forum Motor Drivers & Controllers
    Replies: 5
    Last Post: 19-06-2014, 09:08 AM
  4. FOR SALE: Leadshine HBS86 kit - 8.0Nm motor + driver
    By dsc in forum Items For Sale
    Replies: 0
    Last Post: 07-04-2014, 04:46 PM
  5. Leadshine Digital drives bulk purchase
    By D.C. in forum Marketplace Discussion
    Replies: 32
    Last Post: 11-11-2012, 08:57 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
  •