11 - 353 11 - 353
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Description
• The data specified by <storage area for data to be written>, <offset 2> and <number of
bytes> is written to buffer memory, common memory, or extension registers (ED) specified
by <write destination> and <offset 1>.
• Specify either the address of buffer memory/common memory, or the device of extension
registers for <write destination>.
Buffer memory and common memory addresses are provided in the following manner.
Specify the starting address to which data is to be written for <write destination>.
0
1
2
3
Address specified by the PUTMEM instruction
Buffer memory address 0
Buffer memory address 1
Buffer memory address BFF
H
17FE
H
17FF
H
1800
H
1801
H
37FE
H
37FF
H
Bu
ff
e
r m
e
mo
ry
C
o
m
m
o
n
me
mo
ry
As shown above, one address of buffer memory uses 2 bytes. Specify the buffer memory
address in the PUTMEM instruction as follows:
Buffer memory address specified
in PUTMEM instruction
Buffer memory address of
the communication module
=
x 2
In order to write to extension registers, use the special variable W@ (ED,n) and specify the
starting device of the write destination.
When ED 100 is the starting device
When ED 20 is the starting device
W@ (ED, 100)
W@ (ED, 20)
REMARK
See Section 4.3 (buffer memory) and Section 8.6 (common memory and extension
registers) for how to store data to be written.