
EDIT
DATE DESIG
DESCRIPTION
B-63173EN-1/01-28
DRAW.NO.
CUST
TITLE
FANUC Power Mate i -MODEL H
CONNECTION MANUAL(FUNCTION)
M-code direct output function
(High Response Function)
11/16
SHEET
Note
• When a direct signal is turned on and also off within a program, the M-
code group number (n: given by address P) of each command has to be
the same value. When a turning-on-command and a turning-off-
command are given in different programs respectively, each M-code
group number has to be specified different values.
Ex) When a direct signal is turned on in a program and turned off in
another program like the following example program, each M-code
group number (n) has to be set different value.
• When several blocks with M-code for direct signal output are specified
consecutively between blocks without this command such as a motion
command, empty block (only “;”) or so on, a command type of M-code for
direct signal output has to be the same. If different command type is
specified, compile error 1028 will be generated.
O8000
G90G01X10000F1000;
M40P1Q3; (Turn on a signal after pulse distribution of X axis is finished.)
%
O8001
G90G01Y10000F1000;
M40P2Q2; (Turn off a signal after pulse distribution of X axis is finished.)
%
Ex) The following program generates compile error 1028.
O8000;
G90G01X0F1000;
M40P1Q3; (“Output after pulse distribution end” type)
M41P1Q1; (“immediate output” type)
G90G01X10000F1000;
---------
Ex) The following program generates no compile error.
O8000;
G90G01X0F1000;
M40P1Q1; (“immediate output ” type)
M41P1Q1; (“immediate output” type)
G90G01X10000F1000;
---------