![](/images/new-backgrounds/1300968/300968201x1.webp)
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
A A+1 A+2 A+3 A+4 A+5
3100H
CMD = 0037H
SportNO
WordSize
SRID
StreqNOD
Module designation Command number Socket identifier (1 to 8)
Transmission data length: 1 to 1000 words Transmission data storage register type code 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.)
B B+1
F E D C B A 9 8 7 6 5 4 3 2 1 0
|
|
|
| SportNO | TermSTS |
Detailed information (Only valid when TermSTS = 0BH.)
SportNO: Socket identifier (1 to 8)
TermSTS: See tables 4.3 and 4.4.
Detail information: See table 4.5.
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)
⎯ 100 ⎯