IBM CTI 2572 Network Card User Manual


 
CTI 2572 Installation and Operation Guide
55
Receive Command
The RECEIVE command reads data from the receive buffer and places it in a designated V memory
block. This data would have been written to the buffer by the partner PLC using a S
END command.
There is no notification that data has been received from the partner. Typical user logic will
periodically attempt to read data. If no new data is available, the error bit will be set and an error
value will be returned in the Error Word.
Offset Description Hex Decimal
0 Error Word 0000 0
1 Command Code (Receive) 2E04 11780
2 Connection Number (matches open) 4B15
4B1C
19221-
19228
3 Command Flag
4 Maximum Data Block Size (in words) 1 - 200 1-512
5 Receive Block V-memory address
6-15 Unused
Command Code The number for this command is 0x2E04.
Connection number This must correspond to an open Send/Receive connection number.
Flags None Used
Maximum Data Block Size The maximum number of words that the data block may contain. If the
actual amount of data received is less than the maximum, the remaining V memory locations will be
filled with zeroes. If the partner sends more data than the maximum, the data will be truncated and
an error code will be returned.
NOTE:
Because the amount of data transferred depends on the sending partner, the actual number of data
bytes received is written to the first word of the Receive V memory block.
Receive Block V Memory Address The starting V memory address of the block.
Close Connection Command
The Close Connection terminates the connection with the remote station and frees any local
resources used. The Connection Number may then be re-used for another connection. If the Close
Connection command attempts to close a connection that is not open, no error will be returned.
Offset Description Hex Decimal
0 Error Word 0000 0
1 Command Code (Close Connection) 2E05 11781
2 Connection Number 4B15
4B1C
19221-
19228
3-15 Unused