Ethernet Units Operation Manual

156
Using Socket Services with CMND(490) Section 6-3
CIO Area The following bits and flags are used to control CMND(490) execution. The
bits in CIO 0000 are used to signal execution, the bits in CIO 0001 are used to
signal errors, and the bits in CIO 0002 are used to control the program so that
the instruction is executed only once.
2702H 0001H 820FH
B400H
0123456789
D04000
2703H
0123456789
D03000
D03010
0064H 0000H
UDP SEND REQUEST response
Re-
sponse
code
Re-
sponse
code
UDP SEND REQUEST results storage area
UDP RECEIVE REQUEST command data
No. of bytes to receive: 100 bytes (0064
hex
)
Timeout value: Not set
Command code
UDP socket number used
Results storage area: set to D04020 (0FB4
hex
)
No. of
send
bytes
2702H
0123456789
D04010
D04020
UDP RECEIVE REQUEST response
Re-
sponse
code
Re-
sponse
code
UDP RECEIVE REQUEST results storage area
Source IP
address
Source
port
number
No. of
bytes to
receive
Receive data: 100 bytes (0064
hex
)
76543210
CIO 0000
CIO 0001
15 to 8
CIO 0002
UDP
Send
Bit
UDP
Close
Bit
UDP
Open
Bit
UDP
Receive
Error
Flag
UDP
Send
Error
Flag
UDP
Close
Error
Flag
UDP
Open
Error
Flag
UDP
Receiving
Flag
UDP
Sending
Flag
UDP
Closing
Flag
UDP
Opening
Flag
UDP
Receive
Bit