Справочник Пользователя для Mitsubishi Electronics FXCPU
5 Basic Instruction
5.1 LD, LDI, AND, ANI, OR, ORI
53
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
1
O
utlin
e
e
2
Instruc
tion Li
st
3
Configurati
on of
Instruction
4
Ho
w t
o R
ea
d
Explanati
on of
Ins
truction
truction
s
5
B
asic
Instruction
6
Step Ladder
Instruct
ions
7
Ap
pl
ied Inst
ruct
io
io
ns
(Program Flow)
8
Appl
ied
ied
In
stru
cti
cti
ons
(Mov
e and
C
omp
are)
are)
9
App
lie
lie
d Instr
uction
s
s
(Ari
thm
eti
thm
eti
c and
Lo
gic
al O
per
at
ion)
10
App
lied Inst
lied Inst
ructi
ons
ons
(Rot
ati
ati
on and
Shift O
perati
on)
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.
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".
FX
3U(C)
FX
3G(C)
FX
3S
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(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.
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)
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;
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
X Y M T C S D
.b KnX KnY KnM KnS T C D R U
\G
V Z Modifier K
H
E
"
"
P
LD
z z z z z z
S1
S2
LDI
z z z z z z
S1
S2
AND
z z z z z z
S1
S2
ANI
z z z z z z
S1
S2
OR
z z z z z z
S1
S2
ORI
z z z z z z
S1
S2
X001
X000
X002
X003
X003
X002
X000
X001
Y000
Y001
Y002
Y003
LD
AND
ANI
OR
LDI
ORI
AND