Mitsubishi QD51 Programming Manual page 635

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
11 - 465
(3) When a character array expression is specified, one character in the variable is
treated as 1 byte and data characters for the number of bytes requested to be sent
are transmitted. Note, however, that if full-byte characters (Kanji) are included,
each full-byte character is treated as 2 characters. Moreover, if a full-byte character
is transmitted from the communication module, the transmission is carried out
using Shift JIS codes.
Character
A B
string expression
1
[Requested to send 6 bytes]
• If a variable or array is specified as <output element>, define the variable or array
using the DIM instruction and assign data to it before executing the ZSEND
instruction.
If an integer array name or character array variable is specified as <output element>, make sure
to define the array using the DIM instruction, even if the number of elements used is less than 10.
If the array is not defined using the DIM instruction, an error occurs at the execution
of the ZSEND instruction.
• A channel number that has not been opened using the ZOPEN instruction cannot be
specified. An error occurs if it is specified.
• If there are fewer bytes of data specified in <output element> than the number of
bytes requested to be sent, an error occurs and the instruction is not executed.
• If there are more bytes of data specified in <output element> than the number of
bytes requested to be sent, only the data corresponding to the number of bytes
requested to be sent are transmitted and the remaining data is ignored.
@
E F
@
G
2
3
4
5
6
7
8
9
MELSEC-Q
Transmits
"AB@EF"
11 - 465

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents