![Mitsubishi Electric MELSEC FX3G Скачать руководство пользователя страница 197](http://html.mh-extra.com/html/mitsubishi-electric/melsec-fx3g/melsec-fx3g_programming-manual_239083197.webp)
195
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
7 Basic Instruction
7.3 AND, ANI
1
Int
roduct
ion
2
O
ver
view
3
In
str
uc
tion
Li
st
4
D
evices
in D
etail
5
Spec
ified t
he
D
evice &
C
onst
ant
6
Bef
ore
Pr
ogr
am
m
ing
7
B
asic
In
st
ru
ct
io
n
8
FN
C
00-FN
C
09
P
rogr
am
F
low
9
FN
C
10
-FN
C
19
Mo
ve
&
Co
mp
are
10
FNC2
0-F
NC2
9
Ar
ith.
&
Logic
O
per
ation
2. ANI instruction (serial connection of NC (normally closed) contacts)
3. Indexing
*1
Devices used in AND and ANI instruction can be indexed with index registers (V and Z).
(State relays (S), special auxiliary relays (M), 32-bit counters (C), and "D
.b" cannot be indexed.)
The index registers V0 to V7 and Z0 to Z7 are
available for indexing.
When a used device is an input (X) or output
(Y), the value of an index register (V, Z) is
converted into an octal number, and then
added.
Example:When the value of V0 is "10", AND
contact is set to ON or OFF by
X012.
*1.
This function is supported only in FX
3U
/FX
3UC
PLCs.
4. Bit specification of data register (D)
*1
A bit in data register (D) can be specified as a device used in AND and ANI instructions.
When specifying a bit in data register, input "."
after a data register (D) number, and then
input a bit number (0 to F) consecutively.
Only 16-bit data registers are available.
Specify a bit number as "0, 1, 2, ... 9, A, B, ...
F" from the least significant bit.
Example: In the example shown on the left,
AND contact turns ON (becomes
conductive) when the bit 3 of D0
turns ON.
*1.
This function is supported only in FX
3U
/FX
3UC
PLCs.
Errors
• When an I/O number used in AND or ANI instruction does not exist due to indexing, M8316 (Non-existing I/
O specification error) turns ON.
• When the device number of a device (M, T or C) other than I/O used in AND or ANI instruction does not
exist due to indexing, an operation error (error code: 6706) occurs.
X002
Y003
ANI instruction
Circuit program
List program
X000
LD
ANI
OUT
0000
0001
0002
X002
X000
Y003
Contact connected
in series
Timing chart
ANI instruction
LD instruction
ON
ON
ON
X002
ON
Y003
ON
ON
X000
Y003
Circuit program
List program
X000V0
LD
AND
OUT
0000
0001
0004
X002
X000V0
Y003
X002
Y003
Circuit program
List program
D0.3
LD
AND
OUT
0000
0001
0004
X002
D0.3
Y003
X002