Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
14 Applied Instructions (External FX I/O Device)
14.9 FROM / Read From A Special Function Block
383
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
Cautions
1) Bit device digits to be specified by should be K1 to K4 in the case of 16-bit operation instruction, and
K1 to K8 in the case of 32-bit operation.
2) The instruction is provided in the FX
U PLC Ver. 2.10 or later.
3) Instructions of pulse operation type are not provided in the FX
0N PLC.
To execute pulse operation, make the instruction execution condition pulse type.
4) Some restrictions to applicable devices.
S1: The FX
3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
Program example
By using direct specification
*1
of FROM instruction or buffer memory, you can transfer (read out) the content
of buffer memory (BFM) of special extension unit/block to the digit specification of data register (D), extension
register (R), or auxiliary relay (M).
*1. FX
3U, FX3UC PLCs only are available.
Example) Program for reading out BFM#4 (abnormal station information) of CC-Link/LT master (unit No. 0
fixed) built in FX
3UC-32MT-LT(-2) to D0.
- In the case of FROM instruction
- In the case of MOV instruction
Program for reading out BFM#0 to #3 (remote station connection information) of CC-Link/LT master
(unit No. 0 fixed) built in FX
3UC-32MT-LT(-2) to D10 to D13.
- In the case of FROM instruction
- In the case of BMOV instruction
X001
FROM
EN
n1
n2
ENO
d
n3
Transfer
destination
D0
[Structured ladder/FBD] [ST]
FROM(X001, K0, K4, K1, D0);
BFM #4
Unit No. 0
K0
K4
Number of transfer points
K1
M8000
Transfer
destination
D0
MOV
EN
s
ENO
d
Unit No. 0
BFM #4
U0¥G4
[Structured ladder/FBD]
[ST]
MOV(M8000, U0¥G4, D0);
[ST]
FROMP(M0, K0, K0, K4, D10);
BFM #0
M0
Unit No. 0
Transfer
destination
K0
K0
D10
FROMP
EN
n1
n2
ENO
d
n3
[Structured ladder/FBD]
Number of transfer points
K4
M0
BMOV
EN
s
n
ENO
d
Unit No. 0
BFM #0
U0¥G0
Transfer
destination
D10
[Structured ladder/FBD]
[ST]
BMOV(M0, U0¥G0, K4, D10);
Number of transfer points
K4