FANUC Series 16/18/160/180-Model C Machining Center Operators Manual

PROGRAMMING
B–62764EN/01
16. CUSTOM MACRO
373
(b)Operation
< vacant > is the same as 0 except when replaced by < vacant>
When #1 = < vacant > When #1 = 0
#2 = #1
#
#2 = < vacant >
#2 = #1
#
#2 = 0
#2 = #1*5
#
#2 = 0
#2 = #1*5
#
#2 = 0
#2 = #1+#1
#
#2 = 0
#2 = #1 + #1
#
#2 = 0
(c)Conditional expressions
< vacant > differs from 0 only for EQ and NE.
When #1 = < vacant > When #1 = 0
#1 EQ #0
#
Established
#1 EQ #0
#
Not established
#1 NE 0
#
Established
#1 NE 0
#
Not established
#1 GE #0
#
Established
#1 GE #0
#
Established
#1 GT 0
#
Not established
#1 GT 0
#
Not established
VARIABLE O1234 N12345
NO. DATA NO. DATA
100 123.456 108
101 0.000 109
102 110
103 111
104 112
105 113
106 114
107 115
ACTUAL POSITION (RELATIVE)
X 0.000 Y 0.000
Z 0.000 B 0.000
MEM **** *** *** 18:42:15
[ MACRO ] [ MENU ] [
OPR ] [ ] [ (OPRT) ]
D When the value of a variable is blank, the variable is null.
D The mark ******** indicates an overflow (when the absolute
value of a variable is greater than 99999999) or an underflow (when
the absolute value of a variable is less than 0.0000001).

Leave a Reply

Your email address will not be published. Required fields are marked *