Dm Area Allocations - Omron CS CJ1W-ETN21 Operation Manual

Sysmac cs and cj series ethernet units construction of applications
Hide thumbs Also See for CS CJ1W-ETN21:
Table of Contents

Advertisement

Socket Service Status
Bit
Switch
0
Opening Flag
1
Receiving Flag
2
Sending Flag
3
Closing Flag
13
Data Received Flag
14
Results Storage Error
Flag
15
TCP Connection/UDP
Open Flag
6-6-2

DM Area Allocations

15
14
13
12
-
Data Received/Requested Flag
Results Storage Flag
TCP Connection/UDP Open Flag
Status Manipulated
by
ON
Unit
Turns ON when an open request is received.
OFF
Turns OFF when open processing has been completed.
ON
Turns ON when a receive request is received.
OFF
Turns OFF when receive processing has been completed.
ON
Turns ON when a send request is received.
OFF
Turns OFF when send processing has been completed.
ON
Turns ON when an close request is received.
OFF
Turns OFF when close processing has been completed.
ON
Turns ON when data from a remote node has been received at an
open TCP socket.
OFF
Turns OFF when receive processing has been requested for an
open TCP socket.
ON
Turns ON if there is an error in the Results Storage Area specified
for the socket service request command to the Ethernet Unit.
This flag turns ON at the same time as any of the services request
processing flags (bits 0 to 3) turn ON again (i.e, at completion of
processing).
OFF
Turns OFF when the next request is received.
ON
Turns ON when UDP open processing has been completed or when
a TCP connection is made.
OFF
Turns OFF when close processing has been completed. (Will
remain OFF when open processing ends in an error.)
The following DM Area words are allocated in the CPU Bus Unit Area in the
DM Area. The beginning word m is calculated by the following equation.
Beginning word m = D30000 + (100 x unit number)
■ Number of Bytes Received at TCP Socket (Ethernet Unit to CPU Unit)
The number of bytes of data saved in the reception buffer at the TCP socket is
stored in the TCP Connection Status words. The Data Received Flag in the
CIO Area turns ON/OFF in response to the status of these words. When the
dedicated control bits (switches) are manipulated or the receive request is
sent by executing the CMND(490) instruction, the values of these words are
temporarily set to 0000 hexadecimal.
If any data remains in the reception buffer after the receive request processing
is complete, the number of bytes is stored in the Number of Bytes Received at
TCP Socket and the Data Received Flag turns ON again.
Receive requests should be executed after confirming that the required data
is contained in the number of bytes received.
15 14 13 12
m+1 to m+8
Number of Bytes Received (0000 to 07C0 hexadecimal)
11
10
9
8
7
6
5
-
-
-
-
-
-
-
Unit operation
11
10
9
8
7
Section 6-6
4
3
2
1
0
-
Opening Flag
Receiving Flag
Sending Flag
Closing Flag
6
5
4
3
2
1
0
111

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs cs1w-etn21Sysmac cs1w-etn21Sysmac cj1w-etn21

Table of Contents