Omron CJ1W-ETN21 operation manual Parameter Settings, Use of the parameters by the socket service

Models: CJ1W-ETN21

1 242
Download 242 pages 30.9 Kb
Page 140
Image 140

Using Socket Services by Manipulating Dedicated Control Bits

 

 

 

 

 

Section 6-7

Parameter Settings

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The following table shows the parameters that are required for each service

 

 

 

and the use of the parameters by the socket service.

 

 

 

 

UDP Socket Services

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Parameter

 

 

No. of

Range

 

 

 

 

 

Socket service

 

 

 

 

 

 

words

(decimal values in

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UDP

 

UDP

 

UDP

 

UDP

 

 

 

 

 

 

parentheses)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

open

 

receive

 

send

 

close

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Socket option

 

1

 

Specified bit

 

 

---

---

---

---

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UDP/TCP socket No.

 

 

 

 

0001 to 0008 hexadecimal

 

W

W

 

W

 

W

 

 

 

 

 

 

(1 to 8)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Local UDP/TCP port No.

 

1

 

0000 to FFFF hexadecimal

 

W

---

---

---

 

 

 

 

 

 

(0 to 65,535)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Remote IP address

 

2

 

00000000 to FFFFFFFF

 

---

R

 

W

---

 

 

 

 

 

 

hexadecimal

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(0.0.0.0 to 255.255.255.255)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Remote UDP/TCP port No.

 

1

 

0000 to FFFF hexadecimal

 

---

R

 

W

---

 

 

 

 

 

 

(0 to 65,535)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Number of bytes to send/receive

1

 

0000 to 07C0 hexadecimal

 

---

RW

 

RW

---

 

 

 

 

 

 

(0 to 1,984 bytes)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Send/Receive data address

2

 

Memory area address

 

 

---

W

 

W

---

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Time out time

 

1

 

0000 to FFFF hexadecimal

 

---

W

---

---

(Unit: 100 ms)

 

 

 

 

(0 to 65,535)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(0: No limit, 0.1 to 6,553.5 s)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Response code

 

1

 

---

 

 

 

R

R

 

R

 

R

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Note

W:

Written by user

 

 

 

 

 

 

 

 

 

 

 

 

 

RW: Written by user at execution and then read for results at completion

 

 

 

R:

Read by user for results at completion

 

 

 

 

 

 

 

 

 

---:

Not used.

 

 

 

 

 

 

 

 

 

 

TCP Socket Services

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Parameter

 

No. of

 

 

 

Range

 

 

 

 

Socket service

 

 

 

 

words

 

 

(decimal values in

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TCP

 

TCP

 

TCP

 

TCP

 

TCP

 

 

 

 

 

 

parentheses)

 

 

 

 

 

 

 

 

 

 

 

 

passive

 

active

 

receive

 

send

 

close

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

open

 

open

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Socket option

 

1

 

Specified bit

 

W

 

W

 

---

 

---

 

---

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UDP/TCP socket No.

 

 

 

0001 to 0008 hexadecimal

 

W

 

W

 

W

 

W

 

W

 

 

 

 

(1 to 8)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Local UDP/TCP port No.

 

1

 

0000 to FFFF hexadecimal

 

W

 

RW

 

---

 

---

 

---

 

 

 

 

(0 to 65,535)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Remote IP address

 

2

 

00000000 to FFFFFFFF

 

RW

 

W

 

---

 

---

 

---

 

 

 

 

hexadecimal

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(0.0.0.0 to 255.255.255.255

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Remote UDP/TCP port

 

1

 

0000 to FFFF hexadecimal

 

RW

 

W

 

---

 

---

 

---

No.

 

 

 

(0 to 65,535)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Number of bytes to send/

 

1

 

0000 to 07C0 hexadecimal

 

---

 

 

---

 

RW

 

RW

 

---

receive

 

 

 

(0 to 1,984 bytes)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Send/Receive data

 

2

 

Memory area address

 

---

 

 

---

 

W

 

W

 

---

address

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Time out time

 

1

 

0000 to FFFF hexadecimal

 

W

 

---

 

W

 

---

 

---

(Unit: 100 ms)

 

 

 

(0 to 65,535)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(0: No limit, 0.1 to 6,553.5 s)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Response code

 

1

 

---

 

 

 

R

 

R

 

R

 

R

 

R

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Note

W:

Written by user

 

 

 

 

 

 

 

 

 

 

 

 

 

RW: Written by user at execution and then read for results at completion

116

Page 140
Image 140
Omron CJ1W-ETN21 Parameter Settings, Use of the parameters by the socket service, UDP Socket Services, TCP Socket Services