12.4.9
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.
12.4.9.1
Example Command Block for the Cancel Operation
Function
VALUE
(decimal)
VALUE
(hexadecimal)
MEANING
address
0002
0002
Data block length (2)
a1
0000
0000
NOWAIT mode
a2
0008
0008
Status word memory type (%R)
a3
0000
0000
Status word address minus 1 (%R0001)
a4
0000
0000
Not used
a5
0000
0000
Not used
a6
4399
112F
Cancel operation command
a7
0001
0001
Transaction type to cancel
1. All operations
2. Read operations
3. Write operations
12.4.9.2
Operating Notes
This function does not update the status of words of the cancelled COMMREQs.
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 the CPU is sending to is also
indeterminate.
12.4.10
Autodial Function (4400)
This feature allows the VersaMax CPU to automatically dial a modem and send a
specified byte string.
To implement this feature, the port must be configured for Serial I/O.
For example, pager enunciation can be implemented by three commands, requiring three
COMMREQ command blocks:
Autodial
: 04400 (1130h) Dials the modem.
Write Bytes
: 04401 (1131h) Specifies an ASCII string, from 1 to 250 bytes in length,
to send from the serial port.
Serial I/O / SNP / RTU Protocols
GFK-1503E User Manual 243
For public disclosure
Summary of Contents for VersaMax PLC
Page 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 317: ......