Omron CS CJ1W-ETN21 Operation Manual page 178

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)
Continued from previous page.
000002
000002
000202
A20200
000002
000202
A20200 150102
000002
000202
A20200
150102
000003
000003
000203
A20200
000003
000203
A20200
150101
000003
000203
A20200
150101
154
@RSET
@SET
CMND(490)
RSET
150114
SET
<>(305)
D03010
#0000
A21900
RSET
@RSET
@SET
CMND(490)
RSET
150114
SET
<>(305)
D04020
#0000
A21900
RSET
END(001)
Note When using the above programming example, change the bit and word
addresses as necessary to avoid using the same areas used by other parts of
the user program or the CPU Bus Unit.
UDP Send
When the UDP Send Bit (CIO 000002) turns ON, the UDP
000102
Send Error Flag (CIO 000102) is turned OFF and the
UDP Sending Flag (CIO 000202) is turned ON to initialize
processing.
When the UDP Sending Flag (CIO 000202) turns ON, the
000202
status of the Port Enabled Flag (A20200) is checked to be
sure it is ON and a UDP SEND REQUEST command is
sent using CMND(490).
D02000: First command word
D03000: First response word
D02000
D00020: First control data word
D03000
The UDP Sending Flag (CIO 000202) is also turned OFF.
D00020
000202
If the Port Enabled Flag (A20200) turns ON and the
000102
Sending Flag (CIO 150102) turns OFF while the UDP
Sending Flag (CIO 000202) is OFF, checks are made and
if any of the following are true, the UDP Send Error Flag
(CIO 000102) is turned ON.
The Results Storage Error Flag (CIO 150114) is ON.
The contents of the Response Storage Area set in the
command code (D03010) is not 0000 Hex (normal end).
The Network Communications Error Flag (A21900) is ON.
After the execution results have been checked, the UDP
Send Bit (CIO 000002) is turned OFF.
000002
000103
UDP Receive
When the UDP Receive Bit (CIO 000003) turns ON, the
000203
UDP Receive Error Flag (CIO 000103) is turned OFF
and the UDP Receiving Flag (CIO 000203) is turned ON
to initialize processing.
When the UDP Receiving Flag (CIO 000203) turns ON, the
D04000
status of the Port Enabled Flag (A20200) is checked to be
sure it is ON and a UDP RECEIVE REQUEST command is
D04010
sent using CMND(490).
D00030
D04000: First command word
D04010: First response word
D00030: First control data word
The UDP Receiving Flag (CIO 000203) is also turned OFF.
000203
If the Port Enabled Flag (A20200) turns ON and the Re-
ceiving Flag (CIO 150101) turns OFF while the UDP Re-
000103
ceiving Flag (CIO 000203) is OFF, checks are made and if
any of the following are true, the UDP Receive Error Flag
(CIO 000103) is turned ON.
The Results Storage Error Flag (CIO 150114) is ON.
The contents of the Response Storage Area set in the com-
mand code (D04020) is not 0000 Hex (normal end).
The Network Communications Error Flag (A21900) is ON.
After the execution results have been checked, the UDP
Receive Bit (CIO 000003) is turned OFF.
000003
Section 6-8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs cs1w-etn21Sysmac cs1w-etn21Sysmac cj1w-etn21

Table of Contents