Chapter 6. Serial I/O, SNP & RTU Protocols
218 PACSystems* RX7i, RX3i and RSTi-EP CPU Reference Manual GFK-2222AD
6.2.11 Cancel COMMREQ Function (4399)
This function cancels the current operations in progress. It can be used to cancel both read operations
and write operations.
If a read operation is in progress and there are unprocessed characters in the input buffer, those
characters are left in the input buffer and available for future reads. The serial port is not reset.
Example Command Block for the Cancel Operation Function
Status word memory type (%R)
Status word address minus 1 (%R0001)
Transaction type to cancel
1 - All operations
2 - Read operations
3 - Write operations
Operating Notes
Remote COMMREQs that are cancelled due to this command executing will return a COMMREQ status
word indicating request cancellation (minor code 12H).
Caution
If this COMMREQ is sent in either Cancel All or Cancel Write
mode when a Write Bytes (4401) COMMREQ is transmitting a
string from a serial port, transmission is halted. The position
within the string where the transmission is halted is
indeterminate. In addition, the final character received by the
device to which the CPU is sending is also indeterminate.