Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

The data type of Socket is structure _sSOCKET. The specifications are as follows:
Name
Socket
Handle
SrcAdr*
PortNo*
IpAdr*
DstAdr*
PortNo*
IpAdr*
* These members are not used for this instruction.
Related System-defined Variables
Name
_EIP_EtnOnlineSta
Additional Information
Refer to the NJ-series CPU Unit Built-in EtherNet/IP Port User's Manual (Cat. No. W506) for details on
socket services.
Precautions for Correct Use
• 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.

NJ-series Instructions Reference Manual (W502)

Meaning
Description
Socket
Socket
Handle
Handle of the connec-
tion to close.
0: Closes all TCP con-
nections that currently
use the socket service.
Local address Local IP address and
port number
Port number
Port number
IP address
IP address or host
name. A DNS or Hosts
setting is required to use
a host name.
Destination
Destination IP address
address
and port number
Port number
Port number
IP address
IP address or host
name. A DNS or Hosts
setting is required to use
a host name.
Meaning
Online
Data type
_sSOCKET
UDINT
_sSOCKET_
ADDRESS
UINT
STRING
_sSOCKET_
ADDRESS
UINT
STRING
Data
type
BOOL
Status of built-in EtherNet/IP port communications
TRUE: Can be used.
FALSE: Cannot be used.
2 Instruction Descriptions
Valid range
Unit
Default
---
---
---
Depends on
---
---
data type.
---
---
---
1 to 65535
Depends on
---
---
data type.
---
---
---
1 to 65535
Depends on
data type.
---
---
Description
2
2-787

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents