Results 1 to 5 of 5

Thread: Actual Position

  1. #1
    Registered
    Join Date
    Aug 2006
    Location
    USA
    Posts
    9
    Downloads
    0
    Uploads
    0

    Actual Position

    I'm looking for the variable that holds the actual Absolute Position of X.
    I have a fomula for calculating the WorkHead RPM and I want it to change
    each time I command a G01

    Any help would be greatly appreciated.


  2. #2
    Registered
    Join Date
    Apr 2003
    Location
    United States
    Posts
    290
    Downloads
    0
    Uploads
    0
    MACHHOME holds the absolute position from the machines home of up to 8 axis , whereas READOUT holds the positions in the readouts which may or may not have offsets applied.

    Tech Support
    CamSoft Corp.
    support@camsoftcorp.com
    PH 951-674-8100
    Fax 951-674-3110
    www.cnccontrols.com
    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  3. #3
    Registered
    Join Date
    Aug 2006
    Location
    USA
    Posts
    9
    Downloads
    0
    Uploads
    0

    That works, now we need rounding

    The READOUT works great. But when we calculate the volts to do the offset
    to the galil card, there are way to many decmals to the right and the command doesn't work.

    example:
    Motor 1725 max rpm gives me 575 at the 3:1 workhead
    So if I want the workhead to rotate at 150rpm my
    /143=2.61
    command needs to be "!COMMAND OF ,,, /143"

    But my calculation produces /143=2.6086956521739130434782608695652

    So how can I round this in code?


  4. #4
    Registered Karl_T's Avatar
    Join Date
    Mar 2004
    Location
    Dassel,MN,USA
    Posts
    1,361
    Downloads
    0
    Uploads
    0
    Do this to get one decimal place
    \144={(INT(\143*10))/10}


  • #5
    Registered
    Join Date
    Apr 2003
    Location
    United States
    Posts
    290
    Downloads
    0
    Uploads
    0
    We only advise using native motion card commands in rare cases, otherwise we normally suggest against them. As in this case we recommend using the ANALOG OUT logic command with variable \143 instead. CamSoft knows what you're doing with logic commands but not native commands. No rounding problems with logic commands. Also not to change the subject, because you may have a good reason but one of the SPINDLE logic commands is usually used to control RPM directly with an RPM values instead of voltage.


    Tech Support
    CamSoft Corp.
    support@camsoftcorp.com
    PH 951-674-8100
    Fax 951-674-3110
    www.cnccontrols.com
    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • Similar Threads

    1. Anybody with actual experience of Practical CNC
      By vid1900 in forum Commercial CNC Wood Routers
      Replies: 7
      Last Post: 08-24-2007, 11:57 PM
    2. Taig actual travel
      By TMaster in forum Taig Mills & Lathes
      Replies: 0
      Last Post: 04-06-2006, 07:56 PM
    3. rotate axes to actual setup
      By kdoney in forum Mach Mill
      Replies: 0
      Last Post: 02-08-2006, 03:09 PM
    4. Sheetcam toolpath different than actual
      By KSky in forum SheetCam
      Replies: 3
      Last Post: 09-13-2005, 12:47 PM
    5. Actual load on Ball Screw?
      By dmgdesigns in forum DIY CNC Router Table Machines
      Replies: 6
      Last Post: 10-22-2004, 12:05 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.