Omron CJ1W-ETN11 Operation Manual page 154

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
Continued from previous page.
000001
000201
151905
000001
000201
151905
000002
000002
000202
000002
000202
000002 000202
151903
000002 000202
151903
000003
Continued on next page.
<>(305)
D30027
#0000
<>(305)
030027
#0000
TCP Send
SET
When the TCP Send Bit (CIO 000002) turns ON, the TCP
000101
Send Error Flag (CIO 000102) is turned OFF and the TCP
Sending Flag (CIO 000202) is turned ON to initialize pro-
cessing.
RSET
000001
@RSET
000102
@SET
000202
MOV(21)
When the TCP Sending Flag (CIO 000202) turns ON, the
following parameters are written to the parameter area for
#0001
socket number 1.
D30018
D30018: 0001 Hex = UDP/TCP socket No. 1
D30023: 0064 Hex = No. of send/receive bytes is 100
MOV(21)
D30024 and D30025:
8200 0000 Hex =
#0064
Send/receive data address D00000
D30023
MOV(21)
#8200
D30024
MOV(21)
#0000
D30025
SET
151903
After the parameters have been set, the Send Request
Switch (CIO 151903) is turned ON and the TCP Sending
Flag (CIO 000202) is turned OFF.
RSET
000202
If the Send Request Switch (CIO 151903) turns OFF while
the TCP Sending Flag (CIO 000202) is OFF, the contents
SET
of the response code (D30027) in the Socket Service Pa-
rameter Area is checked, and if it is not 0000 Hex (normal
000102
end), the TCP Send Error Flag (CIO 000102) is turned ON.
After the execution results have been checked, the TCP
RSET
Send Bit (CIO 000002) is turned OFF.
000002
TCP Receive
@RSET
When the TCP Receive Bit (CIO 000003) turns ON, the
000103
TCP Receive Error Flag (CIO 000103) is turned OFF and
the TCP Receiving Flag (CIO 000203) is turned ON to
@SET
initialize processing.
000203
Section 6-2
133

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents