FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (FX
5.3
Direct Specification of Buffer Memory (U\G)
In FX
and FX
3U
3UC
specified buffer memories even with instructions other than the FROM and TO.
1. How to specify a buffer memory directly
When directly specifying a buffer memory, put the following setting directly into the source or destination of
the command.
Specifies the block number
Example 1: When reading data from buffer memory No. 4 in special function block No. 1, and
transferring it to D0
In the case of FROM instruction
M8000
In the case of direct
specification
M8000
Example 2: When writing the numeric value K1 to buffer memory No. 1000 in special function block
No. 1 (pulse operation type)
In the case of TO instruction
M1
In the case of direct
specification
M1
Example 3: When multiplying the value stored in buffer memory No. 1000 in special function block
No. 1 by the numeric value "K2", and writing the multiplication result to buffer memories
Nos. 2000 and 2001 in special function block No. 2
When using the FROM and TO instructions
M0
In the case of direct specification
M0
Caution
The FX
-32MT-LT(-2) PLC main unit has a built-in CC-Link/LT master. When using special function blocks,
3UC
set the block numbers. starting from "1".
-232IF)
2N
PLCs, one is able to directly specify buffer memories and read/write data from/to the
U \ G
FNC 78
K1
K4
FROM
FNC 12
MOV
FNC 79
K1
K1000
TO
P
FNC 12
P
MOV
FNC 78
K1
K1000
FROM
FNC 22
D0
MUL
FNC 79
K2
K2000
TO
D
FNC 22
U1\G1000
MUL
5.3 Direct Specification of Buffer Memory (U \G )
Specifies the buffer memory number
D0
K1
U1\G4
D0
K1
K1
K1
U1\G1000
D0
K1
K2
D1
D1
K1
K2
U2\G2000
5 Creating Programs
A
B
C
D
E
F
G
H
I
Apx.A
G-17