Socket Service Request Switches - Omron CS CJ1W-ETN21 Operation Manual

Sysmac cs and cj series ethernet units construction of applications
Hide thumbs Also See for CS CJ1W-ETN21:
Table of Contents

Advertisement

Using Socket Services by Manipulating Dedicated Control Bits
6-7-5

Socket Service Request Switches

Bit
Switch
8
0
UDP Open Request
Switch
9
1
TCP Passive Open
Request Switch
10
2
TCP Active Open
Request Switch
11
3
Send Request
Switch
12
4
Receive Request
Switch
Dedicated control bits can be manipulated to request socket services. These
bits are called Socket Service Request Switches, and are turned ON in the
CPU Unit to request socket services through the Ethernet Unit.
The Socket Service Request Switches are allocated in the CPU Bus Unit Area
in the CIO Area starting at the word n + 19. The value of n can be calculated
from the unit number as follows:
n = CIO 1500 + (25
Offset
15
n+19
Socket Service
Request Switches 2
Socket Service
n+20
Request Switches 4
Socket Service
n+21
Request Switches 6
Socket Service
n+22
Request Switches 8
The configuration of each set of Socket Service Request Switches is shown in
the following diagram.
15 14 13 12 11 10
7
6
5
Status Manipulated
by
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).
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).
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).
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.
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.
×
unit number)
8 7
Socket Service
Request Switches 1
Socket Service
Request Switches 3
Socket Service
Request Switches 5
Socket Service
Request Switches 7
9
8
4
3
2
1
0
UDP Open Request Switch
TCP Passive Open Request Switch
TCP Active Open Request Switch
Send Request Switch
Receive Request Switch
Close Request Switch
Unit operation
Section 6-7
0
119

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs cs1w-etn21Sysmac cs1w-etn21Sysmac cj1w-etn21

Table of Contents