534,885 active members*
3,484 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Dynomotion/Kflop/Kanalog > starting my C program, any guidance would be apreciated.
Page 6 of 6 456
Results 101 to 108 of 108
  1. #101

    Re: starting my C program, any guidance would be apreciated.

    Code:
     Test
    main()
    
    if (SPINDLEAXIS_7==1)
    {SetBit(159);
    }
    else()
    {ClearBit(159);
    }

  2. #102

    Re: starting my C program, any guidance would be apreciated.

    I have gotten the break working, Thank you...

    I now have a question about calculating the Factor of my Spindle so I can use an axis for monitoring the RPM. The encoder I'm using is a BEI RIH 22 incremental encoder. It has a resolution of 2500 cycles, I guess that means counts per/rev? How do I calculate, whatever needs to be calculated, to update my C-program for the correct RPM?

    How do I also change the letter of the axis or insert a new window in screen editor. I watched the Youtube video of entering a new window to see real time feeds, but I couldn't catch how the window was actually put in.

    Attachment is encoder information.

  3. #103
    Junior Member
    Join Date
    May 2006
    Posts
    3609

    Re: starting my C program, any guidance would be apreciated.

    I now have a question about calculating the Factor of my Spindle so I can use an axis for monitoring the RPM. The encoder I'm using is a BEI RIH 22 incremental encoder. It has a resolution of 2500 cycles, I guess that means counts per/rev? How do I calculate, whatever needs to be calculated, to update my C-program for the correct RPM?
    There are 4 quadrature transitions in a complete quadrature cycle. So that should be 10000 counts/rev. To verify rotate the spindle one rev and see how much the position changes. If you put 10000 in the KMotionCNC | Tool Setup | Trajectory Planner | Threading Screen KMotionCNC should display RPM correctly.


    How do I also change the letter of the axis or insert a new window in screen editor. I watched the Youtube video of entering a new window to see real time feeds, but I couldn't catch how the window was actually put in.
    Its not clear what you are trying to do. KMotionCNC will already display Spindle RPM.
    TK
    http://dynomotion.com

  4. #104

    Re: starting my C program, any guidance would be apreciated.

    Quote Originally Posted by TomKerekes View Post
    Its not clear what you are trying to do. KMotionCNC will already display Spindle RPM.
    My spindle count on the A axis also, so I was hoping that I could change the letter to U and make it display the RPM so I can see better. I want to keep A axis free to add a rotary 4th axis later.

  5. #105

    Re: starting my C program, any guidance would be apreciated.

    Quote Originally Posted by Gunmachinist View Post
    I now have a question about calculating the Factor of my Spindle so I can use an axis for monitoring the RPM. The encoder I'm using is a BEI RIH 22 incremental encoder. It has a resolution of 2500 cycles, I guess that means counts per/rev? How do I calculate, whatever needs to be calculated, to update my C-program for the correct RPM?
    This is what I'm confused about when determining my Factor in the c-code; if my encoder count/rev = 10000.
    Would determining the Factor in my C-code be (#define FACTOR (10000/60.0) //10000 counts/sec / 10000 counts/rev = 1 RPS = 60 RPM)?

  6. #106
    Junior Member
    Join Date
    May 2006
    Posts
    3609

    Re: starting my C program, any guidance would be apreciated.

    My spindle count on the A axis also, so I was hoping that I could change the letter to U and make it display the RPM so I can see better. I want to keep A axis free to add a rotary 4th axis later.
    Its still not clear.


    This is what I'm confused about when determining my Factor in the c-code; if my encoder count/rev = 10000.
    Would determining the Factor in my C-code be (#define FACTOR (10000/60.0) //10000 counts/sec / 10000 counts/rev = 1 RPS = 60 RPM)?
    yes
    TK
    http://dynomotion.com

  7. #107

    Re: starting my C program, any guidance would be apreciated.

    Quote Originally Posted by TomKerekes View Post
    Its still not clear.
    My spindle encoder will count on the A axis screen.

    I was want to change the rectangle in the upper left hand corner of the KmotionCNC screen which displays my spindle encoder counts to a U instead of an A.

    I want to make the "U" rectangle in the upper left corner, display the RPM's so I am able to see(visually) better, and I can get all the information I want in one glance without looking all over the screen (ie: X axis, Y axis, Z axis, and speed).

    I want to keep the "A" axis rectangle open to add a rotary 4th axis later.

    How do I insert a new window in screen editor. I watched the Youtube video of entering a new window to see real time feeds, but I couldn't catch how the window was actually inserted and saved.

  8. #108
    Junior Member
    Join Date
    May 2006
    Posts
    3609

    Re: starting my C program, any guidance would be apreciated.

    There are 40 User Label Controls available for use. You can't create or insert them, rather you can Show them. You may need to increase the width of the main window and select Show Hidden to be be able to select and modify them. You can not alter the functionality of the main DROs with the Screen Editor.
    TK
    http://dynomotion.com

Page 6 of 6 456

Similar Threads

  1. Mini mill conversion Input apreciated
    By crl1_1 in forum Benchtop Machines
    Replies: 0
    Last Post: 07-27-2018, 07:14 AM
  2. Starting mid program... can it be done?
    By Brian L in forum Milltronics
    Replies: 5
    Last Post: 07-10-2014, 02:55 PM
  3. Starting at New CNC Build -- Guidance Needed!!
    By dtmille2 in forum DIY CNC Router Table Machines
    Replies: 21
    Last Post: 01-02-2013, 05:00 AM
  4. Need some guidance on starting out
    By AlanDv in forum DIY CNC Router Table Machines
    Replies: 2
    Last Post: 08-20-2011, 05:13 AM
  5. starting program
    By chucker in forum Fanuc
    Replies: 2
    Last Post: 11-10-2009, 07:28 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
  •