
16/16
EDIT
DATE
DESIG.
DESCRIPTION
CUST.
SHEET
TITLE
DRAW.NO.
FANUC Power Mate i-MODEL H
CONNECTION MANUAL(FUNCTION)
Custom Macro in the high response mode
B-63173EN-1/01-27
Modal G code and F command
The modal G code (group 01 and group 03) and F command must be
specified in the axis moving block after the block of the sequence number,
END statement and WHILE statement. The sequence number can be
specified up to 1000 in a program.
(Allowable sequence number : 0 ~ 89999 )
Example)
N100 … ;;
::
G91 G01 X1000 F1500 ;; •••OK <-- the first axis moving block after
‘N100’
N100 … ;;
::
X100 ;; •••NG <-- the first axis moving block after ‘N100’
Sequence number
The same sequence number can not be specified two or more times in a
program.
Example)
O8000 G90 G00 X0 ;
N1 G90 G00 X10000 ;
N2 G90 G00 Y10000 ;
IF [#1200000 EQ 10 ] GOTO1 ;
N1;
%
Combination with the optional block skip
The optional block skip and the macro sentence can not be specified at the
same block.
Example)
/ IF [.....] GOTO..... ;; •••NG
Optional block skip numbers cannot be referred by using variables.
Example)
/#1000000
Single block stop
The macro statements (arithmetic and logic operations, conditional
branch(IF statement), unconditional branch(GOTO statement) and
repetition(WHILE statement) ) can not stop by the single block.
It is not allowed because
the ‘N1’ is specified at
two blocks.