Fanuc Power Mate i-D/H Operator Manual

3. HIGH–SPEED RESPONSE
FUNCTION
PROGRAMMING
(Power Mate i–H)
B–63174EN/03
285
WARNING
About the timing when signals are transferred between macro variables and PMC ladder
programs
Incorrect data may be read when a motion program tries to read the data that a ladder program
is writing or a ladder program tries to read the data that a motion program is writing. When
transferring data between ladder and motion programs, be sure to time the reading and writing
strictly.
Generally, in a motion program that references PMC data, be sure to fix the PMC data before
the motion block immediately preceding the block that references the data is started. Do not
allow the ladder program to change the PMC data after the block is executed but before the
motion block is started.
Use M codes if it is necessary to keep the timing strictly.
Example)
If the motion programs given above are being executed, it is necessary to fix the bit values of
the PMC data used in block just before the execution of block begins. Do not allow the
ladder program to change the PMC data to be used, in the period shown in Fig. 1.8.4.
Fig.3.5 Block execution and a period during which no variable value can be changed
Example of an ordinary motion program
:
N10 G91 G00 X10000 ;
N20 G91 G00 X20000 ;
N30 IF[#1200000.1 EQ 1]GOTO 50 ;
N40 G91 G00 X#1201000 ;
N50 G91 G00 X#1201004
:
Example of a motion program in which the correct timing
is observed just before a bit specification variable is ref-
erenced.
:
N10 G91 G00 X10000 ;
N20 G91 G00 X20000 ;
N25 M100G04
N30 IF[#1200000.1 EQ 1]GOTO 50 ;
N40 G91 G00 X#1201000 ;
N50 G91 G00 X#1201004
:
Block is running.
Block is running.
Block is running.
Block is running.
Values can
be changed.
#12000000.1
(D0000.1)
No value can
be changed.
Block is running.
#12000000.1
(D0000.1)
FIN
Ordinary motion program
Program in which the correct timing is observed just
before a bit specification variable is referenced
Block is running.
Block is running.
Block is running.
Block is running.
Block is running.
Values can
be changed.
Block is running.

Leave a Reply

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