Originally Posted by
kbarnett
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