
B–61404E/08
15. CUSTOM MACRO APROGRAMMING
291
General Form
G65HmP#i Q#j R#k ;
m : Indicates operation instruction and branch instruction at 01 to 99
#i : Variable name to which arithmetic result is loaded.
#j : Variable name 1 to be operated. A constant is also acceptable.
#k : Variable name 2 to be operated. A constant is also acceptable.
Meaning #1 = #ję#k
Operator (Specified by Hm)
Example
P#100 Q#101 R#102#100=#101
⊕#102
P#100 Q#101 R15#100=#101⊕15
P#100 Q–100 R#102#100=–100⊕#102
P#100 Q120 R–50#100=120⊕–50
P#100 Q–#101 R#102 #100=–#101⊕#012
CAUTION
1 No decimal point can be put to variable values. Therefore,
the meaning of each value is the same as that designated
without decimal point when quoted in each address.
(Example) #100 = 10
X#100 0.01 mm (metric input)
2 Those indicating an angle must be expressed by degree,
and the least input increment is 1/1000 degree.
(Example) 100 0.1°. . .
NOTE
H code specified by G65 does not affect any selection of
offset amount.
15.2.3
Operation Instruction
and Branch Instruction
(G65)