
6 F 3 B 0 3 6 2
Table 4.2 Instructions (Requests) to the Ethernet Port (Part 2)
Request | Function | Instruction | CMD |
|
|
|
|
TCP open request | Opens a socket interface (TCP). | SEND | 0035H |
|
|
|
|
TCP send request | Sends data from a socket interface in the TCP open state. | SEND | 0037H |
|
|
|
|
TCP receive request | Reads data received by a socket interface in the TCP open | RECV | 0038H |
| state. |
|
|
|
|
|
|
TCP close request | Closes (terminates) a socket interface in the TCP open state. | SEND | 0039H |
|
|
|
|
CMD (command number): Indicates the request type to the Ethernet Port.
®
<Important items>
f.Items ¬ to ® are CMD classes. Class ¬ is Ethernet Port control, - is PC link protocol transmission, and ® is socket interface transmission.
∙For a single Ethernet Port, it is not possible to request another class ¬ CMD while a class ¬ CMD is executing. This is also true for class - CMDs. If such a request is issued, the status (described in the following status information) will be transmission port busy, and the request will go to the wait state.
∙For a single Ethernet Port, when requesting a class ® CMD, it is not possible to request another class ® command for a socket for which an instruction is executing. If such a request is issued, the status (described in the following status) will be transmission port busy, and the request will go to the wait state.
∙There are eight sockets, and each can independently accept and execute a class ® instruction.
g.If the T2N switches from the run to the halt state and then back to the run state while an instruction is executing, it is possible that the Ethernet Port could execute the request issued immediately prior to the halt state. This section describes the handling required after returning to the run state.
∙The T2N should always set the Ethernet Port to standby mode after the T2N returns to run mode. (See 4.5.) Setting the Ethernet Port to standby mode causes all the requests issued to the Ethernet Port to be discarded, computer link and PC link protocol transmissions to be stopped, and the socket interface to be initialized, i.e. set to the closed state.
∙Before setting the Ethernet Port to standby mode, verify the operating mode (See 4.5.) with the Ethernet Port station status. (See section 7.1.) If the Ethernet Port is in run mode, set it to standby mode. However, if it is in standby mode, there is no need to set it to standby mode again.
⎯ 34 ⎯