Omron W343-E1-07 User Manual

Page 154

Advertising
background image

133

Using Socket Services with Socket Service Request Switches

Section 6-2

TCP Receive
When the TCP Receive Bit (CIO 000003) turns ON, the
TCP Receive Error Flag (CIO 000103) is turned OFF and
the TCP Receiving Flag (CIO 000203) is turned ON to
initialize processing.

If the Send Request Switch (CIO 151903) turns OFF while
the TCP Sending Flag (CIO 000202) is OFF, the contents
of the response code (D30027) in the Socket Service Pa-
rameter Area is checked, and if it is not 0000 Hex (normal
end), the TCP Send Error Flag (CIO 000102) is turned ON.

After the execution results have been checked, the TCP
Send Bit (CIO 000002) is turned OFF.

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.

When the TCP Sending Flag (CIO 000202) turns ON, the
following parameters are written to the parameter area for
socket number 1.
D30018: 0001 Hex = UDP/TCP socket No. 1
D30023: 0064 Hex = No. of send/receive bytes is 100
D30024 and D30025:

8200 0000 Hex =
Send/receive data address D00000

TCP Send
When the TCP Send Bit (CIO 000002) turns ON, the TCP
Send Error Flag (CIO 000102) is turned OFF and the TCP
Sending Flag (CIO 000202) is turned ON to initialize pro-
cessing.

Continued from previous page.

MOV(21)

@RSET

000002

@SET

000002

000202

MOV(21)

MOV(21)

MOV(21)

SET

000002

RSET

000202

SET

000001

000201

151905

<>(305)

RSET

000001

000201

151905

@RSET

000003

@SET

SET

000002 000202

151903

<>(305)

RSET

000002 000202

151903

Continued on next page.

D30027

#0000

000101

000001

000102

000202

#0001

D30018

#0064

D30023

#8200

D30024

#0000

D30025

151903

000202

000102

000002

000103

000203

030027

#0000

Advertising
This manual is related to the following products: