austin.m.bryan (Customer) asked a question.

Koyo Encoder Wiring

Hi everyone,

 

I made a post about some code I was having trouble with here and on the Open Source forum the past few days. I think I have all my software issues worked out so I figured this would work best as an entirely separate post.

 

I have a Koyo 360PPR Absolute Encoder (I previously had a 2048 but exchanged it) and I am attempting to read an angle of rotation, but I think my wiring is incorrect. I am connecting the encoder pins directly to a ZipLink ZL-RTB20 module which is then wired into the P1-16ND3 digital card. Because there are two separate isolated channels I have attached jumper wires from the top 12-24VDC (C1) to the bottom (C2) and the same with the 0V channels (8 and 16). I thought this would also be necessary because the last two encoder wires (black/white and red/white) must be connected to the bottom section. I also have two wires from the 12-24VDC and 0V (the black and red wires on each end) so I can connect it to my 24VDC power supply. The encoder is grounded with a basic green/yellow ground terminal block.

 

When I turn the encoder shaft the expected channels do not flip on/off in sequence. Channels 2-4 remain off constantly, channels 5-7 change with each pulse which is expected, and channels 15 and 16 turn on despite them not being connected to any active signal (16 is attached to 0V, 15 to nothing). I'm just not sure what the problem here is.Wiring 

I've attached an image of my encoder wires going to my ZipLink module for reference.

 

Thanks in advance for any help,


  • kewakl (Customer)

    Which cable connects the ZL-RTB20 to the P1-16ND3?

  • kewakl (Customer)

    -If you used the ZL-P1-CBL18-P1 or P2, then maybe you need to looks at this drawing.

    I see BN RD OR YL GN VI BU GY WH BU across the top.

     

    The doc shows that VI and GN go to the same terminal in the connector, it looks like you have them as separate signals. It is a 24 conductor cable with a couple pair tied together. I do not have a handle on the RTB breakout, so I could be missing something.

     

    [edit moved blue wire]

    Expand Post
    • austin.m.bryan (Customer)

      kewaki,

       

      I am indeed using the ZL-P1-CBL18. You mentioned that the VI and GN pins go the same terminal - if I plugged them into the same pins on my ZipLink module, wouldn't that affect the output of the encoder? Since both the VI and GN pins are individual bits.

       

      Maybe if I connected the pins directly to the card instead of using a ZipLink it would work better...

      Expand Post
    • kewakl (Customer)

      I misunderstood which cable is in your picture. Disregard what I said about the colors!

       

      sorry!

       

       

  • PouchesInc (Customer)

    You should put the labels from the cable onto the ziplink so you know which terminals are for what connections. Right now it look like you have it wired quite incorrect, like you have top and bottom swapped and are bridging commons to inputs, and using some terminals that have no connection at all.

     

    ZipLink Wiring 

     

    That is the label you should have on there showing your terminals. It should have come with your cable.

    Expand Post
    • austin.m.bryan (Customer)

      PouchesInc,

       

      That definitely explains it! Not sure how I lost that sticker but I'll rewire it correctly and try it out. Thank you

  • austin.m.bryan (Customer)

    UPDATE:

     

    I've rewired everything according to that pinout sticker and it works!

     

    Thank you for the help everyone

    • kewakl (Customer)

      Glad you got it sorted.

      Thanks for updating!

  • z28z34man (Customer)

    I am glad you got it going.

     

    It looks like an interesting project and is something I will need to remember for future projects where I need to measure angular displacement