Omron W343-E1-07 User Manual

Page 177

Advertising
background image

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

0

1

2

3

4

5

6

7

8

9

D04000

2703H

0

1

2

3

4

5

6

7

8

9

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

0

1

2

3

4

5

6

7

8

9

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

)

7

6

5

4

3

2

1

0

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

Advertising
This manual is related to the following products: