Omron V330-F Series Connection Manual page 40

Auto focus multi code reader general ethernet (tcp/ip) connection guide
Hide thumbs Also See for V330-F Series:
Table of Contents

Advertisement

9.1.2.
TCP Socket Communications by Manipulating Dedicated Control Bits
This section provides an overview of TCP socket communications by manipulating dedicated
control bits and the general movement of send and receive messages.
Note
For details, refer to Section 6 Socket Services in the CS/CJ-series Constructions of
Applications Operation Manual (Cat. No. W421).
Socket Services by Manipulating Dedicated Control Bits
To use socket services by manipulating dedicated control bits, store the required parameters in
Socket Service Parameter Areas in the CPU Bus Unit Area and then turn ON socket service
request switches.
Socket Service Parameter Areas (Allocated DM Area)
The socket service parameters used for socket service requests are allocated in the DM Area
as shown below.
The following description uses Socket Service Parameter Area 1 as an example.
(1) m+18: Socket option and TCP socket number
・ To use the keep-alive function, set bit 08 to 1 (ON).
・ To use the linger function, set bit 09 to 1 (ON).
・ Specify the TCP Socket number to use as &1 to &8 in bits 00 to 07.
Bit
(2) m+19: Local TCP port number
・ Specify the TCP port number used by the socket to send and receive data. Normally, ・
specify 1024 or higher. When 0 is specified, an unused TCP port number is automatically
assigned.
(The first word m is calculated as m = D30000 + (100 x Unit number).)
(m+18)
15
8
7
0
0 0 0 0 0
*
*
*
*
linger function
keep-alive function
0
*
*
*
*
*
*
TCP sockets No.
9. Software Part
40

Advertisement

Table of Contents
loading

This manual is also suitable for:

V430-f series

Table of Contents