Application Procedure - Omron CJ1W-ETN11 Operation Manual

Sysmac cs/cj series ethernet units
Hide thumbs Also See for CJ1W-ETN11:
Table of Contents

Advertisement

Using Socket Services with Socket Service Request Switches
6-2-5

Application Procedure

Procedure
1,2,3...
CPU Bus Unit Area in the CIO Area
Socket Service
Request Switches 2
Socket Service
Request Switches 8
126
Note The TCP socket connection status is also provided as codes in the following
words of the words allocated to the Ethernet Unit in the CPU Bus Unit Area in
the DM Area: D30000 + (100 x unit number) +9 to +16. Refer to TCP Socket
Connection Status on page 75 and to Appendix D TCP Status Transitions for
details.
1. Set the socket service parameters in the CPU Bus Unit Area in the DM Ar-
ea.
m = D30000 + (100 x unit number)
CPU Bus Unit Area in the DM Area
15
m+18
Socket Service Parameter Area 1
m+28
Socket Service Parameter Area 2
m+88
Socket Service Parameter Area 8
2. Turn ON the Socket Service Request Bits in the CPU Bus Unit Area in the
CIO Area.
Socket Service
Request Switches 1
Receive Request Switch
Socket Service
Send Request Switch
Request Switches 7
3. When a send or receive request is made, the data will be automatically
sent or received according to the send/receive data address in the Socket
Service Parameter Area. When processing has been completed, a re-
sponse code will be automatically stored in the Socket Service Parame-
ters.
0
Close Request
Switch
Number of bytes to send/receive
Send/receive data address
I/O memory
Response code
Section 6-2
Parameters
UDP/TCP socket No.
Local UDP/TCP port No.
Remote IP address
Remote UDP/TCP port No.
Number of bytes to send/receive
Send/Receive data address
Time out time
Response code
UDP Open Request Switch
TCP Passive Open Request Switch
TCP Active Open Request Switch
Send
or
Receive
Stored

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-etn11Cs/cj seriesCs1w-etn01W343-e1-07

Table of Contents