G-15
FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (FX2N-232IF)
5 Creating Programs
5.2 FROM and TO Instructions
A
Common Items
B
N:N Network
C
Parallel Link
D
Computer Link
E
Inverter
Communication
F
Non-Protocol
Communication
(RS/RS2 Instruction)
G
Non-Protocol
Communication
(FX
2N
-232IF)
H
Programming
Communication
I
Remote
Maintenance
Apx.
Discontinued
models
5.2 FROM and TO Instructions
This section explains how to use FROM and TO instructions.
5.2.1 FROM instruction
FROM instruction reads data of the buffer memory in a special block.
1. Applicable devices
•For FX2N /FX2NC PLCs
•For FX
3U/FX3UC PLCs
2. Function and operation
1) 16-bit operation (FROM and FROMP)
Special function block (BFM)
→ PLC (word device)
"n" 16-bit data starting from buffer memory (BFM) No. m2 inside the special function block No. m1 are
transferred (read) to "n" devices starting from inside the PLC.
2) 32-bit operation (DFROM and DFROMP)
Special function block (BFM)
→ PLC (word device)
"n" 32-bit data starting from buffer memory (BFM) No. m2 inside the special function block No. m1 are
transferred (read) to "n" devices starting from [ +1, ] inside the PLC.
Operand
Type
Bit Devices Word Devices Others
System User Digit Specification System User Index Constant Pointer
X Y M T C S KnX KnY KnM KnS T C D V Z Modify K H P
m1
m2
n
Oper-
and
Type
Bit Devices Word Devices Others
System User Digit Specification System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
XYMTCSD
.b KnX KnY KnM KnS T C D R
U\G
VZModifyKH E "
"P
m1
m2
n
D
D
D
Number of transfer points
n = 1 to 32767
FNC 78
FROM
m1 m2 nD
Unit No.
m1 = 0 to 7
Transfer source BFM #
(Special extension unit/block)
m2 = 0 to 32766
Transfer destination (PLC)
Command
D
D
FNC 78
DFROM
m1 m2 nD
Unit No.
m1 = 0 to 7
Transfer source BFM #
(Special extension unit/block)
m2 = 0 to 32765
Transfer destination (PLC)
Number of transfer points
n = 1 to 16383
Command