Hello, I need to check the sign +/- of a value in any register of a fanuc oi cnc macro.
(Maybe using an "IF" type expression) i.e.: IF #500EQ(?) GOTO...
It seems like it should be simple but I'm stumped.
Hello, I need to check the sign +/- of a value in any register of a fanuc oi cnc macro.
(Maybe using an "IF" type expression) i.e.: IF #500EQ(?) GOTO...
It seems like it should be simple but I'm stumped.
What are you trying to check
are you trying find the value of the macro number or is a specific number that you want the program to goto xxxx ?
Hello, I need to check the sign +/- of a value in any register of a fanuc oi cnc macro.
(Maybe using an "IF" type expression) i.e.: IF #500EQ(?) GOTO...
It seems like it should be simple but I'm stumped.
Here is what you need to do:
N10 IF[#500 LT 0]GOTO 100
N20 IF[#500 GT 0]GOTO 200
N30 IF[#500 EQ 0]GOTO 40
N40 (This line will run if #500 is 000.0000)
N100 (This line will run if #500 is -000.0001or less)
N200 (This line will run if #500 is 000.0001or more)
Thanks drdos, That should work. I really appreciate it. I'll try it as soon as I can.