Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
5 Basic Instruction
5.1 LD, LDI, AND, ANI, OR, ORI
56
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
7. Relationship with AND (...)
The parallel connection by OR or ORI
instruction is connected to the preceding LD
or LDI instruction in principle. The "AND (...)
after" instruction, however, the parallel
connection by OR or ORI instruction is
connected to the second preceding LD or LDI
instruction.
8. Indexing
Devices used in LD, LDI, AND, ANI, OR and ORI instructions can be indexed with index registers (V, Z).
(State relays (S), special auxiliary relays (M), 32-bit counters (C) or "D
.b" cannot be indexed.)
Applicable only to the FX
3U and FX3UC PLCs.
When a used devices is an input (X) or output
(Y), the value of an index register (V or Z) is
converted into an octal number, and then
added.
Example: When the value of V0 is "10", the
LD contact is set to ON (becomes
conductive) or OFF (becomes
nonconductive) by X013.
9. Bit specification of data register (D)
A bit in data register (D) can be specified as a device used in LD, LDI, AND, ANI, OR and ORI instructions.
Applicable only to the FX
3U and FX3UC PLCs.
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 resister is applicable.
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,
LD contact is set to ON (becomes
conductive) or OFF (becomes
nonconductive) by the bit 3 of D0.
Cautions
1) Some restrictions to applicable devices
S1: The FX
3U and FX3UC PLCs only are applicable.
S2: Only the FX
3U and FX3UC PLCs are capable of indexing applicable devices.
The following devices cannot be indexed.
Special auxiliary relays (M)
32-bit counters (C)
State (S)
Word bit specification "D
.b"
Errors
1) When an I/O number used in LD, LDI, AND, ANI, OR or ORI instruction does not exist due to indexing,
M8316 (Non-existing I/O specification error) turns ON. (Applicable to the FX
3U and FX3UC PLCs only)
2) When the device number of a device (M, T or C) other than I/O does not exist due to indexing, an
operation error (error code: 6706) occurs. (Applicable to the FX
3U and FX3UC PLCs only)
OR
OR
OR
OR
LD
LD
AND(...)
AND (...) before
AND (...) after
[Structured ladder/FBD] [ ST ]
Y000:= X000 OR X001V0;
X001V0
X000
Y000
[Structured ladder/FBD] [ ST ]
D0.3
Y003:= X002 AND D0.3;
X002
Y003