App - 41 App - 41
MELSEC-Q
APPENDIX
Appendix 7.4.2 Data flow when a receive buffer full error occurs
The following diagram illustrates the flow of data when 1 to 1024 is specified (receive
buffer available) in the receive buffer specification when the communication channel is
opened and a receive buffer full error occurs due to the data received from an external
device.
The 0D
H
(
C
R
) data is specified as the single break character and a maximum of 10
bytes is requested to be received.
Data received after a receive buffer full error is ignored.
Reception data stored in the reception buffer for the amount of characters requested to
be received from the BASIC program, is returned to the BASIC program.
When the processing of the reception request from the BASIC program has been
completed, the following processing is performed.
1) All of the remaining data in the receive buffer is deleted.
2) After processing 1) is completed, data received afterward is again stored in the
receive buffer.(This reception data can be accessed by the BASIC program.)
(BASIC program)
Communication channel open
Result of channel opening
Receive request
Receive buffer
Communication module
Data
"1"
"2"
"3"
"4"
"5"
"6"
"7"
"8"
(OS)
"1"
"2"
Ig
nore
d
"9"
"0"
"@"
"@"
"@"
"@"
Input element
Reception
result
(Error occurrence)
"1"
"2"
"3"
"4"
"5"
"6"
"7"
"8"
"9"
"0"
"3"
"9"
"0"
"@"
"@"
"@"
"@"
"@"
"A"
"B"
"@"
"@"
"@"
"@"
"@"
ZOPEN to
ZRECEIVE to
"@"
"@"
"A"
"B"
"Y"
"C"
"Y"
"Z"
"@"
"@"
"@"
"@"
"@"
"1"
Ig
nore
d
"@"
"CR"
"CR"
Содержание 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...