EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #835 background imageLoading...
Page #835 background image
2-787
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Communications Instructions
2
SktClose
The data type of Socket is structure _sSOCKET. The specifications are as follows:
* These members are not used for this instruction.
Refer to the NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (Cat. No. W506) for details on
socket services.
• Execution of this instruction is continued until processing is completed even if the value of Execute
changes to FALSE or the execution time exceeds the task period. The value of Done changes to
TRUE when processing is completed. Use this to confirm normal completion of processing.
• Refer to Using this Section on page 2-2 for a timing chart for Execute, Done, Busy, and Error.
• This instruction can be used only for the built-in EtherNet/IP on NJ-series CPU Units.
• This instruction must be used in ST. It cannot be used in a ladder diagram.
• If the SktUDPRcv or SktTCPRcv instruction is executed and then the SktClose instruction is executed
while the socket for the specified handle is on standby to received data, the standby status is can-
celed.
• If more than one connection is open for the same local port number, only the connection for the spec-
ified socket is closed.
• If the value of the socket handle Socket.Handle is 0, all connections that are on standby for the Skt-
TCPAccept instruction are canceled.
Name Meaning Description Data type Valid range Unit Default
Socket Socket Socket _sSOCKET
--- --- ---
Handle Handle Handle of the connec-
tion to close.
0: Closes all TCP con-
nections that currently
use the socket service.
UDINT Depends on
data type.
--- ---
SrcAdr* Local address Local IP address and
port number
_sSOCKET_
ADDRESS
--- --- ---
PortNo* Port number Port number UINT 1 to 65535
--- ---
IpAdr* IP address IP address or host
name. A DNS or Hosts
setting is required to use
a host name.
STRING Depends on
data type.
DstAdr* Destination
address
Destination IP address
and port number
_sSOCKET_
ADDRESS
--- --- ---
PortNo* Port number Port number UINT 1 to 65535
--- ---
IpAdr* IP address IP address or host
name. A DNS or Hosts
setting is required to use
a host name.
STRING Depends on
data type.
Related System-defined Variables
Name Meaning
Data
type
Description
_EIP_EtnOnlineSta Online BOOL Status of built-in EtherNet/IP port communications
TRUE: Can be used.
FALSE: Cannot be used.
Additional Information
Precautions for Correct Use

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals