585,973 active members*
4,039 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2005
    Posts
    34

    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

  2. #2
    Join Date
    May 2006
    Posts
    4045

    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
    TK
    http://dynomotion.com

Similar Threads

  1. Replies: 18
    Last Post: 11-07-2020, 01:48 PM
  2. Serial encoding FSSB Fanuc
    By HerrBi in forum Fanuc
    Replies: 6
    Last Post: 08-09-2018, 02:23 AM
  3. Spindle problems . What is the runout on your spindle?
    By eltejano in forum Tormach Personal CNC Mill
    Replies: 30
    Last Post: 04-05-2017, 06:56 AM
  4. Research into novel methods of position encoding.
    By James Newton in forum Servo Motors / Drives
    Replies: 4
    Last Post: 11-26-2014, 12:32 AM
  5. Please identify the encoding language
    By GonCNC in forum OpenSource Software
    Replies: 1
    Last Post: 07-12-2012, 04:38 PM

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
  •