Mitsubishi QD51 Programming Manual page 522

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
PUTMEM
Instruction
• Writes data to the communication module's buffer memory, common memory, or extension
registers (ED).
PUTMEM TO <write destination>,<offset 1>,<FROM> <storage area for data to be
Syntax
written>,<offset 2>,<number of bytes>
write destination
storage area for data to be
written
offset 1
offset 2
number of bytes
PUTMEM TO 0,2 FROM
Examples
A%( ),0,6
PUTMEM TO &H1800,0
FROM $,1,4
PUTMEM TO W@ (ED,2),4
FROM A%( ),2,4
11 - 352
PUT MEMory
• • • •
• • • •
• • • •
• • • •
• • • •
• • • •
A%( )
(0)
12 56
H
(1)
37 66
H
6 bytes
(2)
08 00
H
(3)
49 56
H
• • • •
A$
0
A (41
)
H
1
B (42
)
H
2
C (43
)
H
4 bytes
3
D (44
)
H
4
E (45
)
H
5
F (46
)
H
• • • •
A%( )
(0)
(1)
30 21
H
4 bytes
(2)
68 42
H
Specify the starting address of buffer memory or
common memory, or the starting device number of
extension registers (ED).
Specify an integer variable, integer array name,
character string variable, or character string array
variable where the data to be written is stored.
Specify the offset value (in byte units) from the
beginning of the write destination.
Specify the offset value (in byte units) from the
beginning of the storage area for data to be written.
Specify the length of data to be written in byte units.
Writes data in A%(0) to A%(2) (6 bytes) to
communication module's buffer memory 1 to 3.
Buffer memory
0
0
1
56
2
H
1
12
3
H
66
4
H
2
37
5
H
00
6
H
3
08
7
H
Writes data of the 1st to 4th character elements in
A$ (4 bytes) to communication module's common
memory addresses &H1800 to &H1803.
Common memory
1800
42
0
H
H
1801
43
1
H
H
1802
44
2
H
H
1803
3
45
H
H
1804
H
Writes data in A%(1) and A%(2) (4 bytes) to ED4
and ED5.
Internal devices
8
ED4
3021
H
9
10
ED5
6842
H
11
MELSEC-Q
Addresses specified by
the PUTMEM instruction
11 - 352

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents