Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
5 Basic Instruction
5.2 LDP, LDF, ANDP, ANDF, ORP, ORF
61
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied Instructions
(Program Flow)
8
Applied Instructions
(Move and
Compare)
9
Applied Instructions
(Arithmetic and
Logical Operation)
10
Applied Instructions
(Rotation and
Shift Operation)
Cautions
1) When LDP, LDF, ANDP, ANDF, ORP or ORF instruction programmed in a same step is executed two or
more times within one operation cycle, the operation is as follows.
Programs executed two or more times
- Program between FOR and NEXT instructions
- Program which executes a same subroutine program from two or more
CALL instructions during one operation cycle.
- Program which jumps to a pointer number or ladder block label in a
smaller ladder block number by CJ instruction.
Operation
- When a device turns ON from OFF
1st time :LDP, ANDP or ORP instruction turns ON.
2nd time and later :When the device status is same as the time when the instruction was executed last,
the instruction turns OFF.
- 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 same as the time when the instruction was executed last,
the instruction turns OFF.
2) When write during RUN is completed for a circuit including an instruction for falling edge pulse (LDF,
ANDF, or ORF instruction), the instruction for falling edge pulse is not executed without regard to the ON/
OFF status of the target device of the instruction for falling edge pulse.
When write during RUN is completed for a circuit including an instruction for falling edge pulse (PLF
instruction), the instruction for falling edge pulse is not executed without regard to 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.
3) When write during RUN is completed 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.
4) Some restrictions to applicable devices
S1: The FX
3U and FX3UC PLCs only are applicable.
Contact ON/OFF status (while write
during RUN is executed)
Instruction for rising edge pulse Instruction for falling edge pulse
OFF Not executed Not executed
ON
Executed
*1
Not executed
KOO
X000
LDP
EN
s
ENO
FOR
EN
n
ENO
NEXT
EN ENO