Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
5 Basic Instruction
5.1 LD, LDI, AND, ANI, OR, ORI
53
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.1 LD, LDI, AND, ANI, OR, ORI
Outline
The LD and LDI instructions are contacts connected to bus lines.
The AND and ANI instructions connect one contact in series.
The OR and ORI instructions connect one contact in parallel.
1. Format and operation, execution form
2. Set data
3. Applicable devices
S: Refer to "Cautions".
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
LD Continuous
To become an assignment statement, operator, control
syntax and so forth.
The ST language may not have the instructions (symbols)
directly corresponding to the contacts of LD, AND and OR
that are programmed in a simple project.
The structured ladder shown on the left can be expressed
as shown below.
(When configuring with assignment statements)
Y000:=(X000 OR X001) AND X002;
Y001:=(X000 OR X001) AND X002 AND NOT X003;
Y002:=(NOT X000 OR NOT X001) AND NOT X002;
Y003:=(NOT X000 OR NOT X001) AND NOT X002 AND
X003;
LDI Continuous
AND Continuous
ANI Continuous
OR Continuous
ORI Continuous
Variable Description Data type
Input variable - Variable that are applicable to AND and OR input. Bit
Output variable - Result of operation of AND and OR. Bit
Instruction
Bit Devices Word Devices Others
System User Digit Specification
System
User
Special
Unit
Index
Constant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
VZModifier K H E
""
P
LD
zzzzzz
S1 S2
LDI
zzzzzz
S1 S2
AND
zzzzzz
S1 S2
ANI
zzzzzz
S1 S2
OR
zzzzzz
S1 S2
ORI
zzzzzz
S1 S2
X001
X000 X002
X003
X003
X002X000
X001
Y000
Y001
Y002
Y003
LD AND ANI
OR
LDI
ORI
AND