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.
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...