FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2. ANI instruction (serial connection of NC (normally closed) contacts)
Circuit program
X002
X000
Timing chart
LD instruction
ANI instruction
*1
3. Indexing
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.)
Circuit program
X002
X000V0
*1.
This function is supported only in FX
4. Bit specification of data register (D)
A bit in data register (D) can be specified as a device used in AND and ANI instructions.
Circuit program
X002
D0.3
*1.
This function is supported only in FX
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.
ANI instruction
Y003
ON
X002
ON
X000
ON
Y003
List program
0000
0001
Y003
0004
/FX
3U
*1
List program
0000
0001
Y003
0004
/FX
3U
List program
0000
LD
X002
0001
ANI
X000
0002
OUT
Y003
ON
ON
ON
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
LD
X002
into an octal number, and then added.
AND
X000V0
Example: When the value of V0 is "10", AND
OUT
Y003
contact is set to ON or OFF by X012.
PLCs.
3UC
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.
LD
X002
Specify a bit number as "0, 1, 2, ... 9, A, B, ... F"
AND
D0.3
from the least significant bit.
OUT
Y003
Example: In the example shown on the left, AND
contact
conductive) when the bit 3 of D0 turns
ON.
PLCs.
3UC
7 Basic Instruction
7.3 AND, ANI
Contact connected
in series
turns
ON
(becomes
187
1
2
3
4
5
6
7
8
9
10