587,610 active members*
3,725 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Fanuc 18-T Removing Decimals and/or digits
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Posts
    9

    Fanuc 18-T Removing Decimals and/or digits

    I am able to allow the controller to figure out my P word for threading. However, I then have to manually enter the numbers into the program from my macro variable. Since the P word cannot contain decimal and has to be 6 digits long. Is there a way to allow the controller to strip the decimals or even trim digits off of the number so I may just use the macro and not have to retype the P word each time I change threading jobs???

  2. #2
    Join Date
    Feb 2008
    Posts
    586
    Perhaps:

    P[ROUND[#530*100000]]

    I used #530, but your variable is prolly different

  3. #3
    Join Date
    Feb 2006
    Posts
    1792
    In many cases, the control does "implicit" rounding wherever a real number is specified in place of an integer (through a macro variable).
    For example, if
    #1 = 1
    #2 = 1.
    #3 = 1.0
    then G#1, G#2 and G#3 are all equivalent to G01, even though G1.0 is illegal.

    I have also verified on 0i control that
    if #4 = 3.5, then M#4 is interpreted as M04, and #[#4] is interpreted as #4, even though M3.5 is illegal (though #3.5 is same as #4).

    I believe, the same applies to P-word also, as long as the value is specified through a variable.
    Several things are not logical. You have to experiment to find out how the control is going to behave.

Similar Threads

  1. Removing 4th Axis from Table, Fanuc 0i
    By Jay Kyle in forum Fanuc
    Replies: 11
    Last Post: 08-10-2022, 03:04 PM
  2. Alarm 003 to many digits on Hardinge with 18-T
    By HBFixedGear in forum Fanuc
    Replies: 8
    Last Post: 08-10-2022, 01:45 AM
  3. Fanuc 15MA 4 place decimals
    By Rick_EE in forum Fanuc
    Replies: 3
    Last Post: 02-03-2011, 06:59 PM
  4. Too many digits
    By vmcchris in forum Fanuc
    Replies: 7
    Last Post: 08-20-2010, 12:45 AM
  5. Dialog Digits
    By MikeT in forum BobCad-Cam
    Replies: 2
    Last Post: 03-02-2004, 03:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •