Cancel Commreq Function (4399); 10Autodial Function (4400) - GE VersaMax PLC User Manual

Table of Contents

Advertisement

Serial I/O / SNP / RTU Protocols
For public disclosure

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)
address
0002
address +1
0000
address +2
0008
address +3
0000
address +4
0000
address +5
0000
address +6
4399
address +7
0001
12.4.9.2 Operating Notes
This function does not update the status of words of the cancelled COMMREQs.
Caution
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.
VALUE
(hexadecimal)
Data block length (2)
0002
0000
NOWAIT mode
Status word memory type (%R)
0008
Status word address minus 1 (%R0001)
0000
0000
Not used
0000
Not used
Cancel operation command
112F
Transaction type to cancel
1. All operations
0001
2. Read operations
3. Write operations
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.
GFK-1503E User Manual 243
MEANING

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents