11 - 465 11 - 465
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
(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.
Transmits
"AB@EF"
[Requested to send 6 bytes]
A
B
@
@
1
2
3
4
5
6
7
8
E
F
G
9
Character
string expression
• 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.