Fanuc 16i macro format error on conditional logic


Results 1 to 3 of 3

Thread: Fanuc 16i macro format error on conditional logic

  1. #1
    Registered
    Join Date
    Mar 2012
    Location
    United States
    Posts
    16
    Downloads
    0
    Uploads
    0

    Default 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

    Similar Threads:


  2. #2
    Member
    Join Date
    Sep 2010
    Location
    Australia
    Posts
    1230
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    Feb 2006
    Location
    United States
    Posts
    338
    Downloads
    0
    Uploads
    0

    Default 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



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Fanuc 16i macro format error on conditional logic

Fanuc 16i macro format error on conditional logic