Omron CJ1W-ETN11 Network Card User Manual


 
124
Using Socket Services with Socket Service Request Switches Section 6-2
The configuration of each set of Socket Service Request Switches is shown in
the following diagram.
As shown in the above table, the Request Switches are turned OFF by the
Ethernet Unit when the requested processes has been completed.
Note There is also a Socket Force-close Switch in bit 2 of the first word allocated to
the Ethernet Unit in the CPU Bus Unit Area in the CIO Area. When the Socket
Force-close Switch is turned ON, all sockets that are open will be force-
closed. Refer to page 68 for details.
When using socket services with the Socket Service Request Switches, the
ladder diagram should be programmed to check the response codes when
Socket Service Request Switches are turned OFF.
UDP Open Request Switch
TCP Passive Open Request Switch
TCP Active Open Request Switch
Send Request Switch
Receive Request Switch
Close Request Switch
7 6 5 4 3 2 1 0
15 14 13 12 11 10 9 8
Bit Switch Status Manipulated
by
Unit operation
8 0 UDP Open Request
Switch
ON User UDP socket opened when switch is turned ON.
OFF Unit Unit turns OFF switch when open processing has been com-
pleted (i.e., when a connection has been made).
9 1 TCP Passive Open
Request Switch
ON User Passive TCP socket opened when switch is turned ON.
OFF Unit Unit turns OFF switch when open processing has been com-
pleted (i.e., when a connection has been made).
10 2 TCP Active Open
Request Switch
ON User Active TCP socket opened when switch is turned ON.
OFF Unit Unit turns OFF switch when open processing has been com-
pleted (i.e., when a connection has been made)
11 3 Send Request
Switch
ON User Send processing executed when switch is turned ON.
(The protocol (TCP/UDP) is determined when the socket is
opened.)
OFF Unit Unit turns OFF switch when send processing has been com-
pleted.
12 4 Receive Request
Switch
ON User Receive processing executed when switch is turned ON.
(The protocol (TCP/UDP) is determined when the socket is
opened.)
OFF Unit Unit turns OFF switch when receive processing has been com-
pleted.
13 5 Close Request
Switch
ON User Close processing executed when switch is turned ON.
(The protocol (TCP/UDP) is determined when the socket is
opened.)
OFF Unit Unit turns OFF switch when close processing has been com-
pleted.