Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
5 Basic Instruction
5.2 LDP, LDF, ANDP, ANDF, ORP, ORF
57
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)
5.2 LDP, LDF, ANDP, ANDF, ORP, ORF
Outline
Contact instructions LDP, ANDP, and ORP detect the rising edge, and become active during one operation
cycle only at the rising edge of a specified bit device (that is, when the bit device turns ON from OFF).
Contact instructions LDF, ANDF and ORF detect the falling edge, and become active during one operation
cycle only at the falling edge of a specified bit device (that is, when the bit device turns OFF from ON).
1. Format and operation, execution form
2. Set data
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Execution
form
Expression in each language
Structured ladder/FBD ST
LDP
Pulse
(detecting
rising pulse)
LDP(EN,s);
LDF
Pulse
(detecting
falling pulse)
LDF(EN,s);
ANDP
Pulse
(detecting
rising pulse)
ANDP(EN,s);
ANDF
Pulse
(detecting
falling pulse)
ANDF(EN,s);
ORP
Pulse
(detecting
rising pulse)
ORP(EN,s);
ORF
Pulse
(detecting
falling pulse)
ORF(EN,s);
Variable Description Data type
Input
variable
EN Execution condition
LDP,LDF: Always TRUE
Except LDP, LDF : BOOL
Applicable devices Bit
Output
variable
ENO Execution state Bit
LDP
EN
s
ENO
LDF
EN
s
ENO
ANDP
EN
s
ENO
ANDF
EN
s
ENO
ORP
EN
s
ENO
ORF
EN
s
ENO