100
6 F 3 B 0 3 6 2
6. TCP send request (using the SEND instruction)
a. Function
This request sends local port register data using an open TCP socket.
Amount of data sent: 1 to 1000 words
b. Transfer parameters
A3100H Module designation
A+1 CMD = 0037H Command number
A+2 SportNO Socket identifier (1 to 8)
A+3 WordSize Transmission data length: 1 to 1000 words
A+4 SRID Transmission data storage register type code
A+5 StreqNOD Transmission data storage register number
Transmission data storage register type code: Type code for the register that holds the
transmission data. (See Figure 5.1)
Transmission data storage register number: Starting number of the registers that hold the
transmission data.
c. Status (See figure 4.3 for details on bits C, D, E and F.)
FEDCBA9876543210
BSportNO TermSTS
B+1 Detailed information (Only valid when TermSTS = 0BH.)
d. Important items
Send requests complete at the point they are stored in the Ethernet Port. This is to allow the
send to be performed later even if that send request cannot be executed immediately due to
network congestion or other problems. The Ethernet Port can store up to three requests per
socket, and the Ethernet Port returns an error for send requests that it cannot store.
Status: Transmission error (TermSTS = 0BH)
Detailed information: Timeout(0020H)
The T/C register flag data is not transmitted if the T/C registers are not specified as storage
registers for transmitted data.
An error is returned if a send request is issued for a socket that is not yet opened.
Status: Transmission error (TermSTS = 0BH)
Detailed information: Unopened (0081H)
An error is returned if a value other than 1 to 8 is specified as the socket identifier.
Status: Transmission error (TermSTS = 0BH)
Detailed information: Illegal socket identifier (0082H)
SportNO: Socket identifier (1 to 8)
TermSTS:See tables 4.3 and 4.4.
Detail information: See table 4.5.