Results 1 to 5 of 5

Thread: Speed change

  1. #1
    Registered
    Join Date
    Jun 2010
    Location
    Sweden
    Posts
    60
    Downloads
    0
    Uploads
    0

    Speed change

    Im using Heidenhain TNC in my mashine and to change the S parameter i need to output:
    123 TOOL CALL 1 Z S2000
    at the normal toolchange
    or later a
    456 TOOL CALL S3000
    line when the speed changes.
    my problem is that if i change the speed between different instructions but still using the same tool I don“t get a new tool call
    I think in ISO you just add Sxxxx on a normal line and you are done.
    I guess there are two solutions.
    one is to force a toolchange at every speed change
    and one is to check if speed is not = old speed and then output my new speed value.
    Does anyone have a solution or atleast a hint to offer?
    Last edited by tummen; 01-11-2011 at 07:54 AM. Reason: spelling


  2. #2
    Registered
    Join Date
    Oct 2009
    Location
    USA
    Posts
    34
    Downloads
    0
    Uploads
    0
    You're 2nd idea is the way to go, a check on logic to see if the speed is changed. Keep in mind that "negative logic" works best here. The layout is below. Refer to the Code Wizard help or *.MXT source code for the variable names and syntax. You may also need to create a variable to hold the old speed value.

    %If NEWSPEED = OLDSPEED @NO_SPEED_CHANGE
    CNC code output "456 TOOL CALL S3000" goes here
    @NO_SPEED_CHANGE


  3. #3
    Registered
    Join Date
    Jun 2010
    Location
    Sweden
    Posts
    60
    Downloads
    0
    Uploads
    0
    All values that are used in code wizzard has a flag if they should be skipped if they did not change. there must be some value behind every value that it checks against.
    Anyone seen how to reach for this old value?
    i can in this case save the old speed for later but since edgecam can deside in every output if it is needed (modal) then maybe i could do the same?


  4. #4
    Registered
    Join Date
    Oct 2009
    Location
    USA
    Posts
    34
    Downloads
    0
    Uploads
    0
    Save the old speed. That is the only way you have to determine if the value is changed.


  • #5
    Registered
    Join Date
    Jun 2010
    Location
    Sweden
    Posts
    60
    Downloads
    0
    Uploads
    0

    My Solution

    After reading the intermediate file from compiling of the post i found that almost all vars have a xxxHOLD that holds xxx“s old value
    the code below was therefore my attempt.

    ;CODE:%IF #SPEED=#SPEEDHOLD @SKIP1
    [DELETE][BLKNUM] TOOL CALL S[<C>SPEED]
    ;CODE:@SKIP1

    but i did not need it in the end i found a reference to another variable that i then traced to misc funktions, outpuut speed change on separat row.
    this solved my problem.


  • Similar Threads

    1. Build Thread- Super-PID speed controller installation to Fixed speed Router
      By Khalid in forum DIY CNC Router Table Machines
      Replies: 14
      Last Post: 11-13-2010, 05:29 AM
    2. Need Help!- Rebild low speed Mazak VQC 20/40B Mazatrol M-2 to 10000/RPM hight speed
      By sve0019 in forum Mazak, Mitsubishi, Mazatrol
      Replies: 0
      Last Post: 08-07-2010, 01:41 PM
    3. Replies: 0
      Last Post: 06-11-2010, 02:59 AM
    4. Cutting speed locked to Z torch height control speed
      By Beefy in forum Mach Plasma / Laser
      Replies: 1
      Last Post: 02-14-2010, 06:14 PM
    5. BPSeriesI / Centroid control- Spindle speed all out of whack with speed dial?
      By peter.blais in forum Bridgeport and Hardinge Mills
      Replies: 9
      Last Post: 08-08-2006, 04:29 AM

    Tags for this Thread

    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.