Omron CS CJ1W-ETN21 Operation Manual page 138

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
Program Flow
Check TCP Connection/UDP Open Flag.
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.)
Turn ON UDP Open Request Switch.
This Socket Service Request Switch is used to request
opening of a UDP socket to the Ethernet Unit.
Confirm end of processing.
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?
114
Start UDP Open.
OFF?
NO
YES
ON/OFF?
OFF
0000?
NO
YES
UDP socket opened.
Section 6-7
Error Evaluation
The specified UDP socket is
already open.
An error occurred. The specified
socket could not be opened.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs cs1w-etn21Sysmac cs1w-etn21Sysmac cj1w-etn21

Table of Contents