585,996 active members*
4,679 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2012
    Posts
    16

    Fanuc 16i macro format error on conditional logic

    Well, here is the senario we are running into. We are going to run this part on a different machine that what we were running it on. So we are probing the part to set and compare the values to see if the part is square enough to run. This is a weldment we are dealing with. The probing process goes fine until we get to the conditional compare lines in the program. The lines we are using are as follows:

    IF[[#920LT0]AND[#921GT0]]GOTO150
    IF[[#920GT0]AND[#921LT0]]GOTO151
    IF[[#920LT0]AND[#921LT0]]GOTO152
    IF[[#920GT0]AND[#921GT0]]GOTO152

    The controller was a Fanuc 30i on the other machine and this machine has a 16i controller. We are getting a 'macro format error' alarm. We have tried a few variations on this and have been getting the same error. Examples are here:

    IF[#920LT0]AND[#921GT0]GOTO150
    IF[#920GT0]AND[#921LT0]GOTO151
    IF[#920LT0]AND[#921LT0]GOTO152
    IF[#920GT0]AND[#921GT0]GOTO152

    then tried:

    IF[#920LT0AND#921GT0]GOTO150
    IF[#920GT0AND#921LT0]GOTO151
    IF[#920LT0AND#921LT0]GOTO152
    IF[#920GT0AND#921GT0]GOTO152

    The next thing we are going to try tomorrow is placing a "THEN" right before the GOTO in the lines. This is a little frustrating when things work fine on other machines but then give fits on a different machine. Any help is appreciated on this. Thanks much.

    Kelly

  2. #2
    Join Date
    Sep 2010
    Posts
    1230

    Re: Fanuc 16i macro format error on conditional logic

    Quote Originally Posted by kbarnett View Post
    Well, here is the senario we are running into. We are going to run this part on a different machine that what we were running it on. So we are probing the part to set and compare the values to see if the part is square enough to run. This is a weldment we are dealing with. The probing process goes fine until we get to the conditional compare lines in the program. The lines we are using are as follows:

    IF[[#920LT0]AND[#921GT0]]GOTO150
    IF[[#920GT0]AND[#921LT0]]GOTO151
    IF[[#920LT0]AND[#921LT0]]GOTO152
    IF[[#920GT0]AND[#921GT0]]GOTO152

    The controller was a Fanuc 30i on the other machine and this machine has a 16i controller. We are getting a 'macro format error' alarm. We have tried a few variations on this and have been getting the same error. Examples are here:

    IF[#920LT0]AND[#921GT0]GOTO150
    IF[#920GT0]AND[#921LT0]GOTO151
    IF[#920LT0]AND[#921LT0]GOTO152
    IF[#920GT0]AND[#921GT0]GOTO152

    then tried:

    IF[#920LT0AND#921GT0]GOTO150
    IF[#920GT0AND#921LT0]GOTO151
    IF[#920LT0AND#921LT0]GOTO152
    IF[#920GT0AND#921GT0]GOTO152

    The next thing we are going to try tomorrow is placing a "THEN" right before the GOTO in the lines. This is a little frustrating when things work fine on other machines but then give fits on a different machine. Any help is appreciated on this. Thanks much.

    Kelly
    Hello Kelly,
    Take a look at Parameter Bit 6006.0 of the errant machine. You will find that it is set to Zero, meaning that Logical Operations in Conditional Statements can't be used. Set this bit to "1" and you will be right to go.

    Regards,

    Bill

  3. #3
    Join Date
    Feb 2006
    Posts
    338

    Re: Fanuc 16i macro format error on conditional logic

    Good to know, this is something I wanted to do a few times but it would not work. Now I can set it allow this.
    Thanks

Similar Threads

  1. EnG3Bin V8 Logic port 1: send data error
    By kleur in forum Laser Engraving / Cutting Machine General Topics
    Replies: 0
    Last Post: 12-04-2014, 01:02 AM
  2. P33 FORMAT ERROR
    By jphodson in forum Mori Seiki lathes
    Replies: 0
    Last Post: 07-18-2014, 02:43 PM
  3. Heidenhain 355 and error 83 (PLC: logic assignment missing)
    By art_PL in forum Controller & Computer Solutions
    Replies: 2
    Last Post: 04-28-2013, 11:44 AM
  4. Replies: 4
    Last Post: 10-06-2010, 06:29 PM
  5. Replies: 15
    Last Post: 03-21-2009, 11:28 AM

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
  •