Omron CS CJ1W-ETN21 Operation Manual page 171

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

Advertisement

Using Socket Services with CMND(490)
Programming Example
000000
000000
000200
A20200
000000
000200
A20200
150900
000000
000200
A20200
150900
000001
000001
000201
A20200
000001
000201
A20200
000001
000201
A20200
Continued on next page.
150914
<>(305)
D01020
#0000
A021900
150903
150914
<>(305)
D01050
#0000
A21900
150903
@RSET
TCP Passive Open
When the TCP Open Bit (CIO 000000) turns ON, the TCP
000100
Open Error Flag (CIO 000100) is turned OFF and the TCP
Opening Flag (CIO 000200) is turned ON to initialize pro-
cessing.
@SET
000200
CMND(490)
When the TCP Opening Flag (CIO 000200) turns ON, the
status of the Port Enabled Flag (A20200) is checked to be
D01000
sure it is ON and a PASSIVE TCP OPEN REQUEST com-
D01010
mand is sent using CMND(490).
D01000: First command word
D00000
D01010: First response word
D00000: First control data word
RSET
The TCP Opening Flag (CIO 000200) is also turned OFF.
000200
SET
If the Port Enabled Flag (A20200) turns ON and the Open-
ing Flag (CIO 150900) turns OFF while the TCP Opening
000100
Flag (CIO 000200) is OFF, checks are made and if any of
the following are true, the TCP Open Error Flag (CIO
000100) is turned ON.
The Results Storage Error Flag (CIO 150914) is ON.
The contents of the Response Storage Area set in the
command code (D01020) is not 0000 Hex (normal end).
The Network Communications Error Flag (A21900) is ON.
After the execution results have been checked, the TCP
RSET
Open Bit (CIO 000000) is turned OFF.
000000
TCP Close
@RSET
When the TCP Close Bit (CIO 000001) turns ON, the TCP
000101
Close Error Flag (CIO 000101) is turned OFF and the TCP
Closing Flag (CIO 000201) is turned ON to initialize pro-
cessing.
@SET
000201
When the TCP Closing Flag (CIO 000201) turns ON, the
CMND(490)
status of the Port Enabled Flag (A20200) is checked to be
D01030
sure it is ON and a TCP CLOSE REQUEST command is
D01040
sent using CMND(490).
D01030: First command word
D00010
D01040: First response word
D00010: First control data word
RSET
The TCP Closing Flag (CIO 000201) is also turned OFF.
000201
If the Port Enabled Flag (A20200) turns ON and the Clos-
SET
ing Flag (CIO 150903) turns OFF while the TCP Closing
000101
Flag (CIO 000201) is OFF, checks are made and if any of
the following are true, the TCP Close Error Flag (CIO
000101) is turned ON.
The Results Storage Error Flag (CIO 150914) is ON.
The contents of the Response Storage Area set in the
command code (D01050) is not 0000 Hex (normal end).
The Network Communications Error Flag (A21900) is ON.
RSET
After the execution results have been checked, the TCP
Close Bit (CIO 000001) is turned OFF.
000001
Section 6-8
147

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs cs1w-etn21Sysmac cs1w-etn21Sysmac cj1w-etn21

Table of Contents