Results 1 to 3 of 3

Thread: Excluding Negative sign in Parametric Programming

  1. #1
    Registered Ashish B's Avatar
    Join Date
    May 2009
    Location
    India
    Posts
    380
    Downloads
    0
    Uploads
    0

    Smile Excluding Negative sign in Parametric Programming

    Hi all

    Please have a look over the Following Example -

    For Instance,

    If 101 = 3.456
    & 102 = -1.234

    I commanded

    #103 = #101 - #102
    will turn into

    #103 = 3.456 - ( -1.234 )
    A mathematical equation states Minus + Minus Equal to Plus

    So, it will be

    #103 = 3.456 + 1.234
    #103 = 4.69

    But according to the Commanded Equation

    #103 =3.456-1.234
    #103 = 2.222...................(The Intended output which i wanted).

    So what should be the programming Pattern to get the intended Output ??
    Or
    Is there any command which consideres the Negative Sign & will only consider the Value excluding the Sign.

    Ash

    Thanks


  2. #2
    Registered dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2,501
    Downloads
    0
    Uploads
    0
    #103=#101-ABS[#102]


  3. #3
    Registered Ashish B's Avatar
    Join Date
    May 2009
    Location
    India
    Posts
    380
    Downloads
    0
    Uploads
    0

    Smile Hi

    Thanks for that Magic Command.

    Thanks a lot

    Ash


Similar Threads

  1. Parametric Programming
    By Tuz in forum Parametric Programing
    Replies: 7
    Last Post: 02-09-2009, 09:27 AM
  2. New to Parametric Programming
    By weaston in forum G-Code Programing
    Replies: 4
    Last Post: 02-27-2007, 08:40 AM
  3. Parametric Programming
    By weaston in forum General CAM Discussion
    Replies: 4
    Last Post: 02-20-2007, 08:25 AM
  4. Parametric Programming
    By widgitmaster in forum BobCad-Cam
    Replies: 7
    Last Post: 05-04-2006, 02:04 PM
  5. parametric programming
    By Karl_T in forum CamSoft Products
    Replies: 21
    Last Post: 05-24-2005, 03:58 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.