10 - 26 10 - 26
MELSEC-Q
10 DEDICATED INSTRUCTIONS
Cancellation of protocol execution
A protocol can be cancelled during its execution.
This function is used to end the protocol execution forcibly when a communication
error occurs with the other device.
This function is available for the predefined protocol mode only.
(1) Execution method for cancellation request
Execute a cancellation request from the sequence program.
The corresponding buffer memories are shown in the following table.
Address
Decimal (Hex)
CH1 CH2
Name Setting
value
16448
(4040
H
)
16464
(4050
H
)
Protocol cancellation
specification
0: No cancellation specification
1: Cancellation request (Specified by User)
2: Cancel completed (set by QJ71C24N(-R2/R4))
(2) Operation after execution of cancellation request
(a) Operation of dedicated instruction (CPRTCL instruction)
y
The operation fails and the error code is stored in the execution result
((S)+0).
y
When executing multiple protocols consecutively, if the cancellation is
requested to the nth protocol, the nth protocol is ended forcibly and the
protocols after the nth protocol are not executed.
(b) Operation of QJ71C24N(-R2/R4)
y
If the cancellation is requested when protocols are not executed, the
cancellation is completed in no-operation.
y
If the cancellation is requested when the communication protocol setting is
other than the communication protocol mode, the value of the cancellation
designation area is ignored.
POINT
When the protocol with the communication type of "Send & receive" is cancelled,
execute the receive data clear after the cancellation.
When the response from the other device is slow, and data are received after the
cancellation, the receive data remains in the OS area (receive data area).
For details of the receive data clear, refer to Section 6.1.4.
Содержание MELSEC QJ71C24
Страница 1: ......
Страница 2: ......
Страница 103: ...3 42 3 42 MELSEC Q 3 SPECIFICATIONS MEMO ...
Страница 177: ...6 33 6 33 MELSEC Q 6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MEMO ...
Страница 397: ...App 24 App 24 MELSEC Q APPENDIXES Connection example 3 Connection example 4 ...
Страница 441: ......
Страница 442: ......