Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

TerryT

Verified Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by TerryT

  1.  

     
     
    O4999 (SERIAL NUMBERING CUSTOM MACRO)
    #111 = #24 (FIND CURRENT X ABS)
    #112 = #25 (FIND CURRENT Y ABS)
    #113 = #26 (FIND CURRENT Z ABS)
    #500 = #500+1 (STEP SERIAL NUMBER)
    #110 = #19 (SPACING)
    #121 = #9 (FEEDRATE)
    (1 THROUGH 1O)
    IF [#500 GT 9] GOTO 10
    G52 X#111 Y#112
    G65 P5000 Z#26 D#7 (FIRST ZERO)
    G52 X#[111+110] Y#112
    G65 P5000 Z#26 D#7 (SECOND ZERO)
    G52 X#[111+110*2] Y#112
    #105 = 5000 + #500 (GET THIRD)
    G65 P#105 Z#26 D#7
    G52 X0 Y0
    GOTO 99
     
    (10 THROUGH 99)
    N10 IF [#500 GT 99] GOTO 20
    G52 X#111 Y#112
    G65 P5000 Z#26 D#7 (FIRST ZERO)
    G52 X[#111+#110] Y#112
    #100 = FIX[#500/10] (GET SECOND)
    #105 = 5000 + #100
    G65 P[#105]
    G52 X[#111+#110*2] Y#112
    #101 = #500 - #100*10 (GET THIRD)
    G65 P[5000+ #101] Z#26 D#7
    G52 X0 Y0
    GOTO 99
     
    (100 THROUGH 999)
    N20 IF [#500 GT 999] GOTO 30
    G52 X#111 Y#112
    #100 = FIX[#500/100] (GET FIRST)
    G65 P[5000 +#100] Z#26 D#7
    G52 X[#111+#110] Y#112
    #101 = #500 - #100*100
    #102 = FIX [#101/10] (GET SECOND)
    G65 P[5000+ #102] Z#26 D#7
    G52 X[#111+#110*2] Y#112
    #103 = #101 - #102*10 (GET THIRD)
    #105 = 5000 +#103
    G65 P#105 Z#26 D#7
    G52 X0 Y0
     
    GOTO 99
    N30 #3000 = 100 (OUT OF RANGE)
    N99
    M99
     
    Here is the program used to call it. Just for fun I changed the GOTO10 to a GOTO99 which takes it to the end and this M99 work just fine. No clue what the difference is.

     

    I believe your actual problem is highlighted in red. I don't think you can use a variable to call a program. Also the line G52 X#[111+110] Y#112 could cause a major crash since your telling to move in X whatever value is in #221

  2. You can check the history.

    No options required.

     

    A key log history is present with time stamps on a 31i-A5 by default.

    Showed that feature to a customer last week.

    It's the first thing that gets checked when there is a problem.

    This is the first place I check when one of the guys in my area has a issue. And yes Parameter 3195.

  3. I'm asking because on some of our jobs we are running out of number. All of our programs are controlled by macros. These programs run in a very large 5 axis CBN Grinder, with milling capabilities. That we take full advantage of.

    We control the depth of cut, speeds, feeds, tool life counters, wheel life counters, Renishaw Probe programs, control set up programs, and etc....

    The tool builder uses system variables  #10.., and a limited number of #900 variables for the tool changer.

    What I want to know is, does the Fanuc controller use these numbers for storing can cycle info, trig calculation and etc....

     

  4. Why are variables #200 - #499 hidden. I know that I can un-hides these by changing a parameter. But I was wondering why there made hidden. Is the controller using these to store information in,  Or are they usable, and are meant to keep smart people from changing information.

    I'm running out of numbers and might need to use these.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...