Mitsubishi Electronics FX3G User Manual

Page of 964
199
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
7 Basic Instruction
7.5 LDP, LDF, ANDP, ANDF, ORP, ORF
1
Introdu
ction
2
Ov
ervi
ew
3
Instruction 
Li
st
4
D
evices 
in Det
ai
l
5
Specifi
ed the
De
vice
 &
 
C
onst
ant
6
Bef
ore
 
Pr
og
ra
mmi
ng
7
Bas
ic 
Instruction
8
FN
C00-FN
C0
9
Program Fl
ow
9
FNC
10-FN
C19
Mov
e & Com
pare
10
FNC
20-FNC
29
Arith. & Lo
gi
Operati
on
Cautions
1. Cautions when the LDP, LDF, ANDP, ANDF, ORP, or ORF instruction programmed in the same 
step is executed two or more times within one operation cycle
When LDP, LDF, ANDP, ANDF, ORP or ORF instruction programmed in the same step is executed two or more times
within one operation cycle, the following operation results:
Programs executed two or more times
• Program between FOR and NEXT instructions
• Program which executes the same subroutine program from two or more 
CALL instructions during one operation cycle
• Program which jumps to a label (P) in a smaller step number by CJ 
instruction
Operation
1) When a device turns from OFF to ON
1st time: LDP, ANDP or ORP instruction turns ON.
2nd time and later: When the device status is the same as the time when the instruction was executed last, the
instruction turns OFF.
2) When a device turns OFF from ON
1st time: LDF, ANDF or ORF instruction turns ON.
2nd time and later: When the device status is the same as the time when the instruction was executed last, the
instruction turns OFF.
2. Cautions on writing during RUN
1) Instructions for falling edge pulse
When writing is completed during RUN for a circuit including an instruction for falling edge pulse (LDF, ANDF, or
ORF instruction), the instruction for falling edge pulse is not executed regardless of the ON/OFF status of the
target device of the instruction for falling edge pulse.
When writing is completed during RUN for a circuit including an instruction for falling edge pulse (PLF instruction),
the instruction for falling edge pulse is not executed regardless of the ON/OFF status of the operation condition
device. 
It is necessary to set to ON the target device or operation condition device once and then set it to OFF for
executing the instruction for falling edge pulse.
2) Instructions for rising edge pulse
When writing is completed during RUN for a circuit including an instruction for rising edge pulse, the instruction for
rising edge pulse is executed if a target device of the instruction for rising edge pulse or the operation condition
device is ON.
Target instructions for rising edge pulse: LDP, ANDP, ORP, and pulse operation type applied instructions (such
as MOVP)
*1.
PLS instruction is not executed.
Contact ON/OFF status 
(while writing is executed during RUN)
Instruction for rising edge pulse
Instruction for falling edge pulse
OFF
Not executed
Not executed
ON
Executed
*1
Not executed
X000
FNC 08
FOR
K
FNC 09
NEXT