
12/15
EDIT
DATE
DESIG.
DESCRIPTION
CUST.
SHEET
TITLE
DRAW.NO.
FANUC Power Mate i-MODEL H
OPERATOR’S MANUAL
Custom Macro in the high response mode
B-63174EN/02-02
WarningWarning
Incorrect data may be read if data being written by a ladderIncorrect data may be read if data being written by a ladder
program is read by an NC program, or if data being written by anprogram is read by an NC program, or if data being written by an
NC program is read by a ladder program. When data is exchangedNC program is read by a ladder program. When data is exchanged
between a ladder program and between a ladder program and an NC program, read/write timingan NC program, read/write timing
must be set carefully.must be set carefully.
Generally, in case of reading the PMC data in a motion program,Generally, in case of reading the PMC data in a motion program,
the value must be the value must be ffixed before the previous ixed before the previous block block with axis movingwith axis moving
command starts executing. And, the command starts executing. And, the ladder program must notladder program must not
change the valuechange the value until the block referring this data starts to until the block referring this data starts to
execute.execute.
Example)Example)
::
G91 G00 X10000 ; •••••••(1)
G91 G00 X20000 ; ••••••• (2)
#1200004 = #1200004 + 1 ; ••••••• (3)
G91 G00 X#1200000 ; ••••••• (4)
::
When the above motion program is executing, the value of PMCWhen the above motion program is executing, the value of PMC
data that is used in the block (4) must be data that is used in the block (4) must be ffixed by the time theixed by the time the
block (2) starts to execute. In the following term, the block (2) starts to execute. In the following term, the ladderladder
program must not change the value of the PMC data that is used inprogram must not change the value of the PMC data that is used in
the block (4)the block (4)..
Executing the block(1)
Executing the block(2)
Executing the block(4)
Executing the block(3)
The value can be changed
#12000000
(D0000∼D0003)
The value is prohibited changing
Figure. Executing blocks and the prohibition term to
change the value of the variable