Omron CJ1W-ETN11 Operation Manual page 178

Sysmac cs/cj series ethernet units
Hide thumbs Also See for CJ1W-ETN11:
Table of Contents

Advertisement

Using Socket Services with CMND(490)
Programming Example
000000
000000
000200
A20200
000000
000200
A020200 150100
000000
000200
A020200 150100
000001
000001
000201
A20200
000001
000201
A020200 150103
000001
000201
A020200 150103
Continued on next page.
@RSET
@SET
CMND(490)
RSET
150114
SET
<>(305)
D01020
#0000
A021900
RSET
@RSET
@SET
CMND(490)
RSET
150114
SET
<>(305)
D01050
#0000
A021900
RSET
UDP Open
When the UDP Open Bit (CIO 000000) turns ON, the
000100
UDP Open Error Flag (CIO 000100) is turned OFF and
the UDP Opening Flag (CIO 000200) is turned ON to
initialize processing.
000200
When the UDP Opening Flag (CIO 000200) turns ON,
the status of the Port Enabled Flag (A20200) is checked
D01000
to be sure it is ON and a UDP OPEN REQUEST com-
D01010
mand is sent using CMND(490).
D01000: First command word
D00000
D01010: First response word
D00000: First control data word
The UDP Opening Flag (CIO 000200) is also turned
000200
OFF.
000100
If the Port Enabled Flag (A20200) turns ON and the Open-
ing Flag (CIO 150100) turns OFF while the UDP Opening
Flag (CIO 000200) is OFF, checks are made and if any of
the following are true, the UDP Open Error Flag (CIO
000100) is turned ON.
The Results Storage Error Flag (CIO 150114) 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 UDP
000000
Open Bit (CIO 000000) is turned OFF.
UDP Close
When the UDP Close Bit (CIO 000001) turns ON, the
000101
UDP Close Error Flag (CIO 000101) is turned OFF and
the UDP Closing Flag (CIO 000201) is turned ON to ini-
tialize processing.
000201
When the UDP Closing Flag (CIO 000201) turns ON, the
status of the Port Enabled Flag (A20200) is checked to
D01030
be sure it is ON and a UDP CLOSE REQUEST command
is sent using CMND(490).
D01040
D01030: First command word
D00010
D01040: First response word
D00010: First control data word
The UDP Closing Flag (CIO 000201) is also turned OFF.
000201
If the Port Enabled Flag (A20200) turns ON and the Clos-
000101
ing Flag (CIO 150103) turns OFF while the UDP Closing
Flag (CIO 000201) is OFF, checks are made and if any of
the following are true, the UDP Close Error Flag (CIO
000101) is turned ON.
The Results Storage Error Flag (CIO 150114) 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.
After the execution results have been checked, the UDP
Close Bit (CIO 000001) is turned OFF.
000001
Section 6-3
157

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents