Mitsubishi QD51 Programming Manual page 626

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Integer data
1654
3238
Integer data
"AB@EF@G"
11 - 456
(1) When an integer variable is specified, it is possible to receive one integer data
value. One integer data value is treated as 2 bytes; therefore, specify 2 bytes for
the number of bytes requested to be received.
760
[Request to receive 2 bytes]
(2) When an integer array name is specified, it is possible to receive as many integer
data values as the number specified by the number of bytes requested to be
received. One integer data value is treated as 2 bytes; therefore, specify (number
of integer data to be received x 2) for the number of bytes requested to be
received.
16
[Request to receive 8 bytes]
137
(3) When a character variable or character array variable is specified, it is possible to
receive as many characters of data as specified by the number of bytes
requested to be received. One data character is treated as 1 byte; therefore,
specify the same number for the number of bytes requested to be received as
the number of characters of data to be received. Note, however, that if full-byte
characters (Kanji) are included among the data to be received, each full-byte
character is treated as 2 characters. Moreover, use Shift JIS code as the Kanji
code on the transmission side. Other codes cannot be treated as Kanji.
[Request to receive 9 bytes]
Reception
• The channel numbers that have not been opened by the ZOPEN instruction cannot
be specified. An error occurs if such a channel is specified.
• If the amount of data specified by the number of bytes requested to be received
cannot be stored in the variable or array specified as <input element>, an error
occurs and the instruction is not executed.
• If a break character specified by the ZCNTL instruction is detected while receiving
data, the data reception is stopped. At this point, the number of bytes of data
received before the reception of the break character is stored in %(1) of control
table and the data received before the reception of the break character is stored in
<input element>.
Reception
%
%(0)
%(1)
Reception
%(2)
%(3)
$
A B
$(n)
1
MELSEC-Q
7 6 0
2 bytes
1 6 5 4
2 bytes
3 2 3 8
2 bytes
1 6
2 bytes
1 3 7
2 bytes
@
E F
@
G
2
3
4
5
6
7
8
9
11 - 456

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents