Mitsubishi Electronics MELSEC-F Fan User Manual


 
FX2N-5A Special function block Example program 9
9-4
9.2 Outline of FROM/TO commands
FX
2N
-5A reads and writes FROM/TO commands of PLC.
FROM/TO commands are outlined as follows.
When X010 and X011 are OFF, the transfer is not executed and the data of the transfer
destination does not vary. For details, refer to the FX Series programming manual
ΙΙ
.
•FX
3U
/FX
3UC
Series PLC can use direct specification of buffer memory.
Refer to the FX
3G
/FX
3U
/FX
3GC
/FX
3UC
Series Programming Manual - Basic & Applied
Instruction Edition for details.
FNC78
FROM
D P
X010
Read
command
BFM reading
FROM K2 K26 D120 K2
m1 m2
D •
n
BFM#26 to #27 of special unit No. 2
D120 through D121
m1 Special unit or block No. (K0 to K7 numbered from the unit nearest to the basic unit)
Head instructed number (m2=K0 to K31) of buffer memory
It is the head element No. of the transfer destination, and can be designated T, C, D,
KnM, KnY, KnS, V and Z. It can be provided with the modifier of the element No..
Number of transfer points (n=K1 to K32, but n=K1 to K16 for 32-bit command)
m2
D •
n
:
:
:
:
FNC79
TO
D P
X011
Write
command
BFM writing
TO K2 K0 D0 K16
m1 m2 n
D0 through D15
BFM#0 to #15
of Special unit No.2
It is the head element No. of the transfer source, and can be designated T, C, D, KnX,
KnM, KnY, KnS, V, Z, K and H. It can be provided with the modifier of the element
No. by the index.
:
S •
S •
P
m1,m2,n : Same as above
P
An instruction modified to use pulse (single) operation.
D
An instruction modified to use operate in 32 bit operation.