EasyManuals Logo
Home>Omron>Computer Hardware>SYSMAC CP2E-E D Series

Omron SYSMAC CP2E-E D Series User Manual

Omron SYSMAC CP2E-E D Series
578 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #367 background imageLoading...
Page #367 background image
15-37
15 Ethernet
CP2E CPU Unit Software User’s Manual(W614)
15-5 Socket Services
15
15-5-3 Socket Services and Socket Status
Precautions for Correct UsePrecautions for Correct Use
A Socket Service Parameter Area cannot be used for other sockets once open processing has
been successfully completed for it. Check the socket status before attempting to open a socket.
TCP socket status is provided in words m+4 to m+6 in the DM Area for sockets 1 to 3.
When a send or receive request is made, the data will be automatically sent or received accord-
ing to the send/receive data address in the Socket Service Parameter Area. When processing
has been completed, a response code will be automatically stored in the Socket Service Param-
eters.
When using socket services, it is important to consider the timing of the status changes in the Socket
Status Area. The diagram below shows a flowchart for opening UDP. The flow is similar for other socket
services. Replace the names of the appropriate flags in the flowchart to adapt it to other socket ser-
vices.
Note For details about timing charts, refer to SECTION 6 Socket Services in the Ethernet Units Construction of
Applications Operation Manual (Cat. No. W421).
Socket services cannot support CMND command.
15-5-3 Socket Services and Socket Status
Check TCP Connection/UDP Open Flag. The specified UDP socket is
already open.
Turn ON UDP Open Request Switch.
Start UDP Open.
OFF?
Program Flow
Is Bit 15 (Open Flag) in the socket status word for
the socket being used OFF?
(Checks to see if the socket is open before com-
munications and close processing.)
YES
Error Evaluation
UDP socket opened.
NO
This Socket Service Request Switch is used to request
opening of a UDP socket to the Ethernet Unit.
Confirm end of processing.
0000?
YES
NO
ON/OFF?
OFF
This Socket Service Request Switch that was turned
ON will be turned OFF by the Ethernet Unit when
processing has been completed.
Check response code.
Is the response code 0000, indicating a normal end?
An error occurred. The specified
socket could not be opened.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CP2E-E D Series and is the answer not in the manual?

Omron SYSMAC CP2E-E D Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CP2E-E D Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals