585,931 active members*
5,066 visitors online*
Register for free
Login
Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2009
    Posts
    23

    Macro Problem

    Hey all. In the past I have worked on Fanuc machines that have had either macro A or macro B. I've written lots of routines in either language. Awhile back I bought a machine with an OM-F control, (OM with FAPT). So have a few questions. First problem I encounter was when doing a simple division like this;
    G65 H05 P#101 Q360. R70. (which is #101=360./70.) it returned a value of 5 and not 5.143? So I tried the same calculation a few different ways, removing the decimal point and adding 3 zeros, and a few other things but always returning a rounded answer. Bit strange. Is there a parameter to make it do something like that? Why would it be set up to be like that??


    Other question is, in the 9000 numbered programs, there are a couple of programs that look like this

    :9501
    G65H92P084079Q079076R032077I106906J083085K082069
    G65H93P524Q066082R069065I075045J084079K076046
    G65H93P525Q084076R046076I078071J046077K065088
    G65H93P526Q068073R083084I046084J079084K065076
    G65H93P527Q088045R080079I083073J084073K079078

    That was just the first few lines, it goes on for a bit. I don't know much about the FAPT programming system, is this something to do with that? Definately not a tool change program or a pallet change program which is there amongst the 9000 programs.

    Cheers Damo

  2. #2
    Join Date
    May 2013
    Posts
    5
    Hello, I have a KFV 40 with a Fanuc O-M CNC controller and the two 9000+ programs are lost, we erased them by mistake, can you help me I don't know of your machine is similar to mine.

    Regards

  3. #3
    Join Date
    Apr 2009
    Posts
    23
    The 9000 (suppose to be protected) programs are written specific for your machine depending what the machine tool builder has installed on it. Your best chance will be to contact KVF and see if they can help. Sometimes the machine tool builder will keep a copy of those programs in their machine manual. Check there first. Fanuc will not be able to help you at all, it's the machine tool builder that writes these programs to suit their machine. Cheers Damo

  4. #4
    Join Date
    May 2013
    Posts
    5
    They suppose to be protected thats what I thought, but no, they can be erased from the memory without any warning. I already wrote to KAFO to see if they have these programs, will see how this develop. Thanks.

  5. #5
    Join Date
    Aug 2011
    Posts
    2517
    That sure is a weird macro. definitely not FAPT-related. FAPT is a graphical user interface for programming. There's nothing in the CNC user memory that FAPT needs.

    Are you sure it's not just a simple macro call to a macro program using a G65 and passing variables to it?
    i.e. G65 Pxxxxx Axxxx Bxxxx Cxxxxx Dxxxx Exxxx Ixxxx Jxxxx Kxxxxx

  6. #6
    Join Date
    Apr 2009
    Posts
    23
    To write protect your 9000 & 8000 program numbers;

    To edit 9000 to 9999 Parameter 0010.4 PRG9 1 = protected 0 = unprotected

    To edit 8000 to 8999 Parameter 0389.2 PRG8 1 = protected 0 = unprotected

  7. #7
    Join Date
    Jul 2010
    Posts
    118
    G65H92P526 is the PATTERN DATA function, used to create your own user name to display next to variable 526 on the Macro screen.
    this need macro B function

    for macro A, this is what the manual say.
    Since an integer only is employable as the variable value, in case the
    operation results with decimal numbers, the figures below decimal
    point truncated, if an arithmetic result contains a fraction part.
    Particularly be careful with the arithmetic sequence, accordingly.
    [Example]
    When #100=35, #101=10, #102=5, the following results.
    #110=#100#101 (=3)

  8. #8
    Join Date
    May 2013
    Posts
    5
    0010.4 value is 1 on the machine, is there someone that has the same machine model that can share these files with me.

    Machine is KAFO KFV40 Manufacturing date 1999, CNC controller Fanuc O-M

Similar Threads

  1. Macro problem w/16i
    By marcwdci in forum Fanuc
    Replies: 13
    Last Post: 06-29-2011, 02:21 PM
  2. Macro problem with Haas VF-1 and HS-1
    By colton_m in forum Haas Mills
    Replies: 6
    Last Post: 03-05-2010, 06:02 AM
  3. Short macro problem
    By scrapper400 in forum G-Code Programing
    Replies: 11
    Last Post: 12-05-2008, 02:56 PM
  4. Drill Macro problem
    By toolmanwaz in forum CamSoft Products
    Replies: 5
    Last Post: 04-01-2008, 04:47 PM
  5. VF0E Macro Problem
    By stang5197 in forum Haas Mills
    Replies: 1
    Last Post: 06-14-2007, 11:34 PM

Tags for this Thread

Posting Permissions

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