Omron CJ1W-ETN21 Network Card User Manual


 
114
Using Socket Services by Manipulating Dedicated Control Bits Section 6-7
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.