Timing Charts - 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
Program Flow
Check Socket 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?
6-2-7

Timing Charts

Closing during Other
Processes
128
The flow is similar for other socket services. Replace the names of the appro-
priate flags in the flowchart to adapt it to other socket services.
Start UDP Open
YES
ON/OFF?
OFF
YES
UDP socket opened
The timing of flags for socket services (Opening, Receiving, Sending, or Clos-
ing Flag) when the Request Switches are used and the changes in the
response code are shown in the following chart.
Request
Switch
Response
code
Flag
Request Switch
turned ON.
The Close Request Switch or Force-close Switch can be used to close a
socket even when open, receive, or send processing is being executed. Clos-
ing is the only other process that is possible during other processes.
Close Request Switch
The processing results are stored as the response code when the Close
Request Switch is used. There will always be one PC cycle time between
The specified UDP socket is
OFF?
NO
already open.
An error occurred. The specified
0000?
socket could not be opened.
NO
Request
accepted.
Section 6-2
Error Evaluation
Response code stored
Not synced with
Request Switch.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents