Mitsubishi QD51 Programming Manual page 524

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
• Specify a variable or similar that stores the data to be written to buffer memory, etc. for
<storage area for data to be written>. In addition, it is necessary that the specified variable
stores more data than the amount specified by <offset> and <number of bytes>.
• If a character variable or character array variable is specified for <storage area for data to
be written>, the character codes corresponding to the characters to be written are stored
in the write destination.
Specify the offset value with respect to the address/device specified in <write destination>
in <offset 1> in byte units.
• Specify which part of the data in variables, etc. specified in <storage area for data to be
written> in <offset 2> should be written first, in byte units.
When an integer variable is specified
When an integer array variable name is specified
When a character variable or character array variable is specified
11 - 354
An array used as <storage area for data to be written> must always be defined with the DIM
instruction, even if the number of elements used is 10 or less.
Only the part of the data defined by the DIM instruction can be written at the execution
of the PUTMEM instruction.
%
1
%(0)
1
%(1)
3
%(2)
5
$
0
1
2
3
$(n)
0
1
2
3
An integer variable contains 2 bytes (= 16 bits)
per one variable. Specify 0 to specify the lower
0
byte and 1 to specify the higher byte.
An integer array contains 2 bytes (= 16 bytes)
per one element, thus the offset value should be
0
specified as follows:
• When specifying the lower byte of element
number n
2
<offset> = n
• When specifying the higher byte of element
4
number n
<offset> = n
One half-byte character in a variable is 1 byte
for a character variable and character array
variable. Specify as follows when the nth
4
5
character in a variable is specified as the
starting data:
4
5
<offset> = n
MELSEC-Q
2
2 + 1
1
11 - 354

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents