Results 1 to 3 of 3

Thread: Need parameter for the spindle RPM.

  1. #1
    Registered
    Join Date
    May 2007
    Location
    USA
    Posts
    939
    Downloads
    0
    Uploads
    0

    Need parameter for the spindle RPM.

    Is there one? I want to put the current spindle speed into a variable for use in a macro sub. This would be on OT, 18-T and 21i-T controls. I found where the orientation and maximum RPM parameters are, but didn't see anything in regards to reading the current spindle RPM. Google didn't turn up one either.

    Thanks.


  2. #2
    Registered cnc-king's Avatar
    Join Date
    Jul 2003
    Location
    united states
    Posts
    254
    Downloads
    0
    Uploads
    0
    gcode take a look at 3708 bit#3
    If you can ENVISION it I can make it


  3. #3
    Registered
    Join Date
    May 2007
    Location
    USA
    Posts
    939
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by cnc-king View Post
    gcode take a look at 3708 bit#3
    Now I am thoroughly confused. This is my first attempt at programming a macro to read a system parameter. Old Hardinge deep drill (P9135) cycle used J to specifiy the retract position. Newer P9136 sets #4=#5002 at the begining of the subprogram, and uses that for the retract position. Looking at parameter #5002 yields this:

    WNP=0 for bit 7
    LWM=1 for bit 6
    LGC=1 for bit 5
    LGT=0 for bit 4
    bit 3 & 2 =0 and have no designation over them
    LGN=0 for bit 1
    LD1=0 for bit zero


    Yet Fanuc manual lists in the table under

    *Current position Table 16.2(1) System variables for position information

    Variable number- #5001-#5008
    Position Information- Block end point
    Coordinate system- Workpiece coordinate system
    Tool compensation value- Not included
    Read operation during movement- Enabled

    So how does one know that #5002 reads the block end point Z-axis position? I assume that the 8 variables have a set order since the other variables listed also have 8, but what are they reading? I would guess that #5001=X, #5002=Z, #5003=Y, but have no idea for the rest.

    EDIT: Solved. #4119 reads S-code. Still would like an answer on my other questions. Thanks.
    Last edited by g-codeguy; 09-29-2008 at 09:51 AM.


Similar Threads

  1. Need Hardinge spindle parameter.
    By g-codeguy in forum Fanuc
    Replies: 4
    Last Post: 05-09-2008, 06:12 PM
  2. Replies: 4
    Last Post: 11-07-2007, 01:50 AM
  3. dnc parameter help
    By shepherd in forum Machine Problems, Solutions , Wireless DNC, serial port
    Replies: 1
    Last Post: 06-27-2007, 01:28 AM
  4. Parameter changes
    By jorgehrr in forum G-Code Programing
    Replies: 9
    Last Post: 02-15-2007, 09:06 PM
  5. Replies: 1
    Last Post: 10-30-2005, 03:38 PM

Posting Permissions


 


About CNCzone.com

    We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

Follow us on

Facebook Dribbble RSS Feed


Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.