Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
5 Basic Instruction
5.10 SET, RST
84
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
3. Indexing
Devices used in SET and RST instructions can be indexed with index registers (V, Z).
(State relays (S), special auxiliary relays (M), 32-bit counters, "D
.b" and word devices cannot be indexed.)
This is applicable only to the FX
3U and FX3UC PLCs.
When a used device is an input (X) or output (Y),
the value of an index register (V, Z) is converted
into octal, and then added.
Example: When Z0 is "20", Y024 turns ON or
OFF.
4. Bit specification of a data register (D)
A bit data register (D) can be specified as a device used in SET or RST instruction.
This is 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 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,
when X000 turns ON once, the bit 3 of
D0 turns ON. When X001 turns ON,
the bit 3 of D0 turns OFF.
Cautions
1) Some restrictions to applicable devices
S1: FX
3U and FX3UC PLCs only are applicable.
S2: FX
3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
S3: 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 device
Word bit specification "D
.b"
2) When SET and RST instructions are executed for an output relay (Y) in a same operation, the result of
the instruction located nearest the END instruction (which specifies the end of program) is output.
3) When using the retentive type timers of the FX
1N, FX1NC, FX2N and FX2NC, be sure to create a program
where the RST instruction resets the retentive type timers to be used. If no such a reset circuit by RST is
present in the program, the timers remain in the state of reset, possibly causing the timers not to operate.
Error
1) When an I/O number used in SET or RST instruction does not exist due to indexing, M8316 (non-existing
I/O specification error) turns ON. (Applicable only to the FX
3U and FX3UC PLCs.)
2) When the device number of a device (M, T or C) other than I/O used in SET or RST instruction does not
exist due to indexing, an operation error (error code: 6706) occurs. (Applicable only to the FX
3U and
FX
3UC PLCs.)
[Structured ladder/FBD] [ ST ]
SET(X000,Y000Z0);
RST(X001,Y000Z0);
RST
EN ENO
d
X001
SET
EN ENO
d
Y000Z0
X000
Y000Z0
[Structured ladder/FBD] [ ST ]
SET(X000,D0.3);
RST(X001,D0.3);
RST
EN ENO
d
D0.3
X001
SET
EN ENO
d
D0.3
X000