Need Help! Problems with spindle encoding


Results 1 to 2 of 2

Thread: Problems with spindle encoding

  1. #1
    Registered
    Join Date
    Nov 2005
    Location
    USA
    Posts
    34
    Downloads
    0
    Uploads
    0

    Default Problems with spindle encoding

    I am setting up a quadrature spindle encoder for my lathe. Analysis with my scope indicates the encoder is working. Also, the Kmotion Digital I/O window shows bits 4 and 5 toggling as the spindle is rotated. However, GetSpindleRPS returns 0.0000 when spindle is rotating about 1000rpm

    I have attached my init routine and my .h file with contains the definition of the spindles.

    Gary

    Similar Threads:
    Attached Files Attached Files


  2. #2
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    4045
    Downloads
    0
    Uploads
    0

    Default Re: Problems with spindle encoding

    Hi Gary,

    Bits 4 and 5 are connected to Encoder Counter #2. See the table for KFLOP JP7 here:
    KFLOP Connectors

    It looks like you are using KFLOP Axis channels #0 #2 and #3. I'm not sure why you skipped #1 but that is ok if you wish.

    It looks like you plan to use KFLOP Axis #3 to monitor the encoder input. That is also ok, but it is configured to use Encoder Counter #4 which is not what you wired your encoder to. Change:

    ch3->InputChan0=4;
    to
    ch3->InputChan0=2;

    After doing so (and executing the program) then the Axis Screen should display your encoder Position for Axis #3

    You might read this article:
    Channels Channels Channels - Dynomotion

    Regards

    Regards
    TK http://dynomotion.com


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 with spindle encoding

Problems with spindle encoding