Problems on installing rotary encoder on Gecko G540


Results 1 to 9 of 9

Thread: Problems on installing rotary encoder on Gecko G540

  1. #1
    Member
    Join Date
    Mar 2016
    Location
    Brazil
    Posts
    68
    Downloads
    0
    Uploads
    0

    Default Problems on installing rotary encoder on Gecko G540

    Problems on installing rotary encoder on Gecko G540-forum-schematics-2-jpgHi!


    Can anyone that understand electronics help me?


    I have a hall sensor as an index on my lathe’s spindle. I have the sensor pulled high by a 1k resistor and can’t change it because they’re both glued in epoxy.


    This sensor works normally with 5V, from a 12V supply inside the lathe, separated from the gecko’s supply. This 12v supply powers also the lathe’s tachometer.


    I made an optoisolated circuit (an n channel mosfet 2N7000 and a 4N25 opto) to detect the 5v-0v change from the index sensor and had the output of the optocoupler wired in one input of my gecko, that sinks 11V.


    So far so good, it works and the RPM is the same shown in the tachometer and in Mach3’s RPM DRO.


    I then bought an encoder, that needs 5V also, and has A,B, and index outputs. The encoder is this one:


    https://www.usdigital.com/products/e...ental/shaft/H5


    I’m installing an Ethernet SmoothStepper in my system, so I hope to be able do to threading better with the encoder.


    Buti can’t make it work!!


    I duplicated my optoisolated circuit to have as input the index (or the A signal) from the encoder and wired the output of the optocoupler to another input of the gecko.


    But it doesn’t work.


    If I get the hall sensor on the input of the circuit everything works. If I put the index from the encoder for instance, it doesn’t. As Mach is not even receiving any signal.


    My knowledge in electronics is basic, so, anyone could help me with my circuit? What am I doing wrong? Is the signal from the encoder different to be used with my optocoupler circuit? Should I add something to my circuit? Or change it? I’d like it to remain optoisolated...

    My circuit is attached


    Thanks!

    Similar Threads:
    Attached Thumbnails Attached Thumbnails Problems on installing rotary encoder on Gecko G540-forum-schematics-2-jpg  


  2. #2
    Member
    Join Date
    Feb 2008
    Location
    USA
    Posts
    644
    Downloads
    0
    Uploads
    0

    Default Re: Problems on installing rotary encoder on Gecko G540

    What resolution is the encoder? the pulses may be too narrow for the relatively slow G540 inputs to see...



  3. #3
    Member
    Join Date
    Mar 2016
    Location
    Brazil
    Posts
    68
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by PCW_MESA View Post
    What resolution is the encoder? the pulses may be too narrow for the relatively slow G540 inputs to see...
    This one is 500 lines/revolution... but even the index signal, which is 1/rev doesn’t work properly...



  4. #4
    Member
    Join Date
    Feb 2008
    Location
    USA
    Posts
    644
    Downloads
    0
    Uploads
    0

    Default Re: Problems on installing rotary encoder on Gecko G540

    Right so a 500 line encoder would output a 500 Hz A signal at 1 RPS (60 RPM) and a 1 ms index pulse.
    I don't know G540 input speeds but I suspect they are fairly slow so this is not likely to work at more
    than a few hundred RPM at best. You might have to bypass the G540 inputs and connect the encoder
    directly to the ESS pins to be able to use a 500 line encoder.

    You might also ask Gecko what is the maximum frequency of its input pins



  5. #5
    Member
    Join Date
    Mar 2016
    Location
    Brazil
    Posts
    68
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by PCW_MESA View Post
    Right so a 500 line encoder would output a 500 Hz A signal at 1 RPS (60 RPM) and a 1 ms index pulse.
    I don't know G540 input speeds but I suspect they are fairly slow so this is not likely to work at more
    than a few hundred RPM at best. You might have to bypass the G540 inputs and connect the encoder
    directly to the ESS pins to be able to use a 500 line encoder.


    You might also ask Gecko what is the maximum frequency of its input pins
    I just read the manual. It says: Input Frequency: Min: 0, Max: 200 Khz...

    But the hall sensor and tachometer and gecko’s input shows normally the RPM from 0 to the max the lathe’s motor gets, at 3.000 RPM

    I was thinking in replacing the Mosfet by a NPN transistor. Does it make sense? I read in a post that the encoder signal is TTL squarewave and should be transformed to be read by the gecko G540. Would this work?



  6. #6
    Member
    Join Date
    Feb 2008
    Location
    USA
    Posts
    644
    Downloads
    0
    Uploads
    0

    Default Re: Problems on installing rotary encoder on Gecko G540

    I think that "input" frequency refers to the step input not the external isolated inputs



  7. #7
    Member
    Join Date
    Mar 2016
    Location
    Brazil
    Posts
    68
    Downloads
    0
    Uploads
    0

    Default Re: Problems on installing rotary encoder on Gecko G540

    The problem is, even without connecting to the gecko, I can't see a on/off pattern on the output of the optocoupler, when measuring with the multimeter. I can see this pattern when connecting the hall sensor to the very same circuit. When connecting the encoder, it's just as the mosfet doesn't switch when it rotates really slow by hand. I tried to replace the mosfet to a 2N222 (with a 1k resistor from the base of the transistor to to the signal output index (z) of the encoder and still nothing happens. As the transistor never turns on and off.

    Any ideas?

    This are the electrical specs of the encoder, if anyone needs it...

    Problems on installing rotary encoder on Gecko G540-encoder-electrical-specs-jpg

    Attached Thumbnails Attached Thumbnails Problems on installing rotary encoder on Gecko G540-encoder-electrical-specs-jpg  
    Last edited by Rimbaldo; 05-24-2020 at 10:48 AM. Reason: More details added


  8. #8
    Member
    Join Date
    Feb 2008
    Location
    USA
    Posts
    644
    Downloads
    0
    Uploads
    0

    Default Re: Problems on installing rotary encoder on Gecko G540

    Can you measure the encoder output directly?



  9. #9
    Member
    Join Date
    Mar 2016
    Location
    Brazil
    Posts
    68
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by PCW_MESA View Post
    Can you measure the encoder output directly?
    Yes, but with a multimeter I can see no visible change at all in the voltage, or it’s resistance. But if I connect it directly to the tachometer it works, so it’s not broken..

    How (and what) should I measure it?



Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Problems on installing rotary encoder on Gecko G540

Problems on installing rotary encoder on Gecko G540